/* ============================================================
   Natrium — site styles
   Brand: teal palette from logo guide (#3af1c8, #0a8991, deep teal)
   Type:  Mulish
   ============================================================ */

:root {
  --teal-bright: #3af1c8;
  --teal: #0a8991;
  --teal-deep: #07383c;
  --ink: #0c2a2c;
  --ink-soft: #44615f;
  --bg: #ffffff;
  --bg-soft: #f3faf8;
  --bg-tint: #e9f6f3;
  --line: #e0efec;
  --line-strong: #cfe6e1;
  --white: #ffffff;
  --grad: linear-gradient(135deg, #3af1c8 0%, #1bc6b4 100%);
  --grad-brand: linear-gradient(135deg, #3af1c8 0%, #0a8991 100%);
  --grad-deep: linear-gradient(150deg, #0a8991 0%, #07383c 100%);
  --shadow-sm: 0 1px 2px rgba(7,56,60,.06), 0 2px 8px rgba(7,56,60,.05);
  --shadow-md: 0 8px 30px rgba(7,56,60,.10);
  --shadow-lg: 0 24px 60px rgba(7,56,60,.16);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --dots: radial-gradient(circle, rgba(10,137,145,.16) 1.4px, transparent 1.6px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: 'Mulish', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: 'Mulish', system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 .5em;
}

p { margin: 0 0 1rem; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-deep); }
img { max-width: 100%; display: block; }

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

.eyebrow {
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--teal-bright);
  display: inline-block;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Mulish', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: var(--teal-deep);
  box-shadow: 0 6px 18px rgba(10,137,145,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(10,137,145,.34); color: var(--teal-deep); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn-arrow::after { content: "→"; transition: transform .2s ease; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 74px;
}
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink-soft); font-weight: 500; font-size: .98rem; position: relative;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content:""; position:absolute; left:0; bottom:-6px; height:2px; width:0;
  background: var(--teal-bright); transition: width .22s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: .4rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display:block; width:24px; height:2px; background: var(--ink); margin:5px 0; transition:.25s; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 5rem 0 4.5rem; }
.hero::before {
  content:""; position:absolute; inset:0;
  background-image: var(--dots);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 90% at 80% 0%, #000 0%, transparent 60%);
          mask-image: radial-gradient(120% 90% at 80% 0%, #000 0%, transparent 60%);
  opacity: .9; pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center;
}
.hero h1 { font-size: clamp(2.5rem, 5vw, 3.9rem); }
.hero h1 .accent { color: var(--teal); font-style: italic; }
.hero-lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36ch; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-tags {
  margin-top: 2rem; display:flex; gap:1.2rem; flex-wrap:wrap;
  font-size:.82rem; letter-spacing:.04em; color: var(--ink-soft);
}
.hero-tags span { display:inline-flex; align-items:center; gap:.45rem; }
.hero-tags .dot { width:7px; height:7px; border-radius:999px; background: var(--teal-bright); }

/* device illustration */
.device-stage { position: relative; display:grid; place-items:center; min-height: 340px; }
.device-glow {
  position:absolute; width: 340px; height: 300px; border-radius:50%;
  background: radial-gradient(circle, rgba(58,241,200,.30), transparent 65%);
  filter: blur(12px);
}
.device-render {
  position: relative; width: min(100%, 420px); height: auto;
  filter: drop-shadow(0 22px 40px rgba(7,56,60,.20));
  animation: floaty 6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .device-render { animation: none; } }
.device {
  position: relative;
  width: 280px; height: 188px;
  border-radius: 96px 96px 92px 110px;
  background: var(--grad);
  box-shadow: var(--shadow-lg), inset 0 2px 6px rgba(255,255,255,.4), inset 0 -10px 24px rgba(7,56,60,.25);
  display: grid; place-items: center;
  transform: rotate(-4deg);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-10px);} }
.device-recess {
  width: 150px; height: 100px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255,255,255,.45), rgba(255,255,255,.12));
  display:grid; place-items:center;
  box-shadow: inset 0 2px 10px rgba(7,56,60,.22);
}
.device-recess img { width: 52px; filter: drop-shadow(0 2px 4px rgba(7,56,60,.25)); }
.device-led {
  position:absolute; top: 30px; right: 52px; width: 12px; height: 12px; border-radius:50%;
  background: #eafff9; box-shadow: 0 0 0 4px rgba(234,255,249,.35), 0 0 12px rgba(234,255,249,.9);
  animation: blink 2.6s ease-in-out infinite;
}
@keyframes blink { 0%,100%{ opacity:1;} 50%{ opacity:.35;} }
.device-cap { margin-top: 1.4rem; text-align:center; font-size:.82rem; color: var(--ink-soft); letter-spacing:.04em; }

