/* ============================================================
   88Apps — Company Profile
   Design: premium dark tech, emerald accent
   ============================================================ */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/SpaceGrotesk-Variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Manrope';
  src: url('../fonts/Manrope-Variable.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/JetBrainsMono-Variable.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #09090b;
  --bg-raised: #0e0e11;
  --bg-card: #101014;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-dim: #a1a1aa;
  --text-mute: #8b8b94;
  --accent: #34d399;
  --accent-strong: #10b981;
  --accent-soft: rgba(52, 211, 153, 0.12);
  --font-display: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 16px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
  --nav-surface: rgba(9, 9, 11, 0.88);
  --menu-surface: #0e0e11;
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.section { padding-block: clamp(72px, 10vw, 128px); }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 20ch;
}
.section-sub {
  color: var(--text-dim);
  max-width: 58ch;
  margin-top: 16px;
  font-size: 17px;
}
.section-head { margin-bottom: clamp(40px, 6vw, 64px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.3s var(--ease);
}
.btn:active { transform: scale(0.98) translateY(1px); }

.btn-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(180deg, #3fe0a6 0%, #2cc98c 100%);
  color: #052e1f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 10px 24px -10px rgba(52, 211, 153, 0.55);
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.45) 50%, transparent 58%);
  transform: translateX(-130%);
  transition: transform 0.6s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 16px 30px -12px rgba(52, 211, 153, 0.68);
}
.btn-primary:hover::before { transform: translateX(130%); }

.btn-arrow {
  flex: none;
  transition: transform 0.25s var(--ease);
}
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: 10px 20px; font-size: 14px; }

/* Magnetic pull (set via --mx/--my from JS) */
.btn[data-magnetic] {
  translate: var(--mx, 0px) var(--my, 0px);
  transition: translate 0.2s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.3s var(--ease);
}

/* ---------- Nav ---------- */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.nav-wrap.scrolled {
  background: var(--nav-surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { color: var(--accent); display: inline-flex; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta a { color: #052e1f; }
.nav-cta .btn-sm { padding: 9px 18px; }
.nav-cta .btn-primary {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}
.nav-cta .btn-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 6px 16px -8px rgba(52, 211, 153, 0.55);
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  min-height: min(780px, 100dvh);
  padding-top: 96px;
  padding-bottom: 40px;
}
.hero-copy { max-width: 620px; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 46ch;
  margin-top: 24px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: clamp(360px, 46vw, 520px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 70% 20%, var(--accent-soft), transparent 55%),
    var(--bg-raised);
  overflow: hidden;
}
.hero-type {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(6px, 1.2vw, 14px);
  height: 100%;
  padding-inline: clamp(28px, 3.4vw, 48px);
}
.ht-line {
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  transform: translateY(26px);
  animation: ht-in 0.7s var(--ease) forwards;
}
.ht-line:nth-child(2) { animation-delay: 0.12s; }
.ht-line:nth-child(3) { animation-delay: 0.24s; }
@keyframes ht-in { to { opacity: 1; transform: translateY(0); } }
.ht-idx {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  transform: translateY(-0.45em);
  transition: color 0.45s var(--ease);
  -webkit-text-stroke: 0;
}
.ht-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
}
.ht-accent { color: var(--accent); font-style: italic; }

/* Pipeline cycle (JS stepper): one word active at a time, starts at 01 */
.ht-word {
  display: inline-block;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.hero-type.is-running .ht-word { opacity: 0.35; transform: translateX(-6px); }
.hero-type.is-running .ht-line.is-active .ht-word { opacity: 1; transform: translateX(0); }
.hero-type.is-running .ht-line.is-active .ht-idx { color: var(--accent); }

/* ---------- Logo wall ---------- */
.logowall {
  padding-block: 40px 72px;
  border-top: 1px solid var(--line);
}
.logowall-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 28px;
}
.logowall-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-ltr 40s linear infinite;
}
.logowall-row:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 80px);
  padding-inline-end: clamp(48px, 6vw, 80px);
}
.logowall-row img {
  height: 30px;
  width: auto;
  flex: none;
  opacity: 0.55;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.logowall-row img:hover {
  opacity: 1;
  transform: translateY(-2px);
}
@keyframes marquee-ltr {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .logowall-row { overflow-x: auto; }
  .marquee-track { animation: none; }
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.bento > .bento-cell:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.bento > .bento-cell:nth-child(2),
.bento > .bento-cell:nth-child(3) { grid-column: span 3; }
.bento > .bento-cell:nth-child(n+4) { grid-column: span 2; }
.bento-cell {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.bento-cell:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.bento-cell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--sx, 50%) var(--sy, 50%), rgba(52, 211, 153, 0.09), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.bento-cell:hover::after { opacity: 1; }
.cell-feature {
  background:
    radial-gradient(130% 120% at 85% 10%, var(--accent-soft), transparent 60%),
    var(--bg-card);
}
.cell-tint {
  background:
    radial-gradient(120% 120% at 15% 100%, rgba(255, 255, 255, 0.04), transparent 60%),
    var(--bg-raised);
}
.cell-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(52, 211, 153, 0.07);
  color: var(--accent);
}
.cell-icon svg { width: 22px; height: 22px; }
.cell-note {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--text-mute);
}
.bento-cell h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.bento-cell p { color: var(--text-dim); font-size: 15px; }

