/* Advanced Agentics — monochrome, dark-first */
:root {
  --bg: #030303;
  --bg-2: #0a0a0a;
  --panel: rgba(255, 255, 255, 0.025);
  --panel-2: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --fg: #f4f4f2;
  --fg-2: rgba(244, 244, 242, 0.66);
  --fg-3: rgba(244, 244, 242, 0.42);
  --live: #e8ffe9;
  --radius: 18px;
  --wrap: 1200px;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.6 var(--sans); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--fg); outline-offset: 3px; border-radius: 6px; }

/* film grain + faint grid across the whole page */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.35;
}
body::after {
  content: ''; position: fixed; inset: -50%; pointer-events: none; z-index: 100; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, footer { position: relative; z-index: 1; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(var(--wrap), 100% - 64px); } }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 12px var(--fg); }

/* ---------- buttons ---------- */
.btn {
  --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; cursor: pointer; font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { border-color: var(--fg-2); }
.btn:active { transform: scale(0.98); }
.btn-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-solid:hover { background: #fff; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), 0 8px 40px rgba(255, 255, 255, 0.18); }
.btn .arr { transition: transform 0.25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.nav.scrolled, .nav.open { background: rgba(3, 3, 3, 0.72); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.nav-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; }
.brand small { display: block; font: 500 10px/1 var(--mono); letter-spacing: 0.14em; color: var(--fg-3); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--fg-2); transition: color 0.2s, background 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); background: var(--panel-2); }
.nav-links .btn { --h: 38px; margin-left: 10px; padding: 0 16px; font-size: 14px; color: var(--bg); }
.nav-links .btn:hover { background: #fff; color: var(--bg); }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--fg); margin: 4px auto; transition: transform 0.3s var(--ease); }
.nav.open .nav-toggle span:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav.open .nav-toggle span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px;
    background: rgba(3, 3, 3, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity 0.25s, transform 0.25s var(--ease); }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 14px 12px; font-size: 16px; border-radius: 12px; }
  .nav-links .btn { margin: 10px 0 0; --h: 48px; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: center; }
.hero-field { position: relative; aspect-ratio: 1; width: 100%; max-width: 620px; justify-self: end; touch-action: pan-y; }
.hero-field canvas { width: 100%; height: 100%; cursor: crosshair; }
.hero-field::after { content: ''; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 65%); pointer-events: none; filter: blur(20px); }
.field-hud { position: absolute; font: 500 10.5px/1.5 var(--mono); letter-spacing: 0.12em; color: var(--fg-3); text-transform: uppercase; pointer-events: none; }
.field-hud.tl { top: 8%; left: 2%; }
.field-hud.br { bottom: 8%; right: 2%; text-align: right; }
.field-hud b { color: var(--fg-2); font-weight: 500; }

.hero h1 { font-size: clamp(44px, 6.2vw, 88px); line-height: 0.94; letter-spacing: -0.055em; font-weight: 600; margin: 22px 0 22px; }
.hero h1 .dim { color: var(--fg-3); }
.rot { display: inline-block; transition: opacity 0.38s var(--ease), transform 0.38s var(--ease), filter 0.38s var(--ease); }
.rot.out { opacity: 0; transform: translateY(0.18em); filter: blur(6px); }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--fg-2); max-width: 32em; margin: 0 0 34px; text-wrap: pretty; }

.hero-prompt { position: relative; display: flex; align-items: center; gap: 8px; max-width: 560px; padding: 7px 7px 7px 20px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: border-color 0.25s, box-shadow 0.25s; }
.hero-prompt:focus-within { border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.05), 0 20px 60px rgba(0, 0, 0, 0.6); }
.hero-prompt .spark { width: 18px; height: 18px; flex: none; opacity: 0.7; }
.hero-prompt input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font-size: 16px; }
.hero-prompt input::placeholder { color: var(--fg-3); }
.hero-prompt .btn { --h: 44px; }
.hero-ideas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
  font-size: 13px; color: var(--fg-2); cursor: pointer; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.chip:hover { border-color: var(--line-2); color: var(--fg); background: var(--panel-2); }
