/* ========== BASE ========== */
html { -webkit-text-size-adjust: 100%; }
body { background-color: #000000; overflow-x: hidden; font-feature-settings: "ss01", "cv01"; }
::selection { background: rgba(34, 211, 238, 0.28); color: #fff; }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(34,211,238,.55), rgba(139,92,246,.45)); border-radius: 999px; border: 2px solid #000; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(34,211,238,.95), rgba(139,92,246,.85)); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }

/* ========== GLOBAL AMBIENT BG ========== */
.ambient-bg {
  background:
    radial-gradient(1100px 620px at 10% -10%, rgba(34,211,238,.10), transparent 60%),
    radial-gradient(900px 600px at 90% 5%, rgba(139,92,246,.10), transparent 60%),
    radial-gradient(800px 700px at 50% 110%, rgba(34,211,238,.06), transparent 62%),
    #000000;
  background-attachment: fixed;
}

/* ========== GLASS ========== */
.glass { background: rgba(255,255,255,0.03); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); border: 1px solid rgba(255,255,255,0.07); }
.glass-strong { background: rgba(10,10,10,0.75); backdrop-filter: blur(28px) saturate(180%); -webkit-backdrop-filter: blur(28px) saturate(180%); border: 1px solid rgba(255,255,255,0.08); }
.card-premium { position: relative; background: radial-gradient(120% 100% at 50% 0%, rgba(34,211,238,.06), transparent 55%), linear-gradient(180deg, #0A0A0A 0%, #050505 100%); border: 1px solid rgba(255,255,255,0.075); box-shadow: inset 0 1px 0 0 rgba(255,255,255,.05), 0 30px 80px -50px rgba(0,0,0,1); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

/* ========== GRID BG ========== */
.grid-bg { background-image: linear-gradient(to right, rgba(255,255,255,0.042) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.042) 1px, transparent 1px); background-size: 64px 64px; }
.grid-mask { -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 25%, transparent 78%); mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 25%, transparent 78%); }

/* ========== NOISE ========== */
.noise::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ========== TEXT GRADIENTS ========== */
.text-gradient { background: linear-gradient(180deg, #ffffff 0%, #f2f4f7 45%, #9aa5b8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-accent-gradient { background: linear-gradient(100deg, #67E8F9 0%, #22D3EE 30%, #A78BFA 68%, #8B5CF6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ========== NAV LINK ========== */
.nav-link { position: relative; transition: color .3s cubic-bezier(.4,0,.2,1); }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -5px; height: 1px; width: 100%; background: linear-gradient(90deg, #22D3EE, #8B5CF6); transform: scaleX(0); transform-origin: left center; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.nav-link:hover::after { transform: scaleX(1); }

/* ========== CTA GLOW ========== */
@keyframes ctaPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,211,238,.42), 0 10px 40px -8px rgba(34,211,238,.65); } 50% { box-shadow: 0 0 0 12px rgba(34,211,238,0), 0 10px 52px -4px rgba(139,92,246,.62); } }
.cta-glow { animation: ctaPulse 3.4s ease-in-out infinite; }
@keyframes sheen { 0% { transform: translateX(-150%) skewX(-18deg); } 100% { transform: translateX(260%) skewX(-18deg); } }
.sheen::before { content: ''; position: absolute; top: 0; left: 0; width: 45%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); animation: sheen 3.8s ease-in-out infinite; pointer-events: none; }

/* ========== TACTILE PRESS ========== */
.tactile { transition: transform .16s cubic-bezier(.34,1.56,.64,1), box-shadow .28s ease, background-color .28s ease, border-color .28s ease, color .28s ease; will-change: transform; }
.tactile.is-pressed { transform: scale(0.955); }

