/* The public page. Its own file: the app's styles are separate. */

@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #0b1f44; --navy-2: #0f2a5a; --navy-ink: #e8eefb; --navy-muted: #a8b6d3;
  --bg: #ffffff; --bg-2: #f5f7fa; --surface: #ffffff; --ink: #0b1f44; --ink-2: #44506a; --muted: #7a8399;
  --line: #e3e8ef; --teal: #2fa39a; --teal-ink: #1c7f78; --tint: #e6f4f2;
  --shadow: 0 1px 2px rgb(11 31 68 / 0.06), 0 8px 24px rgb(11 31 68 / 0.06);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1226; --bg-2: #0d1730; --surface: #111c36; --ink: #f2f5fa; --ink-2: #b9c2d6; --muted: #8792ab;
    --line: #22304d; --teal: #3cc0b5; --teal-ink: #57d0c6; --tint: #12303a;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.6vw, 64px); font-weight: 750; }
h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 720; }
h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; color: var(--ink-2); text-wrap: pretty; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- header */

.top { position: sticky; top: 0; z-index: 20; background: rgb(11 31 68 / 0.82);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgb(255 255 255 / 0.06); transition: box-shadow 0.2s; }
.top.scrolled { box-shadow: 0 8px 24px rgb(5 12 28 / 0.25); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1200px; margin: 0 auto; padding: 12px 24px; }
/* The logo is dark navy on transparent, so it always sits on a light plate. */
.plate { display: block; background: #f7f8f9; border-radius: 10px; padding: 5px 10px; }
.plate img { display: block; height: 38px; width: auto; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav-link { text-decoration: none; color: var(--navy-muted); font-weight: 500; transition: color 0.15s; }
.nav-link:hover { color: #fff; }
.lang { font: inherit; font-size: 13px; font-weight: 650; letter-spacing: 0.04em; color: var(--navy-ink); background: none;
  border: 1px solid rgb(255 255 255 / 0.18); border-radius: 8px; padding: 7px 10px; cursor: pointer; min-width: 44px; }
.lang:hover { border-color: rgb(255 255 255 / 0.4); }

/* ---------------------------------------------------------------- buttons */

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px;
  border-radius: 10px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s; }
.button:hover { border-color: var(--muted); }
.button:active { transform: translateY(1px); }
.button.small { padding: 8px 16px; font-size: 14px; }
.button.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.top .button.primary { background: #fff; color: var(--navy); border-color: #fff; }
.button.primary:hover { opacity: 0.92; }
.button.accent { background: var(--teal); color: #04221f; border-color: var(--teal); box-shadow: 0 6px 20px rgb(47 163 154 / 0.35); }
.button.accent:hover { background: #3cb8ae; border-color: #3cb8ae; }
.button.ghost { background: rgb(255 255 255 / 0.06); color: #fff; border-color: rgb(255 255 255 / 0.22); }
.button.ghost:hover { background: rgb(255 255 255 / 0.12); border-color: rgb(255 255 255 / 0.4); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.actions:not(:has(a:not([hidden]), button:not([hidden]))) { display: none; }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 88px 24px 0;
  background:
    radial-gradient(900px 420px at 50% 0%, rgb(47 163 154 / 0.28), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, #0a1a3a 100%); }
/* A faint grid, like graph paper, fading out towards the bottom. */
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: linear-gradient(180deg, #000 0%, transparent 75%); }
.hero > * { position: relative; }
.hero-text { max-width: 860px; margin: 0 auto; }
.eyebrow { display: inline-block; color: #8fe3da; font-size: 12.5px; font-weight: 650; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
  background: rgb(47 163 154 / 0.12); border: 1px solid rgb(143 227 218 / 0.25); margin-bottom: 26px; }
.hero h1 { color: #fff; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--navy-muted); margin: 24px auto 0; max-width: 40em; }

/* The app, in a browser window, standing on the edge of the next section. */
.shot { max-width: 1120px; margin: 64px auto -1px; border-radius: 14px 14px 0 0; overflow: hidden;
  background: #fff; border: 1px solid rgb(255 255 255 / 0.12); border-bottom: 0;
  box-shadow: 0 -2px 0 rgb(255 255 255 / 0.04), 0 30px 80px rgb(0 0 0 / 0.45); }
.shot-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #eef1f5; border-bottom: 1px solid #dfe4ea; }
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d3d8e0; }
.shot-bar span { margin: 0 auto; transform: translateX(-24px); font-size: 12px; color: #7a8399;
  background: #fff; border: 1px solid #dfe4ea; border-radius: 6px; padding: 3px 40px; }
.shot img { display: block; width: 100%; height: auto; }

/* ---------------------------------------------------------------- sections */

.band { padding: 104px 24px; }
.band > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section-head { text-align: center; max-width: 760px; margin-bottom: 56px; }
.section-head.left { text-align: left; margin-left: 0; }
.kicker { color: var(--teal-ink); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 14px; }

/* How it works: four steps on a line. */
.steps { background: var(--bg); }
.process { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.process::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--line) 10%, var(--line) 90%, transparent); }
.process li { position: relative; text-align: center; padding: 0 6px; }
.step-no { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  border-radius: 50%; background: var(--surface); border: 2px solid var(--teal); color: var(--teal-ink);
  font-weight: 750; font-size: 15px; letter-spacing: 0.02em; margin-bottom: 22px; }
.process h3 { margin-bottom: 10px; }
.process p { font-size: 15.5px; }

/* The load curve. */
.curve-story { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; background: var(--bg-2); }
.curve-story > * { max-width: none; margin: 0; }
.curve-story { padding-left: max(24px, calc((100vw - 1200px) / 2)); padding-right: max(24px, calc((100vw - 1200px) / 2)); }
.curve-text h2 { margin-bottom: 22px; }
.curve-text p + p { margin-top: 16px; }
.curve-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.art { width: 100%; height: auto; display: block; }
.art .grid { stroke: var(--line); stroke-width: 1; fill: none; }
.art .axis { stroke: var(--muted); stroke-width: 1.5; fill: none; }
.art .area { fill: var(--tint); stroke: none; }
.art .curve { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.art .marks circle { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.art .labels text { fill: var(--ink); font-size: 14px; font-weight: 650; }
.art .labels text.sub { fill: var(--muted); font-size: 12px; font-weight: 450; }

/* What you get. */
.grid-section { background: var(--bg); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.cards article:hover { border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.feat-icon { display: inline-flex; width: 44px; height: 44px; border-radius: 11px; align-items: center; justify-content: center;
  background: var(--tint); color: var(--teal-ink); margin-bottom: 18px; }
.feat-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cards h3 { margin-bottom: 8px; }
.cards p { font-size: 15.5px; }

/* Fits the factory. */
.fit { background: var(--bg-2); }
.fit-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.fit .section-head { margin-bottom: 0; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding: 18px 20px 18px 62px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; color: var(--ink-2); font-size: 16px; }
.checks li::before { content: ""; position: absolute; left: 20px; top: 19px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231c7f78' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.checks strong { color: var(--ink); font-weight: 650; }

/* Closing band. */
.closing { text-align: center; color: #fff; padding: 96px 24px;
  background: radial-gradient(700px 300px at 50% 100%, rgb(47 163 154 / 0.25), transparent 70%), var(--navy); }
.closing h2 { color: #fff; }

/* ---------------------------------------------------------------- footer */

footer { background: #08162f; color: var(--navy-muted); font-size: 14px; }
.foot-inner { max-width: 1200px; margin: 0 auto; padding: 28px 24px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 650; }
.foot-brand img { border-radius: 6px; background: #f7f8f9; padding: 2px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: #fff; }
footer .copy { margin-left: auto; }

/* ---------------------------------------------------------------- small screens */

@media (max-width: 980px) {
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .process::before { display: none; }
  .curve-story, .fit-inner { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .top .nav-link { display: none; }
  .top nav { gap: 12px; }
  .plate img { height: 32px; }
  .hero { padding-top: 56px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.08em; padding: 6px 12px; }
  .shot { margin-top: 44px; }
  .shot-bar span { display: none; }
  .band { padding: 72px 20px; }
  .section-head { margin-bottom: 40px; }
  .process, .cards { grid-template-columns: 1fr; }
  .foot-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  footer .copy { margin-left: 0; }
}

/* ---------------------------------------------------------------- scroll reveals */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .draw .curve { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s ease 0.3s; }
.js .draw.in .curve { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .draw .curve { stroke-dasharray: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- contact form */

dialog.contact { width: min(620px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 30px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgb(0 0 0 / 0.3); }
dialog.contact::backdrop { background: rgb(5 12 28 / 0.6); backdrop-filter: blur(3px); }
dialog.contact h2 { font-size: 26px; }
dialog.contact > form > p, dialog.contact .sent p { margin-top: 8px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 20px; }
.fields label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.fields label.wide { grid-column: 1 / -1; }
.fields .opt { font-weight: 400; color: var(--muted); }
.fields input, .fields textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; }
.fields textarea { resize: vertical; min-height: 110px; }
.fields input:focus-visible, .fields textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.fields [aria-invalid="true"] { border-color: #c4314b; }
.fields .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
dialog.contact .small { font-size: 13px; color: var(--muted); margin-top: 14px; }
dialog.contact .msg { min-height: 22px; margin-top: 6px; font-size: 14px; color: #c4314b; }
.form-actions { margin-top: 10px; justify-content: flex-start; }
.form-actions button:disabled { opacity: 0.6; cursor: default; }
@media (max-width: 560px) {
  .fields { grid-template-columns: 1fr; }
  dialog.contact { padding: 22px 18px; }
}
