/* ==========================================================================
   ChemPX — static site styles
   Brand: purple #521B93 · magenta #CD148A · Encode Sans
   ========================================================================== */

@font-face {
  font-family: "Encode Sans";
  src: url("../fonts/encode-sans-latin-wdth.woff2") format("woff2-variations"),
       url("../fonts/encode-sans-latin-wdth.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* brand */
  --purple: #521b93;
  --purple-2: #7b3fd0;
  --purple-3: #b993f5;
  --magenta: #cd148a;
  --magenta-2: #e8309f;
  --magenta-3: #ff7cc8;

  /* surfaces */
  --bg: #0b0810;
  --bg-2: #110d18;
  --bg-3: #171221;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* text */
  --text: #f5f1fa;
  --text-2: #c7bed6;
  --text-3: #938aa6;

  --grad: linear-gradient(135deg, #cd148a 0%, #9a1aa6 48%, #521b93 100%);
  --grad-text: linear-gradient(92deg, #ff5db6 0%, #e58cf0 45%, #b993f5 100%);
  --grad-border: linear-gradient(140deg, rgba(205, 20, 138, 0.7), rgba(82, 27, 147, 0.55) 45%, rgba(255, 255, 255, 0.06) 80%);

  --radius-lg: 28px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-lg: 0 40px 100px -30px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 18px 50px -18px rgba(205, 20, 138, 0.65);

  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Encode Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  font-stretch: 100%;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-stretch: 118%;
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

::selection { background: rgba(205, 20, 138, 0.45); color: #fff; }

:focus-visible {
  outline: 2px solid var(--magenta-3);
  outline-offset: 3px;
  border-radius: 6px;
}

.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px;
  background: var(--magenta); color: #fff; text-decoration: none; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.section { position: relative; padding-block: clamp(80px, 11vw, 150px); }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
  color: var(--magenta-3);
  font-size: 0.78rem; font-weight: 650; font-stretch: 115%;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--grad);
}

.h2 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem); }
.h3 { font-size: clamp(1.15rem, 1rem + 0.4vw, 1.3rem); font-weight: 620; letter-spacing: -0.01em; }

.lead { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); color: var(--text-2); line-height: 1.6; }
.muted { color: var(--text-2); }

.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head .lead { margin-top: 20px; }