/* ========== TERMINAL CURSOR ========== */
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.term-cursor { display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: #22D3EE; box-shadow: 0 0 10px rgba(34,211,238,.95); animation: blink 1s step-end infinite; }

/* ========== PING DOT ========== */
@keyframes pingSoft { 0% { transform: scale(1); opacity: .9; } 70% { transform: scale(2.4); opacity: 0; } 100% { transform: scale(2.4); opacity: 0; } }
.ping-soft::after { content: ''; position: absolute; inset: 0; border-radius: 999px; background: currentColor; animation: pingSoft 1.9s cubic-bezier(0,0,.2,1) infinite; }

/* ========== FLOAT ========== */
@keyframes floatSlow { 0%, 100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(0,-26px,0) scale(1.06); } }
.float-slow { animation: floatSlow 12s ease-in-out infinite; }

/* ========== BENTO GLOW ========== */
.bento-card { position: relative; isolation: isolate; transition: border-color .45s cubic-bezier(.16,1,.3,1), transform .45s cubic-bezier(.16,1,.3,1), box-shadow .45s ease; }
.bento-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .45s ease; background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(34,211,238,.20), rgba(139,92,246,.09) 42%, transparent 68%); pointer-events: none; z-index: -1; }
.bento-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .55s ease; background-image: linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 72%); mask-image: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), #000, transparent 72%); pointer-events: none; z-index: -1; }
.bento-card:hover { transform: translateY(-4px); }
.bento-card:hover::before, .bento-card:hover::after { opacity: 1; }
.bento-card:hover { border-color: rgba(34,211,238,.42); box-shadow: 0 24px 70px -30px rgba(34,211,238,.6); }

