/* ============================================================
   cerlo.it — landing
   Mobile-first; tema chiaro/scuro da prefers-color-scheme.
   ============================================================ */

:root {
  color-scheme: light dark;

  --bg: #f7f8fc;
  --bg-alt: #eef0f9;
  --surface: #ffffff;
  --surface-2: #f9faff;
  --ink: #12173a;
  --body: #555c7d;
  --muted: #868ca8;
  --border: rgba(18, 23, 58, 0.08);
  --border-strong: rgba(18, 23, 58, 0.14);
  --brand: #2a3470;
  --brand-2: #4351c4;
  --accent: #7b61ff;
  --accent-2: #22b5d4;
  --tint: #e9ecfb;
  --on-brand: #ffffff;
  --grid: rgba(42, 52, 112, 0.07);
  --glow-1: rgba(99, 102, 241, 0.32);
  --glow-2: rgba(34, 181, 212, 0.22);
  --shadow-sm: 0 1px 2px rgba(18, 23, 58, 0.05), 0 4px 12px rgba(18, 23, 58, 0.04);
  --shadow-md: 0 2px 4px rgba(18, 23, 58, 0.04), 0 16px 40px rgba(42, 52, 112, 0.1);
  --shadow-lg: 0 4px 8px rgba(18, 23, 58, 0.04), 0 32px 64px rgba(42, 52, 112, 0.18);
  --header-bg: rgba(247, 248, 252, 0.72);

  --grad: linear-gradient(110deg, var(--brand-2) 0%, var(--accent) 50%, var(--accent-2) 100%);

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 64px;
  --gutter: clamp(20px, 5vw, 56px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0d1d;
    --bg-alt: #0e1226;
    --surface: #121731;
    --surface-2: #151b38;
    --ink: #eceefb;
    --body: #a5abca;
    --muted: #767c9d;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.13);
    --brand: #8d99ff;
    --brand-2: #8d99ff;
    --accent: #a18bff;
    --accent-2: #4fd1ea;
    --tint: rgba(141, 153, 255, 0.12);
    --on-brand: #0a0d1d;
    --grid: rgba(255, 255, 255, 0.045);
    --glow-1: rgba(99, 102, 241, 0.35);
    --glow-2: rgba(34, 181, 212, 0.18);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 32px 64px rgba(0, 0, 0, 0.5);
    --header-bg: rgba(10, 13, 29, 0.7);
  }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

a, button, summary {
  touch-action: manipulation;
}
button, .btn, summary, .nav-links a, .mobile-menu a {
  -webkit-user-select: none;
  user-select: none;
}

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

::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
.skip:focus { top: 12px; }

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

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--btn-bg);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 140ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms, border-color 200ms;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  --btn-bg: var(--brand);
  color: var(--on-brand);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 8px 24px -6px color-mix(in srgb, var(--brand) 60%, transparent);
}
.btn-ghost {
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }

