/* ===========================================================================
   Helix — stress-test landing page styles.
   Design system: warm editorial paper base + one committed electric coral,
   mono accents. Deliberately maximal: canvas hero, parallax, scroll-reveal,
   marquee, tilt, carousel, sticky shrink-nav. OKLCH throughout.
   All of this lives in code (this file). The client edits text/images via
   native blocks; these effects are developer-owned.
   ======================================================================== */

.helix {
	--paper:        oklch(0.985 0.006 75);
	--paper-2:      oklch(0.96 0.012 75);
	--ink:          oklch(0.22 0.02 65);
	--ink-soft:     oklch(0.44 0.02 65);
	--line:         oklch(0.9 0.01 75);
	--coral:        oklch(0.68 0.19 32);
	--coral-deep:   oklch(0.58 0.2 30);
	--night:        oklch(0.24 0.03 60);
	--night-2:      oklch(0.19 0.03 60);
	--mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
	--sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	font-family: var(--sans);
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	line-height: 1.6;
	overflow-x: clip;
}

.helix * { box-sizing: border-box; }
.helix .hx-wrap { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.helix .hx-eyebrow { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-deep); margin: 0; }

/* reveal-on-scroll (JS toggles .is-in) */
.helix [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); }
.helix [data-reveal].is-in { opacity: 1; transform: none; }
.helix [data-reveal][data-delay="1"] { transition-delay: .08s; }
.helix [data-reveal][data-delay="2"] { transition-delay: .16s; }
.helix [data-reveal][data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
	.helix [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- sticky nav (shrinks + blurs on scroll) ---------- */
.helix .hx-nav { position: sticky; top: 0; z-index: 50; transition: padding .3s ease, background .3s ease, box-shadow .3s ease; padding: 18px 0; }
.helix .hx-nav.is-stuck { padding: 10px 0; background: oklch(0.985 0.006 75 / 0.8); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line); }
.helix .hx-nav__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.helix .hx-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.helix .hx-brand__glyph { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--coral), var(--coral-deep)); position: relative; }
.helix .hx-brand__glyph::after { content:""; position:absolute; inset:7px; border-radius:3px; border:2px solid var(--paper); }
.helix .hx-navlinks { display: flex; gap: 28px; align-items: center; }
.helix .hx-navlinks a { color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 500; transition: color .2s; }
.helix .hx-navlinks a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.helix .hx-btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; padding: 12px 20px; border-radius: 11px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, background .2s; }
.helix .hx-btn--primary { background: var(--coral); color: oklch(0.99 0.01 75); box-shadow: 0 6px 22px oklch(0.68 0.19 32 / .3); }
.helix .hx-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px oklch(0.68 0.19 32 / .4); }
.helix .hx-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.helix .hx-btn--ghost:hover { border-color: var(--ink-soft); transform: translateY(-2px); }
.helix .hx-btn--light { background: oklch(0.99 0.01 75 / .1); color: var(--paper); border-color: oklch(0.99 0.01 75 / .2); }

/* ---------- hero ---------- */
.helix .hx-hero { position: relative; padding: 72px 0 90px; overflow: clip; }
.helix .hx-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.helix .hx-hero__inner { position: relative; z-index: 1; max-width: 760px; }
.helix .hx-h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 18px 0 0; color: var(--ink); }
.helix .hx-h1 .hx-word { display: inline-block; }
.helix .hx-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-soft); margin: 22px 0 0; max-width: 56ch; }
.helix .hx-cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.helix .hx-hero__float { position: absolute; right: -40px; top: 40px; z-index: 1; width: min(46%, 520px); will-change: transform; }
.helix .hx-codecard { background: var(--night); border-radius: 16px; padding: 18px; box-shadow: 0 30px 80px oklch(0.24 0.03 60 / .35); border: 1px solid oklch(0.99 0.01 75 / .08); font-family: var(--mono); font-size: .82rem; color: oklch(0.9 0.02 75); line-height: 1.7; }
.helix .hx-codecard__bar { display: flex; gap: 6px; margin-bottom: 12px; }
.helix .hx-codecard__bar i { width: 11px; height: 11px; border-radius: 50%; background: oklch(0.5 0.02 60); display: inline-block; }
.helix .hx-codecard .k { color: var(--coral); } .helix .hx-codecard .s { color: oklch(0.78 0.13 150); } .helix .hx-codecard .c { color: oklch(0.6 0.02 60); }

