/* =========================================================
   LionexAI - Early Stage Landing
   Design tokens, layout, components, animations
   ========================================================= */

:root {
  /* Palette - deep institutional dark with gold + teal accents (matches logo) */
  --bg: #070a10;
  --bg-elev: #0c1018;
  --bg-alt: #0a0e16;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Text - high contrast for visibility */
  --text: #f4f6fb;
  --text-muted: #b4bdcc;
  --text-dim: #8a93a3;

  /* Brand accents */
  --gold: #d4af52;
  --gold-soft: #e9cf86;
  --teal: #1fb6a6;
  --teal-soft: #4fd6c6;

  --accent-grad: linear-gradient(135deg, var(--gold) 0%, var(--teal) 100%);
  --gold-grad: linear-gradient(135deg, #e9cf86 0%, #c69a3a 100%);

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 5rem;

  /* Radii + shadow */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.35);

  /* Typography */
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Sora", "Inter", system-ui, sans-serif;

  --maxw: 1180px;
  --nav-h: 84px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--space-3); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold); color: #0a0e16; padding: 0.6rem 1rem; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--teal-soft); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 0.85rem; --pad-x: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: var(--pad-y) var(--pad-x);
  font-weight: 600; font-size: 0.98rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  will-change: transform;
}
.btn--accent {
  background: var(--gold-grad);
  color: #15110a;
  box-shadow: 0 10px 30px rgba(212, 175, 82, 0.25);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(212, 175, 82, 0.35); }
.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { transform: translateY(-2px); background: var(--surface-2); border-color: var(--teal); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.02em;
}
.badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-soft);
  box-shadow: 0 0 0 0 rgba(79, 214, 198, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(79, 214, 198, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(79, 214, 198, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 214, 198, 0); }
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(7, 10, 16, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(7, 10, 16, 0.9);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--space-3);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
}
/* Brand lockup: enlarged logo + glow halo so the gold/teal mark
   separates cleanly from the dark nav, plus an animated shine. */
.nav__brand {
  position: relative;
  display: inline-flex; align-items: center;
  padding: 4px 12px 4px 6px;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease;
}
.nav__brand::before {
  /* soft glow halo behind the mark */
  content: "";
  position: absolute; inset: -40% -10%;
  background: radial-gradient(50% 60% at 50% 50%, rgba(212, 175, 82, 0.22), transparent 70%),
              radial-gradient(45% 55% at 70% 50%, rgba(31, 182, 166, 0.18), transparent 70%);
  filter: blur(8px);
  opacity: 0.9;
  z-index: 0;
  pointer-events: none;
}
.nav__brand::after {
  /* diagonal gold shine that sweeps across on load + hover */
  content: "";
  position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  z-index: 2;
  pointer-events: none;
  animation: logoShine 6s ease-in-out 1.2s infinite;
}
.nav__brand:hover { transform: translateY(-1px) scale(1.03); }
.nav__logo {
  position: relative; z-index: 1;
  height: 56px; width: auto;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6))
          drop-shadow(0 0 10px rgba(212, 175, 82, 0.45))
          drop-shadow(0 0 20px rgba(31, 182, 166, 0.3));
  transition: filter 0.3s ease;
}
.nav__brand:hover .nav__logo {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.6))
          drop-shadow(0 0 14px rgba(212, 175, 82, 0.65))
          drop-shadow(0 0 28px rgba(31, 182, 166, 0.45));
}
@keyframes logoShine {
  0%   { left: -120%; }
  18%  { left: 140%; }
  100% { left: 140%; }
}
.nav__menu { display: flex; align-items: center; gap: var(--space-4); }
.nav__list { display: flex; align-items: center; gap: var(--space-3); }
.nav__link {
  font-size: 0.95rem; font-weight: 500; color: var(--text-muted);
  padding: 0.4rem 0.2rem; position: relative; transition: color 0.2s ease;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--accent-grad); transition: width 0.25s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__cta { padding: 0.6rem 1.2rem; }

