/* CodeRipple Tech — company + product pages design system */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #0a0e14;
  --bg-2: #0e131c;
  --card: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e8edf4;
  --muted: #93a1b5;
  --teal: #22d3ce;
  --teal-soft: rgba(34, 211, 206, 0.14);
  --purple: #7d66fd;
  --purple-soft: rgba(125, 102, 253, 0.14);
  --sky: #38bdf8;
  --sky-soft: rgba(56, 189, 248, 0.14);
  /* Per-product accent. Defaults to Ripplebug teal; a product page
     re-skins itself by overriding these two in a <style> block. */
  --accent: var(--teal);
  --accent-soft: var(--teal-soft);
  --radius: 14px;
  --font:
    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* overflow-x on body alone doesn't stop horizontal panning on iOS Safari;
   the root element needs it too. clip > hidden (no scroll container). */
html { scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- nav ---- */
.snav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(10, 14, 20, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
}
.snav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; }
.snav-brand img { width: 26px; height: 26px; border-radius: 7px; }
.snav-brand-main { display: flex; align-items: center; gap: 10px; }
.snav-by { font-size: 11px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.snav-by:hover { color: var(--text); }
.snav-brand, .snav-brand-main { white-space: nowrap; }
.snav-links { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 28px); font-size: 14px; color: var(--muted); }
.snav-links a { white-space: nowrap; }
.snav-links a:hover { color: var(--text); }
@media (max-width: 1060px) {
  .snav-by { display: none; }
  .snav-links { gap: clamp(10px, 1.8vw, 20px); font-size: 13.5px; }
}
@media (max-width: 720px) {
  /* keep brand + CTA on small screens; section anchors are reachable by scrolling */
  .snav-links a:not(.btn) { display: none; }
  .snav-by { display: none; }
}
@media (max-width: 420px) {
  .snav { padding: 12px 14px; gap: 10px; }
  .snav-brand { font-size: 15px; white-space: nowrap; }
  .snav .btn { padding: 8px 12px; font-size: 13px; white-space: nowrap; }
}
/* long CTA labels: .cta-full shows normally, .cta-short takes over on tiny screens */
.cta-short { display: none; }
@media (max-width: 420px) {
  .cta-full { display: none; }
  .cta-short { display: inline; }
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--card-border); transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-teal { background: var(--accent); color: #04211f; border-color: transparent; }
.btn-teal:hover { box-shadow: 0 8px 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-purple { background: var(--purple); color: #fff; border-color: transparent; }
.btn-purple:hover { box-shadow: 0 8px 30px rgba(125, 102, 253, 0.35); }
.btn-sky { background: var(--sky); color: #06202e; border-color: transparent; }
.btn-sky:hover { box-shadow: 0 8px 30px rgba(56, 189, 248, 0.35); }
.btn-ghost { background: var(--card); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }

/* ---- hero ---- */
.hero {
  position: relative; text-align: center;
  padding: clamp(72px, 12vh, 140px) 20px clamp(56px, 9vh, 110px);
  isolation: isolate; overflow: hidden;
}
/* Spotlights: soft radial glow with real falloff — never a flat wash.
   radial fill + heavy blur + screen blend keeps the dark bg's depth. */
.orb { position: absolute; border-radius: 50%; z-index: -1; pointer-events: none; mix-blend-mode: screen; filter: blur(110px); }
.orb-teal {
  width: min(430px, 56vw); height: min(430px, 56vw); opacity: 0.3;
  background: radial-gradient(circle at 38% 38%, color-mix(in srgb, var(--accent) 90%, white), color-mix(in srgb, var(--accent) 45%, transparent) 45%, transparent 72%);
  top: -140px; left: 6%; animation: drift 18s ease-in-out infinite alternate;
}
.orb-purple {
  width: min(470px, 60vw); height: min(470px, 60vw); opacity: 0.22;
  background: radial-gradient(circle at 60% 40%, var(--purple), color-mix(in srgb, var(--purple) 40%, transparent) 48%, transparent 72%);
  top: -110px; right: 4%; animation: drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(50px, 44px) scale(1.1); }
}
@media (max-width: 720px) {
  .orb { filter: blur(80px); }
  .orb-teal { width: 240px; height: 240px; opacity: 0.22; }
  .orb-purple { width: 260px; height: 260px; opacity: 0.16; }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 75%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--accent) 55%, white);
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow.purple { color: #a99bff; background: var(--purple-soft); border-color: rgba(125, 102, 253, 0.3); }
h1.display {
  font-size: clamp(34px, 6vw, 64px); line-height: 1.06;
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 20px;
}
.grad-teal { background: linear-gradient(92deg, var(--accent), color-mix(in srgb, var(--accent) 55%, white) 60%, var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-purple { background: linear-gradient(92deg, var(--purple), #b4a7ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lede { max-width: 640px; margin: 0 auto 34px; color: var(--muted); font-size: clamp(15px, 2vw, 18.5px); }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1.display, .hero .lede, .hero .hero-ctas, .hero .hero-note {
    opacity: 0; transform: translateY(16px);
    animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .hero h1.display { animation-delay: 0.08s; }
  .hero .lede { animation-delay: 0.16s; }
  .hero .hero-ctas { animation-delay: 0.24s; }
  .hero .hero-note { animation-delay: 0.32s; }
  @keyframes heroIn { to { opacity: 1; transform: none; } }
}

/* ---- sections ---- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: clamp(48px, 8vh, 96px) 0; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto clamp(32px, 5vh, 56px); }
.section-head h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.section-head p { color: var(--muted); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb { animation: none; }
  .marquee-track { animation: none; }
}

/* ---- product cards (company page) ---- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.product {
  position: relative; border-radius: var(--radius);
  border: 1px solid var(--card-border); background: var(--card);
  padding: 30px; overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.product:hover { transform: translateY(-4px); }
.product.teal:hover { border-color: rgba(34, 211, 206, 0.4); box-shadow: 0 18px 60px rgba(34, 211, 206, 0.12); }
.product.purple:hover { border-color: rgba(125, 102, 253, 0.4); box-shadow: 0 18px 60px rgba(125, 102, 253, 0.12); }
.product.sky:hover { border-color: rgba(56, 189, 248, 0.4); box-shadow: 0 18px 60px rgba(56, 189, 248, 0.12); }
.product-logo { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px; }
.product h3 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 4px; }
.product .tag { font-size: 12.5px; font-weight: 600; margin-bottom: 12px; }
.product.teal .tag { color: var(--teal); }
.product.purple .tag { color: #a99bff; }
.product.sky .tag { color: var(--sky); }
.product p { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; }
.product .plinks { display: flex; gap: 10px; flex-wrap: wrap; }
.product-shot { margin-top: 22px; border-radius: 10px; border: 1px solid var(--card-border); }

/* ---- browser frame ---- */
.browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--card-border); background: var(--bg-2); box-shadow: 0 40px 100px rgba(0,0,0,0.5); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--card-border); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.browser-bar span:first-child { background: #ff5f57; } .browser-bar span:nth-child(2) { background: #febc2e; } .browser-bar span:nth-child(3) { background: #28c840; }
.browser-bar .url {
  margin-left: 10px; flex: 1; max-width: 340px;
  font-size: 11.5px; color: var(--muted);
  background: rgba(255,255,255,0.05); border-radius: 6px; padding: 3px 12px;
  width: auto; height: auto;
}

/* ---- features grid ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature {
  border: 1px solid var(--card-border); border-radius: var(--radius);
  background: var(--card); padding: 24px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.feature { position: relative; overflow: hidden; transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, opacity 0.7s ease; }
.feature::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 45%, white));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature:hover::after { transform: scaleX(1); }
.feature:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
  background: rgba(255,255,255,0.05);
  transform: translateY(-4px);
  box-shadow: 0 18px 50px color-mix(in srgb, var(--accent) 9%, transparent);
}
.feature .fi { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.feature:hover .fi { transform: translateY(-2px) scale(1.08); box-shadow: 0 0 26px 4px color-mix(in srgb, var(--accent) 30%, transparent); }
.features .reveal:nth-child(3n + 2) { transition-delay: 0.08s; }
.features .reveal:nth-child(3n + 3) { transition-delay: 0.16s; }
.feature .fi {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px;
}
.feature .fi svg { width: 18px; height: 18px; }
.feature h4 { font-size: 16px; margin-bottom: 6px; letter-spacing: -0.01em; }
.feature p { font-size: 13.5px; color: var(--muted); }

/* ---- split rows (screenshot + copy) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.split.flip > .split-copy { order: 2; }
.split-copy h3 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.02em; margin-bottom: 12px; }
.split-copy p { color: var(--muted); margin-bottom: 14px; }
.split-copy ul { list-style: none; }
.split-copy li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: 14.5px; padding: 4px 0; }
.split-copy li::before { content: "→"; color: var(--accent); font-weight: 700; }
@media (max-width: 860px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip > .split-copy { order: 0; } }

/* ---- logo marquee ---- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 26s linear infinite; padding: 8px 0; }
@keyframes scroll { to { transform: translateX(-50%); } }
.mlogo { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.mlogo svg { width: 20px; height: 20px; }

/* ---- numbered steps ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step {
  border: 1px solid var(--card-border); border-radius: var(--radius);
  background: var(--card); padding: 26px;
}
.step-num {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: 15px; margin-bottom: 14px;
}
.step h4 { font-size: 16px; margin-bottom: 6px; letter-spacing: -0.01em; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ---- pricing ---- */
.billing-toggle {
  display: inline-flex; gap: 4px; padding: 4px;
  border: 1px solid var(--card-border); border-radius: 999px; background: var(--card);
}
.billing-toggle button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: 600 13.5px var(--font); padding: 8px 18px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.billing-toggle button.active { background: var(--accent-soft); color: var(--accent); }
.billing-save {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent);
  padding: 2px 8px; border-radius: 999px;
}
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: 920px; margin: 0 auto; }
.price-card {
  position: relative; border: 1px solid var(--card-border); border-radius: var(--radius);
  background: var(--card); padding: 30px 28px;
}
.price-card.popular {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 18px 60px color-mix(in srgb, var(--accent) 12%, transparent);
}
.price-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--accent); color: var(--bg); padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 15px; font-weight: 600; color: var(--muted); }
.price-amount { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 0; }
.price-period { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.price-list { list-style: none; display: grid; gap: 8px; }
.price-list li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: 14px; }
.price-list li::before { content: "✓"; color: var(--accent); font-weight: 700; }

/* ---- code block ---- */
.codeblock {
  background: var(--bg-2); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 18px 20px; overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.6; color: var(--text);
  white-space: pre; margin: 0;
}
.codeblock .ck { color: var(--accent); }
.codeblock .cm { color: var(--muted); }

/* ---- CTA band ---- */
.cta-band {
  text-align: center; border-radius: 20px; padding: clamp(40px, 7vh, 72px) 24px;
  border: 1px solid var(--card-border);
  background:
    radial-gradient(ellipse 60% 120% at 20% 0%, var(--accent-soft), transparent 60%),
    radial-gradient(ellipse 60% 120% at 85% 100%, var(--purple-soft), transparent 60%),
    var(--card);
}
.cta-band h2 { font-size: clamp(24px, 4vw, 38px); letter-spacing: -0.02em; margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; }

/* ---- footer ---- */
.sfooter {
  border-top: 1px solid var(--card-border);
  padding: 34px clamp(16px, 4vw, 48px);
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 13.5px;
}
.sfooter a:hover { color: var(--text); }
.sfooter .cols { display: flex; gap: 22px; flex-wrap: wrap; }

/* ---- legal pages ---- */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h1 { font-size: 32px; letter-spacing: -0.02em; margin-bottom: 6px; }
.legal .date { color: var(--muted); font-size: 13.5px; margin-bottom: 32px; }
.legal h2 { font-size: 20px; margin: 30px 0 10px; letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal p { margin: 8px 0; }
.legal strong { color: var(--text); }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; color: var(--text);
  background: var(--card); border: 1px solid var(--card-border);
  padding: 1px 6px; border-radius: 6px;
}

/* RippleSnap blue (added with the /ripplesnap/ page) */
.btn-blue { background: linear-gradient(120deg, #298cff, #38d2f2); color: #04131f; border-color: transparent; font-weight: 700; }
.btn-blue:hover { box-shadow: 0 8px 30px rgba(41, 140, 255, 0.4); }
.product.blue:hover { border-color: rgba(41, 140, 255, 0.4); box-shadow: 0 18px 60px rgba(41, 140, 255, 0.12); }
.product.blue .tag { color: #5aa8ff; }

/* ---- hero product launcher (company page) ---- */
.product-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px 10px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--fg); font-weight: 600; font-size: 14.5px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  animation: chipIn 0.6s ease backwards;
}
.chip img { width: 24px; height: 24px; border-radius: 7px; }
.chip:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.08); }
.chip-blue:hover { border-color: rgba(41, 140, 255, 0.55); box-shadow: 0 10px 34px rgba(41, 140, 255, 0.22); }
.chip-teal:hover { border-color: rgba(34, 211, 206, 0.55); box-shadow: 0 10px 34px rgba(34, 211, 206, 0.22); }
.chip-purple:hover { border-color: rgba(125, 102, 253, 0.55); box-shadow: 0 10px 34px rgba(125, 102, 253, 0.22); }
.chip-sky:hover { border-color: rgba(56, 189, 248, 0.55); box-shadow: 0 10px 34px rgba(56, 189, 248, 0.22); }
.chip:nth-child(1) { animation-delay: 0.1s; }
.chip:nth-child(2) { animation-delay: 0.18s; }
.chip:nth-child(3) { animation-delay: 0.26s; }
.chip:nth-child(4) { animation-delay: 0.34s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(10px); } }

