/* ==========================================================================
   Lemonize — "Electric" variant
   Layers on top of styles-electric.css. Adds kinetic layout + motion.
   All animation is CSS-driven (works with no JS) and disabled under
   prefers-reduced-motion. electric.js only enhances (reveal, tilt).
   ========================================================================== */

/* ---- Animated dotted-grid backdrop on the whole page -------------------- */
.page.electric {
  position: relative;
  overflow-x: clip;
}
.electric-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgb(var(--border) / .18) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 72%);
  animation: grid-drift 22s linear infinite;
  opacity: .7;
}
@keyframes grid-drift { to { background-position: 26px 260px; } }
.electric .site-header, .electric main, .electric .site-footer { position: relative; z-index: 1; }
/* Fixed backdrop + sticky backdrop-filter don't compose (hero fails to paint);
   use a near-opaque header background on this variant instead. */
.electric .site-header {
  backdrop-filter: none; -webkit-backdrop-filter: none;
  background: rgb(var(--surface) / .96);
}

/* ==========================================================================
   HERO — oversized kinetic wordmark
   ========================================================================== */
.el-hero { padding-top: clamp(40px, 6vw, 72px); padding-bottom: 0; }
.el-hero .container { max-width: 1360px; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 64px); align-items: center; }

.el-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: rgb(var(--text));
  background: rgb(var(--accent) / .16);
  border: 1px solid rgb(var(--accent) / .4);
  padding: 6px 12px; border-radius: 999px;
}
.el-eyebrow .spark {
  width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--accent));
  box-shadow: 0 0 0 0 rgb(var(--accent) / .7);
  animation: spark-pulse 1.6s ease-out infinite;
}
@keyframes spark-pulse {
  0% { box-shadow: 0 0 0 0 rgb(var(--accent) / .6); }
  70% { box-shadow: 0 0 0 10px rgb(var(--accent) / 0); }
  100% { box-shadow: 0 0 0 0 rgb(var(--accent) / 0); }
}

.el-wordmark {
  font-size: clamp(48px, 9vw, 108px);
  line-height: .9; letter-spacing: -0.04em; font-weight: 700;
  margin: 18px 0 10px; position: relative; display: inline-block;
}
.el-wordmark .fill {
  background: rgb(var(--text));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* animated lime highlight sweeping across the wordmark */
.el-wordmark .sweep {
  position: absolute; inset: 0; color: transparent;
  background: linear-gradient(90deg, transparent 0%, rgb(var(--accent)) 45%, rgb(var(--accent)) 55%, transparent 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: sweep 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sweep { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

.el-hero .lead { font-size: clamp(18px, 2vw, 21px); max-width: 34ch; margin-top: 8px; }
.el-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: 28px; }
.el-cta .btn-primary { position: relative; overflow: hidden; }
.el-cta .btn-primary::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .5), transparent);
  transform: skewX(-18deg);
  animation: shine 3s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }

