:root {
  --ink: #071018;
  --ink-2: #0d1b26;
  --paper: #f3eee4;
  --paper-2: #e7e0d2;
  --cyan: #5ad4f0;
  --cyan-deep: #1aa8c9;
  --mist: #9bb0bd;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(7, 16, 24, 0.28);
  --radius: 22px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; margin: 0 0 0.6em; }
p { margin: 0 0 1em; color: #3c4a54; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 8px;
}
.skip:focus { left: 8px; background: #fff; padding: 8px 12px; z-index: 99; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 16, 24, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand img { height: 52px; width: auto; }
.brand-copy { display: none; }
.brand-copy strong { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.04em; }
.brand-copy span { font-size: 0.68rem; color: var(--cyan); letter-spacing: 0.04em; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line); color: #fff;
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
}
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: #d7e4ec; font-size: 0.92rem; padding: 8px 12px; border-radius: 999px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(90, 212, 240, 0.12); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 12px 22px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-cyan { background: var(--cyan); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: var(--line); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }

.hero {
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(90, 212, 240, 0.22), transparent 60%),
    linear-gradient(165deg, #071018 0%, #102433 55%, #0a1c24 100%);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0; height: 72px;
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 100%, 100% 28%, 0 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
  align-items: center; padding: 72px 0 110px;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cyan); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); color: #fff; max-width: 12ch; }
.hero h1 .typed { color: var(--cyan); }
.hero p.lead { color: #c5d5de; font-size: 1.12rem; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.hero-panel img { border-radius: 18px; width: 100%; height: 340px; object-fit: cover; }

.marquee {
  background: var(--ink);
  color: var(--cyan);
  overflow: hidden;
  border-block: 1px solid var(--line);
}
.marquee-track {
  display: flex; gap: 48px; padding: 14px 0;
  animation: slide 28s linear infinite; white-space: nowrap; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 0.78rem;
}
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.eyebrow { color: var(--cyan-deep); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid #eadfce;
  box-shadow: 0 1px 0 #fff inset;
}
.card:nth-child(2) { transform: translateY(18px); }
.num { font-family: "Fraunces", serif; font-size: 2rem; color: var(--cyan-deep); }
.card h3 { font-size: 1.4rem; }

.split {
  display: grid; grid-template-columns: 0.9fr 1.1fr; min-height: 520px;
  background: var(--ink-2); color: #fff; border-radius: 32px; overflow: hidden;
}
.split-media { background: center/cover no-repeat; min-height: 280px; }
.split-body { padding: 56px; }
.split-body h2, .split-body p { color: #e8f1f5; }
.split.light { background: #fff; color: inherit; border: 1px solid #eadfce; }
.split.light .split-body h2 { color: var(--ink); }
.split.light .split-body p { color: #3c4a54; }
.stack { display: grid; gap: 22px; margin-top: 28px; }
.stack article { display: grid; grid-template-columns: 48px 1fr; gap: 14px; }
.mark {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(90, 212, 240, 0.15); color: var(--cyan); font-weight: 700;
}

.quote-band {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: 32px; overflow: hidden; border: 1px solid #eadfce;
}
.why { background: var(--ink); color: #fff; padding: 48px; }
.why h2, .why p, .why li { color: #e6eef3; }
.why ul { padding: 0; list-style: none; display: grid; gap: 12px; }
.why li::before { content: "✓ "; color: var(--cyan); font-weight: 700; }
.quote-form { background: #fff; padding: 48px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
input, textarea {
  width: 100%; border: 1px solid #d9cfc0; border-radius: 14px; padding: 12px 14px; background: #fbf8f2;
}
input:focus, textarea:focus { outline: 2px solid var(--cyan); border-color: transparent; }
.form-note { font-size: 0.85rem; color: #6a7780; margin-top: 8px; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.value { background: var(--paper-2); border-radius: 18px; padding: 22px; }
.value h3 { font-size: 1.15rem; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.stat { background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-radius: 18px; padding: 22px; text-align: center; }
.stat strong { display: block; font-family: "Fraunces", serif; font-size: 2.4rem; color: var(--cyan); }
.stat span { color: #c5d5de; font-size: 0.9rem; }

.page-hero {
  background: linear-gradient(180deg, #071018, #123040);
  color: #fff; padding: 72px 0 56px;
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); color: #fff; }
.crumbs { color: var(--mist); font-size: 0.9rem; margin-bottom: 10px; }
.crumbs a { color: var(--cyan); }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  border: 1px solid #d9cfc0; background: #fff; border-radius: 999px; padding: 8px 16px; cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.panel[hidden] { display: none; }

.product-list { display: grid; gap: 18px; }
.product {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) 1.3fr;
  gap: 28px;
  background: #fff;
  border: 1px solid #eadfce;
  border-radius: 24px;
  padding: 28px 32px;
  scroll-margin-top: 96px;
}
.product .tag {
  color: var(--cyan-deep);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}
.product h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.product .code { font-family: ui-monospace, monospace; font-size: 0.82rem; color: #6a7780; }
.product ul { margin: 0; padding-left: 1.1em; color: #3c4a54; display: grid; gap: 6px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff; border-radius: 12px;
  padding: 8px 16px 8px 12px; min-width: 168px;
}
.store-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.store-btn small { display: block; font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: #c5d5de; }
.store-btn strong { display: block; font-size: 0.98rem; font-weight: 700; line-height: 1.1; }
.store-btn.ghost { background: transparent; border: 1px solid var(--line); color: #fff; }
.store-btn.ink { background: var(--ink); }
.store-btn.ink small { color: #9bb0bd; }

.app-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.app-features article { background: #fff; border: 1px solid #eadfce; border-radius: 20px; padding: 22px; }
.app-features h3 { font-size: 1.2rem; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.work-card {
  position: relative; min-height: 280px; border-radius: 24px; overflow: hidden;
  background: #123040 center/cover no-repeat; color: #fff;
}
.work-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(7,16,24,0.88));
}
.work-card div { position: absolute; inset: auto 18px 18px; z-index: 1; }
.work-card span { color: var(--cyan); font-size: 0.82rem; font-weight: 700; }
.work-card p { color: #d7e4ec; margin: 0; }

.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 24px; }
.info-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.legal { max-width: 760px; }
.legal h3 { margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }

.cta {
  background: var(--cyan); color: var(--ink); border-radius: 32px; padding: 48px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.cta h2 { margin: 0; }

.site-footer { background: var(--ink); color: #c5d5de; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.8fr 1.2fr 1fr; gap: 28px; }
.site-footer h3 { color: #fff; font-size: 1.1rem; }
.site-footer a:hover { color: var(--cyan); }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: #fff;
}
.copy { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 0.85rem; }

@media (max-width: 960px) {
  .hero-grid, .split, .quote-band, .contact-grid, .footer-grid, .cards, .values, .work-grid, .stats, .cta, .product, .app-features {
    grid-template-columns: 1fr;
  }
  .card:nth-child(2) { transform: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none; position: absolute; inset: 72px 20px auto;
    background: #0d1b26; border: 1px solid var(--line); border-radius: 16px;
    padding: 12px; flex-direction: column; align-items: stretch;
  }
  .nav-links.open { display: flex; z-index: 50; }
  .hero-panel img { height: 220px; }
  .split-body, .why, .quote-form, .cta { padding: 28px; }
}
