:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #161618;
  --bg-card: #131315;
  --border: rgba(255, 255, 255, 0.07);
  --border-bright: rgba(255, 255, 255, 0.14);
  --text: #e8e8ec;
  --text-muted: #7a7a85;
  --text-dim: #4a4a55;
  --red: #e03535;
  --red-soft: rgba(224, 53, 53, 0.15);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.15);
  --white: #ffffff;
  --gold: #d4a843;
  --gold-soft: rgba(212, 168, 67, 0.12);
  --accent: #e03535;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── GRAIN OVERLAY ─── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
}

/* ─── PAGES ─── */
.page {
  display: none;
  min-height: 100vh;
}
.page.active {
  display: block;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: white;
  letter-spacing: -0.5px;
}
.icon {
  width: 100%;
  height: 100%;
}

.nav-logo-text {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.3px;
}

.nav-logo-sub {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition:
    color 0.2s,
    background 0.2s;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  background: var(--red) !important;
  color: white !important;
  padding: 0.4rem 1rem !important;
  font-weight: 500 !important;
}

.nav-cta:hover {
  background: #c42a2a !important;
}

.nav-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% -10%,
      rgba(224, 53, 53, 0.12) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 80%,
      rgba(34, 197, 94, 0.06) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.9rem;
  background: var(--bg-3);
  border: 1px solid var(--border-bright);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

.hero h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.hero-typewriter-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  flex-wrap: wrap;
}

.hero-static {
  color: var(--white);
}

.hero-dynamic {
  position: relative;
  color: var(--red);
  min-width: 220px;
}

.hero-dynamic .word {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  transition:
    opacity 0.4s,
    transform 0.4s;
  transform: translateX(-50%) translateY(12px);
}

.hero-dynamic .word.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hero-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 2rem auto 2.5rem;
  font-weight: 300;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: var(--red);
  color: white;
  border: none;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  font-family: "DM Sans", sans-serif;
}

.btn-primary:hover {
  background: #c42a2a;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s;
  font-family: "DM Sans", sans-serif;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ─── PRODUCTS GRID (HOME) ─── */
.section {
  padding: 5rem 2rem;
  max-width: 1120px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  font-weight: 300;
  line-height: 1.7;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  cursor: pointer;
  transition:
    border-color 0.25s,
    transform 0.25s,
    background 0.25s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
}

.product-card.trader::before {
  background: radial-gradient(
    ellipse at top left,
    rgba(34, 197, 94, 0.08) 0%,
    transparent 60%
  );
}
.product-card.secure::before {
  background: radial-gradient(
    ellipse at top left,
    rgba(212, 168, 67, 0.08) 0%,
    transparent 60%
  );
}

.product-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
}
.product-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.card-icon.trader {
  background: var(--green-soft);
}
.card-icon.secure {
  background: var(--gold-soft);
}

.card-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.card-tag.live {
  background: var(--green-soft);
  color: var(--green);
}
.card-tag.coming {
  background: var(--gold-soft);
  color: var(--gold);
}

.card-title {
  font-family: "Syne", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
  letter-spacing: -0.5px;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  font-weight: 300;
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  transition:
    color 0.2s,
    gap 0.2s;
}

.product-card:hover .card-arrow {
  color: var(--text);
  gap: 10px;
}

/* ─── DIVIDER ─── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ─── FEATURE ROWS ─── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 2rem;
  max-width: 1120px;
  margin: 0 auto;
}

.feature-row.reverse {
  direction: rtl;
}
.feature-row.reverse > * {
  direction: ltr;
}

.feature-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

/* ─── TICKER DEMO ─── */
.ticker-demo {
  font-family: "Syne", sans-serif;
}

.ticker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.ticker-symbol {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}
.ticker-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
}

.ticker-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ticker-row .label {
  color: var(--text-dim);
}
.ticker-row .up {
  color: var(--green);
  font-weight: 500;
}
.ticker-row .down {
  color: var(--red);
  font-weight: 500;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 60px;
  margin-top: 1rem;
}

.bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  animation: growBar 1.2s ease-out both;
}

@keyframes growBar {
  from {
    height: 0;
    opacity: 0;
  }
}

/* ─── SECURE DEMO ─── */
.secure-demo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.shield-icon {
  width: 56px;
  height: 56px;
  background: var(--gold-soft);
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.auth-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
}

.auth-step .step-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.auth-step.done .step-icon {
  background: var(--green-soft);
  color: var(--green);
}
.auth-step.active .step-icon {
  background: var(--gold-soft);
  color: var(--gold);
}
.auth-step.pending .step-icon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}
.auth-step .step-label {
  color: var(--text-muted);
}
.auth-step.done .step-label {
  color: var(--text);
}
.auth-step.active .step-label {
  color: var(--gold);
}

/* ─── STATS ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin: 3rem 0;
}

.stat-cell {
  background: var(--bg-card);
  padding: 2rem 1.5rem;
  text-align: center;
}

.stat-num {
  font-family: "Syne", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
  font-weight: 400;
}

/* ─── SECURITY SECTION ─── */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.security-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.security-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.6;
}