/* ---------- buttons ---------- */
.btn {
  --btn-pad: 0.95em 1.45em;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: var(--btn-pad);
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-size: 0.98rem; font-weight: 620; font-stretch: 108%;
  line-height: 1.1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s, border-color 0.3s, color 0.3s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.3s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn:hover .icon-down { transform: translateY(2px); }

.btn-primary {
  position: relative; isolation: isolate;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(135deg, #f0359f, #b12ac0 55%, #6a2bbd);
  opacity: 0; transition: opacity 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -18px rgba(205, 20, 138, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-primary:hover::after { opacity: 1; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.28); transform: translateY(-2px); }

.btn-sm { --btn-pad: 0.7em 1.15em; font-size: 0.9rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.icon-btn:hover { color: #fff; background: var(--surface-2); border-color: var(--line); }
.icon-btn .icon { width: 20px; height: 20px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(11, 8, 16, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(205, 20, 138, 0.65), rgba(82, 27, 147, 0.65), transparent);
  opacity: 0; transition: opacity 0.35s;
}
.site-header.is-scrolled::after { opacity: 1; }

.header-inner {
  height: 100%;
  display: flex; align-items: center; gap: 28px;
}

.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 38px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav a {
  position: relative; display: block;
  padding: 8px 14px; border-radius: 10px;
  color: var(--text-2); text-decoration: none;
  font-size: 0.95rem; font-weight: 520;
  transition: color 0.2s, background-color 0.2s;
}
.main-nav a:hover { color: #fff; background: var(--surface-2); }
.main-nav a[aria-current="true"] { color: #fff; }
.main-nav a[aria-current="true"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--grad);
}

.header-actions { display: flex; align-items: center; gap: 6px; }
.header-actions .btn { margin-left: 8px; }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  place-items: center;
}
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.site-header.is-open .menu-toggle .icon-menu { display: none; }
.site-header.is-open .menu-toggle .icon-close { display: block; }

.mobile-panel { display: none; }

@media (max-width: 960px) {
  .main-nav, .header-actions { display: none; }
  .menu-toggle { display: inline-grid; }

  .mobile-panel {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    display: block;
    padding: 12px var(--gutter) 28px;
    background: rgba(11, 8, 16, 0.96);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .site-header.is-open .mobile-panel { transform: none; opacity: 1; visibility: visible; }
  .mobile-panel ul { margin: 0 0 18px; padding: 0; list-style: none; }
  .mobile-panel li + li { border-top: 1px solid var(--line); }
  .mobile-panel a.nav-link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 4px; text-decoration: none; font-size: 1.1rem; font-weight: 560;
  }
  .mobile-panel .btn { width: 100%; }
  .mobile-panel .mobile-meta { display: flex; gap: 8px; margin-top: 14px; justify-content: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 980px);
  padding-top: calc(var(--header-h) + clamp(48px, 7vw, 96px));
  padding-bottom: clamp(64px, 8vw, 110px);
  display: flex; align-items: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg .lattice {
  position: absolute; inset: -2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48.5' height='84' viewBox='0 0 48.5 84'%3E%3Cg fill='none' stroke='%23B993F5' stroke-opacity='.16'%3E%3Cpath d='M24.25 0L48.5 14v28L24.25 56 0 42V14zM24.25 56v28'/%3E%3C/g%3E%3Cg fill='%23B993F5' fill-opacity='.38'%3E%3Ccircle cx='24.25' cy='0' r='1.5'/%3E%3Ccircle cx='48.5' cy='14' r='1.5'/%3E%3Ccircle cx='48.5' cy='42' r='1.5'/%3E%3Ccircle cx='24.25' cy='56' r='1.5'/%3E%3Ccircle cx='0' cy='42' r='1.5'/%3E%3Ccircle cx='0' cy='14' r='1.5'/%3E%3Ccircle cx='24.25' cy='84' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 48.5px 84px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 68% 42%, #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 68% 42%, #000 0%, rgba(0, 0, 0, 0.35) 45%, transparent 75%);
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
  animation: drift 22s ease-in-out infinite alternate;
}
.orb-1 { width: 560px; height: 560px; right: -120px; top: -140px; background: rgba(205, 20, 138, 0.42); }
.orb-2 { width: 640px; height: 640px; left: -260px; top: 26%; background: rgba(82, 27, 147, 0.55); animation-duration: 28s; animation-direction: alternate-reverse; }
.orb-3 { width: 380px; height: 380px; right: 22%; bottom: -200px; background: rgba(123, 63, 208, 0.38); animation-duration: 19s; }
.hero-bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 220px;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(40px, 30px, 0) scale(1.08); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 26px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text-2); text-decoration: none;
  font-size: 0.86rem; font-weight: 520;
  transition: border-color 0.2s, background-color 0.2s;
}
.hero-pill:hover { border-color: rgba(205, 20, 138, 0.6); background: rgba(205, 20, 138, 0.08); }
.hero-pill .tag {
  padding: 3px 9px; border-radius: 999px;
  background: var(--grad); color: #fff;
  font-size: 0.72rem; font-weight: 700; font-stretch: 115%; letter-spacing: 0.08em; text-transform: uppercase;
}
.hero-pill .icon { width: 15px; height: 15px; }

.hero h1 {
  font-size: clamp(2.3rem, 1.1rem + 4.4vw, 4.4rem);
  font-weight: 640;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.hero .lead { margin-top: 26px; max-width: 34em; }
.hero .lead strong { color: var(--text); font-weight: 600; }
.hero .btn-row { margin-top: 36px; }

.hero-checks {
  display: grid; grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 12px 28px;
  margin: 40px 0 0; padding: 0; list-style: none;
  color: var(--text-2); font-size: 0.94rem;
}
.hero-checks li { display: flex; align-items: center; gap: 10px; }

.check-dot {
  display: inline-grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--magenta);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(205, 20, 138, 0.16);
}
.check-dot .icon { width: 13px; height: 13px; stroke-width: 2.6; }

/* hero visual */
.hero-visual {
  position: relative;
  perspective: 1600px;
  --rx: 6deg; --ry: -14deg;
}
.app-window {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(#1a1424, #120e1a) padding-box, var(--grad-border) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-lg), 0 0 120px -30px rgba(205, 20, 138, 0.45);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
  overflow: hidden;
}
.app-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem; color: var(--text-3);
}
.app-bar .dots { display: flex; gap: 6px; }
.app-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.app-bar .dots i:first-child { background: var(--magenta); }
.app-bar .dots i:nth-child(2) { background: var(--purple-2); }
.app-bar .app-title { display: inline-flex; align-items: center; gap: 8px; }
.app-bar .app-title svg { width: 16px; height: 16px; }
.app-window img { width: 100%; background: #f5f5f7; }

.float-card {
  position: absolute; z-index: 2;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(20, 15, 28, 0.78);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  animation: bob 7s ease-in-out infinite;
}
.float-card .fc-label { font-size: 0.74rem; color: var(--text-3); letter-spacing: 0.04em; }
.float-card .fc-value { font-size: 1.6rem; font-weight: 700; font-stretch: 122%; line-height: 1.1; letter-spacing: -0.02em; }
.float-card .fc-value small { font-size: 0.72rem; font-weight: 500; color: var(--text-3); font-stretch: 100%; letter-spacing: 0; margin-right: 4px; }

.fc-margin { left: -34px; bottom: -34px; width: 230px; }
.fc-margin .fc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.fc-margin .badge { width: 34px; height: 34px; }
.fc-margin svg.spark { width: 100%; height: 46px; margin-top: 8px; }

.fc-corridor { right: -26px; top: 18%; width: 236px; animation-delay: -2.5s; }
.fc-corridor .fc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.fc-corridor .fc-prod { font-size: 0.86rem; font-weight: 600; }
.range {
  position: relative; height: 8px; margin: 16px 0 8px;
  border-radius: 99px; background: rgba(255, 255, 255, 0.1);
}
.range .fill {
  position: absolute; left: 30%; right: 22%; top: 0; bottom: 0; border-radius: inherit;
  background: var(--grad);
  box-shadow: 0 0 18px rgba(205, 20, 138, 0.6);
}
.range .knob {
  position: absolute; top: 50%; left: 58%; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--magenta);
  transform: translate(-50%, -50%);
}
.range-scale { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.range-scale b { color: var(--text); font-weight: 600; }

.fc-guide {
  right: 8%; bottom: -22px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 999px;
  font-size: 0.86rem; font-weight: 560;
  animation-delay: -4s;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- value ---------- */
.value-section { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 72px); }
.hand { height: auto; margin: 0 auto 14px; }
.hand-value { width: 132px; }

.value-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative; isolation: isolate;
  border-radius: var(--radius);
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
              linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04) 40%, rgba(255, 255, 255, 0.02)) border-box;
  border: 1px solid transparent;
  overflow: hidden;
}
.glow-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(205, 20, 138, 0.16), transparent 45%);
  opacity: 0; transition: opacity 0.4s;
}
.glow-card:hover::before { opacity: 1; }

