/* =========================================================
   NovAstra — landing page styles
   Design tokens per handoff README. Dark, architectural,
   motion-forward but restrained.
   ========================================================= */

:root {
  --deep-space: #080A12;
  --panel: #0B0E18;
  --card-hover: #141826;
  --midnight-graphite: #171A23;
  --soft-charcoal: #2A2E39;
  --starlight: #F5F7FA;
  --nova-violet: #7D61FF;
  --nova-violet-soft: #A796FF;
  --aurora-blue: #56C2FF;
  --nebula-pink: #E778FF;
  --electric-cyan: #61E8FF;

  --hairline-07: rgba(245, 247, 250, 0.07);
  --hairline-08: rgba(245, 247, 250, 0.08);
  --hairline-12: rgba(245, 247, 250, 0.12);

  --page-pad: 48px;
  --section-pad: 140px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--deep-space);
  color: var(--starlight);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
::selection { background: var(--nova-violet); color: var(--starlight); }
a { color: var(--starlight); text-decoration: none; }
a:hover { color: var(--nova-violet-soft); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--deep-space); }
::-webkit-scrollbar-thumb { background: var(--soft-charcoal); border-radius: 8px; }

:focus-visible {
  outline: 2px solid var(--nova-violet);
  outline-offset: 2px;
}

.wrap { max-width: 1240px; margin: 0 auto; width: 100%; }

/* ---------- Motion ---------- */
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

[data-reveal] { opacity: 0; }
[data-reveal].is-visible { animation: rise .95s cubic-bezier(.16, .84, .3, 1) forwards; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none !important; }
  .hero__dot { animation: none !important; }
  [data-reveal], [data-reveal].is-visible {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--page-pad);
  background: rgba(8, 10, 18, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline-07);
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__brand img { height: 34px; width: auto; filter: brightness(1.05); }
.nav__wordmark {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.34em;
  color: var(--starlight);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 38px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
}
.nav__links a { color: rgba(245, 247, 250, 0.62); }
.nav__links a:hover { color: var(--starlight); }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px var(--page-pad) 90px;
  overflow: hidden;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}
.hero__aura {
  position: absolute;
  top: 0; left: 0;
  width: 760px; height: 760px;
  margin-left: -380px;
  margin-top: -380px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(125, 97, 255, 0.16) 0%, rgba(86, 194, 255, 0.07) 38%, rgba(8, 10, 18, 0) 68%);
  transition: opacity .5s ease;
  opacity: 0;
}
.hero__content {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 44px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--nova-violet-soft);
}
.hero__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--nova-violet);
  animation: twinkle 3.2s ease-in-out infinite;
}
.hero h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 200;
  font-size: clamp(52px, 7.4vw, 116px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 16ch;
  text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(100deg, #7D61FF, #56C2FF 44%, #E778FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin-top: 44px;
  max-width: 56ch;
  font-size: 19px;
  line-height: 1.65;
  font-weight: 300;
  color: rgba(245, 247, 250, 0.68);
}
.hero__services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  margin-top: 56px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(245, 247, 250, 0.45);
}
.hero__services .sep--violet { color: var(--nova-violet); }
.hero__services .sep--blue { color: var(--aurora-blue); }
.hero__services .sep--pink { color: var(--nebula-pink); }
.hero__baseline {
  position: relative;
  max-width: 1240px;
  margin: 120px auto 0;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.hero__baseline-left {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.4em;
  color: rgba(245, 247, 250, 0.34);
}
.hero__baseline-right {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(245, 247, 250, 0.3);
}

/* ---------- Section index / eyebrow ---------- */
.section-index {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(245, 247, 250, 0.4);
}

/* ---------- Positioning ---------- */
.positioning {
  padding: 130px var(--page-pad);
  border-top: 1px solid var(--hairline-07);
}
.positioning .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 100px;
  align-items: start;
}
.positioning__index { position: sticky; top: 120px; }
.positioning__statement {
  font-family: 'Sora', sans-serif;
  font-weight: 200;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: var(--starlight);
  text-wrap: pretty;
}
.positioning__body {
  margin-top: 40px;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.72;
  font-weight: 300;
  color: rgba(245, 247, 250, 0.6);
}

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--hairline-07);
  border-bottom: 1px solid var(--hairline-07);
  padding: 26px 0;
  overflow: hidden;
  background: var(--panel);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: drift 34s linear infinite;
  font-family: 'Sora', sans-serif;
  font-weight: 200;
  font-size: 15px;
  letter-spacing: 0.3em;
  color: rgba(245, 247, 250, 0.28);
}
.marquee__group {
  display: flex;
  gap: 56px;
  padding-right: 56px;
}
.marquee__group span.glyph { color: var(--nova-violet); }

/* ---------- Section headers ---------- */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}
.section-header h2 {
  font-family: 'Sora', sans-serif;
  font-weight: 200;
  font-size: clamp(34px, 4.6vw, 62px);
  letter-spacing: -0.03em;
}