.arrow {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset, 0 12px 32px -6px color-mix(in srgb, var(--brand) 75%, transparent); transform: translateY(-1px); }
  .btn-ghost:hover { border-color: color-mix(in srgb, var(--brand-2) 45%, transparent); }
  .btn:hover .arrow { transform: translateX(3px); }
  .btn:active { transform: scale(0.97); }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top);
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 250ms, box-shadow 250ms;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px -12px rgba(18, 23, 58, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
.brand { display: inline-flex; padding: 6px 0; color: var(--brand); }
@media (prefers-color-scheme: dark) { .brand { color: var(--ink); } }
.logo { height: 30px; width: 70px; }

.nav-links { display: none; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta { display: none; }

.menu-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.menu-btn span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 260ms var(--ease-out), top 260ms var(--ease-out);
}
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.menu-btn:active { background: var(--tint); }

.mobile-menu {
  position: absolute;
  inset: 100% 0 auto 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-height: calc(100dvh - var(--header-h) - env(safe-area-inset-top));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding-top: 8px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}
.mobile-menu a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 56px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:not(.btn):active { color: var(--brand-2); }
.mobile-menu .btn { margin-top: 20px; }

@media (prefers-reduced-motion: no-preference) {
  .mobile-menu:not([hidden]) { animation: menu-in 280ms var(--ease-out); }
  .mobile-menu:not([hidden]) a { animation: fade-up 360ms var(--ease-out) backwards; }
  .mobile-menu a:nth-child(2) { animation-delay: 30ms; }
  .mobile-menu a:nth-child(3) { animation-delay: 60ms; }
  .mobile-menu a:nth-child(4) { animation-delay: 90ms; }
  .mobile-menu a:nth-child(5) { animation-delay: 120ms; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  padding-top: clamp(40px, 8vw, 96px);
  padding-bottom: clamp(56px, 9vw, 120px);
}

.hero-bg {
  position: absolute;
  inset: calc(-1 * var(--header-h)) 0 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 30%, #000 30%, transparent 75%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.glow-1 {
  width: min(620px, 90vw); aspect-ratio: 1;
  top: -10%; left: -10%;
  background: var(--glow-1);
}
.glow-2 {
  width: min(520px, 80vw); aspect-ratio: 1;
  top: 10%; right: -15%;
  background: var(--glow-2);
}
@media (prefers-reduced-motion: no-preference) {
  .glow-1 { animation: drift 18s ease-in-out infinite alternate; }
  .glow-2 { animation: drift 22s ease-in-out infinite alternate-reverse; }
}
@keyframes drift {
  to { transform: translate3d(8%, 6%, 0) scale(1.08); }
}

.hero-inner {
  display: grid;
  gap: clamp(48px, 8vw, 72px);
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--body);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pill-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
}
.pill-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
}
@media (prefers-reduced-motion: no-preference) {
  .pill-dot::after { animation: ping 2s var(--ease-out) infinite; }
}
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

h1 {
  font-size: clamp(2.35rem, 1.2rem + 4.6vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 800;
  text-wrap: balance;
  max-width: 14ch;
}

.lead {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.65;
  color: var(--body);
  max-width: 34rem;
  text-wrap: pretty;
}

.cta-row {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 12px;
  margin-top: 4px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
  color: var(--muted);
}
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  background: color-mix(in srgb, #22c55e 16%, transparent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='m5.5 10.5 3 2.8 6-6.3' fill='none' stroke='%2316a34a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 12px no-repeat;
}

/* Hero visual */

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 540px;
  justify-self: center;
  padding: 0 0 28px;
}

.window {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.window::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 45%, transparent), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.window-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #e4646b; }
.dots i:nth-child(2) { background: #edb24a; }
.dots i:nth-child(3) { background: #54b98a; }
.url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 12px;
  font-family: var(--mono);
}
.url svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.window-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(18px, 4vw, 26px);
}
.window-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.w-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.w-title { font-size: clamp(15px, 3.6vw, 17px); font-weight: 650; letter-spacing: -0.01em; }
.status {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 600;
}
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .status i { animation: blink 1.6s ease-in-out infinite; }
}
@keyframes blink { 50% { opacity: 0.25; } }

