/* ==========================================================
   V2X Studio — feuille de style
   ========================================================== */

:root {
  --bg: #ffffff;
  --bg-2: #fafafa;
  --bg-3: #f4f4f5;
  --surface: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --line: #ebebeb;
  --line-2: #dcdcdf;
  --accent: #2f6bff;
  --accent-2: #7c5cff;
  --accent-soft: rgba(47, 107, 255, .1);
  --ok: #16a34a;
  --err: #dc2626;
  --invert-bg: #0a0a0a;
  --invert-ink: #fafafa;

  --sans: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 1px 1px rgba(0,0,0,.02), 0 8px 24px -8px rgba(0,0,0,.08);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.02), 0 24px 64px -16px rgba(0,0,0,.18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-2: #0a0a0a;
    --bg-3: #141414;
    --surface: #0a0a0a;
    --ink: #ededed;
    --ink-2: #c4c4c8;
    --muted: #8f8f95;
    --line: #1f1f1f;
    --line-2: #2e2e2e;
    --accent: #5b8cff;
    --accent-soft: rgba(91, 140, 255, .14);
    --invert-bg: #ededed;
    --invert-ink: #0a0a0a;
    --shadow: 0 0 0 1px rgba(255,255,255,.04), 0 8px 24px -8px rgba(0,0,0,.6);
    --shadow-lg: 0 0 0 1px rgba(255,255,255,.06), 0 24px 64px -16px rgba(0,0,0,.8);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[tabindex="-1"]:focus { outline: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.035em; line-height: 1.08; }
p { margin: 0; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.muted { color: var(--muted); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 10vw, 128px) 0; position: relative; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 16px; }

.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.kicker b { color: var(--accent); font-weight: 500; }

.section-head { display: grid; gap: 16px; max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head h2 { font-size: clamp(34px, 5vw, 56px); }
.section-head p { color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); max-width: 600px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 10px;
  background: var(--invert-bg); color: var(--invert-ink); border: 1px solid var(--invert-bg);
  font-weight: 500; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.98); }
.btn svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { opacity: 1; background: var(--bg-3); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn--lg { height: 50px; padding: 0 22px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--invert-bg); color: var(--invert-ink); display: grid; place-items: center; font-size: 12px; font-weight: 700; letter-spacing: -.04em; }
.nav { display: none; gap: 2px; margin-right: auto; }
.nav a { padding: 6px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); transition: color .15s, background .15s; }
.nav a:hover, .nav a.is-active { color: var(--ink); background: var(--bg-3); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .btn--ghost { display: none; }
.menu-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; background: none; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 14px; height: 1.5px; background: var(--ink); position: relative; transition: transform .25s var(--ease); }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -4.5px; } .menu-toggle span::after { top: 4.5px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(4.5px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-4.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: var(--bg);
  padding: 16px var(--gutter) 32px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a:not(.btn) { font-size: 22px; font-weight: 500; letter-spacing: -.02em; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 24px; }
.menu-open { overflow: hidden; }
@media (min-width: 900px) {
  .nav { display: flex; }
  .header-actions .btn--ghost { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vw, 112px) 0 0; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 38%; width: min(1100px, 120vw); height: 520px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(47,107,255,.18), transparent), radial-gradient(closest-side at 70% 60%, rgba(124,92,255,.14), transparent);
  filter: blur(40px);
}
.hero-inner { text-align: center; display: grid; justify-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 6px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.pill .avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--invert-bg); color: var(--invert-ink); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.pill .sep { width: 1px; height: 14px; background: var(--line-2); }
.hero h1 { font-size: clamp(42px, 7.2vw, 84px); letter-spacing: -.045em; line-height: 1.02; max-width: 15ch; margin: 24px 0 20px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--ink) 0%, var(--accent) 55%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(17px, 1.7vw, 19px); color: var(--muted); max-width: 580px; }
.hero-lead strong { color: var(--ink); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 28px; font-size: 13px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--ok); }

