/* ============================================================
   NN Group — website styles
   Dark, editorial, motion-forward. Brand: black / white / cyan / violet.
   No external dependencies (system + web-safe fonts only).
   ============================================================ */

:root {
  --bg:      #060608;
  --bg-2:    #0c0c11;
  --card:    #131319;
  --card-2:  #17171f;
  --line:    rgba(255,255,255,0.09);
  --line-2:  rgba(255,255,255,0.16);
  --cyan:    #4DD8E1;
  --violet:  #B19CF9;
  --white:   #F4F4F7;
  --muted:   #A7A7B2;
  --dim:     #9a9aa6;

  --serif: Georgia, "Times New Roman", serif;
  --sans:  "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--cyan); color: #04121a; }

a { color: inherit; text-decoration: none; }

/* visible keyboard focus (theme-contrasting) */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }

/* skip link — hidden until focused */
.skip {
  position: fixed; top: 0; left: 0; z-index: 200;
  transform: translateY(-120%);
  background: var(--cyan); color: #04121a; font-weight: 700;
  padding: 0.7rem 1.1rem; border-radius: 0 0 8px 0;
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: translateY(0); outline: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- shared type ---------- */
.kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
  max-width: 16ch;
}
.section-intro {
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 60ch;
}
.body { color: var(--muted); font-size: 1.05rem; max-width: 52ch; }
.i-serif { font-family: var(--serif); font-style: italic; color: var(--cyan); }

/* ---------- brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.5rem; }
.brand-sq { width: 10px; height: 10px; background: var(--cyan); display: inline-block; }
.brand-word {
  font-weight: 700; letter-spacing: 0.14em; font-size: 0.92rem; color: #fff;
}
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--violet); display: inline-block; margin-top: -8px; }

/* ============================= NAV ============================= */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.15rem var(--gutter);
  transition: transform 0.45s var(--ease), background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6,6,8,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-block: 0.8rem;
}
.nav.hide { transform: translateY(-102%); }
/* keyboard focus inside a hidden nav pulls it back on-screen */
.nav:focus-within { transform: none; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.86rem; color: var(--muted); letter-spacing: 0.01em;
  position: relative; transition: color 0.25s var(--ease);
}
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: var(--cyan); transition: width 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover { color: #fff; }
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1px solid var(--line-2); border-radius: 999px; padding: 0.5rem 1.05rem;
  color: #fff; transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.nav-cta:hover { background: var(--cyan); border-color: var(--cyan); color: #04121a; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 24px; position: relative; }
.nav-toggle span { position: absolute; left: 4px; right: 4px; height: 2px; background: #fff; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle span:first-child { top: 7px; }
.nav-toggle span:last-child { bottom: 7px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ============================= HERO ============================= */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-block: 8rem 4rem; overflow: hidden;
}
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none;
  width: 55vw; height: 55vw; max-width: 760px; max-height: 760px;
  right: -12vw; top: 8%;
  background:
    radial-gradient(circle at 60% 40%, rgba(177,156,249,0.30), transparent 60%),
    radial-gradient(circle at 35% 65%, rgba(77,216,225,0.24), transparent 62%);
  filter: blur(30px);
  animation: float 14s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-3%, 4%) scale(1.06); }
}
.hero .wrap { position: relative; z-index: 1; }
.hero-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 11vw, 9rem);
  line-height: 0.94; letter-spacing: -0.02em; color: #fff;
  margin: 1.4rem 0 0; overflow-wrap: break-word;
}
.hero-sub {
  margin-top: 1.8rem; color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 46ch; line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.6rem; }