.nav__toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav__toggle span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex; align-items: center;
  padding: var(--space-6) 0;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 20% 20%, rgba(31, 182, 166, 0.16), transparent 60%),
    radial-gradient(50% 50% at 85% 30%, rgba(212, 175, 82, 0.14), transparent 60%),
    radial-gradient(70% 60% at 50% 100%, rgba(31, 182, 166, 0.10), transparent 70%);
}
.hero__inner {
  position: relative; z-index: 1;
  max-width: 860px; margin-inline: auto; text-align: center;
  padding-inline: var(--space-3);
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  margin: var(--space-3) 0 var(--space-2);
  background: linear-gradient(180deg, #ffffff 0%, #c9d2e0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__subtitle {
  font-size: clamp(1.02rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px; margin: 0 auto var(--space-4);
}
.hero__actions { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: var(--space-6) 0; position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head { max-width: 680px; margin: 0 auto var(--space-5); text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: var(--space-2);
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section__title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: var(--space-2); }
.section__lead { color: var(--text-muted); font-size: 1.08rem; margin: 0; }

/* ---------- Grid + cards ---------- */
.grid { display: grid; gap: var(--space-3); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow);
}
.card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(212, 175, 82, 0.15), rgba(31, 182, 166, 0.15));
  border: 1px solid var(--border-strong);
  color: var(--gold-soft);
  margin-bottom: var(--space-3);
}
.card__icon svg { width: 26px; height: 26px; }
.card__title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.card__text { color: var(--text-muted); margin: 0; font-size: 0.97rem; }

/* ---------- Platform workflow ---------- */
.workflow {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4) var(--space-4);
}
.workflow__step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.workflow__step:hover { transform: translateY(-6px); border-color: var(--teal); box-shadow: var(--shadow); }
.workflow__num {
  font-family: var(--font-head); font-weight: 800; font-size: 1.1rem;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.workflow__title { font-size: 1.15rem; margin: 0.4rem 0 0.4rem; }
.workflow__text { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
/* connector arrows between steps */
.workflow__step::after {
  content: "\2192"; /* → */
  position: absolute; right: calc(var(--space-4) * -1 + 4px); top: 50%;
  transform: translateY(-50%);
  color: var(--teal-soft); font-size: 1.4rem; opacity: 0.55;
}
.workflow__step:nth-child(3n)::after,
.workflow__step:last-child::after { content: ""; } /* no arrow at end of row or list */

/* ---------- Architecture pipeline ---------- */
.pipeline { max-width: 620px; margin-inline: auto; }
.pipeline__step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin-bottom: 2.75rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.pipeline__step:last-child { margin-bottom: 0; }
.pipeline__step:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: var(--shadow); }
.pipeline__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-grad); color: #15110a;
  font-family: var(--font-head); font-weight: 800; font-size: 0.85rem;
  margin-bottom: 0.6rem;
}
.pipeline__title { font-size: 1.1rem; margin: 0 0 0.3rem; }
.pipeline__text { color: var(--text-muted); margin: 0; font-size: 0.95rem; }
.pipeline__step:not(:last-child)::after {
  content: "\2193"; /* ↓ */
  position: absolute; left: 50%; bottom: -2.1rem; transform: translateX(-50%);
  color: var(--teal-soft); font-size: 1.3rem; opacity: 0.6;
}

