:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --ink: #0e1a2b;
  --muted: #5a6474;
  --line: #e7e8ec;
  --navy: #1b4c8c;
  --navy-deep: #0f2d57;
  --red: #d0381d;
  --green: #3a9d3a;
  --tint: #dcf0f3;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(14, 26, 43, .04), 0 12px 32px -12px rgba(14, 26, 43, .14);
  --max: 1160px;
  --head: "Manrope", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 248, .85);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 34px; height: auto; }
.brand .sep { color: #b8bec8; font-weight: 400; margin: 0 2px; }
.brand .labs { font-weight: 600; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--ink); background: rgba(14, 26, 43, .05); }
.nav a[aria-current="page"] { color: var(--ink); background: rgba(14, 26, 43, .06); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav .btn, .nav .btn[aria-current="page"] { color: #fff; background: var(--navy); }
.nav .btn:hover { color: #fff; background: var(--navy-deep); }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; text-decoration: none;
  font: 600 15px/1 var(--body); padding: 14px 22px; border-radius: 999px; border: 0; cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--navy-deep); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--surface); box-shadow: inset 0 0 0 1.5px #cfd3da; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Common ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--navy);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: linear-gradient(90deg, var(--navy), var(--red)); border-radius: 2px; }
.section { padding: 112px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); margin-top: 16px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.lead { color: var(--muted); font-size: 19px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(27, 76, 140, .16), rgba(27, 76, 140, 0));
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: 18%; bottom: -260px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(208, 56, 29, .10), rgba(208, 56, 29, 0));
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 800; margin: 20px 0 24px; }
.hero h1 .grad { background: linear-gradient(100deg, var(--navy) 10%, var(--red) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { max-width: 520px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual .plate {
  position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(145deg, #eef4fb, #f9ece8);
}
.hero-visual img { position: relative; width: 88%; filter: drop-shadow(0 40px 40px rgba(14, 26, 43, .22)); animation: float 7s ease-in-out infinite; }
.hero-visual .chip {
  position: absolute; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 16px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px;
}
.hero-visual .chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(58, 157, 58, .16); }
.hero-visual .chip.a { left: 0; top: 16%; }
.hero-visual .chip.b { right: 2%; bottom: 14%; }
.hero-visual .chip small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Stats strip ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font: 800 34px/1.1 var(--head); letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 15px; }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature + .feature { margin-top: 112px; }
.feature.flip .feature-media { order: 2; }
.feature-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--tint); }
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-media.contain { display: grid; place-items: center; }
.feature-media.contain img { width: 82%; height: auto; object-fit: contain; }
.feature h3 { font-size: clamp(28px, 3vw, 38px); margin: 16px 0 18px; }
.feature p { color: var(--muted); font-size: 18px; }
.feature p + p { margin-top: 14px; }
.feature strong { color: var(--ink); font-weight: 600; }
.metric-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.metric b { display: block; font: 800 26px/1.15 var(--head); letter-spacing: -0.02em; }
.metric span { color: var(--muted); font-size: 14px; }