/* ---------- Capabilities ---------- */
.capabilities { padding: var(--section-pad) var(--page-pad); }
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--hairline-08);
  border: 1px solid var(--hairline-08);
}
.capability-card {
  background: var(--panel);
  padding: 44px 36px 48px;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  transition: background .45s ease, transform .45s ease;
}
.capability-card:hover {
  background: var(--card-hover);
  transform: translateY(-3px);
}
.capability-card__index {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--nova-violet);
}
.capability-card h3 {
  margin: 24px 0 14px;
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: 23px;
  letter-spacing: -0.015em;
}
.capability-card p {
  font-size: 15px;
  line-height: 1.68;
  font-weight: 300;
  color: rgba(245, 247, 250, 0.56);
}

/* ---------- Philosophy ---------- */
.philosophy {
  padding: var(--section-pad) var(--page-pad);
  background: var(--panel);
  border-top: 1px solid var(--hairline-07);
  border-bottom: 1px solid var(--hairline-07);
}
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2px;
  margin-top: 64px;
}
.philosophy-cell { position: relative; padding: 52px 28px 52px 0; }
.philosophy-cell__rule {
  height: 1px;
  background: linear-gradient(90deg, #7D61FF, rgba(125, 97, 255, 0.06));
  margin-bottom: 34px;
}
.philosophy-cell__word {
  font-family: 'Sora', sans-serif;
  font-weight: 200;
  font-size: clamp(24px, 2.5vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.philosophy-cell__note {
  margin-top: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(245, 247, 250, 0.42);
}
.philosophy__closing {
  margin: 56px 0 0;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 300;
  color: rgba(245, 247, 250, 0.58);
  max-width: 52ch;
}

/* ---------- Imagery ---------- */
.imagery { padding: var(--section-pad) var(--page-pad); }
.imagery .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.imagery__main {
  position: relative;
  height: 520px;
  overflow: hidden;
  border: 1px solid var(--hairline-08);
}
.imagery__stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.imagery__sub {
  position: relative;
  height: 246px;
  overflow: hidden;
  border: 1px solid var(--hairline-08);
}
.image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(125,97,255,0.08), rgba(86,194,255,0.05) 50%, rgba(231,120,255,0.06)),
    var(--panel);
  color: rgba(245, 247, 250, 0.34);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- Stack ---------- */
.stack { padding: var(--section-pad) var(--page-pad); border-top: 1px solid var(--hairline-07); }
.stack__header { margin-bottom: 24px; }
.stack__lede {
  margin: 0 0 64px;
  max-width: 56ch;
  font-size: 17px;
  line-height: 1.72;
  font-weight: 300;
  color: rgba(245, 247, 250, 0.6);
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 56px 40px;
}
.stack-group__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--nova-violet);
  margin-bottom: 22px;
}
.stack-group__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  padding: 9px 16px;
  border: 1px solid var(--hairline-12);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(245, 247, 250, 0.74);
  transition: all .3s ease;
}
.pill:hover {
  border-color: rgba(125, 97, 255, 0.6);
  color: var(--starlight);
  background: rgba(125, 97, 255, 0.08);
}

/* ---------- Team ---------- */
.team {
  padding: var(--section-pad) var(--page-pad);
  background: var(--panel);
  border-top: 1px solid var(--hairline-07);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 36px;
}
.team-card__portrait {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--hairline-08);
  margin-bottom: 22px;
}
.team-card__name {
  font-family: 'Sora', sans-serif;
  font-weight: 300;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.team-card__role {
  margin-top: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(245, 247, 250, 0.44);
}

/* ---------- Footer ---------- */
.footer {
  padding: 130px var(--page-pad) 56px;
  border-top: 1px solid var(--hairline-07);
}
.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
}
.footer__mark { height: 64px; width: auto; margin-bottom: 26px; display: block; }
.footer__statement {
  font-family: 'Sora', sans-serif;
  font-weight: 200;
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -0.025em;
  line-height: 1.14;
  max-width: 14ch;
}
.footer__links {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 300;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer__col-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(245, 247, 250, 0.4);
  margin-bottom: 6px;
}
.footer__col a { color: rgba(245, 247, 250, 0.72); }
.footer__col a:hover { color: var(--starlight); }
.footer__legal {
  margin-top: 96px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline-07);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(245, 247, 250, 0.34);
}

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  :root {
    --page-pad: 24px;
    --section-pad: 80px;
  }
  .nav__links { display: none; }
  .positioning { padding: 80px var(--page-pad); }
  .positioning .wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .positioning__index { position: static; }
  .footer { padding: 80px var(--page-pad) 40px; }
  .hero { padding: 140px var(--page-pad) 70px; }
  .hero__baseline { margin-top: 80px; }
}
