*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #020617;
  --bg-soft: #02081c;
  --bg-softer: #020617;
  --border-subtle: rgba(148, 163, 184, 0.3);
  --text: #e5e7eb;
  --text-soft: #9ca3af;
  --accent: #5580f7;
  --accent-soft: rgba(85, 109, 247, 0.1);
  --accent-strong: #b5c6fd;
  --card-bg: #020617;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.7);
  --btn-bg: #1f2937;
  --btn-border: rgba(148, 163, 184, 0.3);
  --bg-sprite-image: url("DarkMode.png");
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #020617 0, var(--bg) 40%);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-sprite {
  position: fixed;
  inset: 0;
  background-repeat: repeat;
  background-size: 64px 64px;
  background-image: var(--bg-sprite-image);
  opacity: 0.16;
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: -1;
}

.fumo {
  position: fixed;
  width: 96px;
  height: auto;
  transform: translate3d(0, 0, 0);
  image-rendering: pixelated;
  pointer-events: auto;
  cursor: grab;
  -webkit-user-drag: none;
  user-select: none;
  z-index: 8;
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.8));
}


.fumo.dragging {
  cursor: grabbing;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.4));
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}


.logo-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-circle {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #7290f4, #63bdf1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  text-transform: lowercase;
  box-shadow: 0 8px 20px rgba(129, 167, 248, 0.6);
}

.title-stack {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.title-main {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.title-sub {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.nav-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nav-link {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-soft);
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border 0.15s ease;
}

.nav-link:hover {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
}

.nav-link.active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: rgba(85, 115, 247, 0.35);
}

.theme-toggle {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.9);
  color: var(--accent-strong);
  cursor: pointer;
  font-size: 1.1rem;
}


.content {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 2rem auto 0;
  padding: 0 1.25rem 3rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.3fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.3rem, 4vw, 3rem);
  margin-bottom: 0.6rem;
}

.accent {
  color: var(--accent-strong);
}

.hero-sub {
  max-width: 460px;
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease, border 0.08s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #55dff7, #486eec);
  border-color: transparent;
  color: white;
  box-shadow: 0 10px 30px rgba(72, 157, 236, 0.45);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(72, 75, 236, 0.6);
}

.btn.secondary:hover {
  background: rgba(31, 41, 55, 0.9);
}

.hero-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text-soft);
}

.hero-card {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 50%), var(--card-bg);
  border-radius: 1.2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-card-header {
  display: flex;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.6));
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.dot.red { background: #f97373; }
.dot.yellow { background: #facc15; }
.dot.green { background: #4ade80; }

.hero-card-body {
  padding: 1.2rem 1.4rem 1.4rem;
}

.hero-card-title {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}

.hero-steps {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.93rem;
  line-height: 1.6;
}

.features {
  margin-top: 3rem;
}

.features h2 {
  margin-bottom: 1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: rgba(15, 23, 42, 0.75);
  border-radius: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--border-subtle);
}


.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.cta-strip {
  margin-top: 3rem;
  padding: 1.2rem 1.3rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(85, 136, 247, 0.18), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(129, 171, 248, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-strip h2 {
  margin: 0 0 0.1rem;
}

.cta-strip p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.9rem 1.5rem 1.1rem;
  font-size: 0.8rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-links {
  display: flex;
  gap: 0.75rem;
}

.footer-links a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

/* Commands & legal layout */
.page-header h1 {
  margin-bottom: 0.2rem;
}

.page-header p {
  margin-top: 0;
  color: var(--text-soft);
}

.command-section {
  margin-top: 2rem;
}

.command-section h2 {
  margin-bottom: 0.6rem;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.9rem;
}

.command-card {
  padding: 0.9rem;
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
}

.command-card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.command-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.legal section {
  margin-top: 1.3rem;
}

.legal h2 {
  margin-bottom: 0.3rem;
}

.legal p,
.legal li {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.legal ul {
  padding-left: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .content {
    margin-top: 1.5rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}
