:root {
  --bg: #060606;
  --surface: #121212;
  --surface-2: #1c1c1c;
  --text: #f8f6ed;
  --muted: #c7c0a8;
  --accent: #b7b4ac;
  --accent-2: #be9b3a;
  --accent-3: #8f7430;
  --line: rgba(255,255,255,0.16);
  --shadow: 0 20px 70px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(210,176,79,0.22), transparent 24%),
    radial-gradient(circle at top right, rgba(255,255,255,0.12), transparent 18%),
    linear-gradient(135deg, #000000 0%, #0f0f0f 55%, #161616 100%);
  line-height: 1.65;
  overflow-x: hidden;
}
body.is-transitioning { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.section { padding: 5.5rem 0; position: relative; }
.section-heading { margin-bottom: 2rem; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: 0.35em; font-size: 0.72rem; font-weight: 700; color: var(--accent); margin-bottom: 0.85rem; }
.section-heading h2, .hero-copy h1, .auth-panel h1 { font-size: clamp(2rem, 3vw, 3rem); line-height: 1.08; margin: 0 0 1rem; }
.section-heading p, .hero-copy p, .auth-panel p { color: var(--muted); max-width: 720px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.9rem 1.3rem; border: 1px solid var(--line); background: #fff; color: #0d1223; font-weight: 700; letter-spacing: 0.02em; transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; cursor: pointer; box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,0.28); }
.btn--ghost { background: transparent; color: var(--text); }
.btn--accent { background: linear-gradient(135deg, var(--accent), #f2db87); color: #111111; }
.btn--outline { background: transparent; border-color: var(--accent-2); color: var(--accent-2); }
.glass-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}
.site-header {
  position: sticky;
  top: 1rem;
  z-index: 30;
  background: transparent;
  border-bottom: none;
  padding-top: 0.9rem;
  transition: transform 0.24s ease;
}
.site-header.is-hidden {
  transform: translateY(-120%);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.15rem;
  border: 1px solid rgba(249, 249, 249, 0.24);
  background: rgba(7,7,7,0.72);
  backdrop-filter: blur(20px);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.26);
}
.brand { display: flex; align-items: center; gap: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 1.2rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.hero { padding-top: 4.5rem; padding-bottom: 4rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.2rem; align-items: center; }
.hero-copy h1 { font-size: clamp(2.6rem, 4vw, 4.25rem); margin-bottom: 1rem; }
.hero-copy .lead { font-size: 1.08rem; color: var(--muted); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }
.hero-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin-top: 2rem; }
.metric { padding: 0.95rem 1rem; border: 1px solid var(--line); background: rgba(255,255,255,0.05); }
.metric strong { display: block; font-size: 1.1rem; color: var(--accent); }
.metric span { color: var(--muted); font-size: 0.94rem; }
.hero-visual { position: relative; }
.hero-card, .floating-card { border: 1px solid var(--line); background: rgba(255,255,255,0.06); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.hero-card { padding: 1.1rem; overflow: hidden; }
.hero-card img { width: 100%; height: 310px; object-fit: cover; border: 1px solid var(--line); }
.floating-card {
  position: absolute; padding: 0.9rem 1rem; max-width: 220px; animation: float 6s ease-in-out infinite;
}
.floating-card.one { left: -1.5rem; bottom: 2rem; animation-delay: 0.2s; }
.floating-card.two { right: -1rem; top: 1.2rem; animation-delay: 1.2s; }
.floating-card h4 { margin: 0 0 0.35rem; font-size: 1rem; }
.floating-card p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1rem; }
.preview-grid img { height: 120px; object-fit: cover; border: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.feature-card { padding: 1.3rem; border: 1px solid var(--line); background: rgba(255,255,255,0.05); transform: translateY(18px); transition: transform 0.35s ease, border-color 0.35s ease; }
.feature-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,0.25); }
.feature-card .icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 0.9rem; background: linear-gradient(135deg, rgba(255,209,102,0.24), rgba(79,209,197,0.2)); color: var(--accent); font-size: 1.1rem; border: 1px solid rgba(255,255,255,0.14); }
.problem-shell { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 2rem; align-items: center; }
.problem-card { padding: 1.4rem; border: 1px solid var(--line); background: rgba(255,255,255,0.05); }
.problem-list { display: grid; gap: 0.9rem; margin-top: 1rem; }
.problem-list .row { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.problem-list .row:last-child { border-bottom: 0; }
.problem-list .num { width: 30px; height: 30px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: #050816; font-weight: 800; border-radius: 0.2rem; flex-shrink: 0; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.testimonial { padding: 1.3rem; border: 1px solid var(--line); background: rgba(255,255,255,0.05); }
.testimonial .quote { color: var(--text); font-size: 1rem; margin: 0 0 1rem; }
.person { display: flex; align-items: center; gap: 0.8rem; }
.person img { width: 46px; height: 46px; object-fit: cover; border-radius: 999px; border: 1px solid var(--line); }
.person strong { display: block; }
.person span { font-size: 0.9rem; color: var(--muted); }
.program-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.program-card { border: 1px solid var(--line); background: rgba(255,255,255,0.05); padding: 1.3rem; overflow: hidden; position: relative; }
.program-card::after { content: ''; position: absolute; inset: auto -40px -40px auto; width: 140px; height: 140px; background: linear-gradient(135deg, rgba(255,209,102,0.14), rgba(79,209,197,0.16)); border-radius: 999px; filter: blur(16px); }
.program-card img { width: 100%; height: 180px; object-fit: cover; border: 1px solid var(--line); margin-bottom: 1rem; }
.cta-banner { padding: 2rem; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(255,209,102,0.12), rgba(79,209,197,0.12)); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer { padding: 2rem 0 3rem; color: var(--muted); }
.footer--site {
  padding-top: 3rem;
  margin-top: 2rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.2), rgba(0,0,0,0.58));
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr 0.9fr;
  gap: 1.2rem;
  padding: 1.5rem 0 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-block { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-block h3 { margin: 0 0 0.2rem; color: var(--accent-2); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.2em; }
.footer-block a, .footer-block span { color: #f1ebd5; font-size: 0.95rem; }
.footer-block a:hover { color: var(--accent-2); }
.footer-brand { margin-bottom: 0.2rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 0.6rem;
  flex-wrap: wrap;
}
.footer-bottom-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.transition-screen {
  position: fixed; inset: 0; background: linear-gradient(135deg, var(--accent), var(--accent-3));
  z-index: 100; opacity: 0; pointer-events: none; transform: translateY(100%);
  transition: transform 0.45s ease, opacity 0.35s ease;
}
.transition-screen.active { opacity: 1; transform: translateY(0); }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem 0; }
.auth-shell { display: grid; grid-template-columns: 1fr 0.9fr; width: min(1100px, calc(100% - 2rem)); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.auth-visual { position: relative; padding: 2rem; background: linear-gradient(145deg, rgba(124,92,255,0.15), rgba(79,209,197,0.16)); }
.auth-visual img { width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); }
.auth-panel { padding: 2rem; background: rgba(6,8,22,0.95); }
.auth-form { display: grid; gap: 0.95rem; margin-top: 1.4rem; }
.auth-form input, .auth-form select, .auth-form textarea { width: 100%; padding: 0.92rem 1rem; border: 1px solid var(--line); border-radius: 0px; background-color: rgba(255,255,255,0.08); background-image: none; color: var(--text); }
.auth-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: rgba(255,255,255,0.08);
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 1rem) 50%, calc(100% - 0.65rem) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.3rem;
}
.auth-form option { background-color: #111118; color: var(--text); }
.auth-form label { font-size: 0.9rem; color: var(--muted); }
.auth-form .checkbox-field { display: flex; align-items: center; gap: 0.75rem; color: var(--text); }
.auth-form .checkbox-field input[type="checkbox"] { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--accent-2); }
.auth-links { display: flex; justify-content: space-between; align-items: center; margin-top: 0.7rem; color: var(--muted); font-size: 0.9rem; }
.docs-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; padding-block: 2rem 3rem; }
.sidebar { position: sticky; top: 90px; align-self: start; padding: 1rem; border: 1px solid var(--line); background: rgba(255,255,255,0.04); height: fit-content; }
.sidebar h3 { margin-top: 0; }
.sidebar a { display: block; padding: 0.6rem 0.7rem; color: var(--muted); border-left: 2px solid transparent; margin-bottom: 0.25rem; }
.sidebar a.active { color: var(--text); border-left-color: var(--accent); background: rgba(255,209,102,0.1); }
.doc-card { padding: 1.4rem; margin-bottom: 1rem; border: 1px solid var(--line); background: rgba(255,255,255,0.05); }
.doc-card h2 { margin-top: 0; font-size: 1.4rem; }
.doc-card ul { padding-left: 1.1rem; color: var(--muted); }
.doc-card .pill { display: inline-block; margin-right: 0.5rem; margin-bottom: 0.5rem; padding: 0.35rem 0.65rem; border: 1px solid var(--line); color: var(--accent); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.18em; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 960px) { .hero-grid, .problem-shell, .auth-shell, .docs-layout { grid-template-columns: 1fr; } .feature-grid, .program-grid, .testimonial-grid { grid-template-columns: 1fr; } .hero-metrics { grid-template-columns: 1fr; } .floating-card { position: static; max-width: none; margin-top: 0.8rem; } .hero-visual { display: grid; gap: 0.8rem; } .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    padding: 0.65rem 0;
    margin: 0;
  }
  .topbar { flex-wrap: nowrap; padding: 0.7rem 0.9rem; margin: 0 0.8rem; border-radius: 999px; }
  /* On small screens hide the full nav links/buttons so only the brand remains */
  .nav-links { display: none !important; }
  .nav-links .btn { padding: 0.7rem 0.8rem; font-size: 0.8rem; }
  .hero { padding-top: 6rem; }
  .section { padding: 4rem 0; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .auth-panel, .auth-visual { padding: 1.2rem; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  /* Mobile bottom navigation (visible only on small screens) */
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.5rem 0;
    gap: 0.25rem;
    background: rgba(6,6,6,0.85);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(8px);
    z-index: 60;
    safe-area-inset-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bottom-nav .bottom-nav-link { color: var(--muted); display: inline-flex; align-items: center; justify-content: center; padding: 0.35rem; border-radius: 8px; }
  .mobile-bottom-nav .bottom-nav-link svg { display: block; color: currentColor; }
  .mobile-bottom-nav .bottom-nav-link.active { color: var(--text); }
  .mobile-bottom-nav .mobile-notification-badge { position: absolute; margin-top: -12px; margin-left: 8px; display: block; width: 8px; height: 8px; background: var(--accent-2); border-radius: 999px; }
  .mobile-bottom-nav .bottom-profile-link { padding: 0; }
  .mobile-bottom-nav .bottom-avatar { width: 28px; height: 28px; object-fit: cover; border-radius: 999px; border: 1px solid var(--line); display: block; }
  .mobile-bottom-nav .bottom-avatar-fallback { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 999px; background: rgba(255,255,255,0.04); }
  /* Give page content room for the fixed bottom nav */
  body { padding-bottom: 76px; }
}