.tasks { display: flex; flex-direction: column; gap: 10px; }
.task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
}
.task em {
  margin-left: auto;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.check {
  flex: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
}
.task.done { color: var(--ink); }
.task.done .check {
  border: 0;
  background: var(--brand-2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='m5.5 10.5 3 2.8 6-6.3' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 14px no-repeat;
}
.task.active {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--brand-2) 35%, transparent);
  background: var(--tint);
}
.task.active .check {
  border-color: var(--brand-2);
  border-right-color: transparent;
}
.task.active em { color: var(--brand-2); }
@media (prefers-reduced-motion: no-preference) {
  .task.active .check { animation: spin 1.1s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }

.progress { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.progress-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; color: var(--body); }
.progress-row b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.track { height: 8px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; }
.fill {
  height: 100%;
  width: 72%;
  border-radius: inherit;
  background: var(--grad);
}
@media (prefers-reduced-motion: no-preference) {
  .fill { animation: grow 1.6s 0.5s var(--ease-out) backwards; }
}
@keyframes grow { from { width: 8%; } }

.float {
  position: absolute;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.float-code {
  display: none;
  left: -56px;
  top: calc(100% - 76px);
  padding: 12px 16px;
  background: #0f1330;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c9cdf0;
}
.float-code pre { margin: 0; font: 500 12.5px/1.7 var(--mono); }
.c-k { color: #a18bff; }
.c-s { color: #4fd1ea; }
.c-c { color: #8a90b8; }
.c-ok { color: #4ade80; font-weight: 700; }

.float-toast {
  right: 12px;
  bottom: -8px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
}
.float-toast b { display: block; font-weight: 650; line-height: 1.3; }
.float-toast small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.toast-icon {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  background: color-mix(in srgb, #22c55e 15%, transparent);
}
.toast-icon svg { width: 18px; height: 18px; fill: none; stroke: #16a34a; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
  .float-toast { animation: float 6s ease-in-out infinite; }
  .float-code { animation: float 7s ease-in-out 1s infinite; }
}
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Tech marquee ---------- */

.stack {
  padding-block: 8px clamp(40px, 6vw, 72px);
  text-align: center;
}
.stack-label {
  margin-bottom: 18px;
  padding-inline: var(--gutter);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  flex: none;
  display: flex;
  gap: 12px;
  padding-right: 12px;
}
.marquee-track li {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
  color: var(--body);
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 40s linear infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; justify-content: center; }
  .marquee-track { flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); flex: 1; }
  .marquee-track[aria-hidden] { display: none; }
}
@keyframes marquee { to { transform: translateX(-100%); } }
@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 10vw, 128px); }
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(40px, 6vw, 64px);
}
.section-head-left { align-items: flex-start; text-align: left; margin-inline: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}
.section-sub {
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  color: var(--body);
  max-width: 620px;
  text-wrap: pretty;
}
.link {
  color: var(--brand-2);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--brand-2) 35%, transparent);
}

h3 {
  font-size: clamp(1.15rem, 1.08rem + 0.3vw, 1.3rem);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ---------- Bento services ---------- */

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out), border-color 300ms;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 300ms;
  pointer-events: none;
}
.card > * { position: relative; }
.card p { color: var(--body); font-size: 15.5px; line-height: 1.65; max-width: 46ch; }

.card-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--brand-2);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand-2) 12%, transparent) inset;
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.tags li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 550;
  color: var(--body);
}

.card-accent {
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    var(--surface);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--brand-2) 25%, transparent);
  }
  .card:hover::before { opacity: 1; }
}

/* ---------- Steps ---------- */

.steps {
  position: relative;
  display: grid;
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  display: flex;
  gap: 20px;
  padding: clamp(24px, 4vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.step p { margin-top: 8px; color: var(--body); font-size: 15.5px; line-height: 1.65; }
.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 60%, transparent);
}

/* ---------- FAQ ---------- */

.faq-layout { display: grid; gap: 8px; }
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq details {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: border-color 250ms;
}
.faq details[open] { border-color: color-mix(in srgb, var(--brand-2) 30%, transparent); }
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 18px 22px;
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
  border-radius: inherit;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--tint) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M10 5v10M5 10h10' fill='none' stroke='%234351c4' stroke-width='2' stroke-linecap='round'/></svg>") center / 14px no-repeat;
  transition: transform 300ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  padding: 0 22px 22px;
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 62ch;
}
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] p { animation: fade-up 320ms var(--ease-out); }
}
@media (hover: hover) and (pointer: fine) {
  .faq summary:hover { color: var(--brand-2); }
}

/* ---------- Contact ---------- */

.contact-section { padding-top: 0; }