/* ---------- section scaffolding ---------- */
section { padding: 5rem 0; }
.section-head { max-width: 58ch; margin-bottom: 2.6rem; }
.section-head.center { margin-inline:auto; text-align:center; }
.section-head h2 { font-size: clamp(2rem, 3.5vw, 2.7rem); }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
.soft-bg { background: var(--bg-soft); border-block: 1px solid var(--line); }

/* ---------- stat cards ---------- */
.stats { display:grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1rem; }
.stat {
  background: var(--white); border:1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; box-shadow: var(--shadow-sm); position: relative; overflow:hidden;
}
.stat::before { content:""; position:absolute; left:0; top:0; width:4px; height:100%; background: var(--grad); }
.stat .num { font-family:'Mulish',sans-serif; font-size: 2.4rem; font-weight:700; color: var(--teal-deep); line-height:1; }
.stat .label { color: var(--ink-soft); font-size: .98rem; margin-top:.6rem; }

/* gap timeline visual */
.gapviz { margin-top: 2.6rem; background: var(--white); border:1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.8rem 1.2rem; box-shadow: var(--shadow-sm); }
.gapviz .gap-label { font-size:.8rem; letter-spacing:.1em; text-transform:uppercase; color: var(--ink-soft); font-weight:700; margin-bottom:.4rem; }
.sources { font-size:.78rem; color: var(--ink-soft); margin-top:1.2rem; }
.sub-h { font-family:'Mulish',sans-serif; font-weight:700; font-size:1.15rem; margin:2.8rem 0 1.1rem; color:var(--ink); }