.value-card { padding: 30px 26px 28px; transition: transform 0.4s var(--ease); }
.value-card:hover { transform: translateY(-4px); }
.value-card .badge { width: 54px; height: 54px; margin-bottom: 28px; }
.value-pre { font-size: 0.8rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; min-height: 1.3em; }
.value-num {
  margin: 4px 0 6px;
  font-size: clamp(2.6rem, 1.8rem + 2vw, 3.5rem);
  font-weight: 700; font-stretch: 125%;
  line-height: 1; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.value-num .unit { font-size: 0.5em; letter-spacing: -0.01em; margin-left: 0.1em; }
.value-label { color: var(--text-2); font-size: 1rem; }
.value-card::after {
  content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 2px;
  background: var(--grad); opacity: 0.0; transform: scaleX(0.4); transform-origin: left;
  transition: opacity 0.4s, transform 0.6s var(--ease);
}
.value-card:hover::after { opacity: 1; transform: none; }

.badge { flex: none; }

/* ---------- approach ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 96px); align-items: center;
}
.split .lead { margin-top: 22px; }
.prose p + p { margin-top: 16px; }
.prose { margin-top: 22px; color: var(--text-2); }

.point-list { display: grid; gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; }
.point-list li {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 16px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
}
.point-list .pi {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(205, 20, 138, 0.22), rgba(82, 27, 147, 0.32));
  border: 1px solid rgba(205, 20, 138, 0.3);
  color: var(--magenta-3);
}
.point-list .pi .icon { width: 22px; height: 22px; }
.point-list strong { display: block; font-weight: 620; color: var(--text); font-stretch: 108%; }
.point-list span { color: var(--text-2); font-size: 0.96rem; }

.frame {
  position: relative; margin: 0;
  border-radius: var(--radius-lg);
  padding: 10px;
  background: linear-gradient(var(--bg-3), var(--bg-3)) padding-box, var(--grad-border) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow-lg);
}
.frame img { border-radius: calc(var(--radius-lg) - 10px); width: 100%; }
.frame::before {
  content: ""; position: absolute; inset: 12% -8% -10% 18%; z-index: -1;
  background: radial-gradient(closest-side, rgba(205, 20, 138, 0.4), transparent);
  filter: blur(40px);
}
.frame-tag {
  position: absolute; left: -18px; bottom: 32px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 999px;
  background: rgba(20, 15, 28, 0.85);
  border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.86rem; font-weight: 560;
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.7);
}
.frame-tag .badge { width: 30px; height: 30px; }

/* statement */
.statement {
  margin: clamp(90px, 12vw, 160px) auto 0;
  max-width: 980px; text-align: center;
}
.statement blockquote { margin: 0; }
.statement blockquote p {
  font-size: clamp(1.75rem, 1rem + 2.8vw, 3.2rem);
  font-weight: 560; font-stretch: 115%;
  line-height: 1.18; letter-spacing: -0.025em;
  color: var(--text-2);
}
.statement blockquote p em { font-style: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.statement .quote-mark { width: 48px; height: 48px; margin: 0 auto 24px; color: var(--magenta); }

.pillars {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  margin-top: 56px; text-align: left;
}
.pillar { padding: 26px; }
.pillar .step-ic {
  display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px;
  border-radius: 14px; background: var(--grad); color: #fff;
  box-shadow: var(--shadow-glow);
}
.pillar .step-ic .icon { width: 22px; height: 22px; }
.pillar h3 { font-size: 1.12rem; }
.pillar p { margin-top: 8px; color: var(--text-2); font-size: 0.96rem; }

.team-strip {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center;
  margin-top: 18px; padding: 24px 28px;
  border-radius: var(--radius);
  background: linear-gradient(110deg, rgba(205, 20, 138, 0.12), rgba(82, 27, 147, 0.16) 60%, rgba(255, 255, 255, 0.02)) padding-box,
              var(--grad-border) border-box;
  border: 1px solid transparent;
  text-align: left;
}
.team-strip .team-label { font-size: 0.78rem; font-weight: 650; font-stretch: 115%; letter-spacing: 0.16em; text-transform: uppercase; color: var(--magenta-3); }
.team-item { display: flex; gap: 14px; align-items: center; color: var(--text-2); font-size: 0.96rem; }
.team-item strong { color: var(--text); font-weight: 600; }
.team-item .icon { width: 26px; height: 26px; color: var(--purple-3); }

/* ---------- product ---------- */
.product-section {
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(82, 27, 147, 0.28), transparent 60%),
    radial-gradient(700px 400px at 0% 60%, rgba(205, 20, 138, 0.12), transparent 60%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}

.product-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 0.88rem; color: var(--text-2);
}
.chip .icon { width: 16px; height: 16px; color: var(--magenta-3); }

.showcase { max-width: 1040px; margin: 0 auto; }
.tabs {
  display: flex; width: max-content; max-width: 100%; margin: 0 auto 22px; padding: 5px; gap: 4px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
}
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-2);
  font: inherit; font-size: 0.92rem; font-weight: 560; cursor: pointer;
  transition: background-color 0.25s, color 0.25s;
}
.tab .icon { width: 17px; height: 17px; }
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { background: var(--grad); color: #fff; box-shadow: var(--shadow-glow); }

.showcase .app-window { transform: none; }
.showcase-panels { position: relative; }
.showcase-panel[hidden] { display: none; }
.showcase-panel img { animation: fadeUp 0.5s var(--ease); }
.showcase-caption { margin-top: 16px; text-align: center; font-size: 0.9rem; color: var(--text-3); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  margin-top: clamp(56px, 7vw, 88px);
}
.feature { padding: 30px 28px 32px; }
.feature .app-icon { width: 64px; height: 64px; margin-bottom: 24px; filter: drop-shadow(0 14px 22px rgba(82, 27, 147, 0.55)); transition: transform 0.4s var(--ease); }
.feature:hover .app-icon { transform: translateY(-3px) rotate(-3deg); }
.feature h3 { font-size: 1.2rem; }
.feature p { margin-top: 10px; color: var(--text-2); font-size: 0.98rem; }

.product-cta { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- how it works ---------- */
.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
  margin: 0; padding: 0; list-style: none;
  counter-reset: step;
}
.step { padding: 28px 26px 30px; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.step-num {
  font-size: 2.6rem; font-weight: 700; font-stretch: 125%; line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.18));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step-ic {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--magenta-3);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.step-ic .icon { width: 22px; height: 22px; }
.step:hover .step-ic { background: var(--grad); color: #fff; border-color: transparent; }
.step h3 { font-size: 1.15rem; }
.step p { margin-top: 8px; color: var(--text-2); font-size: 0.97rem; }
.step-loop {
  background: linear-gradient(160deg, rgba(205, 20, 138, 0.14), rgba(82, 27, 147, 0.2)) padding-box, var(--grad-border) border-box;
}
.step-loop .loop-note {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px;
  font-size: 0.8rem; font-weight: 600; color: var(--magenta-3); letter-spacing: 0.04em;
}
.step-loop .loop-note .icon { width: 15px; height: 15px; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- CTA ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 80px);
  border-radius: 32px;
  text-align: center;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad-border) border-box;
  border: 1px solid transparent;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(205, 20, 138, 0.28), transparent 70%),
    radial-gradient(500px 300px at 100% 100%, rgba(82, 27, 147, 0.4), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(82, 27, 147, 0.25), transparent 70%);
}
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48.5' height='84' viewBox='0 0 48.5 84'%3E%3Cpath d='M24.25 0L48.5 14v28L24.25 56 0 42V14zM24.25 56v28' fill='none' stroke='%23B993F5' stroke-opacity='.12'/%3E%3C/svg%3E");
  background-size: 48.5px 84px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
}
.cta .slogan { width: min(340px, 78%); margin: 0 auto 26px; }
.cta h2 { max-width: 820px; margin: 0 auto; }
.cta .lead { max-width: 640px; margin: 22px auto 0; }
.cta .btn-row { justify-content: center; margin-top: 36px; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 80px); align-items: start;
}
.contact-grid .lead { margin-top: 20px; }

