/* Nia Innovations — site styles */
:root {
  --ink: #0e1020;
  --ink-2: #171a30;
  --ink-3: #23274a;
  --paper: #faf7f1;
  --paper-2: #f2ede3;
  --line: #e4ddcf;
  --text: #1b1d2b;
  --muted: #5d6072;
  --on-ink: #eef0fa;
  --on-ink-muted: #a4a8c4;
  --amber: #f0a43a;
  --amber-deep: #c9781a;
  --plum: #7a5cff;
  --teal: #2fc6b0;
  --radius: 18px;
  --max: 1180px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.on-ink .eyebrow { color: var(--amber); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #ffb653; }
.btn-ghost { border-color: rgba(238,240,250,.28); color: var(--on-ink); }
.btn-ghost:hover { border-color: var(--on-ink); }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: var(--ink-3); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
  background: rgba(14,16,32,.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--on-ink); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.brand-name span { color: var(--amber); }
.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--on-ink-muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--on-ink); }
.nav-links .btn { color: var(--ink); padding: 11px 20px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--on-ink); padding: 8px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-ink);
  padding: 170px 0 120px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; }
.orb-a { width: 520px; height: 520px; background: var(--plum); top: -160px; right: -120px; opacity: .38; }
.orb-b { width: 420px; height: 420px; background: var(--amber); bottom: -220px; left: -120px; opacity: .25; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.2vw, 78px); margin: 22px 0 24px; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--amber); }
.hero-lead { font-size: 19px; color: var(--on-ink-muted); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 48px; font-size: 14px; color: var(--on-ink-muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--teal); }

