/* ============================================================
   NeuralPath Technologies — luminous minimal
   Independent app studio · light / futuristic
   ============================================================ */

:root {
  /* canvas */
  --bg:        #EBEFF6;   /* luminous cool near-white */
  --bg-lift:   #F6F8FC;
  --surface:   #FFFFFF;
  --glass:     rgba(255,255,255,.62);
  --glass-2:   rgba(255,255,255,.42);

  /* ink */
  --ink:       #0B1220;   /* deep near-black (the NL tile) */
  --ink-2:     #333D4E;
  --ink-soft:  #5D6879;
  --ink-faint: #97A0AF;
  --line:      rgba(11,18,32,.09);
  --line-2:    rgba(11,18,32,.05);

  /* brand + aurora */
  --emerald:      #0FAE7E;
  --emerald-deep: #0A8D66;
  --emerald-soft: #E4F7F0;
  --cyan:         #38BDF8;
  --violet:       #8B7CF6;

  --focus: var(--emerald);
  --select-bg: rgba(15,174,126,.20);

  /* elevation */
  --shadow-sm: 0 2px 8px -4px rgba(11,18,32,.18);
  --shadow:    0 22px 60px -32px rgba(11,18,32,.40);
  --shadow-lg: 0 40px 90px -40px rgba(11,18,32,.45);
  --ring:      inset 0 1px 0 rgba(255,255,255,.9);

  /* type */
  --display: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  --body:    "Plus Jakarta Sans", system-ui, sans-serif;
  --mono:    "Space Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 1160px;
  --pad:  clamp(20px, 5vw, 40px);
}

/* ---------- base ---------- */
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  position: relative;
}

/* Ambient aurora — the "luminous" light. Fixed, drifts slowly. */
.aurora {
  position: fixed; inset: -20vh -10vw;
  z-index: -1; pointer-events: none;
  filter: blur(10px);
}
.aurora::before, .aurora::after {
  content: ""; position: absolute; border-radius: 50%;
  opacity: .55; will-change: transform;
}
.aurora::before {
  width: 60vw; height: 60vw; left: -8vw; top: -18vh;
  background: radial-gradient(circle at 30% 30%, rgba(15,174,126,.42), rgba(15,174,126,0) 62%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.aurora::after {
  width: 52vw; height: 52vw; right: -10vw; top: 4vh;
  background: radial-gradient(circle at 60% 40%, rgba(139,124,246,.34), rgba(56,189,248,.28) 45%, rgba(56,189,248,0) 70%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
.aurora__lower {
  position: fixed; left: 40%; bottom: -30vh;
  width: 55vw; height: 55vw; z-index: -1; pointer-events: none;
  border-radius: 50%; filter: blur(20px); opacity: .4;
  background: radial-gradient(circle, rgba(56,189,248,.30), rgba(15,174,126,.10) 55%, transparent 72%);
  animation: drift-a 40s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate3d(6vw, 5vh, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-5vw, 7vh, 0) scale(1.08); } }

/* fine grain so the light doesn't band */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 12vw, 130px); position: relative; }

.eyebrow {
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .28em; text-transform: uppercase; color: var(--emerald-deep);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before {
  content: ""; width: 20px; height: 1px; background: var(--emerald); opacity: .6;
}

.arrow { display: inline-block; transition: transform .3s cubic-bezier(.22,1,.36,1); }
.arrow-hover:hover .arrow, .arrow-hover:focus-visible .arrow { transform: translate(3px,-3px); }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding-block: 14px;
  backdrop-filter: saturate(160%) blur(16px);
  background: linear-gradient(180deg, rgba(235,239,246,.86), rgba(235,239,246,.44));
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  box-shadow: 0 6px 16px -8px rgba(11,18,32,.6), var(--ring);
}
.brand__name { font-family: var(--display); font-weight: 600; font-size: 1.06rem; letter-spacing: -.01em; }
.brand__name b { font-weight: 700; }
.brand__tag {
  display: block; font-family: var(--mono); font-size: .58rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-faint); margin-top: 1px;
}
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: .92rem; font-weight: 500; color: var(--ink-soft); transition: color .2s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  font-family: var(--body); font-weight: 600; font-size: .9rem;
  padding: 10px 18px; border-radius: 999px; color: #fff;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
  box-shadow: 0 12px 24px -12px rgba(15,174,126,.9), var(--ring);
  transition: transform .18s, box-shadow .18s;
}
.nav__cta:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(15,174,126,1); }
.nav__links a.nav__cta { color:#fff; }
.nav__burger { display:none; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 9vw, 96px); padding-bottom: clamp(40px, 8vw, 80px); }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.35rem, 6vw, 4.7rem); letter-spacing: -.035em; line-height: 1.02;
  margin-top: 22px; text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(115deg, var(--emerald-deep), var(--cyan) 70%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  margin-top: 24px; max-width: 30em; font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--ink-soft); line-height: 1.7;
}
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: .98rem; border-radius: 14px;
  padding: 14px 22px; transition: transform .18s, box-shadow .18s, background .2s;
}
.btn--primary {
  color: #fff; background: linear-gradient(135deg, var(--emerald), var(--emerald-deep));
  box-shadow: 0 18px 36px -16px rgba(15,174,126,.95), var(--ring);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 24px 44px -16px rgba(15,174,126,1); }