/* ========== PRICING TOGGLE ========== */
.toggle-track { position: relative; display: inline-flex; width: 300px; align-items: center; border-radius: 999px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.03); padding: 4px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.toggle-pill { position: absolute; top: 4px; left: 4px; bottom: 4px; width: calc(50% - 4px); border-radius: 999px; background: linear-gradient(100deg, #22D3EE, #38BDF8 55%, #8B5CF6); box-shadow: 0 10px 32px -10px rgba(34,211,238,.9), inset 0 1px 0 rgba(255,255,255,.35); transition: transform .55s cubic-bezier(.16,1,.3,1); z-index: 0; pointer-events: none; }
.toggle-pill.is-yearly { transform: translateX(100%); }
.toggle-btn { position: relative; z-index: 1; flex: 1 1 0%; border-radius: 999px; padding: 11px 20px; font-size: 13.5px; font-weight: 700; transition: color .35s ease; }
.toggle-btn.is-active { color: #ffffff; }
.toggle-btn.is-inactive { color: #7C8A9E; }
.price-card { transition: border-color .45s ease, box-shadow .45s ease, transform .45s cubic-bezier(.16,1,.3,1); }
.price-card:hover { transform: translateY(-6px); }

/* ========== MODAL ========== */
.modal-shell { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; pointer-events: none; visibility: hidden; }
.modal-shell.is-open { pointer-events: auto; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .4s ease; }
.modal-shell.is-open .modal-backdrop { opacity: 1; }
.modal-card { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: hidden; border-radius: 22px; border: 1px solid rgba(255,255,255,.10); background: radial-gradient(120% 100% at 50% 0%, rgba(34,211,238,.08), transparent 55%), linear-gradient(180deg, #0A0A0A 0%, #050505 100%); box-shadow: 0 60px 160px -50px rgba(0,0,0,1), 0 0 0 1px rgba(255,255,255,.04), 0 0 100px -30px rgba(34,211,238,.5); opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1); display: grid; grid-template-columns: 1fr; }
.modal-shell.is-open .modal-card { opacity: 1; transform: translateY(0) scale(1); }
.modal-form-wrap { padding: 28px 24px; overflow-y: auto; max-height: calc(100vh - 32px); scrollbar-width: thin; scrollbar-color: rgba(34,211,238,.5) transparent; }
.modal-form-wrap::-webkit-scrollbar { width: 8px; }
.modal-form-wrap::-webkit-scrollbar-track { background: transparent; }
.modal-form-wrap::-webkit-scrollbar-thumb { background: rgba(34,211,238,.4); border-radius: 999px; }

/* ========== FORM ========== */
.form-field { width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.035); padding: 11px 14px; font-size: 13.5px; color: #FFFFFF; outline: none; transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease; font-family: inherit; }
.form-field::placeholder { color: #6B7686; }
.form-field:focus { border-color: rgba(34,211,238,.65); background: rgba(34,211,238,.05); box-shadow: 0 0 0 4px rgba(34,211,238,.12); }
.form-field option { background: #0A0A0A; color: #fff; }
select.form-field { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237C8A9E' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; cursor: pointer; }

/* ========== FAQ ========== */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] .faq-icon { transform: rotate(45deg); }

/* ========== MARQUEE ========== */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.fade-x { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }

/* ============================================================
   5-IMAGE SCROLL-REVEAL
   ============================================================ */
.reveal-section { position: relative; width: 100%; height: 600vh; background: #000000; }
.reveal-pin { position: relative; width: 100%; height: 100vh; overflow: hidden; background: #000000; }
.reveal-stage { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }
.reveal-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; will-change: opacity, transform; transform: translate3d(0, 0, 0); backface-visibility: hidden; opacity: 1; }
.reveal-layer img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.reveal-layer.layer-1 { z-index: 50; }
.reveal-layer.layer-2 { z-index: 40; }
.reveal-layer.layer-3 { z-index: 30; }
.reveal-layer.layer-4 { z-index: 20; }
.reveal-layer.layer-5 { z-index: 10; }
.reveal-tint { position: absolute; inset: 0; z-index: 55; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, rgba(0,0,0,.30) 0%, rgba(0,0,0,.72) 78%), linear-gradient(180deg, rgba(0,0,0,.68) 0%, rgba(0,0,0,.32) 40%, rgba(0,0,0,.88) 100%); }
.reveal-grid { position: absolute; inset: 0; z-index: 56; pointer-events: none; opacity: .26; background-image: linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 80px 80px; -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 50%, #000 20%, transparent 78%); mask-image: radial-gradient(ellipse 85% 70% at 50% 50%, #000 20%, transparent 78%); }
.reveal-content { position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 0 24px; text-align: center; pointer-events: none; }
.reveal-content-inner { max-width: 820px; width: 100%; will-change: opacity, transform; pointer-events: none; }
.reveal-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.4); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.reveal-title { margin-top: 22px; font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; color: #ffffff; text-shadow: 0 2px 40px rgba(0,0,0,.75); }
.reveal-sub { margin: 22px auto 0; max-width: 580px; font-size: 16px; line-height: 1.7; color: rgba(229,231,235,.88); text-shadow: 0 2px 24px rgba(0,0,0,.75); }
.reveal-caption { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); z-index: 65; display: flex; align-items: center; gap: 14px; padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.5); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); max-width: calc(100% - 32px); pointer-events: none; }
.reveal-caption-text { font-family: 'Geist Mono', monospace; font-size: 11.5px; letter-spacing: .08em; color: #E5E7EB; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reveal-step { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 22px; padding: 0 8px; border-radius: 999px; font-family: 'Geist Mono', monospace; font-size: 10.5px; font-weight: 700; color: #04121B; background: linear-gradient(100deg, #22D3EE, #8B5CF6); flex-shrink: 0; }
.reveal-rail { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); z-index: 65; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.reveal-dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.20); transition: background-color .35s ease, transform .35s ease, box-shadow .35s ease; }
.reveal-dot.is-active { background: linear-gradient(100deg, #22D3EE, #8B5CF6); transform: scale(1.25); box-shadow: 0 0 14px rgba(34,211,238,.85); }
@media (max-width: 640px) {
  .reveal-section { height: 520vh; }
  .reveal-caption { bottom: 22px; gap: 10px; padding: 9px 14px; }
  .reveal-caption-text { font-size: 10.5px; }
  .reveal-rail { right: 14px; gap: 8px; }
  .reveal-dot { width: 7px; height: 7px; }
  .reveal-step { min-width: 34px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}