/* ---------- marquee ---------- */
.helix .hx-marquee { border-block: 1px solid var(--line); padding: 22px 0; margin-top: 10px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.helix .hx-marquee__track { display: flex; gap: 64px; width: max-content; animation: hx-scroll 26s linear infinite; }
.helix .hx-marquee:hover .hx-marquee__track { animation-play-state: paused; }
.helix .hx-marquee__track span { font-family: var(--mono); font-weight: 600; color: var(--ink-soft); font-size: 1.05rem; white-space: nowrap; letter-spacing: -.01em; }
@keyframes hx-scroll { to { transform: translateX(-50%); } }

/* ---------- section frame ---------- */
.helix .hx-section { padding: 96px 0; }
.helix .hx-section--dark { background: radial-gradient(120% 120% at 80% 0%, var(--night-2), var(--night)); color: var(--paper); }
.helix .hx-section--dark .hx-h2, .helix .hx-section--dark .hx-lead { color: var(--paper); }
.helix .hx-h2 { font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -.03em; font-weight: 800; line-height: 1.08; margin: 12px 0 0; }
.helix .hx-section__head { max-width: 620px; margin-bottom: 48px; }

/* ---------- stats (count-up) ---------- */
.helix .hx-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.helix .hx-stat { border-top: 1px solid oklch(0.99 0.01 75 / .14); padding-top: 18px; }
.helix .hx-stat__num { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.helix .hx-stat__num .hx-suffix { color: var(--coral); }
.helix .hx-stat__label { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: oklch(0.78 0.02 75); margin-top: 6px; }

/* ---------- feature tabs ---------- */
.helix .hx-tabs__btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.helix .hx-tab-btn { font-family: var(--mono); font-size: .85rem; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); cursor: pointer; transition: .2s; }
.helix .hx-tab-btn.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.helix .hx-tab-panel { display: none; }
.helix .hx-tab-panel.is-active { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; animation: hx-fade .5s ease; }
@keyframes hx-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.helix .hx-tab-visual { aspect-ratio: 4/3; border-radius: 16px; background: linear-gradient(135deg, var(--paper-2), var(--paper)); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--mono); color: var(--ink-soft); position: relative; overflow: hidden; }
.helix .hx-tab-visual::before { content:""; position:absolute; inset:0; background: radial-gradient(60% 60% at 30% 20%, oklch(0.68 0.19 32 / .14), transparent); }

/* ---------- bento ---------- */
.helix .hx-bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 18px; }
.helix .hx-cell { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 26px; transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s; transform-style: preserve-3d; will-change: transform; }
.helix .hx-cell:hover { box-shadow: 0 20px 50px oklch(0.22 0.02 65 / .1); }
.helix .hx-cell--wide { grid-column: span 2; }
.helix .hx-cell--tall { grid-row: span 2; }
.helix .hx-cell h3 { font-size: 1.25rem; letter-spacing: -.02em; margin: 14px 0 8px; }
.helix .hx-cell p { color: var(--ink-soft); font-size: .94rem; margin: 0; }
.helix .hx-cell__ico { width: 42px; height: 42px; border-radius: 11px; background: linear-gradient(135deg, oklch(0.68 0.19 32 /.18), oklch(0.68 0.19 32 /.06)); display: grid; place-items: center; color: var(--coral-deep); font-family: var(--mono); font-weight: 700; }

/* ---------- testimonials carousel ---------- */
.helix .hx-carousel { overflow: hidden; }
.helix .hx-carousel__track { display: flex; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.helix .hx-quote { min-width: 100%; padding: 8px; }
.helix .hx-quote blockquote { font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.4; letter-spacing: -.02em; font-weight: 500; margin: 0; }
.helix .hx-quote__who { display: flex; align-items: center; gap: 12px; margin-top: 24px; font-size: .9rem; }
.helix .hx-quote__av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--coral), var(--coral-deep)); }
.helix .hx-dots { display: flex; gap: 8px; margin-top: 28px; }
.helix .hx-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--line); border: none; cursor: pointer; transition: .2s; padding: 0; }
.helix .hx-dot.is-active { background: var(--coral); width: 26px; }

/* ---------- pricing ---------- */
.helix .hx-price-toggle { display: inline-flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--ink-soft); margin-bottom: 36px; }
.helix .hx-switch { width: 50px; height: 28px; border-radius: 999px; background: var(--line); border: none; position: relative; cursor: pointer; transition: .2s; }
.helix .hx-switch.is-annual { background: var(--coral); }
.helix .hx-switch i { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .25s cubic-bezier(.16,1,.3,1); }
.helix .hx-switch.is-annual i { transform: translateX(22px); }
.helix .hx-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.helix .hx-tier { border: 1px solid var(--line); border-radius: 18px; padding: 30px; background: var(--paper); }
.helix .hx-tier--feature { border-color: var(--coral); box-shadow: 0 18px 50px oklch(0.68 0.19 32 / .14); position: relative; }
.helix .hx-tier__price { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.helix .hx-tier__price small { font-size: .9rem; font-weight: 500; color: var(--ink-soft); }
.helix .hx-tier ul { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 11px; }
.helix .hx-tier li { display: flex; gap: 10px; font-size: .9rem; color: var(--ink-soft); }
.helix .hx-tier li::before { content: "→"; color: var(--coral-deep); font-family: var(--mono); }

/* ---------- CTA aurora ---------- */
.helix .hx-cta { position: relative; border-radius: 28px; padding: 80px 40px; text-align: center; overflow: hidden; background: var(--night); color: var(--paper); }
.helix .hx-cta__aurora { position: absolute; inset: -40%; background: conic-gradient(from 0deg, oklch(0.68 0.19 32 /.5), oklch(0.58 0.2 300 /.4), oklch(0.7 0.15 200 /.4), oklch(0.68 0.19 32 /.5)); filter: blur(70px); animation: hx-spin 18s linear infinite; opacity: .55; }
@keyframes hx-spin { to { transform: rotate(360deg); } }
.helix .hx-cta__inner { position: relative; z-index: 1; }
.helix .hx-cta .hx-h2 { color: var(--paper); }

/* ---------- footer ---------- */
.helix .hx-foot { padding: 60px 0 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--ink-soft); font-size: .88rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
	.helix .hx-navlinks { display: none; }
	.helix .hx-hero__float { display: none; }
	.helix .hx-stats { grid-template-columns: repeat(2, 1fr); }
	.helix .hx-tab-panel.is-active { grid-template-columns: 1fr; }
	.helix .hx-bento { grid-template-columns: 1fr; }
	.helix .hx-cell--wide, .helix .hx-cell--tall { grid-column: auto; grid-row: auto; }
	.helix .hx-tiers { grid-template-columns: 1fr; }
}