.el-hero-badges { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.el-stat { display: inline-flex; align-items: baseline; gap: 6px; font-size: 13px; color: rgb(var(--text-muted)); }
.el-stat b { font-size: 15px; color: rgb(var(--text)); font-variant-numeric: tabular-nums; }

/* --- floating capture mock (wraps a real screenshot of the app) --- */
.el-mock { position: relative; justify-self: center; width: 100%; max-width: 880px; }
.el-mock .capture-panel {
  margin: 0;
  animation: float 6s ease-in-out infinite, mock-rise .5s ease both;
  box-shadow: var(--sh-hud), 0 0 0 1px rgb(var(--accent) / .18), 0 24px 60px rgb(184 255 0 / .16);
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.capture-panel-shot { display: block; width: 100%; height: auto; }
.capture-panel-shot.shot-dark { display: none; }
#theme-dark:checked ~ .page .capture-panel-shot.shot-light { display: none; }
#theme-dark:checked ~ .page .capture-panel-shot.shot-dark { display: block; }
/* floating chips orbiting the mock */
.el-chip-float {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 7px 12px; border-radius: 999px;
  background: rgb(var(--panel)); color: rgb(var(--text));
  border: 1px solid rgb(var(--border) / .12); box-shadow: var(--sh-md);
}
.el-chip-float svg { width: 13px; height: 13px; color: rgb(110 140 0); }
#theme-dark:checked ~ .page .el-chip-float svg { color: rgb(184 255 0); }
.el-chip-float.c1 { top: 6%; left: -6%; animation: float 5s ease-in-out infinite; }
.el-chip-float.c2 { bottom: 20%; right: -8%; animation: float 6.5s ease-in-out .4s infinite; }
.el-chip-float.c3 { bottom: 4%; left: 4%; animation: float 5.5s ease-in-out .8s infinite; }

/* ==========================================================================
   KINETIC WORDMARK STRIP under the hero
   ========================================================================== */
.el-strip {
  margin-top: clamp(40px, 6vw, 72px);
  background: rgb(var(--accent));
  border-block: 1px solid rgb(var(--on-accent) / .12);
  padding-block: 14px; overflow: hidden;
  transform: rotate(-1.4deg) scale(1.04);
}
.el-strip .marquee-track { animation-duration: 18s; gap: 0; }
.el-strip-item {
  display: inline-flex; align-items: center; gap: 20px;
  font-size: clamp(20px, 3vw, 32px); font-weight: 700; letter-spacing: -0.01em;
  color: rgb(var(--on-accent)); white-space: nowrap; padding-inline: 20px;
}
.el-strip-item svg { width: 20px; height: 20px; opacity: .55; }
.el-strip.rev { transform: rotate(1.4deg) scale(1.04); margin-top: 0; }
.el-strip.rev .marquee-track { animation-direction: reverse; animation-duration: 22s; }

/* ==========================================================================
   POSITIONING STATEMENT
   ========================================================================== */
.el-statement { text-align: center; }
.el-statement .container { max-width: 760px; }
.el-statement h2 { font-size: clamp(28px, 4vw, 44px); }
.el-statement p { margin-top: var(--s3); font-size: 18px; color: rgb(var(--text-muted)); }

/* ==========================================================================
   FEATURES — asymmetric bento + reveal + tilt
   ========================================================================== */
.el-features .features-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 1fr; }
.el-features .feature { grid-column: span 2; }
.el-features .feature.wide { grid-column: span 3; }
.el-features .feature.lead-card {
  grid-column: span 6; background: rgb(var(--text)); color: rgb(var(--surface));
  display: flex; align-items: center; gap: var(--s6); border: none;
}
.el-features .feature.lead-card h3 { color: rgb(var(--surface)); font-size: 22px; }
.el-features .feature.lead-card p { color: rgb(var(--surface) / .72); font-size: 15px; }
.el-features .feature.lead-card .feature-ico { background: rgb(var(--accent)); color: rgb(var(--on-accent)); width: 52px; height: 52px; flex: none; }
.el-features .feature.lead-card .feature-ico svg { width: 26px; height: 26px; }

.feature[data-tilt] { transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; transform-style: preserve-3d; will-change: transform; }
.feature .feature-ico { transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.feature:hover .feature-ico { transform: scale(1.12) rotate(-6deg); }

/* reveal (JS adds .reveal-on to <html>; without JS everything is visible) */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(20px); }
.reveal-on [data-reveal].in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.22,1,.36,1); }
[data-reveal][style*="--d"] { transition-delay: var(--d); }

@media (prefers-reduced-motion: reduce) {
  .electric-grid, .el-mock .capture-panel, .el-chip-float,
  .el-wordmark .sweep, .el-eyebrow .spark, .el-cta .btn-primary::after,
  .el-strip .marquee-track { animation: none !important; }
  .reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   STEPS — horizontal animated stepper
   ========================================================================== */
.el-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6); }
.el-steps::before {
  content: ""; position: absolute; top: 17px; left: 8%; right: 8%; height: 3px;
  background: rgb(var(--border) / .12); border-radius: 3px;
}
.el-steps::after {
  content: ""; position: absolute; top: 17px; left: 8%; height: 3px; border-radius: 3px;
  width: 0; background: rgb(var(--accent));
  animation: line-grow 2.6s ease-in-out infinite;
}
@keyframes line-grow { 0% { width: 0; } 55%,100% { width: 84%; } }
.el-step { position: relative; text-align: center; padding-top: 0; }
.el-step .step-num { margin: 0 auto var(--s4); box-shadow: 0 0 0 6px rgb(var(--surface)); }
.el-step.steps-band-child { }