/* ---------- founder ---------- */
.founder-narrative { max-width: 60ch; }
.founder-narrative p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 1rem; }
.founder-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 2.4rem; align-items:center; }
.timeline { list-style:none; margin:0; padding:0; position:relative; }
.timeline::before { content:""; position:absolute; left:11px; top:6px; bottom:6px; width:2px; background: var(--line-strong); }
.timeline li { position:relative; padding: 0 0 1.6rem 2.4rem; }
.timeline li::before {
  content:""; position:absolute; left:4px; top:5px; width:16px; height:16px; border-radius:50%;
  background: var(--white); border:3px solid var(--teal); box-shadow: 0 0 0 4px rgba(58,241,200,.18);
}
.timeline .yr { font-weight:700; color: var(--teal-deep); font-size:.86rem; letter-spacing:.06em; text-transform:uppercase; }
.timeline .ev { color: var(--ink-soft); }
.founder-card { background: var(--white); border:1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); overflow:hidden; }
.founder-quote { padding: 2rem; }
.founder-quote blockquote { font-family:'Mulish',sans-serif; font-size:1.35rem; line-height:1.4; font-style:italic; font-weight:500; color: var(--ink); margin:0 0 1.4rem; }
.founder-by { display:flex; align-items:center; gap: .9rem; }
.founder-by img { width:60px; height:60px; border-radius:50%; background:#fff; box-shadow: var(--shadow-sm), inset 0 0 0 3px #fff; }
.founder-by .nm { font-weight:700; color: var(--ink); }
.founder-by .rl { color: var(--ink-soft); font-size:.9rem; }

/* ---------- device features ---------- */
.feature-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:1.2rem; margin-top:1rem; }
.feature {
  background: var(--white); border:1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .ico { width:46px; height:46px; border-radius:12px; background: var(--bg-tint); display:grid; place-items:center; margin-bottom:1rem; color: var(--teal); }
.feature h3 { font-family:'Mulish',sans-serif; font-weight:700; font-size:1.1rem; margin-bottom:.35rem; }
.feature p { color: var(--ink-soft); font-size:.98rem; margin:0; }

.device-row { display:grid; grid-template-columns: .9fr 1.1fr; gap:3rem; align-items:center; }

/* ---------- technology pillars ---------- */
.pillars { display:grid; grid-template-columns: repeat(4,1fr); gap:1rem; counter-reset: pillar; }
.pillar {
  background: var(--white); border:1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; box-shadow: var(--shadow-sm); position:relative;
}
.pillar .step { font-family:'Mulish',sans-serif; font-size:1.1rem; color: var(--teal); font-weight:600; }
.pillar h3 { font-family:'Mulish',sans-serif; font-size:1.05rem; font-weight:700; margin:.5rem 0 .4rem; }
.pillar p { color: var(--ink-soft); font-size:.94rem; margin:0; }
.patent-note {
  margin-top:1.8rem; display:inline-flex; align-items:center; gap:.6rem;
  background: var(--bg-tint); color: var(--teal-deep); font-weight:600; font-size:.92rem;
  padding:.6rem 1.1rem; border-radius:999px;
}

/* ---------- results ---------- */
.results-row { display:block; max-width: 760px; }
.chartcard { background: var(--white); border:1px solid var(--line); border-radius: var(--radius); padding:1.6rem; box-shadow: var(--shadow-md); }
.chartcard .chart-title { font-weight:700; font-size:1rem; }
.chartcard .chart-sub { color: var(--ink-soft); font-size:.85rem; margin-bottom:1rem; }
.chartcard svg { width:100%; height:auto; }
.chart-foot { font-size:.78rem; color: var(--ink-soft); margin-top:.8rem; font-style:italic; }
.spec-strip { display:grid; grid-template-columns: repeat(4, 1fr); gap:.6rem; margin-top:1.2rem; padding-top:1.2rem; border-top:1px solid var(--line); }
.spec { display:flex; flex-direction:column; gap:.15rem; }
.spec-v { font-family:'Mulish',sans-serif; font-weight:700; font-size:1.12rem; color: var(--teal-deep); line-height:1.1; }
.spec-k { font-size:.72rem; color: var(--ink-soft); line-height:1.25; }
@media (max-width:560px){ .spec-strip { grid-template-columns: 1fr 1fr; gap:1rem .6rem; } }
.checklist { list-style:none; margin:1rem 0 0; padding:0; }
.checklist li { position:relative; padding-left:2rem; margin-bottom:.9rem; color: var(--ink-soft); }
.checklist li::before {
  content:"✓"; position:absolute; left:0; top:0; width:1.4rem; height:1.4rem; border-radius:50%;
  background: var(--bg-tint); color: var(--teal); font-size:.8rem; font-weight:700;
  display:grid; place-items:center;
}
.checklist li b { color: var(--ink); font-weight:700; }

/* ---------- contact ---------- */
.contact-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:1.2rem; margin-top:1rem; }
.contact-card {
  background: var(--white); border:1px solid var(--line); border-radius: var(--radius);
  padding:1.8rem; box-shadow: var(--shadow-sm); display:flex; flex-direction:column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.contact-card .ico { width:48px; height:48px; border-radius:12px; background: var(--grad); display:grid; place-items:center; margin-bottom:1rem; color: var(--teal-deep); }
.contact-card h3 { font-family:'Mulish',sans-serif; font-weight:700; font-size:1.15rem; margin-bottom:.4rem; }
.contact-card p { color: var(--ink-soft); font-size:.96rem; flex:1; }
.contact-card a.mail { font-weight:600; margin-top:.8rem; display:inline-flex; align-items:center; gap:.4rem; }
.contact-card a.mail::after { content:"→"; transition: transform .2s ease; }
.contact-card a.mail:hover::after { transform: translateX(3px); }
.contact-general { text-align:center; margin-top:2rem; color: var(--ink-soft); }
.contact-general a { font-weight:700; }

/* ---------- footer ---------- */
.footer { background: var(--teal-deep); color: rgba(255,255,255,.78); padding: 3.5rem 0 2rem; }
.footer a { color: rgba(255,255,255,.78); }
.footer a:hover { color: var(--teal-bright); }
.footer-top { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap:2rem; padding-bottom:2.4rem; border-bottom:1px solid rgba(255,255,255,.14); }
.footer-brand img { height:30px; margin-bottom:1rem; }
.footer-brand p { font-size:.95rem; max-width:34ch; color: rgba(255,255,255,.7); }
.footer h4 { color:#fff; font-family:'Mulish',sans-serif; font-weight:700; font-size:.8rem; letter-spacing:.12em; text-transform:uppercase; margin:0 0 1rem; }
.footer ul { list-style:none; margin:0; padding:0; }
.footer ul li { margin-bottom:.55rem; }
.footer-bottom { display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; padding-top:1.6rem; font-size:.84rem; color: rgba(255,255,255,.6); }
.disclaimer { background: rgba(0,0,0,.18); border-radius: var(--radius-sm); padding:1rem 1.2rem; margin-top:1.6rem; font-size:.82rem; color: rgba(255,255,255,.7); }
.disclaimer b { color:#fff; }

/* ---------- reveal animation ----------
   JS adds .pre to hide, then .in to reveal as elements scroll into view.
   Because the hiding is applied by JS, if the script ever fails to run,
   nothing is hidden and all content stays visible. */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.reveal.pre { opacity:0; transform: translateY(22px); }
.reveal.in { opacity:1; transform:none; }
.reveal.d1 { transition-delay:.08s; } .reveal.d2 { transition-delay:.16s; } .reveal.d3 { transition-delay:.24s; }

/* ---------- team ---------- */
.team-grid { display:grid; grid-template-columns: 1fr 1fr; gap:1.6rem; max-width:900px; margin:0 auto; }
.team-card { display:flex; gap:1.2rem; align-items:flex-start; background:var(--white); border:1px solid var(--line); border-radius:var(--radius); padding:1.6rem; box-shadow:var(--shadow-sm); }
.team-card img { width:84px; height:84px; border-radius:50%; background:#fff; flex-shrink:0; outline: 5px solid #fff; outline-offset: -5px; }
.team-info h3 { margin:0; }
.team-role { color:var(--teal); font-weight:600; font-size:.9rem; margin-bottom:.6rem; }
.team-info ul { margin:0; padding-left:1.1rem; color:var(--ink-soft); font-size:.95rem; }
.team-info li { margin-bottom:.3rem; }
@media (max-width:760px){ .team-grid { grid-template-columns:1fr; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .founder-grid, .device-row { grid-template-columns: 1fr; gap: 2.2rem; }
  .stats, .feature-grid, .pillars, .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .device-stage { order: -1; }
  .nav-links {
    position: absolute; top: 74px; left:0; right:0; background:#fff; flex-direction:column;
    align-items:flex-start; gap:0; padding: .5rem 20px 1.2rem; border-bottom:1px solid var(--line);
    box-shadow: var(--shadow-md); display:none;
  }
  .nav-links.open { display:flex; }
  .nav-links li { width:100%; padding:.7rem 0; border-bottom:1px solid var(--line); }
  .nav-links .nav-cta { padding-top:1rem; border-bottom:0; }
  .nav-toggle { display:block; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .stats, .feature-grid, .pillars, .contact-grid, .footer-top { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
  .hero { padding: 3rem 0; }
}