.contact-list { display: grid; gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; }
.contact-list a, .contact-list div {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none;
  transition: border-color 0.25s, background-color 0.25s, transform 0.3s var(--ease);
}
.contact-list a:hover { border-color: rgba(205, 20, 138, 0.55); background: rgba(205, 20, 138, 0.06); transform: translateX(4px); }
.contact-list .ci {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--grad); color: #fff;
}
.contact-list .ci .icon { width: 21px; height: 21px; }
.contact-list small { display: block; color: var(--text-3); font-size: 0.8rem; letter-spacing: 0.04em; }
.contact-list b { font-weight: 600; }
.contact-list address { font-style: normal; line-height: 1.45; }

.form-card { padding: clamp(24px, 4vw, 40px); }
.form-card h3 { font-size: 1.35rem; }
.form-card > p { margin-top: 8px; color: var(--text-2); font-size: 0.96rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.84rem; font-weight: 560; color: var(--text-2); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font: inherit; font-size: 0.98rem;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 128px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C7BED6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 42px;
}
.field select option { background: var(--bg-3); color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.26); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--magenta);
  background: rgba(205, 20, 138, 0.05);
  box-shadow: 0 0 0 4px rgba(205, 20, 138, 0.18);
}
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 24px; }
.form-note { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--text-3); max-width: 300px; }
.form-note .icon { width: 16px; height: 16px; }
.form-status { margin-top: 14px; font-size: 0.9rem; color: var(--magenta-3); min-height: 1.4em; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  padding: 72px 0 36px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg), #08060c);
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--magenta), var(--purple), transparent);
}
.footer-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 40px;
}
.footer-brand img { height: 42px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 30ch; color: var(--text-3); font-size: 0.95rem; }
.footer-col h4 { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-col a[aria-current="page"] { color: #fff; }
.footer-col address { font-style: normal; color: var(--text-2); font-size: 0.95rem; line-height: 1.6; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--text-3); font-size: 0.86rem;
}
.footer-bottom .social { display: flex; gap: 6px; }

/* ---------- legal page ---------- */
.legal-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + 72px) 0 56px;
  border-bottom: 1px solid var(--line);
}
.legal-hero .hero-bg .lattice {
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 80% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 90% at 80% 0%, #000, transparent 70%);
}
.legal-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); }
.legal-hero p { margin-top: 14px; color: var(--text-2); }