/* Showcase */
.showcase { position: relative; margin-top: clamp(48px, 7vw, 80px); width: 100%; max-width: 1080px; padding-bottom: 8%; }
.browser {
  border-radius: var(--r); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
}
.browser-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.browser-url { margin: 0 auto; transform: translateX(-20px); height: 22px; min-width: 40%; border-radius: 6px; background: var(--bg-3); font-family: var(--mono); font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; }
.browser-url svg { width: 10px; height: 10px; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone {
  position: absolute; right: -2%; bottom: 0; width: clamp(120px, 21%, 230px);
  border-radius: clamp(20px, 3vw, 34px); padding: clamp(5px, .7vw, 8px); background: #111;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, var(--shadow-lg);
}
.phone img { border-radius: clamp(15px, 2.4vw, 27px); aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; width: 100%; }
.showcase-tag {
  position: absolute; left: -1%; bottom: 16%; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow);
  font-size: 13px; text-align: left;
}
.showcase-tag b { display: block; font-weight: 600; }
.showcase-tag small { color: var(--muted); font-size: 12px; }
.showcase-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(22,163,74,.15); }
@media (max-width: 640px) { .showcase-tag { display: none; } .phone { right: 0; } }

/* Strip */
.strip { border-block: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); }
.strip-inner { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .strip-inner { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 28px 24px; border-right: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
@media (min-width: 800px) { .stat:nth-child(2n) { border-right: 1px solid var(--line); } .stat:last-child { border-right: 0; } }
@media (max-width: 799px) { .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.stat strong { display: block; font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- Work ---------- */
.cases { display: grid; gap: 24px; }
.case {
  display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
  transition: border-color .2s, box-shadow .3s;
}
.case:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
@media (min-width: 960px) { .case { grid-template-columns: 1fr 1.35fr; } .case--flip .case-body { order: 2; } }
.case-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.case-logo { font-weight: 700; font-size: 15px; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.case-logo i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 13px; color: #fff; }
.case h3 { font-size: clamp(26px, 3vw, 34px); }
.case p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.chips li { font-family: var(--mono); font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--bg-3); color: var(--ink-2); border: 1px solid var(--line); }
.case-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: auto; }
.case-facts div { background: var(--surface); padding: 14px 16px; }
.case-facts dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); }
.case-facts dd { margin: 2px 0 0; font-weight: 500; font-size: 14px; }
.case-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; }
.case-link svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.case:hover .case-link svg { transform: translate(2px, -2px); }
.case-visual { position: relative; padding: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0; display: flex; align-items: flex-end; min-height: 320px; overflow: hidden; }
.case-visual .browser { width: 100%; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; box-shadow: var(--shadow-lg); }
.case-visual .phone { right: 5%; bottom: -14%; width: 24%; }
.case-visual--fydelio { background: radial-gradient(120% 90% at 100% 0%, #d9f2ea 0%, #eef6f2 45%, var(--bg-2) 100%); }
.case-visual--ifl { background: #0b0b0b; }
.case-visual--ifl::before { content: "IF YOU KNOW, YOU KNOW."; position: absolute; left: 6%; top: 8%; font: 800 clamp(26px, 4vw, 52px)/0.9 var(--sans); letter-spacing: -.04em; color: rgba(255,255,255,.07); max-width: 8ch; }
.case-visual--ifl .browser { border-color: #262626; }
@media (prefers-color-scheme: dark) { .case-visual--fydelio { background: radial-gradient(120% 90% at 100% 0%, #0f3b31 0%, #0a1a16 50%, var(--bg-2) 100%); } }

.case--small { grid-template-columns: 1fr; }
@media (min-width: 960px) { .case--small { grid-template-columns: 1fr 1fr; } }
.case-visual--numapi { background: #fff; align-items: center; justify-content: center; padding: 32px; border-left: 1px solid var(--line); }
.case-visual--numapi img { max-height: 340px; width: auto; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile:nth-child(1) { grid-column: span 4; }
  .tile:nth-child(2) { grid-column: span 2; }
  .tile:nth-child(3) { grid-column: span 2; }
  .tile:nth-child(4) { grid-column: span 2; }
  .tile:nth-child(5) { grid-column: span 2; }
}
.tile {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden;
  display: flex; flex-direction: column; min-height: 360px;
}
.tile-visual { flex: 1; position: relative; background: var(--bg-2); border-bottom: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; padding: 24px; min-height: 200px; }
.tile-visual::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--line-2) 1px, transparent 1px); background-size: 16px 16px; opacity: .7; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%); }
.tile-visual > * { position: relative; }
.tile-body { padding: 22px 24px 24px; display: grid; gap: 6px; }
.tile-body h3 { font-size: 18px; letter-spacing: -.02em; }
.tile-body p { color: var(--muted); font-size: 15px; }

/* Design canvas */
.canvas { width: 100%; max-width: 560px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.frame { background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 14px; box-shadow: var(--shadow); position: relative; }
.frame-label { position: absolute; top: -20px; left: 0; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.frame--sel { outline: 1.5px solid var(--accent); outline-offset: 3px; }
.frame--sel::after { content: ""; position: absolute; right: -7px; bottom: -7px; width: 7px; height: 7px; background: #fff; border: 1.5px solid var(--accent); }
.wire-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.wire-nav b { width: 36px; height: 8px; border-radius: 4px; background: var(--ink); }
.wire-nav span { display: flex; gap: 6px; } .wire-nav span i { width: 18px; height: 5px; border-radius: 3px; background: var(--line-2); }
.wire-h { font-weight: 600; font-size: 17px; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 10px; }
.wire-l { height: 5px; border-radius: 3px; background: var(--line-2); margin-bottom: 6px; }
.wire-btn { display: inline-block; margin-top: 10px; height: 18px; width: 64px; border-radius: 5px; background: var(--accent); }
.spec { display: grid; gap: 14px; }
.type-spec { font-size: 40px; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.type-spec small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0; color: var(--muted); font-weight: 400; margin-top: 6px; }
.swatches { display: flex; gap: 6px; }
.swatches i { flex: 1; height: 34px; border-radius: 6px; border: 1px solid var(--line); }
.cursor { position: absolute; right: 22%; bottom: 18%; display: flex; align-items: flex-start; gap: 2px; animation: drift 6s ease-in-out infinite; }
.cursor svg { width: 16px; height: 16px; color: var(--accent); }
.cursor span { margin-top: 12px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 5px 5px 5px 2px; }
@keyframes drift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-24px,-12px); } }

/* Code editor */
.editor { width: 100%; max-width: 360px; border-radius: 10px; background: #0b0b0d; border: 1px solid #222; box-shadow: var(--shadow-lg); overflow: hidden; color: #d4d4d8; font-family: var(--mono); font-size: 12px; line-height: 1.75; }
.editor-tabs { display: flex; gap: 2px; padding: 8px 8px 0; background: #111114; border-bottom: 1px solid #222; }
.editor-tabs span { padding: 5px 10px; border-radius: 6px 6px 0 0; font-size: 11px; color: #71717a; }
.editor-tabs span.on { background: #0b0b0d; color: #e4e4e7; }
.editor pre { margin: 0; padding: 12px 14px; white-space: pre; overflow: hidden; }
.editor .ln { color: #3f3f46; display: inline-block; width: 18px; }
.tk-t { color: #7dd3fc; } .tk-a { color: #c4b5fd; } .tk-s { color: #86efac; } .tk-c { color: #52525b; } .tk-p { color: #f9a8d4; }
.caret { display: inline-block; width: 7px; height: 14px; background: #e4e4e7; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Lighthouse */
.gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: 100%; max-width: 340px; }
.gauge { display: grid; justify-items: center; gap: 8px; font-size: 11px; color: var(--muted); text-align: center; }
.gauge .ring { --p: 100; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--ok) calc(var(--p) * 1%), rgba(22,163,74,.14) 0); }
.gauge .ring b { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-family: var(--mono); font-size: 15px; font-weight: 500; color: var(--ok); }

/* SERP */
.serp { width: 100%; max-width: 340px; display: grid; gap: 10px; }
.serp-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13px; }
.serp-search svg { width: 14px; height: 14px; color: var(--muted); }
.serp-result { background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.serp-result .site { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.serp-result .site i { width: 20px; height: 20px; border-radius: 50%; background: var(--invert-bg); color: var(--invert-ink); font-size: 8px; font-weight: 700; font-style: normal; display: grid; place-items: center; }
.serp-result .site small { display: block; color: var(--muted); font-size: 11px; }
.serp-result .title { color: var(--accent); font-size: 15px; font-weight: 500; margin: 6px 0 4px; letter-spacing: -.01em; }
.serp-result .desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.serp-result .stars { color: #f59e0b; font-size: 12px; letter-spacing: 1px; }
.serp-faded { opacity: .45; transform: scale(.96); }

/* AI chat */
.chat { width: 100%; max-width: 340px; display: grid; gap: 10px; font-size: 13px; }
.bubble { padding: 10px 14px; border-radius: 14px; max-width: 85%; line-height: 1.45; }
.bubble--me { justify-self: end; background: var(--invert-bg); color: var(--invert-ink); border-bottom-right-radius: 4px; }
.bubble--ai { background: var(--surface); border: 1px solid var(--line-2); border-bottom-left-radius: 4px; box-shadow: var(--shadow); }
.bubble--ai b { display: flex; align-items: center; gap: 6px; font-size: 11px; font-family: var(--mono); color: var(--accent); margin-bottom: 4px; font-weight: 500; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }

/* ---------- About ---------- */
.about { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .about { grid-template-columns: .9fr 1.1fr; } }
.profile { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); }
.profile-cover { height: 120px; background: linear-gradient(120deg, #0a0a0a 0%, #1d2b5c 55%, var(--accent) 100%); position: relative; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 24px 24px; }
.profile-main { padding: 0 28px 28px; }
.profile-photo { width: 96px; height: 96px; border-radius: 50%; margin-top: -48px; position: relative; z-index: 1; border: 4px solid var(--surface); background: var(--invert-bg); color: var(--invert-ink); display: grid; place-items: center; font-size: 30px; font-weight: 600; letter-spacing: -.04em; overflow: hidden; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile h3 { font-size: 24px; margin-top: 16px; }
.profile-role { color: var(--muted); font-size: 15px; }
.profile-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.profile-list li { display: flex; align-items: center; gap: 10px; }
.profile-list svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.profile-links { display: flex; gap: 8px; margin-top: 22px; }
.about-text h2 { font-size: clamp(32px, 4.4vw, 50px); margin: 14px 0 20px; }
.about-text p { color: var(--ink-2); font-size: 17px; }
.about-text p + p { margin-top: 14px; }
.values { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 32px; }
@media (min-width: 600px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values div { background: var(--surface); padding: 18px; }
.values b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 4px; }
.values span { color: var(--muted); font-size: 14px; }

/* ---------- Process ---------- */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { background: var(--surface); padding: 28px 24px 32px; display: grid; gap: 10px; align-content: start; }
.step-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.step-when { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; }
.step h3 { font-size: 18px; letter-spacing: -.02em; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 16px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.price-from { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-bottom: 6px; }
.plan { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 20px; position: relative; }
.plan--featured { border-color: transparent; box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-lg); }
.plan-flag { position: absolute; top: -11px; left: 28px; font-size: 12px; font-weight: 500; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: #fff; }
.plan h3 { font-size: 16px; letter-spacing: -.01em; }
.plan-desc { color: var(--muted); font-size: 14px; margin-top: 4px; }
.price { font-size: 44px; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.price small { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.plan-list { list-style: none; padding: 20px 0 0; margin: 0; display: grid; gap: 10px; border-top: 1px solid var(--line); flex: 1; }
.plan-list li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.plan-list svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 2px; }

/* ---------- Booking ---------- */
.booking-wrap { display: grid; gap: clamp(32px, 5vw, 56px); }
@media (min-width: 1024px) { .booking-wrap { grid-template-columns: .8fr 1.2fr; align-items: start; } }
.booking-aside { display: grid; gap: 22px; }
@media (min-width: 1024px) { .booking-aside { position: sticky; top: calc(var(--header-h) + 32px); } }
.booking-aside h2 { font-size: clamp(34px, 4.6vw, 52px); }
.booking-aside > p { color: var(--muted); font-size: 17px; }
.contact-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.contact-list li + li { border-top: 1px solid var(--line); }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-size: 15px; font-weight: 500; }
.contact-list svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.contact-list a:hover { background: var(--bg-2); }

.booking { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.booking-progress { display: flex; border-bottom: 1px solid var(--line); padding: 0; margin: 0; }
.booking-progress li { list-style: none; flex: 1; padding: 14px 10px; font-size: 13px; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 8px; justify-content: center; position: relative; }
.booking-progress li b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 11px; font-weight: 600; font-family: var(--mono); }
.booking-progress li.is-current { color: var(--ink); }
.booking-progress li.is-current b { background: var(--invert-bg); color: var(--invert-ink); border-color: var(--invert-bg); }
.booking-progress li.is-done b { background: var(--accent); color: #fff; border-color: var(--accent); }
.booking-progress li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.booking-progress li.is-current::after { background: var(--ink); }
@media (max-width: 560px) { .booking-progress li span { display: none; } }

.booking-step { padding: clamp(20px, 4vw, 32px); display: none; }
.booking-step.is-active { display: block; animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } }
.booking-step h3 { font-size: 22px; letter-spacing: -.025em; margin-bottom: 4px; }
.step-sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

.choice-grid { display: grid; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center;
  padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.choice label:hover { border-color: var(--muted); }
.choice input:checked + label { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.choice input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice-title { font-weight: 600; font-size: 15px; }
.choice-meta { grid-column: 1; font-size: 13px; color: var(--muted); }
.choice-price { grid-row: 1 / span 2; grid-column: 2; font-weight: 600; font-size: 15px; font-family: var(--mono); }
.choice-price.free { color: var(--ok); }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.mode-grid .choice label { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 12px 6px; gap: 6px; font-size: 13px; font-weight: 500; }
.mode-grid svg { width: 20px; height: 20px; }
.field-label { display: block; font-family: var(--mono); font-size: 11px; text-transform: uppercase; color: var(--muted); margin: 24px 0 0; }

.cal-layout { display: grid; gap: 24px; }
@media (min-width: 680px) { .cal-layout { grid-template-columns: 1.15fr 1fr; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head strong { font-size: 16px; font-weight: 600; text-transform: capitalize; letter-spacing: -.01em; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.cal-nav button:disabled { opacity: .3; cursor: not-allowed; }
.cal-nav svg { width: 12px; height: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-dow { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 6px 0; }
.cal-day { aspect-ratio: 1; border-radius: 8px; border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 500; display: grid; place-items: center; position: relative; transition: background .12s, color .12s; font-variant-numeric: tabular-nums; }
.cal-day:not(:disabled):hover { background: var(--bg-3); }
.cal-day:disabled { color: var(--muted); opacity: .35; cursor: default; }
.cal-day.is-available { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.cal-day.is-selected { background: var(--accent); color: #fff; }
.cal-day.is-today { box-shadow: inset 0 0 0 1px var(--line-2); }
.slots-head { font-weight: 600; font-size: 15px; margin-bottom: 12px; min-height: 1.6em; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; max-height: 296px; overflow-y: auto; padding-right: 4px; }
.slot { height: 40px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); cursor: pointer; font-weight: 500; font-size: 14px; font-family: var(--mono); transition: all .12s; }
.slot:hover { border-color: var(--accent); color: var(--accent); }
.slot.is-selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.slots-empty { color: var(--muted); font-size: 14px; padding: 24px; border: 1px dashed var(--line-2); border-radius: var(--r); text-align: center; }
.tz-note { margin-top: 12px; font-size: 12px; color: var(--muted); font-family: var(--mono); }

.form-grid { display: grid; gap: 14px; }
@media (min-width: 600px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; min-height: 108px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.has-error input, .field.has-error textarea { border-color: var(--err); }
.field-error { font-size: 12px; color: var(--err); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 4px; }
.consent input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 1px; flex: none; }
.consent a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; }
.recap { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 20px; font-size: 14px; }
.recap strong { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.recap span { color: var(--muted); }
.recap button { justify-self: start; background: none; border: 0; padding: 0; color: var(--accent); font-weight: 500; font-size: 13px; cursor: pointer; margin-top: 4px; }
.booking-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px clamp(20px, 4vw, 32px); border-top: 1px solid var(--line); background: var(--bg-2); }
.booking-foot .hint { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.booking-foot .btns { display: flex; gap: 8px; margin-left: auto; }
.form-status { margin-top: 14px; font-size: 14px; padding: 10px 12px; border-radius: 8px; display: none; }
.form-status.is-error { display: block; background: rgba(220,38,38,.08); color: var(--err); }
.success { text-align: center; padding: clamp(32px, 6vw, 56px) clamp(20px, 4vw, 40px); }
.success-icon { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px; background: var(--ok); color: #fff; display: grid; place-items: center; animation: pop .5s var(--ease); }
.success-icon svg { width: 26px; height: 26px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.success h3 { font-size: 26px; letter-spacing: -.03em; margin-bottom: 8px; }
.success p { color: var(--muted); max-width: 440px; margin: 0 auto; }
.success .recap { text-align: left; max-width: 400px; margin: 24px auto; }
.success-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center; font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 24px; background: #0a0a0a; color: #fafafa;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 64px); text-align: center; display: grid; justify-items: center; gap: 20px;
  border: 1px solid #1f1f1f;
}
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%); }
.cta::after { content: ""; position: absolute; left: 50%; bottom: -60%; width: 80%; height: 100%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(47,107,255,.45), transparent); filter: blur(30px); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(34px, 5.6vw, 64px); letter-spacing: -.045em; max-width: 14ch; }
.cta p { color: #a1a1aa; font-size: 17px; max-width: 480px; }
.cta .btn { background: #fafafa; color: #0a0a0a; border-color: #fafafa; }

/* ---------- Footer ---------- */
.site-footer { padding: clamp(56px, 7vw, 80px) 0 28px; border-top: 1px solid var(--line); margin-top: clamp(80px, 10vw, 128px); }
.footer-grid { display: grid; gap: 32px; padding-bottom: 40px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-grid p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer-title { font-size: 13px; font-weight: 500; margin-bottom: 14px; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.footer-list a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom nav { display: flex; gap: 18px; }
.footer-bottom a:hover { color: var(--ink); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta { position: fixed; left: 16px; right: 16px; width: auto; bottom: 16px; z-index: 90; transform: translateY(160%); transition: transform .4s var(--ease); box-shadow: var(--shadow-lg); height: 48px; }
.sticky-cta.is-visible { transform: none; }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Pages simples ---------- */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(38px, 6vw, 64px); margin-top: 14px; letter-spacing: -.045em; }
.page-hero p { color: var(--muted); margin-top: 12px; }
.prose { max-width: 720px; padding: clamp(40px, 6vw, 64px) 0 clamp(64px, 8vw, 96px); }
.prose h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -.025em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 10px; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; margin: 10px 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.info-card { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.center-page { min-height: calc(100vh - var(--header-h) - 120px); display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.center-page h1 { font-size: clamp(44px, 8vw, 88px); letter-spacing: -.05em; margin: 18px 0 14px; }
.center-page p { color: var(--muted); max-width: 480px; margin: 0 auto 28px; font-size: 17px; }
.center-page .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.site-footer--slim { margin-top: 0; padding-top: 0; border-top: 0; }

@media (max-width: 480px) {
  .header-actions .btn:not(.btn--ghost) { display: none; }
  .case-visual { min-height: 240px; }
}
