﻿/* MoreThan — design tokens (navy system) */
:root {
  --bg: #050D33;
  --bg-2: #081546;
  --navy: #0A1A5C;
  --navy-mid: #1A3A9C;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.06);
  --surface-3: rgba(255,255,255,0.10);
  --border: rgba(255,255,255,0.10);
  --border-soft: rgba(255,255,255,0.06);
  --text: #FFFFFF;
  --text-2: rgba(255,255,255,0.72);
  --text-3: rgba(255,255,255,0.48);
  --blue: #2D5BE3;
  --blue-bright: #4F7CFF;
  --green: #10B981;
  --amber: #F59E0B;
  --red: #EF4444;
  --accent: var(--blue);
  --accent-2: var(--blue-bright);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: #050D33;
  background-image:
    radial-gradient(circle at 20% 0%, rgba(45, 91, 227, 0.18), transparent 50%),
    linear-gradient(180deg, #0A1A5C 0%, #050D33 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}
#root { min-height: 100vh; width: 100vw; }

button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

/* Logo — mark + wordmark wired via React Logo component */
.mt-logo {
  font-family: "Fredoka", "Inter", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 22px;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.mt-logo .dot { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blue);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 20px -8px rgba(45,91,227,0.6);
}
.btn-primary:hover { background: var(--blue-bright); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-subtle {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn-subtle:hover { background: var(--surface-3); }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }

/* Card — subtle white-on-navy */
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
}

/* Inputs */
.input {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 14px;
  width: 100%;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--text-3); }
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}

/* utility */
.mono { font-family: var(--font-mono); }
.muted { color: var(--text-2); }
.muted-2 { color: var(--text-3); }

/* scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a2a36; border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-track { background: transparent; }

/* gradient bg accents — navy only, no purple */
.glow-blue {
  background: radial-gradient(circle at 30% 20%, rgba(45, 91, 227, 0.25), transparent 60%),
              radial-gradient(circle at 80% 80%, rgba(26, 58, 156, 0.30), transparent 55%);
}

/* dotted grid placeholder */
.dotgrid {
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* dividers */
.hr { height: 1px; background: var(--border-soft); width: 100%; }

/* chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 999px;
}
.chip-blue { color: var(--blue); background: color-mix(in oklab, var(--blue) 12%, var(--surface-2)); border-color: color-mix(in oklab, var(--blue) 35%, var(--border)); }
.chip-purple { color: var(--purple); background: color-mix(in oklab, var(--purple) 12%, var(--surface-2)); border-color: color-mix(in oklab, var(--purple) 35%, var(--border)); }
.chip-green { color: var(--green); background: color-mix(in oklab, var(--green) 12%, var(--surface-2)); border-color: color-mix(in oklab, var(--green) 35%, var(--border)); }
.chip-amber { color: var(--amber); background: color-mix(in oklab, var(--amber) 12%, var(--surface-2)); border-color: color-mix(in oklab, var(--amber) 35%, var(--border)); }

/* avatars */
.avatar {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: white;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}

/* nav rail */
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  user-select: none;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--surface-2); color: var(--text); }
.nav-item.active .nav-dot { opacity: 1; }
.nav-dot { width: 4px; height: 4px; border-radius: 999px; background: var(--accent); margin-left: auto; opacity: 0; }

/* score ring */
.ring-bg { stroke: var(--surface-3); }
.ring-fg { stroke: var(--accent); }

/* keycap */
.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 2px 6px;
  min-width: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 5px;
}

/* fade in */
@keyframes mt-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.fade-in { animation: mt-fade-in .25s ease both; }

/* pulse */
@keyframes mt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.pulse { animation: mt-pulse 1.6s ease-in-out infinite; }

/* glow ring */
.glow-ring {
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 35%, transparent),
              0 0 28px -6px color-mix(in oklab, var(--accent) 60%, transparent);
}

/* video shimmer */
.shimmer-bg {
  background: linear-gradient(135deg, #1a1a23 0%, #2a2a36 50%, #1a1a23 100%);
  background-size: 200% 200%;
  animation: mt-shim 6s ease infinite;
}
@keyframes mt-shim {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* prototype navigator */
.proto-nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex; gap: 4px;
  padding: 5px;
  background: rgba(19,19,26,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6);
}
.proto-nav button {
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 500;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: var(--text-2);
  display: flex; align-items: center; gap: 7px;
}
.proto-nav button:hover { color: var(--text); background: var(--surface-2); }
/* proto-nav active uses navy */
.proto-nav button.active { background: var(--blue); color: #FFFFFF; font-weight: 600; }
.proto-nav .pn-num { font-family: var(--font-mono); font-size: 10.5px; opacity: 0.7; }
.proto-nav button.active .pn-num { opacity: 0.55; }

/* ── Mobile responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  /* Header */
  header { padding: 16px 20px !important; }
  header nav { display: none !important; }

  /* Sections */
  section > div, footer { padding-left: 20px !important; padding-right: 20px !important; }

  /* Statement strip — stack vertically */
  section div[style*="repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  section div[style*="repeat(3, 1fr)"] > div {
    border-left: none !important;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0 !important;
  }

  /* Two-column grids → single column */
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="gridTemplateColumns: '1fr 1fr'"] {
    grid-template-columns: 1fr !important;
  }

  /* How it works cards */
  div[style*="repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Hero padding */
  section[style*="hero"], div[style*="maxWidth: 1280"] {
    padding-top: 40px !important;
    padding-bottom: 60px !important;
  }

  /* Buttons full width on mobile */
  .btn-lg { width: 100%; justify-content: center; }

  /* Footer */
  footer { flex-direction: column; gap: 16px; text-align: center; padding: 24px 20px !important; }
  footer div:last-child { flex-wrap: wrap; justify-content: center; }
}

/* light mode override */
body.light {
  --bg: #FAFAF7;
  --bg-2: #F4F4EF;
  --surface: #FFFFFF;
  --surface-2: #F4F4EF;
  --surface-3: #E8E8E0;
  --border: #E4E4DC;
  --border-soft: #ECECE5;
  --text: #0A0A0F;
  --text-2: #4B5563;
  --text-3: #9CA3AF;
}
body.light ::-webkit-scrollbar-thumb { background: #d4d4cc; border-color: var(--bg); }
body.light .btn-primary { color: white; }