.hero-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-scroll i { width: 1px; height: 38px; background: linear-gradient(var(--fg-2), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 960px) {
  .hero { padding-top: 104px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-field { position: absolute; top: 60px; right: -22%; width: 92vw; max-width: none; opacity: 0.45; z-index: 0; }
  .hero-copy { position: relative; z-index: 1; }
  .field-hud { display: none; }
}
@media (max-width: 560px) {
  .hero-prompt { flex-wrap: wrap; border-radius: 22px; padding: 8px; }
  .hero-prompt .spark { display: none; }
  .hero-prompt input { padding: 0 10px; flex-basis: 100%; }
  .hero-prompt .btn { width: 100%; }
  .hero-scroll { display: none; }
}

/* ---------- marquee ---------- */
.marquee { position: relative; border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: slide 38s linear infinite; }
.marquee span { font: 500 13px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2); display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee span::after { content: '◇'; color: var(--fg-3); }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- sections ---------- */
section.block { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.sec-head { display: grid; grid-template-columns: 200px 1fr; gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); align-items: start; }
.sec-head h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; margin: 0 0 18px; max-width: 14em; }
.sec-head p { color: var(--fg-2); font-size: 18px; margin: 0; max-width: 36em; }
.sec-num { padding-top: 10px; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; gap: 14px; } .sec-num { padding: 0; } }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- work ---------- */
.work { display: grid; gap: 22px; }
.product { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; border-radius: 28px; border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; isolation: isolate; }
.product + .product { margin-top: 0; }
.product-copy { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 2; }
.product-copy h3 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1; letter-spacing: -0.045em; margin: 0; font-weight: 600; }
.product-copy > p { color: var(--fg-2); margin: 0; max-width: 30em; font-size: 17px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font: 500 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-2); }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(232, 255, 233, 0.12), 0 0 14px var(--live); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: auto; padding-top: 20px; gap: 16px; }
.stats b { display: block; font-size: 26px; letter-spacing: -0.03em; font-weight: 600; }
.stats span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--fg-3); }
@media (max-width: 560px) { .stats b { font-size: 19px; } .stats span { font-size: 12px; } }
.product-links { display: flex; flex-wrap: wrap; gap: 10px; }
.product-visual { position: relative; display: grid; place-items: center; padding: 40px; perspective: 1100px; border-left: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 255, 255, 0.07), transparent 60%); }
.product-visual::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 70%); opacity: 0.5; }
@media (max-width: 900px) {
  .product { grid-template-columns: 1fr; min-height: 0; }
  .product-visual { border-left: 0; border-top: 1px solid var(--line); padding: 36px 16px; }
  .product.flip .product-visual { order: 2; }
}
.product.flip .product-copy { order: 2; }
.product.flip .product-visual { border-left: 0; border-right: 1px solid var(--line); }
@media (max-width: 900px) { .product.flip .product-visual { border-right: 0; } }

/* tilting phone */
.phone { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%; position: relative; width: min(290px, 74vw); aspect-ratio: 9 / 19.5; border-radius: 46px; padding: 10px;
  background: linear-gradient(145deg, #2a2a2a, #0b0b0b 40%, #1a1a1a); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 120px rgba(255, 255, 255, 0.06);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform 0.5s var(--ease); }
.phone:hover { transition: transform 0.08s linear; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #000; }
.phone-screen > img, .phone-screen > video { width: 100%; height: 100%; object-fit: cover; }
.phone::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.22), transparent 45%); mix-blend-mode: soft-light; }
.phone .notch { position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%); background: #000; border-radius: 20px; z-index: 3; }