/* ---- hero ripple rings ---- */
.ripples { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; pointer-events: none; }
.ripples i {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  border: 1px solid rgba(34, 211, 206, 0.22);
  animation: rippleOut 8s linear infinite backwards;
}
.ripples i:nth-child(2) { border-color: rgba(125, 102, 253, 0.18); animation-delay: 2.66s; }
.ripples i:nth-child(3) { animation-delay: 5.33s; }
@keyframes rippleOut {
  from { transform: scale(0.22); opacity: 0; }
  14% { opacity: 1; }
  to { transform: scale(1.4); opacity: 0; }
}

/* ---- animated headline gradient ---- */
.grad-anim { background-size: 220% 100%; animation: gradShift 7s ease-in-out infinite alternate; }
@keyframes gradShift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* ---- product grid: balanced 2-up, equal heights, accent hairline ---- */
.product { display: flex; flex-direction: column; }
.product .plinks { margin-top: auto; }
.product p { margin-bottom: 24px; }
@media (min-width: 861px) { .products { grid-template-columns: 1fr 1fr; } }
.product::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--hairline, transparent), transparent 70%);
  opacity: 0.55; transition: opacity 0.25s ease;
}
.product:hover::before { opacity: 1; }
.btn-green { background: linear-gradient(120deg, #34d399, #5eead4); color: #042016; border-color: transparent; font-weight: 700; }
.btn-green:hover { box-shadow: 0 8px 30px rgba(52, 211, 153, 0.4); }
.product.green:hover { border-color: rgba(52, 211, 153, 0.4); box-shadow: 0 18px 60px rgba(52, 211, 153, 0.12); }
.product.green .tag { color: #34d399; }
.chip-green:hover { border-color: rgba(52, 211, 153, 0.55); box-shadow: 0 10px 34px rgba(52, 211, 153, 0.22); }
.product.green { --hairline: #34d399; }
.product.blue { --hairline: #298cff; }
.product.teal { --hairline: #22d3ce; }
.product.purple { --hairline: #7d66fd; }
.product.sky { --hairline: #38bdf8; }
.product-logo { transition: transform 0.25s ease; }
.product:hover .product-logo { transform: scale(1.07); }

@media (prefers-reduced-motion: reduce) {
  .chip, .grad-anim { animation: none; }
  .ripples i { animation: none; opacity: 0; }
}

/* ---- soft hero-to-page transition (no hard seam) ---- */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 170px;
  background: linear-gradient(180deg, rgba(10, 14, 20, 0), var(--bg));
  z-index: -1; pointer-events: none;
}

/* ---- nav products dropdown: nav stays compact no matter how many products ---- */
.nav-drop { position: relative; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer; padding: 8px 10px;
  font: inherit; font-size: 14.5px; color: var(--muted);
  transition: color 0.2s ease;
}
.nav-drop-btn:hover { color: var(--text); }
.nav-drop-btn svg { transition: transform 0.2s ease; }
.nav-drop.open .nav-drop-btn { color: var(--text); }
.nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 264px;
  padding: 8px; border-radius: 14px;
  background: rgba(14, 19, 28, 0.94); border: 1px solid var(--card-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.nav-drop.open .nav-drop-menu { opacity: 1; transform: none; pointer-events: auto; }
.nav-drop-menu a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 9px;
  color: var(--text); font-size: 14px; font-weight: 600;
  transition: background 0.15s ease;
}
.nav-drop-menu a:hover { background: rgba(255, 255, 255, 0.06); }
.nav-drop-menu a img { width: 26px; height: 26px; border-radius: 7px; }
.nav-drop-menu a small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
@media (max-width: 720px) {
  .snav .nav-drop-menu a { display: flex; }
}

/* ---- structured footer ---- */
.sfooter { display: block; padding: 56px clamp(16px, 4vw, 48px) 30px; }
.footer-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--text); }
.footer-brand-link img { width: 30px; height: 30px; border-radius: 8px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin-top: 12px; max-width: 280px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.footer-col a { color: var(--muted); font-size: 14px; width: fit-content; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-base {
  max-width: 1080px; margin: 40px auto 0; padding-top: 22px;
  border-top: 1px solid var(--card-border);
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  font-size: 13px;
}
.footer-base a:hover { color: var(--text); }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