/* ==========================================================================
   PRICING — pulsing featured
   ========================================================================== */
.el-pricing .price-card.featured { animation: featured-glow 3s ease-in-out infinite; }
@keyframes featured-glow {
  0%,100% { box-shadow: var(--sh-md), 0 0 0 1px rgb(var(--accent) / .4); }
  50% { box-shadow: var(--sh-lg), 0 0 0 2px rgb(var(--accent) / .7), 0 12px 40px rgb(184 255 0 / .22); }
}
.el-pricing .price-card { transition: transform .2s ease; }
.el-pricing .price-card:hover { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .el-pricing .price-card.featured, .el-steps::after { animation: none; } .el-steps::after { width: 84%; } }

/* ==========================================================================
   DOCUMENTATION page
   ========================================================================== */
.doc-jump { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-top: var(--s6); }
.doc-jump a {
  font-size: 13px; font-weight: 600; color: rgb(var(--text-muted));
  padding: 6px 12px; border-radius: 999px; background: rgb(var(--border) / .06);
  border: 1px solid rgb(var(--border) / .08); transition: background .16s, color .16s;
}
.doc-jump a:hover { background: rgb(var(--border) / .1); color: rgb(var(--text)); }

.doc-section .container { max-width: 860px; }
.doc-section .doc-kicker { display: block; margin-bottom: var(--s2); }
.doc-section h2 { font-size: clamp(24px, 3.4vw, 34px); }
.doc-section p { margin-top: var(--s3); color: rgb(var(--text-muted)); font-size: 16.5px; line-height: 1.6; max-width: 68ch; }
.doc-shot {
  margin-top: var(--s6); border-radius: var(--r-panel); overflow: hidden;
  border: 1px solid rgb(var(--border) / .12); box-shadow: var(--sh-lg);
  background: rgb(var(--panel));
}
.doc-shot img { display: block; width: 100%; height: auto; }
.doc-shot.doc-shot-narrow { max-width: 420px; }
.doc-shot.doc-shot-menubar { max-width: 340px; margin-inline: auto; }

/* ==========================================================================
   BIG CTA strip
   ========================================================================== */
/* Fixed dark ink in BOTH themes so the lime accent always has contrast
   (in dark theme --text is light, which made lime unreadable here). */
.el-cta-band { --ink: 16 18 15; background: rgb(var(--ink)); color: rgb(255 255 255); text-align: center; }
.el-cta-band h2 { font-size: clamp(30px, 5vw, 52px); color: rgb(255 255 255); }
.el-cta-band .accent { color: rgb(var(--accent)); }
.el-cta-band p { color: rgb(255 255 255 / .72); margin-top: var(--s3); font-size: 17px; }
.el-cta-band .btn-secondary { background: rgb(var(--accent)); color: rgb(var(--on-accent)); border: none; margin-top: var(--s6); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 940px) {
  .el-hero .container { grid-template-columns: 1fr; }
  .el-mock { order: -1; max-width: 560px; }
  .el-features .features-grid { grid-template-columns: repeat(2, 1fr); }
  .el-features .feature, .el-features .feature.wide { grid-column: span 1; }
  .el-features .feature.lead-card { grid-column: span 2; flex-direction: column; text-align: center; align-items: center; }
  .el-steps { grid-template-columns: 1fr; }
  .el-steps::before, .el-steps::after { display: none; }
}
@media (max-width: 620px) {
  .el-features .features-grid { grid-template-columns: 1fr; }
  .el-features .feature, .el-features .feature.wide, .el-features .feature.lead-card { grid-column: span 1; }
  .el-chip-float { display: none; }
}