.product-visual > * { position: relative; z-index: 1; }
.pv-bg { position: absolute !important; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0 !important; filter: grayscale(1) brightness(0.42) contrast(1.1); }
.cc-visual::after { content: ''; position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse at 50% 55%, rgba(3, 3, 3, 0.1), rgba(10, 10, 10, 0.92) 75%); }
.pv-caption { position: absolute !important; bottom: 16px; left: 0; right: 0; text-align: center; font-size: 10px; z-index: 2 !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Caddie Coach: tracer synced to the swing video (same clip and path as caddiecoachai.com) */
.tracer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.tracer path { fill: none; stroke-linecap: round; }
.tr-ball { fill: #fff; opacity: 0; filter: drop-shadow(0 0 6px #ffb84d); }
.cc-top { position: absolute; top: 56px; left: 12px; right: 12px; z-index: 3; display: flex; justify-content: space-between; gap: 6px; }
.g-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 500 9.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); white-space: nowrap; }
.g-chip .rec { width: 6px; height: 6px; border-radius: 50%; background: #ff5a4a; box-shadow: 0 0 8px #ff5a4a; }
.cc-card { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3; padding: 14px 14px 12px; border-radius: 24px; background: rgba(7, 11, 9, 0.55); border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.cc-card.on { opacity: 1; transform: none; }
.cc-metrics { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 6px; }
.cc-metrics small { display: block; font: 500 8.5px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.cc-metrics strong { display: block; margin-top: 3px; font: 600 21px/1 var(--sans); letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.cc-metrics strong i { font: 500 9px var(--mono); font-style: normal; color: rgba(255, 255, 255, 0.55); margin-left: 2px; }
.cc-metrics .carry strong { background: linear-gradient(92deg, #ffe0b0, #ffb84d 40%, #ff6a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cc-say { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 11.5px; line-height: 1.35; color: rgba(255, 255, 255, 0.85);
  opacity: 0; transform: translateY(4px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.cc-say.on { opacity: 1; transform: none; }
.cc-say .spk { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #8be2b5, #52b283); color: #04140c; }
.cc-say .spk svg { width: 13px; height: 13px; }

/* Resolve: illustrative builder window (Resolve's own navy + champagne gold) */
.rz-badge { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #0c1322; border: 1px solid rgba(191, 164, 110, 0.45); color: #bfa46e; font: 600 24px/1 'Playfair Display', Georgia, serif; }
.rz-visual { background: radial-gradient(ellipse at 50% 60%, rgba(191, 164, 110, 0.1), transparent 60%); }
.rz-window { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 0%; width: min(560px, 100%); border-radius: 16px; overflow: hidden; background: #0c1322; border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 50px 90px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 120px rgba(191, 164, 110, 0.08); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.5s var(--ease); position: relative; }
.rz-window:hover { transition: transform 0.08s linear; }
.rz-window::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.12), transparent 45%); }
.rz-chrome { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.02); }
.rz-chrome i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.rz-chrome span { margin-left: 12px; flex: 1; text-align: center; font: 400 11px var(--mono); color: rgba(255, 255, 255, 0.45); padding: 5px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.25); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rz-body { display: grid; grid-template-columns: 0.85fr 1.15fr; min-height: 330px; }
.rz-side { padding: 16px 14px; border-right: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; gap: 10px; }
.rz-label { font: 500 9.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); display: flex; justify-content: space-between; }
.rz-label em { font-style: normal; color: #bfa46e; }
.rz-prompt { min-height: 96px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(191, 164, 110, 0.35); background: rgba(255, 255, 255, 0.03); font-size: 12.5px; line-height: 1.45; color: #faf8f5; }
.caret { display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -2px; background: #bfa46e; animation: blink 1s steps(1) infinite; }
.rz-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rz-file { display: flex; align-items: center; gap: 8px; font: 400 11.5px var(--mono); color: rgba(255, 255, 255, 0.75); opacity: 0.18; transition: opacity 0.35s; }
.rz-file::before { content: ''; width: 7px; height: 7px; border-radius: 2px; border: 1px solid rgba(255, 255, 255, 0.4); transition: background 0.3s, border-color 0.3s; }
.rz-file.on { opacity: 1; }
.rz-file.on::before { background: #bfa46e; border-color: #bfa46e; }
.rz-preview { position: relative; padding: 14px; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0 8px, transparent 8px 16px); }
.rz-site { height: 100%; border-radius: 10px; background: #faf8f5; color: #0c1322; overflow: hidden; display: flex; flex-direction: column; opacity: 0; transform: scale(0.97) translateY(8px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.rz-preview.on .rz-site { opacity: 1; transform: none; }
.rz-nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 9px; color: rgba(12, 19, 34, 0.6); }
.rz-nav b { font: 600 13px 'Playfair Display', Georgia, serif; color: #0c1322; }
.rz-hero { padding: 14px 14px 12px; background: linear-gradient(160deg, #e9e2d4, #faf8f5); }
.rz-hero small { font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: #8a7448; }
.rz-hero h4 { font: 600 22px/1.05 'Playfair Display', Georgia, serif; margin: 6px 0 10px; letter-spacing: -0.01em; }
.rz-btn { display: inline-block; font-size: 9px; padding: 6px 11px; border-radius: 999px; background: #0c1322; color: #faf8f5; }
.rz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 12px 12px; flex: 1; }
.rz-grid i { border-radius: 6px; background: linear-gradient(160deg, #d9ccb2, #bfa46e); min-height: 48px; }
.rz-grid i:nth-child(2) { background: linear-gradient(160deg, #1c2740, #0c1322); }
.rz-grid i:nth-child(3) { background: linear-gradient(160deg, #e9e2d4, #cbbd9c); }
@media (max-width: 520px) { .rz-body { grid-template-columns: 1fr; } .rz-side { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); } .rz-preview { min-height: 260px; } }

/* ---------- capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--line); gap: 1px; }
.cell { --mx: -999px; --my: -999px; position: relative; padding: 34px 30px 36px; background: var(--bg); display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.cell::before { content: ''; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.075), transparent 60%); pointer-events: none; }
.cell svg { width: 30px; height: 30px; stroke: var(--fg); fill: none; stroke-width: 1.3; }
.cell h3 { margin: 22px 0 0; font-size: 21px; letter-spacing: -0.02em; font-weight: 600; }
.cell p { margin: 0; color: var(--fg-2); font-size: 15px; }
.cell .mono { position: absolute; top: 30px; right: 28px; }
@media (max-width: 960px) { .caps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .caps { grid-template-columns: 1fr; } .cell { padding: 28px 24px; } }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.steps::before { content: ''; position: absolute; top: 19px; left: 20px; right: 20px; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--line-2) 70%, transparent); }
.step { position: relative; padding-right: 28px; }
.step-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--line-2); font: 500 12px var(--mono); position: relative; z-index: 1; margin-bottom: 26px; }
.step:first-child .step-dot { background: var(--fg); color: var(--bg); border-color: var(--fg); box-shadow: 0 0 30px rgba(255, 255, 255, 0.35); }
.step h3 { font-size: 22px; margin: 0 0 10px; letter-spacing: -0.02em; font-weight: 600; }
.step p { color: var(--fg-2); margin: 0; font-size: 15px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps::before { top: 20px; bottom: 20px; left: 19.5px; right: auto; width: 1px; height: auto; background: linear-gradient(var(--line-2), var(--line-2) 80%, transparent); }
  .step { padding: 0 0 0 64px; }
  .step-dot { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- assistant ---------- */
.assistant-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.assistant-copy h2 { font-size: clamp(38px, 5.2vw, 68px); line-height: 0.98; letter-spacing: -0.05em; margin: 18px 0 20px; font-weight: 600; }
.assistant-copy p { color: var(--fg-2); font-size: 18px; margin: 0 0 26px; max-width: 28em; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--fg-2); font-size: 15px; }
.checks li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; border: 1px solid var(--line-2);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.4L13 6.4' fill='none' stroke='%23f4f4f2' stroke-width='1.4'/%3E%3C/svg%3E") center / 18px no-repeat; }

.console { position: relative; border-radius: 26px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #0d0d0d, #050505); overflow: hidden;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; height: 600px; max-height: 80svh; }
.console::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(255, 255, 255, 0.55) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.4s; }
.console.busy::before { opacity: 1; animation: spin 2.4s linear infinite; }
@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.console-bar { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.console-bar .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: radial-gradient(circle at 35% 30%, #3a3a3a, #000); }
.console-bar .avatar svg { width: 18px; height: 18px; }
.console-bar strong { font-size: 15px; font-weight: 600; display: block; line-height: 1.2; }
.console-bar .mono { font-size: 10.5px; }
.console-bar .preview { margin-left: auto; font: 500 10px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 9px; border: 1px dashed var(--line-2); border-radius: 999px; color: var(--fg-3); }
.chat-log { flex: 1; overflow-y: auto; padding: 22px 20px 8px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.msg { display: flex; }
.msg-body { max-width: 86%; padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.55; }
.msg-body p { margin: 0 0 8px; } .msg-body p:last-child { margin-bottom: 0; }
.msg-body ul { margin: 6px 0 10px; padding-left: 18px; } .msg-body li { margin: 4px 0; }
.msg.ai .msg-body { background: var(--panel-2); border: 1px solid var(--line); border-top-left-radius: 6px; }
.msg.user { justify-content: flex-end; }
.msg.user .msg-body { background: var(--fg); color: var(--bg); border-top-right-radius: 6px; }
.chip-cta { margin-top: 12px; background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 500; }
.chip-cta:hover { background: #fff; color: var(--bg); }
.dots { display: inline-flex; gap: 5px; padding: 6px 2px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-2); animation: bob 1.1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: 0.15s; } .dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bob { 0%, 80%, 100% { transform: translateY(0); opacity: 0.4; } 40% { transform: translateY(-4px); opacity: 1; } }
.suggest[hidden] { display: none; }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 20px 14px; }
.chat-input { display: flex; align-items: flex-end; gap: 10px; margin: 0 14px 14px; padding: 8px 8px 8px 16px; border-radius: 20px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.03); transition: border-color 0.2s; }
.chat-input:focus-within { border-color: rgba(255, 255, 255, 0.45); }
.chat-input textarea { flex: 1; resize: none; border: 0; outline: 0; background: transparent; min-height: 40px; max-height: 140px; padding: 9px 0; font-size: 16px; line-height: 1.4; }
.chat-input textarea::placeholder { color: var(--fg-3); }
.send { width: 40px; height: 40px; flex: none; border-radius: 14px; border: 0; background: var(--fg); color: var(--bg); display: grid; place-items: center; cursor: pointer; transition: transform 0.2s, opacity 0.2s; }
.send:hover { transform: translateY(-1px); }
.send svg { width: 18px; height: 18px; }
.console.busy .send { opacity: 0.4; pointer-events: none; }
@media (max-width: 960px) { .assistant-wrap { grid-template-columns: 1fr; } .console { height: 560px; } }
@media (max-width: 480px) { .console { border-radius: 20px; height: 520px; } .console-bar .preview { display: none; } .msg-body { max-width: 92%; } }

/* ---------- contact / quote ---------- */
.contact { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 72px); }
.contact-aside h2 { font-size: clamp(38px, 5.2vw, 68px); line-height: 0.98; letter-spacing: -0.05em; margin: 18px 0 20px; font-weight: 600; }
.contact-aside p { color: var(--fg-2); font-size: 18px; margin: 0 0 30px; }
.contact-lines { display: grid; gap: 1px; border-top: 1px solid var(--line); }
.contact-lines a, .contact-lines div { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--fg-2); transition: color 0.2s, padding 0.3s var(--ease); }
.contact-lines a:hover { color: var(--fg); padding-left: 6px; }
.contact-lines .mono { color: var(--fg-3); }
form#quote { position: relative; border-radius: 26px; border: 1px solid var(--line); background: var(--bg-2); padding: clamp(22px, 3.4vw, 40px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-3); }
.field input, .field select, .field textarea { width: 100%; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.025); padding: 13px 15px; font-size: 16px; outline: 0; transition: border-color 0.2s, background 0.2s; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23999' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { background: #111; }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.045); }
.field ::placeholder { color: var(--fg-3); }
.radios { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.radios input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.radios label { font: 400 14px var(--sans); letter-spacing: 0; text-transform: none; color: var(--fg-2); padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); cursor: pointer; transition: all 0.2s; }
.radios input:checked + label { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.radios input:focus-visible + label { outline: 1.5px solid var(--fg); outline-offset: 3px; }
.chat-attached { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--line-2); font-size: 14px; color: var(--fg-2); }
.chat-attached[hidden] { display: none; }
.form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.form-foot small { color: var(--fg-3); font-size: 13px; }
.btn.sending { opacity: 0.6; }
.form-done, .form-error { grid-column: 1 / -1; }
.form-done { position: absolute; inset: 0; border-radius: inherit; background: var(--bg-2); display: grid; place-content: center; text-align: center; gap: 14px; padding: 30px; outline: none; }
.form-done[hidden], .form-error[hidden] { display: none; }
.form-done .ok { width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; box-shadow: 0 0 60px rgba(255, 255, 255, 0.15); }
.form-done h3 { font-size: 28px; letter-spacing: -0.03em; margin: 0; }
.form-done p { color: var(--fg-2); margin: 0 auto; max-width: 26em; }
.form-error { color: #ffb4b4; font-size: 14px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { form#quote { grid-template-columns: 1fr; } }

/* ---------- CTA band + footer ---------- */
.band { position: relative; text-align: center; padding: clamp(90px, 12vw, 160px) 0; overflow: hidden; border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(42px, 8vw, 120px); line-height: 0.92; letter-spacing: -0.06em; margin: 0 auto 30px; font-weight: 600; max-width: 11em; }
.band h2 span { background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, 0.25)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.band::before { content: ''; position: absolute; left: 50%; top: 100%; width: 1100px; height: 700px; transform: translate(-50%, -45%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.12), transparent); pointer-events: none; }
.band .orbit { position: absolute; left: 50%; top: 100%; width: 1000px; height: 1000px; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid var(--line); pointer-events: none; }
.band .orbit:nth-of-type(2) { width: 760px; height: 760px; }
footer { border-top: 1px solid var(--line); padding: 54px 0 40px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h4 { font: 500 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot a { color: var(--fg-2); font-size: 14px; transition: color 0.2s; }
.foot a:hover { color: var(--fg); }
.foot p { color: var(--fg-3); font-size: 14px; max-width: 24em; margin: 16px 0 0; }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 13px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* ---------- support page ---------- */
.hero-sm { min-height: 0; padding: 150px 0 80px; }
.hero-sm .hero-field { max-width: 460px; }
@media (max-width: 960px) { .hero-sm { padding: 120px 0 64px; } .hero-sm .hero-field { top: 40px; } }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.person { gap: 18px; padding: 32px 28px 30px; }
.person .mono { position: static; display: block; margin-top: 6px; }
.person h2 { margin: 0; font-size: 28px; letter-spacing: -0.03em; font-weight: 600; line-height: 1.1; }
.person p { flex: 1; }
.person-main { background: linear-gradient(180deg, #0e0e0e, var(--bg)); }
.initial { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font: 600 24px/1 var(--sans); letter-spacing: -0.02em;
  border: 1px solid var(--line-2); background: radial-gradient(circle at 35% 30%, #2e2e2e, #000 75%); box-shadow: 0 0 40px rgba(255, 255, 255, 0.08); }
.cell .initial svg { width: 30px; height: 30px; stroke: none; fill: currentColor; }
.email-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.025); min-width: 0; }
.email { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13.5px var(--mono); color: var(--fg); }
.email:hover { text-decoration: underline; text-underline-offset: 3px; }
.copy { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; font-size: 13px; color: var(--fg-2); transition: color 0.2s, border-color 0.2s, background 0.2s; }
.copy:hover { color: var(--fg); border-color: var(--line-2); }
.copy.done { color: var(--bg); background: var(--fg); border-color: var(--fg); }
.cell .copy svg { width: 15px; height: 15px; stroke: none; fill: none; }
.person .btn { align-self: flex-start; }
.cell .btn svg { width: 16px; height: 16px; stroke: none; fill: none; }
@media (max-width: 960px) { .people { grid-template-columns: 1fr; } }

.app-help { display: grid; gap: 12px; }
.app-row { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2); transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease); }
.app-row:hover { border-color: var(--line-2); background: #0f0f0f; transform: translateY(-2px); }
.app-row img, .app-row .rz-badge { flex: none; width: 48px; height: 48px; border-radius: 12px; }
.app-row strong { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.app-row div span { color: var(--fg-3); font-size: 14px; }
.app-row .go { margin-left: auto; white-space: nowrap; color: var(--fg-2); }
@media (max-width: 640px) { .app-row { flex-wrap: wrap; } .app-row .go { margin-left: 66px; } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: clamp(18px, 2vw, 22px); font-weight: 500; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font: 300 20px/1 var(--sans); color: var(--fg-2); transition: transform 0.3s var(--ease), background 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--panel-2); }
.faq details p { margin: -6px 0 24px; max-width: 46em; color: var(--fg-2); }
.faq details p a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--fg-3); }
@media (max-width: 480px) {
  .person { padding: 26px 20px; }
  .email { font-size: 13px; }
  .copy { width: 36px; padding: 0; justify-content: center; }
  .copy span { display: none; }
}
@media (max-width: 350px) { .email { font-size: 11px; letter-spacing: -0.02em; } .email-row { padding-left: 10px; } }

/* ---------- logo: "Cursor A" (caret A, text-cursor crossbar) ---------- */
.aa { fill: currentColor; }
.brand .aa { width: 28px; height: 28px; }
.brand > span { font-family: var(--mono); font-weight: 500; font-size: 15px; letter-spacing: -0.01em; }
.brand:hover .aa .cur, .console.busy .avatar .cur { animation: curblink 1.05s steps(1) infinite; }
.type-cur { display: inline-block; width: 0.42em; height: 0.11em; margin-left: 0.06em; background: currentColor; animation: curblink 1.05s steps(1) infinite; }
@keyframes curblink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .type-cur, .brand:hover .aa .cur, .console.busy .avatar .cur { animation: none; } }

/* ---------- form honeypot, legal links, policy pages ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot small a, .doc a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--fg-3); }
.legal-links { display: flex; gap: 18px; }
.legal-links a:hover { color: var(--fg); }
.doc-hero { padding: 150px 0 10px; }
.doc-hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.05em; font-weight: 600; margin: 18px 0 14px; }
.doc { max-width: 760px; padding-bottom: 110px; }
.doc > p:first-child { font-size: 18px; }
.doc h2 { font-size: 22px; letter-spacing: -0.02em; font-weight: 600; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--fg-2); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