/* ---------- FAQ accordion (native <details>, no JS) ---------- */
.faq { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: var(--space-2); }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s ease;
}
.faq__item[open] { border-color: var(--border-strong); }
.faq__q {
  list-style: none; cursor: pointer;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+"; font-size: 1.4rem; line-height: 1; color: var(--teal-soft);
  transition: transform 0.3s ease; flex-shrink: 0;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { margin: 0; padding: 0 var(--space-4) var(--space-4); color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Roadmap timeline ---------- */
.timeline { position: relative; max-width: 760px; margin-inline: auto; padding-left: 0; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
  opacity: 0.5;
}
.timeline__item {
  position: relative; padding: 0 0 var(--space-4) var(--space-5);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__marker {
  position: absolute; left: 4px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-elev); border: 2px solid var(--border-strong);
}
.timeline__item.is-done .timeline__marker { background: var(--gold); border-color: var(--gold); }
.timeline__item.is-active .timeline__marker {
  background: var(--teal); border-color: var(--teal-soft);
  box-shadow: 0 0 0 0 rgba(79, 214, 198, 0.5); animation: pulse 2.2s infinite;
}
.timeline__title { font-size: 1.2rem; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.timeline__tag {
  font-family: var(--font-body); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: var(--radius-pill);
  background: rgba(31, 182, 166, 0.16); color: var(--teal-soft); border: 1px solid rgba(31, 182, 166, 0.4);
}
.timeline__text { color: var(--text-muted); margin: 0.4rem 0 0; font-size: 0.97rem; }

/* ---------- About ---------- */
.about__inner { max-width: 760px; margin-inline: auto; text-align: center; }
.about__text { color: var(--text-muted); font-size: clamp(1.05rem, 2.2vw, 1.3rem); margin: var(--space-3) 0 0; }

/* ---------- Contact form ---------- */
.form { max-width: 640px; margin-inline: auto; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-3); }
.form__field { display: flex; flex-direction: column; gap: 0.4rem; text-align: left; }
.form__label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.form__input {
  background: var(--bg-elev); border: 1px solid var(--border-strong); color: var(--text);
  padding: 0.85rem 1rem; border-radius: var(--radius-sm); font-size: 1rem; font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form__input::placeholder { color: var(--text-dim); }
.form__input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 182, 166, 0.2); }
.form__input.is-invalid { border-color: #e06b6b; box-shadow: 0 0 0 3px rgba(224, 107, 107, 0.18); }
.form__error { color: #f08a8a; font-size: 0.82rem; min-height: 1em; }
.form__submit { width: 100%; }
.form__success {
  margin: var(--space-3) 0 0; text-align: center; font-weight: 600; color: var(--teal-soft);
}

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: var(--space-5) 0 var(--space-4); }
.footer__inner {
  display: flex; justify-content: space-between; gap: var(--space-4);
  flex-wrap: wrap; padding-bottom: var(--space-4); border-bottom: 1px solid var(--border);
}
.footer__logo {
  height: 64px; width: auto; margin-bottom: var(--space-2);
  filter: drop-shadow(0 0 10px rgba(212, 175, 82, 0.4))
          drop-shadow(0 0 20px rgba(31, 182, 166, 0.25));
}
.footer__tagline { color: var(--text-muted); max-width: 360px; margin: 0; font-size: 0.95rem; }
.footer__meta { display: flex; flex-direction: column; gap: var(--space-2); align-items: flex-start; }
.footer__status { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-muted); margin: 0; font-weight: 600; }
.footer__links { display: flex; gap: var(--space-3); }
.footer__links a { color: var(--text-muted); font-size: 0.92rem; transition: color 0.2s ease; }
.footer__links a:hover { color: var(--text); }
.footer__disclaimer { color: var(--text-dim); font-size: 0.85rem; margin: var(--space-4) 0 var(--space-2); max-width: 880px; }
.footer__copy { color: var(--text-dim); font-size: 0.85rem; margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .workflow__step::after { content: ""; } /* hide arrows on smaller grid */
}

@media (max-width: 760px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: var(--space-3);
    background: rgba(7, 10, 16, 0.97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4) var(--space-3);
    transform: translateY(-120%); transition: transform 0.35s ease;
    box-shadow: var(--shadow);
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .nav__link { padding: 0.6rem 0.2rem; font-size: 1.05rem; }
  .nav__cta { width: 100%; }

  .grid--4 { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