.btn--ghost {
  color: var(--ink); background: var(--glass); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm), var(--ring); backdrop-filter: blur(8px);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: rgba(11,18,32,.16); }

.hero__meta {
  margin-top: 30px; display: flex; gap: 26px; flex-wrap: wrap;
  font-size: .82rem; color: var(--ink-soft);
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(15,174,126,.16); }

/* hero visual — floating glass mark + orbit */
.hero__stage { position: relative; display: grid; place-items: center; min-height: 380px; }
.orb {
  position: relative; width: min(360px, 78%); aspect-ratio: 1;
  display: grid; place-items: center;
}
.orb__glow {
  position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(15,174,126,.55), rgba(56,189,248,.35) 45%, transparent 70%);
  filter: blur(24px); animation: pulseGlow 6s ease-in-out infinite;
}
@keyframes pulseGlow { 50% { transform: scale(1.06); opacity: .82; } }
.orb__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--line); box-shadow: var(--ring);
}
.orb__ring--2 { inset: 13%; border-color: var(--line-2); animation: spin 40s linear infinite; }
.orb__ring--3 { inset: 26%; border-style: dashed; border-color: rgba(15,174,126,.28); animation: spin 26s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orb__tile {
  position: relative; width: 42%; aspect-ratio: 1; border-radius: 26px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(11,18,32,.6);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-12px); } }
.orb__chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-sm), var(--ring);
  padding: 9px 14px; border-radius: 14px; font-size: .78rem; font-weight: 600; color: var(--ink);
}
.orb__chip .em { font-size: 1rem; }
.orb__chip--1 { top: 8%; left: -6%;  animation: float 6s ease-in-out .2s infinite; }
.orb__chip--2 { bottom: 12%; right: -8%; animation: float 6.6s ease-in-out .5s infinite; }
.orb__chip .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(15,174,126,.6); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(15,174,126,0); } 100% { box-shadow: 0 0 0 0 rgba(15,174,126,0); } }

/* ---------- ethos strip ---------- */
.ethos { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ethos__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-inline: 1px solid var(--line); }
.ethos__cell { background: linear-gradient(180deg, var(--bg-lift), var(--bg)); padding: 30px clamp(18px,2.4vw,30px); }
.ethos__cell .k { font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); }
.ethos__cell .v { font-family: var(--display); font-weight: 600; font-size: 1.18rem; margin-top: 10px; letter-spacing: -.01em; }
.ethos__cell p { margin-top: 8px; font-size: .86rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------- section head ---------- */
.head { max-width: 40rem; }
.head h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.9rem, 3.8vw, 2.9rem); letter-spacing: -.03em; margin-top: 18px;
}
.head p { margin-top: 16px; font-size: 1.06rem; color: var(--ink-soft); line-height: 1.7; }

/* ---------- app ledger (signature) ---------- */
.ledger { display: grid; gap: 20px; margin-top: 48px; }
.appcard {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: clamp(18px,3vw,40px);
  align-items: center; padding: clamp(22px,3vw,34px);
  border-radius: 26px; border: 1px solid var(--line);
  background: var(--glass); backdrop-filter: blur(18px);
  box-shadow: var(--shadow), var(--ring);
  transition: transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s, border-color .3s;
  overflow: hidden;
}
.appcard::before { /* aura that lights on hover */
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(600px 200px at 12% 0%, rgba(15,174,126,.16), transparent 60%);
}
.appcard--live:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(15,174,126,.4); }
.appcard--live:hover::before { opacity: 1; }
.appcard__idx { font-family: var(--mono); font-size: clamp(1.5rem,3vw,2.1rem); font-weight: 700; color: var(--ink-faint); letter-spacing: -.02em; }
.appcard__body { min-width: 0; }
.appcard__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.appcard__name { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem,2.6vw,1.9rem); letter-spacing: -.02em; }
.appcard__cat { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); }
.appcard__desc { margin-top: 12px; color: var(--ink-soft); font-size: 1rem; line-height: 1.65; max-width: 46ch; }
.appcard__go {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  font-weight: 600; color: var(--emerald-deep); font-size: .95rem;
}
.appcard__thumb {
  width: clamp(72px, 8vw, 104px); height: clamp(72px, 8vw, 104px); flex: none;
  border-radius: 22px; display: grid; place-items: center; font-size: clamp(30px,4vw,44px);
  background: linear-gradient(150deg, #0fae7e, #0a8d66 60%, #097a59);
  box-shadow: 0 20px 40px -18px rgba(15,174,126,.8), var(--ring); color: #fff;
}
.appcard__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }

.status { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; padding: 7px 13px; border-radius: 999px; letter-spacing: .02em; }
.status--live { color: var(--emerald-deep); background: var(--emerald-soft); }
.status--live .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(15,174,126,.6); animation: ping 2.4s infinite; }
.status--soon { color: var(--ink-soft); background: rgba(11,18,32,.05); }

/* future / in-development slots */
.appcard--soon { background: var(--glass-2); border-style: dashed; box-shadow: var(--shadow-sm); }
.appcard--soon .appcard__thumb { background: linear-gradient(150deg, rgba(11,18,32,.10), rgba(11,18,32,.04)); color: var(--ink-faint); box-shadow: none; border: 1px dashed var(--line); }
.appcard--soon .appcard__name { color: var(--ink-2); }

/* ---------- studio / about ---------- */
.studio__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,70px); align-items: center; }
.studio__panel {
  border-radius: 28px; border: 1px solid var(--line); padding: clamp(26px,3vw,40px);
  background: var(--glass); backdrop-filter: blur(16px); box-shadow: var(--shadow), var(--ring);
}
.principle { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.principle:last-child { border-bottom: 0; padding-bottom: 0; }
.principle:first-child { padding-top: 0; }
.principle__n { font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--emerald-deep); padding-top: 3px; }
.principle h3 { font-family: var(--display); font-weight: 600; font-size: 1.14rem; letter-spacing: -.01em; }
.principle p { margin-top: 6px; font-size: .95rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------- contact CTA ---------- */
.cta {
  position: relative; overflow: hidden;
  border-radius: 32px; padding: clamp(40px, 6vw, 72px);
  background: linear-gradient(155deg, #0c1322, #0b1220 55%, #091b17);
  color: #fff; box-shadow: var(--shadow-lg);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 0%, rgba(15,174,126,.4), transparent 60%),
              radial-gradient(500px 300px at 0% 100%, rgba(56,189,248,.24), transparent 60%);
}
.cta__in { position: relative; max-width: 40rem; }
.cta .eyebrow { color: #6ff0c6; }
.cta h2 { font-family: var(--display); font-weight: 600; font-size: clamp(1.9rem,4vw,3rem); letter-spacing: -.03em; margin-top: 16px; }
.cta p { margin-top: 16px; color: rgba(255,255,255,.72); font-size: 1.06rem; line-height: 1.7; }
.cta__row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.btn--onDark { color: var(--ink); background: #fff; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
.btn--onDark:hover { transform: translateY(-2px); }
.btn--wire { color:#fff; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); }
.btn--wire:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding-block: 56px 40px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot__brand { display: flex; align-items: center; gap: 12px; }
.foot__brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 6px 16px -8px rgba(11,18,32,.6); }
.foot__blurb { margin-top: 18px; max-width: 32ch; color: var(--ink-soft); font-size: .92rem; line-height: 1.65; }
.foot__col h4 { font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 16px; }
.foot__col a, .foot__col li { display: block; font-size: .94rem; color: var(--ink-soft); margin-bottom: 11px; transition: color .2s; }
.foot__col a:hover { color: var(--emerald-deep); }
.foot__legal {
  margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line-2);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: .8rem; color: var(--ink-faint); line-height: 1.6;
}

/* ---------- section depth grounds ---------- */
#apps {
  background:
    radial-gradient(720px 380px at 86% 10%, rgba(56,189,248,.09), transparent 60%),
    radial-gradient(620px 340px at 6% 96%, rgba(15,174,126,.08), transparent 60%);
}
#studio {
  background: radial-gradient(680px 360px at 92% 88%, rgba(139,124,246,.08), transparent 62%);
}
.ethos__cell { transition: background .3s, transform .3s; }
.ethos__cell:hover { background: linear-gradient(180deg, #ffffff, var(--bg-lift)); }

/* orb tile now carries the dark brand mark — deepen its float shadow to match */
.orb__tile { box-shadow: 0 40px 90px -40px rgba(11,18,32,.7), 0 0 0 1px rgba(11,18,32,.5), 0 8px 30px -10px rgba(56,189,248,.4); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { min-height: 320px; order: -1; }
  .studio__grid { grid-template-columns: 1fr; }
  .ethos__grid { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand-col { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .nav__links a:not(.nav__cta) { display: none; }
  .nav__inner { gap: 12px; }
  .nav__cta { font-size: .82rem; padding: 9px 14px; }
  .appcard { grid-template-columns: 1fr; gap: 16px; }
  .appcard__aside { flex-direction: row; align-items: center; justify-content: space-between; }
  .appcard__idx { position: absolute; top: 22px; right: 24px; }
  .ethos__grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
}
