:root {
  --ink: #071922;
  --navy: #062b3a;
  --deep: #04151d;
  --teal: #0e8692;
  --cyan: #55d7dc;
  --amber: #f1b96c;
  --mist: #e9f4f4;
  --paper: #f7fbfb;
  --white: #ffffff;
  --muted: #5d7078;
  --line: rgba(7, 25, 34, 0.14);
  --shadow: 0 24px 70px rgba(2, 24, 34, 0.15);
  --radius: 22px;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.skip-link {
  position: fixed; left: 1rem; top: -5rem; z-index: 100;
  padding: .75rem 1rem; border-radius: 999px; background: var(--white); color: var(--ink);
}
.skip-link:focus { top: 1rem; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(4, 21, 29, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-shell {
  width: min(calc(100% - 2rem), var(--content)); margin: 0 auto;
  min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--white); }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0 8%, var(--cyan) 9% 38%, var(--teal) 68%, #075663 100%); color: var(--deep); font-size: .68rem; font-weight: 950;
  box-shadow: 0 0 24px rgba(85,215,220,.28);
}
.brand-copy { display: grid; line-height: 1.08; }
.brand-copy strong { font-size: 1.08rem; letter-spacing: -.02em; }
.brand-copy strong span { color: var(--cyan); font-size: inherit; letter-spacing: inherit; text-transform: none; }
.brand-copy span { color: #9fc1c6; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: .2rem; }
.site-nav a {
  color: #c9dde0; text-decoration: none; padding: .65rem .8rem; border-radius: 999px;
  font-size: .91rem; font-weight: 650;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.09); }
.nav-cta { border: 1px solid rgba(85,215,220,.55); color: var(--cyan) !important; margin-left: .35rem; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--white); padding: .6rem; border-radius: 10px; }
.menu-toggle svg { width: 25px; height: 25px; }

.container { width: min(calc(100% - 2rem), var(--content)); margin: 0 auto; }
.hero {
  min-height: 760px; color: var(--white); display: grid; align-items: end; position: relative; overflow: hidden;
  background: var(--deep) url("perovskite-hero.png") center / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,19,28,.97) 0%, rgba(3,19,28,.84) 35%, rgba(3,19,28,.25) 70%, rgba(3,19,28,.06) 100%), linear-gradient(0deg, rgba(3,19,28,.78), transparent 55%); }
.hero-inner { position: relative; z-index: 1; padding: 7.5rem 0 6.5rem; max-width: 760px; }
.eyebrow { margin: 0 0 1.1rem; color: var(--cyan); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; }
h1, h2, h3 { margin-top: 0; letter-spacing: -.035em; line-height: 1.06; }
h1 { margin-bottom: 1.4rem; font-size: clamp(3rem, 7vw, 6.5rem); max-width: 950px; }
h2 { margin-bottom: 1rem; font-size: clamp(2.1rem, 4.4vw, 4.2rem); }
h3 { margin-bottom: .65rem; font-size: 1.32rem; }
.hero-lead { max-width: 680px; margin: 0 0 2rem; color: #d7e6e8; font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; }
.button-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: .7rem 1.2rem; border-radius: 999px; text-decoration: none; font-weight: 800;
  border: 1px solid transparent; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--cyan); color: var(--deep); }
.button-secondary { border-color: rgba(255,255,255,.35); color: var(--white); background: rgba(255,255,255,.08); }