.savings-card {
  aspect-ratio: 4 / 3; border-radius: var(--radius); padding: 44px;
  background: linear-gradient(150deg, var(--navy-deep), var(--navy) 55%, #2b6cb8);
  color: #fff; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.savings-card::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(208, 56, 29, .55), rgba(208, 56, 29, 0)); }
.savings-card .label { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.savings-card .big { font: 800 clamp(40px, 5vw, 60px)/1.05 var(--head); letter-spacing: -0.03em; }
.savings-card .sub { opacity: .8; max-width: 340px; position: relative; z-index: 1; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .media img { transform: scale(1.04); }
.card .media.contain { display: grid; place-items: center; }
.card .media.contain img { width: auto; height: 92%; object-fit: contain; }
.card:hover .media.contain img { transform: none; }
.card .body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card h3 { font-size: 22px; }
.card p { color: var(--muted); font-size: 16px; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: #eaf1fa; padding: 6px 10px; border-radius: 999px; }
.tag.soon { color: #8a4b0a; background: #fdf1e3; }

.icon-card { padding: 32px; }
.icon-card .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(145deg, #eaf1fa, #fbece8); color: var(--navy);
}
.icon-card .icon svg { width: 24px; height: 24px; }
.icon-card h3 { margin-bottom: 10px; }

/* featured product card */
.card.featured { grid-column: 1 / -1; flex-direction: row; }
.card.featured .media { flex: 1.1; aspect-ratio: auto; min-height: 380px; }
.card.featured .body { flex: 1; padding: 48px; justify-content: center; }
.card.featured h3 { font-size: 32px; }
.card.featured p { font-size: 18px; }

/* ---------- Page hero ---------- */
.page-hero { padding: 88px 0 64px; border-bottom: 1px solid var(--line); background: radial-gradient(900px 300px at 85% 0%, rgba(27, 76, 140, .10), transparent), radial-gradient(600px 240px at 10% 100%, rgba(208, 56, 29, .06), transparent); }
.page-hero h1 { font-size: clamp(40px, 5.5vw, 64px); font-weight: 800; margin: 18px 0 18px; max-width: 820px; }
.page-hero .lead { max-width: 640px; }

/* ---------- Apps ---------- */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.app {
  display: flex; align-items: center; gap: 20px; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; transition: box-shadow .2s, transform .2s;
}
.app:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.app .glyph { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: #fff; flex: none; }
.app .glyph svg { width: 26px; height: 26px; }
.app b { font-family: var(--head); font-size: 20px; display: block; }
.app span { color: var(--muted); font-size: 15px; }
.app .arrow { margin-left: auto; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding: 0 0 112px; }
.cta .box {
  border-radius: 28px; padding: 72px 64px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--navy) 55%, #8e2f2a 100%);
  display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px;
}
.cta h2 { font-size: clamp(30px, 3.6vw, 44px); }
.cta p { opacity: .8; margin-top: 14px; font-size: 18px; }
.cta .actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.cta .btn { background: #fff; color: var(--ink); }
.cta .btn:hover { background: #eef2f7; }
.cta .btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); }
.cta .btn.ghost:hover { background: rgba(255, 255, 255, .08); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: start; }
.info-list { display: grid; gap: 16px; }
.info { display: flex; gap: 18px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; }
.info .icon { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: #eaf1fa; color: var(--navy); }
.info .icon svg { width: 22px; height: 22px; }
.info small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.info b { font-weight: 600; font-size: 17px; }
a.info:hover { box-shadow: var(--shadow); }
.map { margin-top: 16px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; }
.form h2 { font-size: 30px; margin-bottom: 8px; }
.form > p { color: var(--muted); margin-bottom: 28px; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(27, 76, 140, .12); background: #fff; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { width: 100%; justify-content: center; padding: 16px; margin-top: 6px; }
.form-note { font-size: 14px; color: var(--muted); margin-top: 14px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c4cbd6; padding: 80px 0 32px; }
.site-footer .top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 48px; }
.site-footer .brand { color: #fff; }
.site-footer .brand img { background: #fff; border-radius: 8px; padding: 4px; width: 38px; }
.site-footer .brand .labs { color: #9aa4b2; }
.site-footer .about { margin-top: 18px; font-size: 15px; max-width: 340px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--body); font-weight: 600; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.site-footer a { text-decoration: none; color: #c4cbd6; }
.site-footer a:hover { color: #fff; }
.site-footer .bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: #8f99a8; flex-wrap: wrap; }

/* ---------- Credits ---------- */
.credits { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.credits li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; display: flex; gap: 18px; align-items: center; }
.credits img { width: 88px; height: 60px; object-fit: cover; border-radius: 8px; flex: none; }
.credits span { color: var(--muted); font-size: 15px; }
.credits b { display: block; color: var(--ink); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-visual img { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap, .feature, .contact-grid, .cta .box { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .feature { gap: 36px; }
  .feature.flip .feature-media { order: 0; }
  .grid.three { grid-template-columns: 1fr 1fr; }
  .card.featured { flex-direction: column; }
  .card.featured .media { min-height: 0; aspect-ratio: 16 / 10; }
  .card.featured .body { padding: 32px; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .cta .actions { justify-content: flex-start; }
  .cta .box { padding: 56px 40px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 80px 0; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 16px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .brand { font-size: 15px; gap: 10px; }
  .brand img { width: 28px; }
  .grid.three, .grid.two, .apps, .row-2 { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr; }
  .site-footer .top { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual .chip { display: none; }
  .savings-card { padding: 32px; aspect-ratio: auto; min-height: 300px; gap: 24px; }
  .form { padding: 28px 22px; }
  .cta .box { padding: 44px 24px; border-radius: 22px; }
  .feature + .feature { margin-top: 80px; }
}