.legal-layout {
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px);
  padding-block: clamp(48px, 7vw, 88px);
}
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.legal-toc h2 { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; font-stretch: 115%; }
.legal-toc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; border-left: 1px solid var(--line); }
.legal-toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; font-size: 0.92rem; }
.legal-toc a:hover { color: #fff; border-left-color: var(--magenta); }

.legal { max-width: 760px; color: var(--text-2); font-size: 1rem; }
.legal h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); color: var(--text); margin: 64px 0 18px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.2rem; color: var(--text); margin: 40px 0 12px; font-stretch: 112%; }
.legal h4 { font-size: 1.02rem; color: var(--text); margin: 26px 0 8px; font-stretch: 105%; font-weight: 620; letter-spacing: 0; }
.legal p + p { margin-top: 14px; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 10px; }
.legal li::marker { color: var(--magenta-3); }
.legal a { color: var(--magenta-3); }
.legal .caps { font-size: 0.9rem; letter-spacing: 0.01em; }
.address-card {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
  padding: 28px; margin-bottom: 8px;
}
.address-card address { font-style: normal; color: var(--text); line-height: 1.7; }
.address-card small { display: block; color: var(--text-3); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 650; margin-bottom: 8px; }

/* ---------- reveal on scroll ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .hero { min-height: 0; }
  .hero-grid, .split, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { --rx: 0deg; --ry: 0deg; margin: 8px 12px 40px; }
  .fc-margin { left: -12px; bottom: -36px; }
  .fc-corridor { right: -12px; top: -28px; }
  .fc-guide { display: none; }
  .split .frame { order: -1; max-width: 640px; }
  .feature-grid, .pillars, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-strip { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-checks { grid-template-columns: minmax(0, 1fr); }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .value-grid, .feature-grid, .pillars, .steps { grid-template-columns: minmax(0, 1fr); }
  .value-card { padding: 24px 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: center; }
  .value-card .badge { grid-row: span 3; margin: 0; width: 48px; height: 48px; }
  .value-num { font-size: 2.4rem; margin: 2px 0 2px; }
  .float-card { padding: 12px 14px; }
  .fc-margin { width: 190px; }
  .fc-margin svg.spark { height: 34px; }
  .fc-corridor { width: 200px; }
  .float-card .fc-value { font-size: 1.3rem; }
  .frame-tag { left: 12px; bottom: 12px; font-size: 0.8rem; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-foot .btn { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; padding: 10px 12px; }
  .address-card { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