.contact {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 36px;
  padding: clamp(24px, 6vw, 72px);
  border-radius: var(--radius-xl);
  background: #141a44;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(123, 97, 255, 0.45), transparent 60%),
    radial-gradient(50% 70% at 100% 100%, rgba(34, 181, 212, 0.3), transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 40px 40px;
}

.contact-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.contact h2 { color: #fff; max-width: 19ch; }
.eyebrow-light { color: #b8b0ff; }
.contact-sub { color: #c6cae6; font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem); max-width: 34rem; }

.benefits { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.benefits li { display: flex; align-items: center; gap: 12px; color: #e1e4f6; font-size: 15.5px; font-weight: 500; }
.benefits li::before {
  content: "";
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12.5 10 17l9-10' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 13px no-repeat;
}

.mail-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-self: center;
  padding: clamp(22px, 4vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 60px rgba(5, 8, 30, 0.45);
}
.mail-label { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.mail-addr {
  font-size: clamp(17px, 4.6vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-2);
  overflow-wrap: anywhere;
}
.mail-actions { display: flex; gap: 10px; }
.mail-actions .btn { flex: 1; }
.copy-btn {
  flex: none;
  position: relative;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--body);
  transition: transform 120ms var(--ease-out), color 200ms;
}
.copy-btn:active { transform: scale(0.94); }
.copy-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity 200ms, transform 200ms var(--ease-out); }
.copy-btn .i-ok { position: absolute; opacity: 0; transform: scale(0.6); stroke: #16a34a; stroke-width: 2.4; }
.copy-btn.is-copied .i-copy { opacity: 0; transform: scale(0.6); }
.copy-btn.is-copied .i-ok { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .copy-btn:hover { color: var(--brand-2); }
}

.note { color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.copied {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 200ms, transform 200ms var(--ease-out);
  pointer-events: none;
}
.copied.show { opacity: 1; transform: none; }

/* ---------- Footer ---------- */

.footer {
  padding-top: clamp(56px, 8vw, 88px);
  padding-bottom: calc(32px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}
.footer-top {
  display: grid;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; color: var(--brand); }
@media (prefers-color-scheme: dark) { .footer-brand { color: var(--ink); } }
.footer-brand p { color: var(--body); font-size: 15px; max-width: 30ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--body); font-weight: 500; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.footer-contact a { font-size: 17px; font-weight: 650; overflow-wrap: anywhere; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 14px;
  color: var(--muted);
}
.to-top { font-weight: 600; color: var(--body); }
@media (hover: hover) and (pointer: fine) {
  .footer-nav a:hover, .footer-contact a:hover, .to-top:hover { color: var(--brand-2); }
}

/* ---------- Reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
    transition-delay: var(--d, 0ms);
  }
  .js [data-reveal].in { opacity: 1; transform: none; }
}

/* ============================================================
   ≥ 560px
   ============================================================ */
@media (min-width: 560px) {
  .cta-row { flex-direction: row; align-self: flex-start; flex-wrap: wrap; }
  .nav-cta { display: inline-flex; }
  .float-code { display: block; left: -20px; }
  .float-toast { right: -12px; bottom: 12px; }
  .hero-visual { padding-left: 24px; padding-bottom: 48px; }
}

/* ============================================================
   ≥ 768px
   ============================================================ */
@media (min-width: 768px) {
  :root { --header-h: 72px; }
  .logo { height: 34px; width: 80px; }

  .bento { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .card-wide { grid-column: span 2; }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .step { flex-direction: column; gap: 24px; }

  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
}

/* ============================================================
   ≥ 1024px
   ============================================================ */
@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 60%, transparent);
  }
  .nav-links a {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 550;
    color: var(--body);
    transition: color 200ms, background-color 200ms;
  }
  .nav-links a.active { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
  .menu-btn, .mobile-menu { display: none !important; }

  .hero-inner { grid-template-columns: 1.1fr 1fr; }
  .hero-visual { justify-self: end; padding-left: 40px; }
  .float-code { left: -16px; }

  .bento { grid-template-columns: repeat(3, 1fr); }
  .card-wide { grid-column: span 2; }

  .faq-layout { grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
  .faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }

  .contact { grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 56px; }
}

@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .nav-links a:hover { color: var(--ink); }
}

/* ============================================================
   ≥ 1280px
   ============================================================ */
@media (min-width: 1280px) {
  .hero-visual { padding-left: 56px; }
  .float-code { left: -8px; }
}