/* hero visual: media + code composition */
.visual { position: relative; height: 460px; }
.panel {
  position: absolute; border-radius: 16px;
  background: linear-gradient(180deg, #1d2140, #151831);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.6);
  overflow: hidden;
}
.panel-bar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.07); }
.panel-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f66; }
.panel-bar i:first-child { background: #ff6b6b; } .panel-bar i:nth-child(2) { background: var(--amber); } .panel-bar i:nth-child(3) { background: var(--teal); }
.panel-code { top: 0; right: 0; width: 82%; font: 13px/1.85 ui-monospace, "Cascadia Code", Consolas, monospace; }
.panel-code pre { margin: 0; padding: 18px 20px 22px; color: #c9cdf0; white-space: pre; overflow: hidden; }
.tk-k { color: #c49bff; } .tk-f { color: #7fd6ff; } .tk-s { color: #ffc978; } .tk-c { color: #6a6f99; font-style: italic; } .tk-n { color: var(--teal); }
.panel-media { left: 0; bottom: 10px; width: 64%; }
.media-frame { position: relative; aspect-ratio: 16/9; margin: 12px; border-radius: 10px; overflow: hidden; background: #241a4d; }
.media-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0, transparent 30%, transparent 55%, rgba(0,0,0,.6)); }
.media-badge { position: absolute; top: 9px; left: 9px; z-index: 1; display: inline-flex; align-items: center; gap: 5px;
  font: 700 10px/1 var(--sans); letter-spacing: .08em; color: #fff; background: rgba(14,16,32,.6); padding: 5px 7px; border-radius: 5px; backdrop-filter: blur(4px); }
.media-badge i { width: 6px; height: 6px; border-radius: 50%; background: #ff4d4d; }
.media-controls { position: absolute; left: 10px; right: 10px; bottom: 8px; z-index: 1; }
.scrub { height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); }
.scrub span { display: block; position: relative; width: 44%; height: 100%; border-radius: 3px; background: var(--amber); }
.scrub span::after { content: ""; position: absolute; right: -5px; top: -3.5px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.media-time { display: flex; justify-content: space-between; margin-top: 5px; font: 600 10px/1 var(--sans); color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; }
.play { position: absolute; inset: 0; margin: auto; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.88); display: grid; place-items: center; z-index: 1; box-shadow: 0 8px 26px rgba(0,0,0,.35); backdrop-filter: blur(4px); }
.play::before { content: ""; border-left: 15px solid var(--ink); border-top: 9px solid transparent; border-bottom: 9px solid transparent; margin-left: 4px; }
.timeline { display: flex; gap: 4px; padding: 0 12px 14px; }
.timeline span { height: 26px; border-radius: 5px; background: var(--ink-3); }
.timeline span:nth-child(1) { flex: 3; background: rgba(122,92,255,.55); }
.timeline span:nth-child(2) { flex: 2; background: rgba(240,164,58,.6); }
.timeline span:nth-child(3) { flex: 4; background: rgba(47,198,176,.5); }
.timeline span:nth-child(4) { flex: 1.5; }
.chip {
  position: absolute; right: 6%; bottom: 42px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: var(--paper); color: var(--text); padding: 14px 18px; border-radius: 14px;
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.5); font-size: 14px; line-height: 1.35;
}
.chip b { display: block; font-size: 15px; }
.chip-dot { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; color: var(--amber); flex: none; }
.float { animation: float 7s ease-in-out infinite; }
.float-slow { animation: float 9s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
section { padding: 120px 0; }
.section-head { max-width: 680px; margin-bottom: 60px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 54px); margin-top: 16px; }
.section-head p { margin-top: 20px; color: var(--muted); font-size: 18px; }

/* Purpose / about */
.about-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: start; }
.nia-card {
  position: relative; background: var(--ink); color: var(--on-ink); border-radius: 24px; padding: 48px 44px; overflow: hidden;
}
.nia-card::after { content: ""; position: absolute; width: 300px; height: 300px; right: -110px; top: -110px; border-radius: 50%; background: var(--plum); filter: blur(70px); opacity: .45; }
.nia-word { font-family: var(--serif); font-size: 88px; line-height: 1; font-weight: 500; font-style: italic; color: var(--amber); position: relative; }
.nia-pron { margin-top: 10px; font-size: 14px; color: var(--on-ink-muted); letter-spacing: .04em; position: relative; }
.nia-def { margin-top: 26px; font-family: var(--serif); font-size: 26px; line-height: 1.3; position: relative; }
.nia-note { margin-top: 18px; color: var(--on-ink-muted); font-size: 15px; position: relative; }
.about-copy h2 { font-size: clamp(32px, 4vw, 48px); margin: 16px 0 26px; }
.about-copy p + p { margin-top: 18px; }
.about-copy p { color: var(--muted); font-size: 18px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.pillar { border-top: 2px solid var(--ink); padding-top: 16px; }
.pillar b { display: block; font-family: var(--serif); font-size: 21px; }
.pillar span { color: var(--muted); font-size: 15px; }

/* Services */
.services { background: var(--paper-2); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 32px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(14,16,32,.28); border-color: #d4cbb8; }
.service-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 24px; color: var(--ink); }
.service-icon svg { width: 26px; height: 26px; }
.service:nth-child(3n+1) .service-icon { background: #fde6c4; }
.service:nth-child(3n+2) .service-icon { background: #e3dcff; }
.service:nth-child(3n+3) .service-icon { background: #cff3ec; }
.service h3 { font-size: 24px; margin-bottom: 12px; }
.service p { color: var(--muted); font-size: 16px; }
.service ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service li { font-size: 13px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: var(--paper-2); color: var(--text); }

/* Process */
.process { background: var(--ink); color: var(--on-ink); }
.process .section-head p { color: var(--on-ink-muted); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.step { position: relative; padding: 0 28px 0 0; }
.step-num {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  background: var(--ink-2); border: 1.5px solid var(--ink-3); color: var(--amber);
  position: relative; z-index: 1; margin-bottom: 28px;
}
.step::before { content: ""; position: absolute; top: 27px; left: 54px; right: 0; height: 1.5px; background: linear-gradient(90deg, var(--ink-3), transparent); }
.step:last-child::before { display: none; }
.step h3 { font-size: 24px; margin-bottom: 12px; }
.step p { color: var(--on-ink-muted); font-size: 16px; }

/* Why */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-list { display: grid; gap: 30px; margin: 0; padding: 0; list-style: none; }
.why-list li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.why-list .tick { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--amber); display: grid; place-items: center; }
.why-list .tick svg { width: 20px; height: 20px; }
.why-list b { display: block; font-family: var(--serif); font-size: 22px; margin-bottom: 4px; }
.why-list span { color: var(--muted); }

/* CTA band */
.cta { padding: 0 0 120px; }
.cta-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: 80px 64px;
  background: linear-gradient(120deg, #241a4d 0%, #4a2f8f 45%, #c9781a 120%); color: #fff;
  display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
}
.cta-card::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000); }
.cta-card h2 { font-size: clamp(32px, 4.2vw, 52px); position: relative; }
.cta-card p { margin-top: 16px; font-size: 18px; color: rgba(255,255,255,.8); position: relative; max-width: 36em; }
.cta-card .btn { position: relative; }

/* Contact */
.contact { background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
.contact-info h2 { font-size: clamp(34px, 4.4vw, 52px); margin: 16px 0 22px; }
.contact-info > p { color: var(--muted); font-size: 18px; }
.contact-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; }
.contact-list .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; }
.contact-list .ic svg { width: 21px; height: 21px; }
.contact-list small { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.contact-list a, .contact-list strong { font-weight: 600; font-size: 17px; text-decoration: none; }
.contact-list a:hover { color: var(--amber-deep); }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 40px; box-shadow: 0 30px 60px -40px rgba(14,16,32,.35); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: #fffdf9;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--plum); box-shadow: 0 0 0 4px rgba(122,92,255,.15); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 4px 0 26px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.check a { color: var(--text); }
.form .btn { width: 100%; padding: 17px; font-size: 16px; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.form-status { margin-top: 14px; font-size: 14px; text-align: center; font-weight: 600; color: var(--amber-deep); min-height: 1em; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 80px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.footer-grid p { margin-top: 18px; max-width: 26em; }
.site-footer h4 { color: var(--on-ink); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--amber); }
.footer-bottom { margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 14px; }

/* Legal pages */
.legal-hero { background: var(--ink); color: var(--on-ink); padding: 150px 0 70px; }
.legal-hero h1 { font-size: clamp(38px, 5vw, 60px); margin-top: 16px; }
.legal-hero p { color: var(--on-ink-muted); margin-top: 14px; }
.legal { padding: 80px 0 110px; }
.legal .wrap { max-width: 780px; }
.legal h2 { font-size: 28px; margin: 44px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--amber-deep); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float, .float-slow { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid, .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .visual { height: 420px; max-width: 560px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .step:nth-child(2)::before { display: none; }
  .cta-card { grid-template-columns: 1fr; padding: 60px 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  section { padding: 84px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(14,16,32,.97); backdrop-filter: blur(14px); padding: 12px 16px 24px;
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li a { display: block; padding: 14px 4px; font-size: 17px; }
  .nav-links li + li a { border-top: 1px solid rgba(255,255,255,.06); }
  .nav-links .btn { margin-top: 12px; padding: 15px; }
  .hero { padding: 130px 0 90px; }
  .hero-lead { font-size: 17px; }
  .visual { height: 360px; }
  .panel-code { width: 92%; font-size: 11.5px; }
  .panel-media { width: 74%; }
  .chip { right: 0; bottom: 18px; }
  .service-grid, .steps, .pillars, .form-row { grid-template-columns: 1fr; }
  .step { padding: 0; }
  .step::before { display: none; }
  .nia-card { padding: 38px 28px; }
  .nia-word { font-size: 68px; }
  .cta { padding-bottom: 84px; }
  .cta-card { padding: 48px 26px; border-radius: 22px; }
  .form { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}
