@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700;800;900&display=swap');

/* ── VARIABLES ── */
:root {
  --bg: #000;
  --surface: #080808;
  --border: #161616;
  --border2: #222;
  --muted: #555;
  --muted2: #888;
  --blue: #3b82f6;
  --blue-glow: rgba(59,130,246,.35);
  --text: #ffffff;
}

body.light-mode {
  --bg: #ffffff;
  --surface: #f9f9f9;
  --border: #e5e5e5;
  --border2: #d4d4d4;
  --muted: #888;
  --muted2: #555;
  --text: #000000;
}

/* ── LIGHT MODE OVERRIDES ── */
body.light-mode { background: var(--bg); color: var(--text); }
body.light-mode .hero h1 { color: #000; }
body.light-mode .hero h1 em { background: linear-gradient(135deg, #000 0%, var(--blue) 60%, #6366f1 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
body.light-mode .nav-cta { background: #000; color: #fff; }
body.light-mode .nav-cta:hover { background: #222; }
body.light-mode .cta-bar { background: #f0f0f0; }
body.light-mode .cta-bar input { color: #000; }
body.light-mode .cta-bar input::placeholder { color: #aaa; }
body.light-mode .eyebrow { background: rgba(0,0,0,.05); border-color: var(--border2); color: #555; }
body.light-mode .orbit-center { background: #fff; color: #000; }
body.light-mode .int-icon { background: #f0f0f0; }
body.light-mode .brand-icon { filter: none; opacity: 1; }
body.light-mode .step { background: #fff; }
body.light-mode .final-cta-inner { background: #f5f5f5; }
body.light-mode .site-footer { color: #888; }
body.light-mode .hero::after { opacity: .08; }
body.light-mode nav.scrolled { background: rgba(255,255,255,.85); border-color: var(--border); }
body.light-mode .step-arrow i { color: #999 !important; }
body.light-mode .value-item div strong { color: #000; }
body.light-mode .section-head h2 { color: #000; }
body.light-mode .section-head p { color: #555; }
body.light-mode .step h3 { color: #000; }
body.light-mode .step p { color: #555; }
body.light-mode .final-cta-inner h2 { color: #000; }
body.light-mode .cta-note { color: #888; }
body.light-mode .proof-text { color: #666; }
body.light-mode .proof-text strong { color: #000; }
body.light-mode .hero-sub { color: #555; }

/* ── THEME TOGGLE ── */
.nav-right { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  background: rgba(147, 197, 253, 0.12);
  border: 1px solid #93c5fd;
  border-radius: 100px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  position: relative;
}
.theme-toggle:hover { background: rgba(147, 197, 253, 0.22); }

body.light-mode .theme-toggle {
  background: rgba(0,0,0,.06);
  border-color: #bbb;
}
body.light-mode .theme-toggle:hover { background: rgba(0,0,0,.1); }

.theme-toggle i {
  width: 16px;
  height: 16px;
  color: #93c5fd; /* Light blue - visible on dark backgrounds */
  position: absolute;
  transition: opacity .2s, transform .3s;
  stroke: currentColor;
}

/* In light mode, use a dark color so it's visible on white */
body.light-mode .theme-toggle i {
  color: #555;
}

/* Dark mode: show moon, hide sun */
.icon-sun  { opacity: 0; transform: rotate(-90deg) scale(.8); }
.icon-moon { opacity: 1; transform: rotate(0deg) scale(1); }

/* Light mode: show sun, hide moon */
body.light-mode .icon-sun  { opacity: 1; transform: rotate(0deg) scale(1); }
body.light-mode .icon-moon { opacity: 0; transform: rotate(90deg) scale(.8); }

/* ── RESET ── */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: #fff; font-family: 'Geist', 'Inter', sans-serif; overflow-x: hidden; transition: background .3s, color .3s; }

/* ── NAV ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 20px 48px; border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
nav.scrolled { background: rgba(0,0,0,.75); border-color: var(--border); backdrop-filter: blur(20px); }
.nav-logo { font-size: .95rem; font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: 8px; color: var(--text); }
.nav-logo .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue-glow); }
.nav-cta { background: #fff; color: #000; border: none; padding: 10px 22px; border-radius: 100px; font-size: .82rem; font-weight: 700; cursor: pointer; font-family: 'Geist', sans-serif; transition: background .2s, transform .2s; }
.nav-cta:hover { background: #e8e8e8; transform: scale(1.03); }

/* ── HERO ── */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 140px 24px 80px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -20%; left: 50%; transform: translateX(-50%); width: 1100px; height: 700px; background: radial-gradient(ellipse at 40% 50%, rgba(59,130,246,.1) 0%, transparent 60%), radial-gradient(ellipse at 70% 40%, rgba(99,102,241,.06) 0%, transparent 55%); pointer-events: none; animation: auroraShift 8s ease-in-out infinite alternate; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 60px 60px; opacity: .15; pointer-events: none; mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 100%); }

#particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; display: block; }

@keyframes auroraShift { from { opacity: .7; transform: translateX(-50%) scale(1); } to { opacity: 1; transform: translateX(-48%) scale(1.08); } }

.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--border2); border-radius: 100px; padding: 6px 16px 6px 10px; font-size: .72rem; font-weight: 600; color: var(--muted2); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 36px; }
.eyebrow .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue-glow); animation: pipPulse 2s ease-in-out infinite; }
@keyframes pipPulse { 0%,100% { box-shadow: 0 0 6px var(--blue-glow); } 50% { box-shadow: 0 0 16px var(--blue-glow), 0 0 32px rgba(59,130,246,.2); } }

.hero h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; letter-spacing: -.06em; line-height: .96; max-width: 820px; margin-bottom: 20px; color: var(--text); }
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(135deg, #fff 0%, var(--blue) 60%, #a5b4fc 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.05rem; color: var(--muted2); width: 100%; max-width: 420px; line-height: 1.65; margin: 0 auto 44px; text-align: center; }

/* ── CTA ── */
.cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.cta-bar { display: flex; background: #0c0c0c; border: 1px solid var(--border2); border-radius: 100px; padding: 6px 6px 6px 24px; max-width: 500px; width: 100%; transition: border-color .2s; position: relative; z-index: 3; isolation: isolate; }
.cta-bar:focus-within { border-color: #333; }
.cta-bar input { flex: 1; background: transparent; border: none; color: var(--text); font-size: .95rem; outline: none; font-family: 'Geist', sans-serif; }
.cta-bar input::placeholder { color: #333; }
.cta-bar button { background: var(--blue); color: #fff; border: none; padding: 13px 28px; border-radius: 100px; font-weight: 700; font-size: .88rem; cursor: pointer; white-space: nowrap; font-family: 'Geist', sans-serif; transition: background .2s, transform .15s, box-shadow .2s; box-shadow: 0 0 20px rgba(59,130,246,.3); }
.cta-bar button:hover { background: #2563eb; transform: scale(1.03); box-shadow: 0 0 32px rgba(59,130,246,.5); }
.cta-msg { font-size: .78rem; min-height: 18px; color: var(--blue); }

.social-proof { display: flex; align-items: center; gap: 10px; }
.avatars { display: flex; }
.avatars span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -7px; font-size: .6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; background: #1a1a1a; color: #aaa; }
.avatars span:first-child { margin-left: 0; }
.proof-text { font-size: .78rem; color: var(--muted); }
.proof-text strong { color: #aaa; }

/* ── HERO PREVIEW ── */
.hero-preview { position: relative; z-index: 2; width: 100%; max-width: 900px; margin: 60px auto 0; padding: 0 24px; }
.hero-preview-inner { border-radius: 20px; border: 1px solid var(--border2); overflow: hidden; box-shadow: 0 0 0 1px rgba(59,130,246,.1), 0 40px 80px rgba(0,0,0,.9), 0 0 60px rgba(59,130,246,.08); transform: perspective(1400px) rotateX(6deg) scale(.98); transition: transform 1s cubic-bezier(.19,1,.22,1), box-shadow .6s ease; }
.hero-preview-inner:hover { transform: perspective(1400px) rotateX(2deg) scale(1); box-shadow: 0 0 0 1px rgba(59,130,246,.2), 0 60px 100px rgba(0,0,0,.9), 0 0 80px rgba(59,130,246,.15); }
.hero-preview-inner::before { content: ''; display: block; height: 36px; background: #0d0d0d; border-bottom: 1px solid var(--border2); background-image: radial-gradient(circle at 18px 50%, #ff5f57 5px, transparent 5px), radial-gradient(circle at 34px 50%, #febc2e 5px, transparent 5px), radial-gradient(circle at 50px 50%, #28c840 5px, transparent 5px); }
.hero-preview-inner img { width: 100%; display: block; }
.hero-preview::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: linear-gradient(to top, var(--bg), transparent); pointer-events: none; border-radius: 0 0 20px 20px; }

/* ── VALUE STRIP ── */
.value-strip { display: flex; align-items: stretch; gap: 0; background: var(--surface); border: 1px solid var(--border2); border-radius: 20px; margin-top: 48px; max-width: 780px; width: 100%; overflow: hidden; position: relative; z-index: 2; }
.value-item { flex: 1; display: flex; align-items: flex-start; gap: 14px; padding: 24px 28px; text-align: left; }
.value-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.value-icon i { width: 18px; height: 18px; stroke-width: 2; }
.value-item div strong { display: block; font-size: .82rem; font-weight: 700; color: var(--text); margin-bottom: 4px; letter-spacing: -.01em; }
.value-item div span { font-size: .75rem; color: var(--muted); line-height: 1.5; }
.value-divider { width: 1px; background: var(--border2); flex-shrink: 0; }

@media (max-width: 700px) {
  .value-strip { flex-direction: column; }
  .value-divider { width: auto; height: 1px; }
  .value-item { padding: 20px 24px; }
}

/* ── INTEGRATIONS ── */
.integrations { padding: 120px 48px; text-align: center; }

.section-head { margin-bottom: 64px; }
.section-tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--blue); background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.2); border-radius: 100px; padding: 5px 14px; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; letter-spacing: -.05em; color: var(--text); margin-bottom: 10px; }
.section-head p { color: var(--muted2); font-size: .95rem; }

.orbit-wrap { position: relative; width: 560px; height: 560px; margin: 0 auto; }

/* rings */
.orbit-ring { position: absolute; top: 50%; left: 50%; border-radius: 50%; border: 1px solid #1a1a1a; transform: translate(-50%, -50%); }
.ring-1 { width: 280px; height: 280px; animation: spin 18s linear infinite; }
.ring-2 { width: 480px; height: 480px; animation: spin 30s linear infinite reverse; }
@keyframes spin { from { transform: translate(-50%, -50%) rotate(0deg); } to { transform: translate(-50%, -50%) rotate(360deg); } }

/* icons placed on the ring */
.orbit-icon { position: absolute; top: 50%; left: 50%; display: flex; flex-direction: column; align-items: center; gap: 5px; }

/* ring-1: 6 items, radius 140px */
.ring-1 .orbit-icon {
  --angle: calc(var(--i) * (360deg / 6));
  --r: 140px;
  transform: rotate(var(--angle)) translate(var(--r)) rotate(calc(-1 * var(--angle)));
  margin: -22px 0 0 -22px;
}
/* ring-2: 8 items, radius 240px */
.ring-2 .orbit-icon {
  --angle: calc(var(--i) * (360deg / 8));
  --r: 240px;
  transform: rotate(var(--angle)) translate(var(--r)) rotate(calc(-1 * var(--angle)));
  margin: -22px 0 0 -22px;
}

/* keep labels upright as ring spins */
.ring-1 .orbit-icon { animation: counter-spin 18s linear infinite; }
.ring-2 .orbit-icon { animation: counter-spin-r 30s linear infinite; }
@keyframes counter-spin   { from { transform: rotate(calc(var(--angle))) translate(var(--r)) rotate(calc(-1 * var(--angle) + 0deg));   } to { transform: rotate(calc(var(--angle))) translate(var(--r)) rotate(calc(-1 * var(--angle) - 360deg)); } }
@keyframes counter-spin-r { from { transform: rotate(calc(var(--angle))) translate(var(--r)) rotate(calc(-1 * var(--angle) + 0deg));   } to { transform: rotate(calc(var(--angle))) translate(var(--r)) rotate(calc(-1 * var(--angle) + 360deg)); } }

.int-icon { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; background: #0d0d0d; transition: background .2s, box-shadow .2s; }
.int-icon:hover { background: #111; box-shadow: 0 0 16px rgba(59,130,246,.2); }
.brand-icon { width: 22px; height: 22px; object-fit: contain; filter: brightness(0) invert(1); opacity: .75; }
.brand-icon.google { filter: none; opacity: 1; }
.brand-icon.coloured { filter: none; opacity: 1; }
.int-name { font-size: .6rem; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* center badge */
.orbit-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--surface); border: 1px solid var(--border2); border-radius: 100px; padding: 14px 24px; font-size: .95rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); display: flex; align-items: center; gap: 8px; white-space: nowrap; box-shadow: 0 0 40px rgba(59,130,246,.1); z-index: 2; }
.orbit-center .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px var(--blue-glow); animation: pipPulse 2s ease-in-out infinite; }

@media (max-width: 600px) {
  .orbit-wrap { width: 340px; height: 340px; }
  .ring-1 { width: 180px; height: 180px; }
  .ring-1 .orbit-icon { --r: 90px; }
  .ring-2 { width: 310px; height: 310px; }
  .ring-2 .orbit-icon { --r: 155px; }
  .int-icon { width: 34px; height: 34px; }
  .int-icon i { width: 16px; height: 16px; }
  .int-name { display: none; }
}

/* ── HOW IT WORKS ── */
.how-it-works { padding: 120px 48px 60px; max-width: 1000px; margin: 0 auto; text-align: center; }
.steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-top: 64px; }
.step { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 40px 32px; text-align: left; position: relative; transition: border-color .3s, background .3s; max-width: 280px; }
.step:hover { border-color: rgba(59,130,246,.3); }
.step-num { font-size: .65rem; font-weight: 800; letter-spacing: .2em; color: var(--muted); margin-bottom: 20px; }
.step-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(59,130,246,.08); border: 1px solid rgba(59,130,246,.15); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.step-icon i { width: 20px; height: 20px; stroke-width: 2; }
.step h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 10px; color: var(--text); }
.step p { font-size: .85rem; color: var(--muted2); line-height: 1.7; }
.step-arrow { padding: 0 16px; flex-shrink: 0; }
.step-arrow i { width: 24px; height: 24px; color: var(--muted2); }

/* ── FINAL CTA ── */
.final-cta { padding: 0 48px 100px; max-width: 1000px; margin: 0 auto; }
.final-cta-inner { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 80px 48px; text-align: center; position: relative; overflow: hidden; }
.final-cta-inner::before { content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: radial-gradient(ellipse, rgba(59,130,246,.06) 0%, transparent 70%); pointer-events: none; }
.final-cta-inner h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: -.06em; line-height: 1.05; margin-bottom: 14px; position: relative; color: var(--text); }
.final-cta-inner h2 em { font-style: normal; color: transparent; background: linear-gradient(135deg, #fff 0%, var(--blue) 60%, #a5b4fc 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.final-cta-inner p { color: var(--muted2); font-size: .95rem; margin-bottom: 32px; position: relative; }
.final-cta-inner .cta-bar { margin: 0 auto; position: relative; max-width: 500px; }
.cta-note { display: block; margin-top: 14px; font-size: .72rem; color: var(--muted); }

@media (max-width: 780px) {
  .steps { flex-direction: column; gap: 16px; }
  .step { max-width: 100%; width: 100%; }
  .step-arrow { transform: rotate(90deg); }
  .how-it-works { padding: 80px 20px; }
  .final-cta { padding: 40px 20px 80px; }
  .final-cta-inner { padding: 56px 28px; }
}

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--border); padding: 32px 48px; text-align: center !important; color: var(--muted); font-size: .78rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.site-footer p, .site-footer code { text-align: center; width: 100%; color: var(--muted); }
.site-footer a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border2); }
.site-footer code { font-family: monospace; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .integrations { padding: 80px 20px; }
}
@media (max-width: 560px) {
  .hero h1 { letter-spacing: -.04em; }
  .hero-preview-inner { transform: none; }
  .hero-preview-inner:hover { transform: none; }
}