.security-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.security-card-title {
  font-family: "Syne", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.security-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* ─── FOOTER ─── */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand .nav-logo-text {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
  font-weight: 300;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 300;
  transition: color 0.2s;
  cursor: pointer;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ─── INNER PAGE HERO ─── */
.inner-hero {
  padding: 8rem 2rem 4rem;
  max-width: 1120px;
  margin: 0 auto;
}

.inner-hero .breadcrumb {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.inner-hero .breadcrumb span {
  cursor: pointer;
  transition: color 0.2s;
}
.inner-hero .breadcrumb span:hover {
  color: var(--text-muted);
}

.inner-hero h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.inner-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  font-weight: 300;
  line-height: 1.7;
}

/* ─── FEATURES LIST ─── */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.feature-item-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.feature-item-icon.green {
  background: var(--green-soft);
}
.feature-item-icon.red {
  background: var(--red-soft);
}
.feature-item-icon.gold {
  background: var(--gold-soft);
}

.feature-item-title {
  font-family: "Syne", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.feature-item-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 300;
}

/* ─── COMING SOON BANNER ─── */
.coming-soon-banner {
  background: linear-gradient(
    135deg,
    rgba(212, 168, 67, 0.1),
    rgba(212, 168, 67, 0.05)
  );
  border: 1px solid rgba(212, 168, 67, 0.25);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.coming-soon-banner .banner-icon {
  font-size: 2rem;
}
.coming-soon-banner .banner-text h3 {
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.coming-soon-banner .banner-text p {
  font-size: 0.87rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ─── LEGAL / PROSE ─── */
.prose {
  max-width: 740px;
  margin: 0 auto;
  padding: 2rem 2rem 5rem;
}

.prose h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.4px;
}

.prose h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
}

.prose ul {
  padding-left: 1.4rem;
  margin: 0.5rem 0;
}
.prose li {
  margin-bottom: 0.4rem;
}

.prose a {
  color: var(--red);
  text-decoration: none;
}
.prose a:hover {
  text-decoration: underline;
}

.prose .last-updated {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

/* ─── WAITLIST FORM ─── */
.waitlist-form {
  display: flex;
  gap: 0.75rem;
  max-width: 440px;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.waitlist-form input {
  flex: 1;
  min-width: 200px;
  background: var(--bg-3);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.waitlist-form input:focus {
  border-color: var(--gold);
}
.waitlist-form input::placeholder {
  color: var(--text-dim);
}

.btn-gold {
  background: var(--gold);
  color: #0a0a0b;
  border: none;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.btn-gold:hover {
  opacity: 0.88;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-menu-toggle {
    display: block;
  }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .feature-row.reverse {
    direction: ltr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-dynamic {
    min-width: 160px;
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── COMMANDS POPUP ─── */
.cmd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.cmd-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cmd-modal {
  background: var(--bg-2);
  border: 1px solid var(--border-bright);
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.cmd-overlay.open .cmd-modal {
  transform: translateY(0) scale(1);
}

.cmd-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cmd-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmd-modal-title .icon {
  width: 36px;
  height: 36px;
  background: var(--green-soft);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.cmd-modal-title h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}

.cmd-modal-title p {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 300;
}

.cmd-close {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    color 0.2s;
  flex-shrink: 0;
}

.cmd-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.cmd-search-wrap {
  padding: 1rem 1.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cmd-search {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border-bright);
  border-radius: 9px;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234a4a55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.75rem center;
}

.cmd-search:focus {
  border-color: var(--green);
}
.cmd-search::placeholder {
  color: var(--text-dim);
}

.cmd-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.75rem 1.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.cmd-tab {
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  background: none;
  font-family: "DM Sans", sans-serif;
}

.cmd-tab:hover {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.cmd-tab.active {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(34, 197, 94, 0.2);
}

.cmd-list {
  overflow-y: auto;
  padding: 1rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cmd-list::-webkit-scrollbar {
  width: 4px;
}
.cmd-list::-webkit-scrollbar-track {
  background: transparent;
}
.cmd-list::-webkit-scrollbar-thumb {
  background: var(--border-bright);
  border-radius: 4px;
}

.cmd-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 11px;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.cmd-item:hover {
  border-color: var(--border-bright);
  background: #161618;
}

.cmd-name {
  font-family: "Syne", monospace;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
  min-width: 140px;
  padding-top: 1px;
  letter-spacing: -0.2px;
}

.cmd-info {
  flex: 1;
}

.cmd-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
}

.cmd-params {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.cmd-param {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  font-weight: 500;
}

.cmd-param.required {
  background: var(--red-soft);
  color: var(--red);
}
.cmd-param.optional {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

.cmd-category-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.25rem 0;
  margin-top: 0.5rem;
}

.cmd-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.cmd-footer {
  padding: 0.85rem 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cmd-footer-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.kbd {
  background: var(--bg-3);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-size: 0.7rem;
  font-family: monospace;
  color: var(--text-muted);
}

/* ─── ANIMATIONS ─── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in:nth-child(1) {
  animation-delay: 0.05s;
}
.fade-in:nth-child(2) {
  animation-delay: 0.15s;
}
.fade-in:nth-child(3) {
  animation-delay: 0.25s;
}
.fade-in:nth-child(4) {
  animation-delay: 0.35s;
}
.fade-in:nth-child(5) {
  animation-delay: 0.45s;
}

/* ─── SNOWY STUDIO BADGE ─── */
.studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 400;
}

.studio-badge strong {
  color: var(--text-muted);
}

/* CTA SECTION */
.cta-section {
  margin: 2rem 0;
  padding: 3rem 2.5rem;
  background: linear-gradient(
    135deg,
    rgba(224, 53, 53, 0.08),
    rgba(10, 10, 11, 0)
  );
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-section h2 {
  font-family: "Syne", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 0.4rem;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 300;
}
