/* Claude X Ecom — dark-tech design system (sales + thank-you) */
:root {
  color-scheme: dark;
  --bg: #070a1a;
  --bg-2: #0b1030;
  --surface: rgba(255,255,255,.035);
  --surface-2: rgba(255,255,255,.06);
  --line: rgba(148,163,255,.14);
  --line-2: rgba(148,163,255,.26);
  --text: #f2f4ff;
  --text-2: #c3c8e6;
  --muted: #8a90b4;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --good: #34d399;
  --warn: #fbbf24;
  --grad: linear-gradient(135deg, #22d3ee 0%, #3b82f6 50%, #6366f1 100%);
  --sans: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 18px;
  --max: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--cyan); color: #04111a; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* Ambient background: glow + network grid */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(ellipse 70% 45% at 85% -5%, rgba(99,102,241,.32), transparent 60%),
  radial-gradient(ellipse 60% 40% at -10% 30%, rgba(34,211,238,.14), transparent 60%),
  radial-gradient(ellipse 60% 50% at 50% 110%, rgba(139,92,246,.18), transparent 60%), var(--bg); }
.ambient::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148,163,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,255,.05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.section { padding: 64px 0; position: relative; }
@media (min-width: 900px) { .section { padding: 104px 0; } }
.section--band { background: linear-gradient(180deg, rgba(11,16,48,.75), rgba(7,10,26,.4)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.h1 { font-weight: 800; font-size: clamp(36px, 8.4vw, 64px); letter-spacing: -0.03em; }
.h2 { font-weight: 800; font-size: clamp(28px, 5.8vw, 46px); letter-spacing: -0.025em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16.5px, 2.1vw, 19.5px); color: var(--text-2); }
.muted { color: var(--muted); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head .h2 { margin: 14px 0 14px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 14px 28px; border-radius: 14px; border: 0; cursor: pointer; font-family: var(--sans); font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, filter .15s ease; }
.btn-primary { background: var(--grad); color: #04111a; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 14px 34px -12px rgba(34,211,238,.6), 0 10px 40px -16px rgba(99,102,241,.8); }
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 18px 40px -12px rgba(34,211,238,.75), 0 12px 46px -16px rgba(99,102,241,.9); }
.btn-primary:active { transform: translateY(0); filter: brightness(.96); }
.btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line-2); text-transform: none; letter-spacing: 0; font-weight: 700; }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-lg { min-height: 62px; font-size: 17px; padding: 16px 34px; }
.btn-block { width: 100%; }

/* Cards */
.card { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .g2, .g3, .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 980px) { .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--cyan); background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.22); flex: none; }
.icon svg { width: 21px; height: 21px; }

/* 3D book */
.book-stage { perspective: 1600px; display: grid; place-items: center; position: relative; padding: 14px 0 34px; }
.book-stage::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.35), rgba(99,102,241,.28) 40%, transparent 70%); filter: blur(34px); }
.book { position: relative; z-index: 1; width: min(300px, 64vw); aspect-ratio: 909/1287; transform-style: preserve-3d; transform: rotateY(-22deg) rotateX(4deg); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.book:hover { transform: rotateY(-10deg) rotateX(2deg); }
.book-cover { position: absolute; inset: 0; border-radius: 3px 8px 8px 3px; overflow: hidden; transform: translateZ(13px); box-shadow: 30px 40px 60px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.08), 0 0 60px -10px rgba(99,102,241,.5); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.35) 0%, rgba(255,255,255,.2) 2%, rgba(0,0,0,.1) 4%, transparent 7%), linear-gradient(115deg, rgba(255,255,255,.18) 0%, transparent 38%); }
.book-pages { position: absolute; top: 1.2%; bottom: 1.2%; right: -1px; width: 26px; background: repeating-linear-gradient(90deg, #eceef7 0 1px, #c9cde0 1px 2px); transform: rotateY(90deg) translateZ(-13px) translateX(13px); transform-origin: right; }
.book-back { position: absolute; inset: 0; background: #1e1b4b; border-radius: 3px 8px 8px 3px; transform: translateZ(-13px); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 16px); opacity: 0; z-index: 90; background: #111735; color: #e7ecff; border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 12px; font-size: 15px; max-width: calc(100% - 32px); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 120px; color: var(--muted); font-size: 14.5px; }
.site-footer .container { display: grid; gap: 12px; }
.site-footer .brand { font-weight: 800; color: var(--text); font-size: 18px; letter-spacing: .02em; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--text-2); }
.site-footer .fine { font-size: 13px; }