.stat-band { background: var(--navy); color: var(--white); border-top: 1px solid rgba(255,255,255,.08); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-grid-five { grid-template-columns: repeat(5, 1fr); }
.stat { padding: 2.1rem 1.5rem; border-right: 1px solid rgba(255,255,255,.09); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--cyan); font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.1; }
.stat span { display: block; margin-top: .45rem; color: #b8d0d3; font-size: .88rem; }
.section { padding: 6.5rem 0; }
.section-dark { color: var(--white); background: var(--deep); }
.section-soft { background: var(--mist); }
.section-head { max-width: 820px; margin-bottom: 3rem; }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section-dark .section-head p { color: #a9c3c8; }
.kicker { margin: 0 0 .85rem; color: var(--teal); font-size: .78rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.section-dark .kicker { color: var(--cyan); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1.25rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1rem; }
.card {
  padding: 1.65rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.82);
  box-shadow: 0 15px 45px rgba(7,25,34,.06);
}
.section-dark .card { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.11); box-shadow: none; }
.card p { margin: 0; color: var(--muted); }
.section-dark .card p { color: #a9c3c8; }
.function-card { position: relative; min-height: 230px; padding-top: 4rem; overflow: hidden; }
.function-card::before { content: attr(data-index); position: absolute; top: 1rem; left: 1.5rem; color: var(--cyan); font-weight: 900; font-size: 1.05rem; }
.function-card::after { content: ""; position: absolute; top: 1.45rem; right: -1rem; width: 92px; height: 1px; background: linear-gradient(90deg, var(--teal), transparent); transform: rotate(-26deg); }
.function-card a { color: var(--cyan); text-decoration: none; font-weight: 800; }
.feature-split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 4rem; }
.feature-copy p { color: var(--muted); font-size: 1.06rem; }
.signal-stack { display: grid; gap: 1rem; }
.signal { padding: 1.25rem 1.3rem; border-left: 3px solid var(--teal); background: var(--white); box-shadow: var(--shadow); }
.signal strong { display: block; font-size: 1.05rem; }
.signal span { color: var(--muted); font-size: .92rem; }
.section-dark .signal { background: rgba(255,255,255,.06); border-left-color: var(--cyan); box-shadow: none; }
.section-dark .signal span { color: #aac6ca; }

.statement { max-width: 980px; font-size: clamp(1.7rem, 3.3vw, 3.2rem); line-height: 1.2; letter-spacing: -.03em; }
.statement strong { color: var(--teal); }
.section-dark .statement strong { color: var(--cyan); }
.mini-label { display: inline-block; margin-bottom: .75rem; color: var(--teal); font-size: .75rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.section-dark .mini-label { color: var(--cyan); }

.layer-stack { display: grid; gap: .7rem; padding: 1.5rem; border-radius: 28px; background: linear-gradient(145deg, #082c3b, #04151d); box-shadow: var(--shadow); }
.layer { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid rgba(255,255,255,.11); border-radius: 14px; color: var(--white); background: rgba(255,255,255,.05); }
.layer span { color: var(--cyan); font-weight: 900; }
.layer small { display: block; color: #a9c3c8; }

.spectrum { position: relative; overflow: hidden; min-height: 320px; padding: 2rem; border-radius: 28px; color: var(--white); background: var(--deep); box-shadow: var(--shadow); }
.spectrum::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(97,60,255,.42), rgba(30,154,222,.36), rgba(61,210,152,.38), rgba(241,185,108,.42), rgba(228,76,81,.4)); filter: saturate(1.15); }
.spectrum::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,21,29,.12), rgba(4,21,29,.78)); }
.spectrum-copy { position: relative; z-index: 1; max-width: 500px; margin-left: auto; }
.spectrum-copy p { color: #d1e2e4; }

.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.metric { padding: 1.6rem; border-top: 3px solid var(--teal); background: var(--white); box-shadow: 0 12px 35px rgba(7,25,34,.06); }
.metric strong { display: block; color: var(--teal); font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; }
.metric span { display: block; margin-top: .65rem; color: var(--ink); font-weight: 800; }
.metric small { display: block; margin-top: .45rem; color: var(--muted); }

.pill-row { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.pill { padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--teal); background: rgba(255,255,255,.72); font-size: .82rem; font-weight: 800; }

.page-hero { padding: 8rem 0 5.5rem; color: var(--white); background: radial-gradient(circle at 80% 15%, rgba(31,174,184,.25), transparent 34%), var(--deep); }
.page-hero h1 { max-width: 900px; font-size: clamp(3rem, 6vw, 5.6rem); }
.page-hero p { max-width: 800px; color: #b7cfd3; font-size: 1.2rem; }
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: process; }
.process-step { counter-increment: process; padding: 1.5rem; border-top: 3px solid var(--teal); background: var(--white); }
.process-step::before { content: "0" counter(process); display: block; color: var(--teal); font-weight: 900; margin-bottom: 1.5rem; }
.process-step p { color: var(--muted); }
.application-card { min-height: 290px; display: flex; flex-direction: column; }
.application-card .tag { width: fit-content; margin-bottom: auto; padding: .35rem .65rem; border-radius: 999px; background: var(--mist); color: var(--teal); font-size: .74rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.application-card h3 { margin-top: 2rem; }
.comparison-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.comparison { width: 100%; min-width: 760px; border-collapse: collapse; background: var(--white); }
.comparison th, .comparison td { padding: 1.15rem 1.25rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison thead th { background: var(--navy); color: var(--white); }
.comparison tbody tr:nth-child(even) { background: #f0f7f7; }
.comparison td:nth-child(2) { color: var(--teal); font-weight: 850; }
.note { margin-top: 1.1rem; color: var(--muted); font-size: .85rem; }
.check-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .85rem; }
.check-list li { position: relative; padding-left: 1.8rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .45rem; width: .75rem; height: .75rem; border: 2px solid var(--teal); border-radius: 50%; }
.cta-panel { padding: clamp(2rem, 6vw, 5rem); border-radius: 32px; color: var(--white); background: radial-gradient(circle at 90% 10%, rgba(85,215,220,.22), transparent 30%), var(--navy); }
.cta-panel p { max-width: 760px; color: #bad1d5; font-size: 1.08rem; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: start; }
.contact-list { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-item { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-item span { color: #91b5ba; }
.contact-item a { color: var(--white); text-decoration-color: rgba(85,215,220,.6); }
.contact-note { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.12); color: #9fc1c6; font-size: .9rem; }
.site-footer { padding: 3rem 0; color: #9bb7bb; background: #021017; font-size: .88rem; }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.footer-grid p { max-width: 720px; margin: 0; }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { color: #c4d8db; text-decoration: none; }
.reveal { opacity: 1; transform: none; }
.reveal.in-view { animation: reveal-rise .6s ease both; }
@keyframes reveal-rise {
  from { opacity: .35; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 980px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 76px; left: 1rem; right: 1rem; padding: 1rem; border-radius: 18px; background: var(--deep); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem 1rem; }
  .nav-cta { margin-left: 0; margin-top: .35rem; text-align: center; }
  .grid-5, .stat-grid-five { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .feature-split, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .hero { min-height: 690px; background-position: 62% center; }
  .hero::before { background: linear-gradient(90deg, rgba(3,19,28,.98), rgba(3,19,28,.72)); }
  .hero-inner { padding: 6rem 0 4.5rem; }
  .section { padding: 4.5rem 0; }
  .stat-grid, .stat-grid-five, .grid-2, .grid-3, .grid-5, .process, .metric-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.09); }
  .stat:last-child { border-bottom: 0; }
  .footer-grid { flex-direction: column; }
  .contact-item { grid-template-columns: 1fr; gap: .2rem; }
}