/* ---------- Process ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}
.process-step {
  border-top: 1px solid var(--line-strong);
  padding-top: 22px;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  display: block;
  margin-bottom: 14px;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
.process-step p { color: var(--text-dim); font-size: 15px; }

/* ---------- Products: real public-page captures ---------- */
.hero-sub a { white-space: nowrap; color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.hero-sub a:hover { color: var(--accent); text-decoration-color: currentColor; }
.product-list { display: grid; gap: 64px; }
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  scroll-margin-top: 24px;
}
.product-preview {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}
.product-preview img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: contain; }
.product-preview figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}
.product-preview figcaption span { color: var(--text-mute); font-weight: 400; }
.product-content { min-width: 0; }
.product-category { color: var(--text-mute); font-size: 13px; margin-bottom: 10px; }
.product-content h3 { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -0.03em; font-weight: 600; }
.product-summary { margin-top: 12px; font-size: 19px; font-weight: 600; line-height: 1.45; }
.product-description { color: var(--text-dim); margin-top: 12px; font-size: 15px; max-width: 48ch; text-wrap: pretty; }
.product-features { display: grid; gap: 8px; margin-top: 22px; padding-left: 18px; list-style: disc; font-size: 14px; color: var(--text-dim); }
.product-features li::marker { color: var(--accent); }
.product-link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; margin-top: 24px; color: var(--accent); border-bottom: 1px solid var(--accent); font-size: 15px; font-weight: 700; }
.product-link > span[aria-hidden] { transition: transform 0.25s var(--ease); }
.product-link:hover > span[aria-hidden] { transform: translate(2px, -2px); }
.product-link:hover { color: var(--text); border-color: currentColor; }
.product-domain { color: var(--text-mute); font-family: var(--font-mono); font-size: 11px; margin-top: 12px; }
.product-wide { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.product-wide .product-preview img { aspect-ratio: 9 / 4; }
.product-wide .product-content { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
.product-wide .product-features { margin-top: 0; }
.product-platform { margin-top: 16px; color: var(--text-dim); font-size: 13px; }
.product-roadmap { margin-top: 56px; padding: 28px 32px; background: var(--bg-raised); border-left: 2px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.product-roadmap h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.product-roadmap p { color: var(--text-dim); font-size: 15px; margin-top: 8px; max-width: 80ch; }

/* ---------- Quote ---------- */
.quote { max-width: 760px; margin-inline: auto; text-align: center; }
.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 28px;
}
.quote-name { font-weight: 600; }
.quote-role { color: var(--text-mute); font-size: 14px; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 7vw, 88px);
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.contact-title em { font-style: italic; color: var(--accent); }
.contact-sub {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 44ch;
  margin-top: 18px;
}
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line-strong);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact-mail .btn-arrow { transition: transform 0.25s var(--ease); }
.contact-mail:hover { color: var(--accent); border-color: var(--accent); }
.contact-mail:hover .btn-arrow { transform: translateX(4px); }

.detail-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.detail-row:first-child { border-top: 1px solid var(--line); }
.detail-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mute);
  padding-top: 4px;
}
.detail-value {
  color: var(--text);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-value a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.detail-value a:hover { color: var(--accent); border-color: var(--accent); }
.status-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: status-pulse 2.4s var(--ease) infinite;
}
@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.35); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 28px;
  margin-top: clamp(72px, 10vw, 128px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr 1.3fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-tag { color: var(--text-dim); font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.footer-col a { color: var(--text-dim); font-size: 15px; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 14px;
  flex-wrap: wrap;
}
.muted { color: var(--text-mute); }
.mono { font-family: var(--font-mono); font-size: 12px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Focus, selection & polish ---------- */
::selection { background: var(--accent-soft); color: var(--text); }

a:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.nav-links a.active { color: var(--accent); }

.section-title { text-wrap: balance; }
.hero-sub, .section-sub, .bento-cell p, .process-step p { text-wrap: pretty; }

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(120% 120% at 70% 25%, #000 25%, transparent 78%);
  mask-image: radial-gradient(120% 120% at 70% 25%, #000 25%, transparent 78%);
  pointer-events: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px 24px 28px;
    background: var(--menu-surface);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
  }
  .nav-links.open { visibility: visible; pointer-events: auto; transform: translateY(0); }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 10px 0; font-size: 17px; }
  .nav-links .nav-cta { margin-top: 8px; }

  .hero { grid-template-columns: 1fr; }
  .hero-visual { height: clamp(300px, 60vw, 420px); }
  .bento { grid-template-columns: 1fr; }
  .bento > .bento-cell:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .process { grid-template-columns: 1fr 1fr; }
  .product { gap: 28px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: 1fr; }
  .footer-grid { gap: 32px; }
}
@media (max-width: 767px) {
  .product { grid-template-columns: 1fr; }
  .product-list { gap: 48px; }
  .product-content { padding-inline: 4px; }
  .product-wide .product-content { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .product-roadmap { padding: 24px; margin-top: 40px; }
}
@media (max-width: 520px) {
  .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .detail-row { grid-template-columns: 86px minmax(0, 1fr); }
  .detail-value { overflow-wrap: anywhere; }
  .hero { min-height: auto; }
  .hero-title { font-size: clamp(38px, 9vw, 46px); }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
}

/* ---------- Reduced motion ---------- */
@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;
  }
}
/* ---------- Accessible utilities and system theme ---------- */
.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: 20px; top: 10px; z-index: 70; padding: 12px 20px; background: var(--bg-card); color: var(--text); border: 1px solid var(--accent); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f8faf9;
    --bg-raised: #f0f4f2;
    --bg-card: #fdfefd;
    --line: rgba(20, 45, 34, 0.1);
    --line-strong: rgba(20, 45, 34, 0.2);
    --text: #152b21;
    --text-dim: #4d6157;
    --text-mute: #586d62;
    --accent: #16764f;
    --accent-strong: #105d3d;
    --accent-soft: rgba(22, 118, 79, 0.09);
    --nav-surface: rgba(248, 250, 249, 0.92);
    --menu-surface: #f8faf9;
    color-scheme: light;
  }
  .grain { opacity: 0.025; }
  .brand-mark { color: #34d399; }
  .logowall-row img { filter: brightness(0.42); opacity: 0.8; }
}
@media (prefers-reduced-motion: reduce) {
  .ht-line { opacity: 1; transform: none; }
  .product-link:hover > span[aria-hidden] { transform: none; }
}
