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

:root {
  --lapis-900: #042C53;
  --lapis-800: #0C447C;
  --lapis-700: #10508F;
  --lapis-600: #185FA5;
  --lapis-500: #2470B8;
  --lapis-400: #378ADD;
  --lapis-300: #5CA3E8;
  --lapis-200: #85B7EB;
  --lapis-100: #B5D4F4;
  --lapis-50:  #E6F1FB;

  --text-primary:   #E8F4FF;
  --text-secondary: #85B7EB;
  --text-tertiary:  #4B7EA8;
  --bg-primary:     #060F1A;
  --bg-secondary:   #081828;
  --border:         rgba(55, 138, 221, 0.13);
  --border-strong:  rgba(55, 138, 221, 0.24);

  --font-heading: 'Libre Franklin', sans-serif;
  --font-body:    'Sintony', sans-serif;
  --font-mono:    'Fira Mono', 'Cascadia Code', 'Consolas', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm:         0 1px 3px rgba(0, 0, 0, 0.5);
  --shadow-md:         0 4px 16px rgba(0, 0, 0, 0.55);
  --shadow-glow:       0 0 24px rgba(55, 138, 221, 0.22);
  --shadow-glow-strong: 0 0 32px rgba(55, 138, 221, 0.42);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* subtle noise grain */
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.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.55;
}

/* ─── NAV ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--lapis-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 60px;
  border-bottom: 0.5px solid rgba(55, 138, 221, 0.18);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-svg { width: 32px; height: 32px; flex-shrink: 0; }

.logo-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  color: var(--lapis-100);
  letter-spacing: -0.3px;
}

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

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--lapis-200);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: #fff; }

.btn-nav {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  color: var(--lapis-200);
  background: transparent;
  border: 1px solid var(--lapis-700);
  border-radius: var(--radius-sm);
  padding: 7px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-nav:hover {
  color: #fff;
  border-color: var(--lapis-400);
  box-shadow: 0 0 12px rgba(55, 138, 221, 0.3);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 2rem 5rem;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(24, 95, 165, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 80, 143, 0.35);
  color: var(--lapis-100);
  border: 0.5px solid rgba(55, 138, 221, 0.28);
  border-radius: 99px;
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: 0.2px;
}

.hero-badge i { font-size: 13px; color: var(--lapis-400); }
.hero-badge .sep { color: var(--lapis-700); }

h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

h1 .accent { color: var(--lapis-600); }

.hero-body {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--lapis-600);
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 24px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: var(--shadow-md), 0 0 12px rgba(55, 138, 221, 0.15);
}

.btn-primary:hover {
  background: var(--lapis-500);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), var(--shadow-glow-strong);
}

.btn-outline {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--lapis-300);
  background: transparent;
  border: 1.5px solid var(--lapis-400);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 0 12px rgba(55, 138, 221, 0.12);
}

.btn-outline:hover {
  color: var(--lapis-100);
  box-shadow: var(--shadow-glow-strong);
  transform: translateY(-1px);
}

/* ─── TERMINAL ─── */
.terminal-wrap {
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 0 0.5px rgba(55, 138, 221, 0.18);
}

.terminal-titlebar {
  background: #021528;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tdot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2A3A4A;
}

.terminal-body {
  background: var(--lapis-900);
  padding: 1.5rem 1.75rem;
  text-align: left;
}

.tline {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--lapis-100);
}

