:root {
  color-scheme: dark;
  --bg: #080b0f;
  --bg-soft: #0e1319;
  --surface: rgba(19, 26, 34, 0.78);
  --surface-strong: #141b23;
  --line: rgba(177, 199, 219, 0.14);
  --line-strong: rgba(177, 199, 219, 0.24);
  --text: #f4f7f9;
  --muted: #9ba9b6;
  --teal: #49e0b2;
  --teal-soft: rgba(73, 224, 178, 0.12);
  --amber: #f0ad4e;
  --blue: #75a7ff;
  --rose: #f57b91;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --radius: 24px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 92px; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 4%, rgba(73, 224, 178, 0.1), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(117, 167, 255, 0.09), transparent 30rem),
    var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(73, 224, 178, 0.72); outline-offset: 4px; }

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

.site-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgba(8, 11, 15, 0.74);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav-inner { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo {
  display: grid;
  width: 228px;
  height: 76px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(240, 173, 78, .92);
  border-radius: 14px;
  background: var(--bg);
  box-shadow: none;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 620; }
.nav-links a:hover { color: var(--text); }

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--teal);
  color: #071611;
  font-weight: 760;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(73, 224, 178, 0.16);
  transition: transform 180ms ease, filter 180ms ease, border-color 180ms ease;
}
.button:hover { filter: brightness(1.06); transform: translateY(-2px); }
.button.secondary { background: rgba(255, 255, 255, 0.035); border-color: var(--line-strong); color: var(--text); box-shadow: none; }
.button.small { min-height: 40px; padding-inline: 16px; border-radius: 11px; font-size: 14px; }