.hero-scroll {
  position: absolute; z-index: 1; left: var(--gutter); bottom: 2.2rem;
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim);
}
.hero-scroll-line { width: 46px; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.hero-scroll-line::after { content: ""; position: absolute; inset: 0; background: var(--cyan); transform: translateX(-100%); animation: scrollline 2.4s var(--ease) infinite; }
@keyframes scrollline { 0% { transform: translateX(-100%);} 55%,100% { transform: translateX(100%);} }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 0.85rem 1.5rem; border-radius: 999px; cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  will-change: transform;
}
.btn-primary { background: var(--cyan); color: #04121a; }
.btn-primary:hover { background: #6fe6ee; }
.btn-ghost { border: 1px solid var(--line-2); color: #fff; }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-lg { font-size: 1.05rem; padding: 1.05rem 2rem; margin-top: 2.4rem; font-family: var(--sans); }

/* ============================= MARQUEE ============================= */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding-block: 1.1rem; background: var(--bg-2); }
.marquee-track { display: inline-flex; align-items: center; white-space: nowrap; gap: 2.2rem; animation: marquee 34s linear infinite; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 2rem); color: var(--white); }
.marquee-track i { color: var(--cyan); font-size: 0.8rem; }
@keyframes marquee { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ============================= SECTIONS ============================= */
.section { padding-block: clamp(4.5rem, 11vw, 9rem); position: relative; }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .kicker { margin-bottom: 1rem; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }

/* ---------- intro ---------- */
.intro .lead {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem); line-height: 1.12; letter-spacing: -0.01em;
  color: #fff; margin-bottom: 1.6rem; max-width: 20ch;
}

/* ---------- offerings ---------- */
.offer-list { list-style: none; border-top: 1px solid var(--line); }
.offer {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: clamp(1rem, 4vw, 3rem); padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  border-bottom: 1px solid var(--line); position: relative;
  transition: padding-left 0.4s var(--ease);
}
.offer::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(var(--cyan), var(--violet)); transform: scaleY(0); transform-origin: top;
  transition: transform 0.4s var(--ease);
}
.offer:hover { padding-left: 1.5rem; }
.offer:hover::before { transform: scaleY(1); }
.offer-num { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--cyan); min-width: 2.4ch; }
.offer-body h3 { font-size: clamp(1.3rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.offer-body p { color: var(--muted); margin-top: 0.5rem; max-width: 60ch; font-size: 1rem; }
.offer-tag {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem; white-space: nowrap;
}

/* ---------- vision ---------- */
.vision { background: var(--bg-2); border-block: 1px solid var(--line); }
.vision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.vcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}
.vcard:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--card-2); }
.vpillar { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.vcard h3 { font-size: 1.18rem; font-weight: 600; margin: 0.7rem 0 0.7rem; color: #fff; line-height: 1.25; }
.vcard p { color: var(--muted); font-size: 0.98rem; }
.vision-foot { margin-top: 2.2rem; color: var(--muted); max-width: 80ch; font-size: 1.02rem; }
.tick { color: var(--cyan); font-weight: 600; }

/* ---------- tools ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.tool {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.tool:hover { transform: translateY(-4px); border-color: var(--line-2); }
.tool-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.tool-top h3 { font-size: 1.3rem; font-weight: 600; color: #fff; }
.tool p { color: var(--muted); margin-top: 0.85rem; font-size: 1rem; }
.status { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; padding: 0.3rem 0.65rem; border-radius: 999px; white-space: nowrap; }
.status.on  { color: #04121a; background: var(--cyan); }
.status.soon{ color: var(--cyan); border: 1px solid var(--cyan); }
.status.dev { color: var(--dim); border: 1px solid var(--line-2); }

/* ---------- trust ---------- */
.trust .sub-label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet); font-weight: 700; margin-bottom: 1.4rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.chips li { border: 1px solid var(--line-2); border-radius: 999px; padding: 0.45rem 1.1rem; font-size: 0.85rem; color: var(--white); }
.chip-note { margin-top: 1rem; font-size: 0.82rem; color: var(--dim); }
.sec-list { list-style: none; display: grid; gap: 1.1rem; }
.sec-list li { display: grid; gap: 0.25rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.sec-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.sec-list strong { font-size: 1.1rem; color: #fff; font-weight: 600; }
.sec-list span { color: var(--muted); font-size: 0.98rem; }

/* ---------- audience ---------- */
.aud-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.aud-row span {
  border: 1px solid var(--line-2); border-radius: 999px; padding: 0.7rem 1.6rem;
  font-size: 1rem; color: var(--white); background: var(--card);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.aud-row span:hover { border-color: var(--cyan); color: var(--cyan); }
.aud-foot { margin-top: 1.8rem; color: var(--muted); font-style: italic; }

/* ---------- cta ---------- */
.cta { text-align: center; padding-block: clamp(6rem, 14vw, 11rem); position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; z-index: 0; inset: auto 0 -30% 0; height: 60%; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 100%, rgba(77,216,225,0.18), transparent 70%);
}
.cta .wrap { position: relative; z-index: 1; }
.cta-title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 10vw, 7.5rem); line-height: 1; letter-spacing: -0.02em; margin: 1rem 0 1.5rem; color: #fff; }
.cta-sub { color: var(--muted); max-width: 52ch; margin: 0 auto; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }

/* ============================= FOOTER ============================= */
.footer { border-top: 1px solid var(--line); padding-block: 2.4rem; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-tag { font-family: var(--serif); font-style: italic; color: var(--muted); }
.footer-meta { font-size: 0.85rem; color: var(--dim); letter-spacing: 0.02em; }

/* ============================= REVEAL / MOTION ============================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================= RESPONSIVE ============================= */
/* collapse the two-column blocks before the small-tablet range gets cramped */
@media (max-width: 960px) { .grid-2 { grid-template-columns: 1fr; } }

@media (max-width: 860px) {
  .grid-2 { grid-template-columns: 1fr; }
  .vision-grid, .tool-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: fixed; inset: 0; flex-direction: column;
    align-items: center; justify-content: center; gap: 2rem; font-size: 1.4rem;
    background: rgba(6,6,8,0.97); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow-y: auto; padding: 6rem 1.5rem 3rem;
  }
  .nav.open .nav-links a { color: #fff; font-size: 1.5rem; }
  .offer { grid-template-columns: auto 1fr; }
  .offer-tag { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { min-height: 92svh; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
}