.tline .prompt  { color: var(--lapis-400); user-select: none; }
.tline .cmd     { color: #E8F4FF; }
.tline .flag    { color: var(--lapis-300); }
.tline .path    { color: var(--lapis-200); }
.tline .comment { color: var(--lapis-700); font-style: italic; }
.tline .ok      { color: #5DCAA5; }
.tline .fname   { color: var(--lapis-100); }
.tline .arrow   { color: var(--lapis-400); }
.tline .result-ok  { color: #5DCAA5; }
.tline .result-num { color: var(--lapis-300); }
.tline.spacer   { line-height: 0.6; }

/* ─── SECTION WRAPPER ─── */
.section {
  padding: 5rem 2rem;
  max-width: 760px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

h2 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: 0.6rem;
}

.section-sub {
  font-size: 16px;
  color: var(--text-secondary);
}

/* ─── LEVEL CARDS ─── */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.level-card {
  background: var(--bg-secondary);
  border: 2px solid var(--card-color, #378ADD);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 0 0 4px var(--card-glow, rgba(55, 138, 221, 0.06));
  transition: box-shadow 0.2s;
}

.level-card:hover {
  box-shadow: 0 0 24px var(--card-color, #378ADD), 0 0 0 4px var(--card-glow-strong, rgba(55, 138, 221, 0.12));
}

.levels-grid > .level-card:nth-child(1) {
  --card-color: #378ADD;
  --card-glow: rgba(55, 138, 221, 0.07);
  --card-glow-strong: rgba(55, 138, 221, 0.13);
}

.levels-grid > .level-card:nth-child(2) {
  --card-color: #5468D0;
  --card-glow: rgba(84, 104, 208, 0.07);
  --card-glow-strong: rgba(84, 104, 208, 0.13);
}

.levels-grid > .level-card:nth-child(3) {
  --card-color: #6F52C8;
  --card-glow: rgba(111, 82, 200, 0.07);
  --card-glow-strong: rgba(111, 82, 200, 0.13);
}

.level-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 20px;
}

.level-icon.no-gps     { background: rgba(55, 138, 221, 0.1);  color: var(--lapis-400); }
.level-icon.no-camera  { background: rgba(55, 138, 221, 0.18); color: var(--lapis-200); }
.level-icon.clean      { background: var(--lapis-800);         color: var(--lapis-100); }

.level-slug {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}

.level-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 17px;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.level-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 5px; }

.tag {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 99px;
}

.tag-keep  { background: rgba(93, 202, 165, 0.15); color: #5DCAA5; }
.tag-strip { background: rgba(130, 108, 236, 0.18); color: #9B8EE8; text-decoration: line-through; opacity: 0.85; }

/* ─── WHO SECTION ─── */
.who-section {
  background: var(--bg-secondary);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.who-card {
  background: var(--bg-primary);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.who-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.who-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: rgba(55, 138, 221, 0.1);
  color: var(--lapis-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.who-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.who-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── TRUST STRIP ─── */
.trust-strip {
  padding: 4rem 2rem;
  max-width: 760px;
  margin: 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-item i {
  font-size: 26px;
  color: var(--lapis-400);
  display: block;
  margin-bottom: 10px;
}

.trust-item strong {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── INDIGO CALLOUT ─── */
.indigo-callout {
  background: var(--lapis-900);
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto 5rem;
  max-width: 716px;
  box-shadow: var(--shadow-md), 0 0 0 0.5px rgba(55, 138, 221, 0.22);
}

.indigo-callout-text h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
  color: var(--lapis-100);
  margin-bottom: 0.4rem;
  letter-spacing: -0.3px;
}

.indigo-callout-text h3 span {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--lapis-400);
}

.indigo-callout-text p {
  font-size: 14px;
  color: var(--lapis-200);
  line-height: 1.6;
  max-width: 380px;
}

.badge-coming {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: rgba(55, 138, 221, 0.15);
  color: var(--lapis-300);
  border: 0.5px solid rgba(55, 138, 221, 0.28);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 8px;
}

.indigo-terminal {
  font-family: var(--font-mono);
  font-size: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 0.5px solid rgba(55, 138, 221, 0.18);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  color: var(--lapis-100);
  white-space: nowrap;
  flex-shrink: 0;
}

.indigo-terminal .prompt { color: var(--lapis-400); }
.indigo-terminal .cmd    { color: #fff; font-weight: bold; }

/* ─── FOOTER ─── */
footer {
  background: var(--lapis-900);
  border-top: 0.5px solid rgba(55, 138, 221, 0.18);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: var(--lapis-200);
  letter-spacing: -0.2px;
}

.footer-sep     { color: var(--lapis-800); }
.footer-license { font-size: 12px; color: var(--lapis-700); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 13px;
  color: var(--lapis-400);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--lapis-100); }

.footer-version {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--lapis-700);
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge    { animation: fadeUp 0.5s ease both; animation-delay: 0.1s; }
h1             { animation: fadeUp 0.5s ease both; animation-delay: 0.2s; }
.hero-body     { animation: fadeUp 0.5s ease both; animation-delay: 0.3s; }
.hero-actions  { animation: fadeUp 0.5s ease both; animation-delay: 0.4s; }
.terminal-wrap { animation: fadeUp 0.5s ease both; animation-delay: 0.5s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 680px) {
  nav { padding: 0 1.25rem; }
  .nav-links a { display: none; }
  .hero { padding: 4rem 1.25rem 3rem; }
  .levels-grid { grid-template-columns: 1fr; }
  .who-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .indigo-callout { flex-direction: column; padding: 2rem; }
  .indigo-terminal { white-space: normal; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}