.hero { position: relative; overflow: hidden; padding: 90px 0 112px; }
.hero::before {
  position: absolute;
  width: 460px;
  height: 460px;
  top: 10%;
  left: 57%;
  border: 1px solid rgba(73, 224, 178, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(73, 224, 178, 0.025), 0 0 0 160px rgba(117, 167, 255, 0.018);
  content: "";
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr); align-items: center; gap: 72px; }
.eyebrow { margin: 0 0 20px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(45px, 6.8vw, 82px); line-height: 0.99; letter-spacing: -0.058em; }
.gradient-text { background: linear-gradient(100deg, var(--text) 10%, #b8f8e5 75%, var(--teal)); background-clip: text; -webkit-background-clip: text; color: transparent; }
.lead { max-width: 650px; margin-bottom: 32px; color: #b5c0ca; font-size: clamp(18px, 2vw, 21px); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.demo-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.demo-note strong { color: var(--amber); font-size: 12px; letter-spacing: 0.08em; }

.device-stage { position: relative; min-height: 620px; }
.device {
  position: absolute;
  width: min(286px, 72vw);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 40px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}
.device.primary { z-index: 2; top: 0; right: 8%; transform: rotate(2deg); }
.device.secondary { z-index: 1; top: 96px; right: 45%; opacity: 0.64; transform: rotate(-6deg) scale(0.86); }
.device img { width: 100%; }
.floating-card {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 46px;
  width: 220px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(14, 19, 25, 0.88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(16px);
}
.floating-card small { display: block; color: var(--muted); }
.floating-card strong { display: block; margin: 3px 0 8px; font-size: 21px; }
.meter { height: 5px; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.08); }
.meter::after { display: block; width: 84%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--blue)); content: ""; }

.metrics { border-block: 1px solid var(--line); background: rgba(255,255,255,.014); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metric { padding: 28px 30px; border-right: 1px solid var(--line); }
.metric:last-child { border: 0; }
.metric b { display: block; font-size: 21px; letter-spacing: -0.03em; }
.metric span { color: var(--muted); font-size: 13px; }

.section { padding: 110px 0; }
.section.compact { padding-top: 70px; }
.products-section { padding-bottom: 90px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 46px; }
.section-head > div { max-width: 700px; }
h2 { margin-bottom: 14px; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.045em; }
.section-copy { margin-bottom: 0; color: var(--muted); font-size: 18px; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.product-card {
  display: grid;
  grid-template-columns: minmax(150px, .55fr) minmax(0, 1.45fr);
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(23, 31, 40, .94), rgba(13, 18, 24, .94));
}
.product-card.featured { grid-column: 1 / -1; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); }
.product-art { display: grid; min-height: 260px; place-items: center; padding: clamp(32px, 5vw, 64px); background: radial-gradient(circle, rgba(73,224,178,.16), transparent 62%); }
.product-art img { width: min(220px, 100%); border-radius: 25%; box-shadow: 0 24px 65px rgba(0,0,0,.42); }
.product-content { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(32px, 5vw, 64px); }
.product-category { margin-bottom: 12px; color: var(--teal); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.product-content h3 { margin-bottom: 14px; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.04em; }
.product-content > p:not(.product-category) { max-width: 650px; margin-bottom: 22px; color: var(--muted); font-size: 17px; }
.product-features { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.product-features li { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: #c5ced6; font-size: 13px; }
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.text-link { color: var(--teal); font-weight: 720; text-underline-offset: 5px; }
.catalogue-empty, .noscript-note { padding: 28px; border: 1px solid var(--line); border-radius: 18px; color: var(--muted); background: var(--surface); }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.card {
  grid-column: span 4;
  min-height: 260px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(23, 31, 40, 0.9), rgba(13, 18, 24, 0.9));
}
.card.wide { grid-column: span 7; }
.card.medium { grid-column: span 5; }
.card h3 { margin: 18px 0 10px; font-size: 21px; letter-spacing: -0.025em; }
.card p { margin-bottom: 0; color: var(--muted); }
.icon-chip { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line-strong); border-radius: 13px; background: rgba(255,255,255,.035); color: var(--teal); font: 700 20px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.curve-card { position: relative; min-height: 300px; }
.curve-card .card-copy { position: relative; z-index: 1; width: 42%; }
.curve-preview {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: 52%;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #10151c;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}
.curve-preview img { width: 100%; height: 100%; object-fit: cover; object-position: center 84%; }
.quality-panel { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; }
.quality-intro { padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(240,173,78,.09), rgba(19,26,34,.65)); }
.quality-intro h2 { font-size: clamp(34px, 4vw, 50px); }
.score-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.score { min-height: 170px; padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.score b { display: block; margin-bottom: 24px; font-size: 13px; letter-spacing: .12em; }
.score strong { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.045em; }
.score span { color: var(--muted); }
.teal { color: var(--teal); } .blue { color: var(--blue); } .amber { color: var(--amber); } .rose { color: var(--rose); }

.screen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.screen { margin: 0; }
.screen:nth-child(even) { margin-top: 48px; }
.screen-frame { overflow: hidden; border: 1px solid var(--line-strong); border-radius: 30px; background: var(--surface-strong); box-shadow: 0 22px 55px rgba(0,0,0,.3); transition: transform 220ms ease, border-color 220ms ease; }
.screen-frame:hover { border-color: rgba(73,224,178,.4); transform: translateY(-6px); }
.screen figcaption { padding: 16px 4px 0; color: var(--muted); font-size: 14px; }
.screen figcaption strong { display: block; color: var(--text); font-size: 16px; }

.workflow { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.workflow-item { padding: 30px; border-right: 1px solid var(--line); }
.workflow-item:last-child { border: 0; }
.workflow-item .number { color: var(--teal); font: 700 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.workflow-item h3 { margin: 22px 0 10px; font-size: 19px; }
.workflow-item p { margin: 0; color: var(--muted); font-size: 15px; }

.pricing-section { padding-bottom: 40px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  display: flex;
  flex-direction: column;
  padding: 34px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(23, 31, 40, 0.9), rgba(13, 18, 24, 0.9));
}
.price-card.featured {
  border-color: rgba(73, 224, 178, 0.4);
  background: radial-gradient(circle at 80% 0, rgba(73, 224, 178, 0.13), transparent 45%), var(--surface-strong);
}
.price-badge {
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.price-name { margin-bottom: 12px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.price-title { margin-bottom: 14px; font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.035em; }
.price-note { flex: 1; margin-bottom: 0; color: var(--muted); font-size: 15px; }
.pricing-cta { display: flex; justify-content: center; margin-top: 34px; }
.price-fineprint { margin: 18px auto 0; max-width: 660px; color: var(--muted); font-size: 14px; text-align: center; }

.final-cta { padding: 80px 0 110px; }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 36px; padding: clamp(34px, 6vw, 64px); border: 1px solid rgba(73,224,178,.22); border-radius: 30px; background: radial-gradient(circle at 80% 0, rgba(73,224,178,.13), transparent 40%), var(--surface-strong); }
.cta-panel h2 { max-width: 650px; margin: 0; }

.site-footer { padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-logo { display: grid; width: 228px; height: 76px; overflow: hidden; place-items: center; border-radius: 14px; background: var(--bg); }
.footer-logo img { width: 100%; height: 100%; object-fit: contain; }
.footer-inner a { color: var(--text); text-decoration: none; }
.placeholder { padding: 2px 7px; border: 1px dashed rgba(240,173,78,.7); border-radius: 6px; color: var(--amber); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }

.legal-page { min-height: 100vh; background: radial-gradient(circle at 50% -15%, rgba(73,224,178,.09), transparent 35rem), var(--bg); }
.legal-header { padding: 84px 0 42px; border-bottom: 1px solid var(--line); }
.legal-header h1 { max-width: none; margin-bottom: 8px; font-size: clamp(42px, 7vw, 66px); }
.legal-date { color: var(--muted); }
.legal-content { padding: 56px 0 100px; }
.legal-content .summary { margin-bottom: 50px; padding: 24px 26px; border: 1px solid rgba(73,224,178,.22); border-radius: 18px; background: var(--teal-soft); color: #d6e4df; font-size: 18px; }
.legal-content h2 { margin: 42px 0 10px; font-size: 23px; letter-spacing: -.025em; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content strong { color: var(--text); }
.legal-content ul { padding-left: 22px; }
.back-link { display: inline-flex; margin-top: 40px; color: var(--teal); text-decoration: none; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .device-stage { width: min(620px, 100%); margin: 0 auto; }
  .metric-grid, .workflow { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2), .workflow-item:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2), .workflow-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .card { grid-column: span 6; }
  .card.wide, .card.medium { grid-column: span 6; }
  .curve-card { display: flex; min-height: 0; flex-direction: column; gap: 24px; }
  .curve-card .card-copy { width: auto; }
  .curve-preview { position: relative; inset: auto; width: 100%; height: 210px; flex: none; }
  .quality-panel { grid-template-columns: 1fr; }
  .screen-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card, .product-card.featured { grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}

@media (max-width: 680px) {
  .wrap, .narrow { width: min(calc(100% - 28px), var(--wrap)); }
  .nav-links > a:not(.button) { display: none; }
  .nav-inner { min-height: 78px; gap: 10px; }
  .brand-logo { width: 174px; height: 58px; border-radius: 12px; }
  .nav-links .button.small { min-height: 38px; padding-inline: 12px; font-size: 12px; }
  .hero { padding: 64px 0 82px; }
  .hero-grid { gap: 40px; }
  h1 { font-size: clamp(42px, 14vw, 62px); }
  .device-stage { min-height: 520px; }
  .device { width: min(245px, 70vw); }
  .device.primary { right: 4%; }
  .device.secondary { right: 38%; }
  .floating-card { right: 0; bottom: 26px; width: 190px; }
  .section { padding: 78px 0; }
  .section-head { display: block; }
  .metric-grid, .workflow, .screen-grid, .score-grid { grid-template-columns: 1fr; }
  .metric, .metric:nth-child(2), .workflow-item, .workflow-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child, .workflow-item:last-child { border-bottom: 0; }
  .bento { grid-template-columns: 1fr; }
  .card, .card.wide, .card.medium { grid-column: auto; min-height: auto; }
  .screen:nth-child(even) { margin-top: 0; }
  .screen-grid { gap: 34px; }
  .screen-frame { max-height: 540px; }
  .cta-panel { display: block; }
  .cta-panel .button { margin-top: 28px; }
  .footer-inner { display: block; }
  .footer-inner > div + div { margin-top: 18px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card, .product-card.featured { grid-column: auto; grid-template-columns: 1fr; }
  .product-art { min-height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
