/* ============ Fonts (self-hosted, OFL-licensed — see site/assets/fonts/LICENSE-*.txt) ============ */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/SpaceGrotesk-Variable.woff2") format("woff2-variations"), url("/fonts/SpaceGrotesk-Variable.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/Inter-Variable.woff2") format("woff2-variations"), url("/fonts/Inter-Variable.woff2") format("woff2");
}

/* ============ Tokens ============ */
:root {
  --bg: #090c12;
  --bg-elev: #10151f;
  --bg-elev-2: #161d2b;
  --text: #eef1f6;
  --text-muted: #93a1b5;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --green: #0ee80e;
  --green-bright: #4aee4a;
  --blue: #38bdf8;
  --amber: #fbbf24;
  --gradient: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --shadow-md: 0 14px 40px -18px rgba(0, 0, 0, 0.65);
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; color: var(--text-muted); }
ul { margin: 0 0 1em; padding-left: 1.25em; color: var(--text-muted); }
::selection { background: var(--green); color: #05130d; }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ============ Custom cursor ============ */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 232, 14, 0.16), rgba(56, 189, 248, 0.08) 45%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 5;
  opacity: 0;
  transition: opacity 0.4s ease;
  will-change: transform;
}
.cursor-glow.is-active { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .cursor-glow { display: none; }
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(9, 12, 18, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
}
.brand:hover { text-decoration: none; }
.brand-name { white-space: nowrap; }

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(160deg, #ffffff, #dfe6ec);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.logo-badge img { width: 100%; height: 100%; object-fit: cover; display: block; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
}
.footer-brand .brand-name { white-space: nowrap; }

.site-nav { display: flex; align-items: center; gap: 4px 22px; }
.site-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a.cta {
  background: var(--gradient);
  color: #06170f;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
}
.site-nav a.cta:hover { filter: brightness(1.08); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: #06170f;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-body);
  box-shadow: 0 10px 30px -8px rgba(14, 232, 14, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(14, 232, 14, 0.55); text-decoration: none; filter: brightness(1.05); }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text);
  padding: 13px 27px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-weight: 600;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.btn-outline:hover { border-color: var(--green); background: rgba(14, 232, 14, 0.08); text-decoration: none; }

/* ============ Hero ============ */
.hero {
  position: relative;
  text-align: center;
  padding: 130px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero-aurora {
  position: absolute;
  inset: -20% -10%;
  z-index: -1;
  filter: blur(60px);
  opacity: 0.55;
  pointer-events: none;
}
.hero-aurora span {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.hero-aurora span:nth-child(1) {
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px;
  top: -12%; left: -6%;
  background: radial-gradient(circle, var(--green) 0%, transparent 70%);
  animation: drift1 22s ease-in-out infinite;
}
.hero-aurora span:nth-child(2) {
  width: 40vw; height: 40vw; max-width: 560px; max-height: 560px;
  top: 6%; right: -10%;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  animation: drift2 26s ease-in-out infinite;
}
.hero-aurora span:nth-child(3) {
  width: 30vw; height: 30vw; max-width: 420px; max-height: 420px;
  bottom: -18%; left: 32%;
  background: radial-gradient(circle, var(--amber) 0%, transparent 70%);
  opacity: 0.5;
  animation: drift3 30s ease-in-out infinite;
}
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4%, 6%) scale(1.08); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-5%, 4%) scale(1.1); } }
@keyframes drift3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(3%, -5%) scale(1.05); } }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green-bright);
  background: rgba(14, 232, 14, 0.1);
  border: 1px solid rgba(14, 232, 14, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: 22px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero p { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 620px; margin: 0 auto 34px; }

/* ============ Reveal-on-scroll ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* ============ Sections ============ */
section { padding: 88px 0; position: relative; }
section.alt { background: var(--bg-elev); }
.section-heading { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-heading h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-heading p { font-size: 1.05rem; }

/* ============ Bento grid ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.bento .tile {
  grid-column: span 2;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.bento .tile:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.bento .tile.wide { grid-column: span 3; }
.bento.bento-3 { grid-template-columns: repeat(3, 1fr); }
.bento.bento-3 .tile { grid-column: span 1; }
@media (max-width: 880px) {
  .bento.bento-3 { grid-template-columns: 1fr; }
}
.bento .tile.large { grid-column: span 4; }
.bento .tile.tall { grid-row: span 2; }
.tile .icon-badge {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--gradient);
  margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: #06170f;
}
.tile h3 { font-size: 1.12rem; margin-bottom: 10px; }
.tile p { margin: 0; }

/* legacy simple grid (still used by a few sections) */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.card p { margin: 0; }

.banner {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.banner h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.banner p.lead { max-width: 720px; margin: 0 auto 30px; }


/* ============ Feature tabs (interactive screenshot swap) ============ */
.feature-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.tab-list { display: flex; flex-direction: column; gap: 10px; }
.tab-btn {
  text-align: left;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-body);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.tab-btn h3 { font-size: 1rem; margin: 0 0 4px; color: var(--text); }
.tab-btn p { font-size: 0.88rem; margin: 0; display: none; }
.tab-btn.is-active { border-color: var(--green); background: rgba(14, 232, 14, 0.07); }
.tab-btn.is-active p { display: block; }
.tab-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  aspect-ratio: 4 / 5;
}
.tab-visual img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.tab-visual img.is-active { opacity: 1; }
@media (max-width: 760px) {
  .feature-tabs { grid-template-columns: 1fr; }
}

/* legacy horizontal strip (kept for article/how-to use) */
.screenshot-strip { display: flex; gap: 20px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory; }
.screenshot-strip img { width: 220px; flex: 0 0 auto; border-radius: var(--radius-md); border: 1px solid var(--border); scroll-snap-align: start; }

/* ============ FAQ (JS-animated) ============ */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item button.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 4px;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.02rem;
}
.faq-item .faq-plus { color: var(--green); font-size: 1.3rem; flex: none; transition: transform 0.35s var(--ease); }
.faq-item.is-open .faq-plus { transform: rotate(45deg); }
.faq-item .faq-a {
  height: 0;
  overflow: hidden;
  transition: height 0.35s var(--ease);
}
.faq-item .faq-a p { padding: 0 4px 20px; margin: 0; }

/* ============ CTA band ============ */
.cta-band {
  text-align: center;
  padding: 70px 0;
  position: relative;
}
.cta-band h2 { margin-bottom: 26px; }

/* ============ Pricing ============ */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 auto 44px;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.switch {
  position: relative;
  width: 54px; height: 30px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
}
.switch .knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient);
  transition: transform 0.3s var(--ease);
}
.switch.is-on .knob { transform: translateX(24px); }
.save-badge {
  background: rgba(14, 232, 14, 0.12);
  color: var(--green-bright);
  border: 1px solid rgba(14, 232, 14, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; max-width: 620px; margin: 0 auto; }
.price-card {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.price-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.price-card .price {
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 700; margin: 14px 0;
}
.price-card .price span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.price-card .price-sub { font-size: 0.85rem; color: var(--text-muted); min-height: 1.2em; }

/* ============ Video embeds ============ */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.video-embed { position: relative; padding-top: 56.25%; border-radius: var(--radius-md); overflow: hidden; background: #000; margin-bottom: 14px; border: 1px solid var(--border); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ============ Prose ============ */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose h3 { margin-top: 1.2em; font-size: 1.1rem; }
.prose a { text-decoration: underline; }
.prose a.btn, .prose a.btn-outline { text-decoration: none; }

/* ============ Forms ============ */
form.simple-form { max-width: 480px; margin: 0 auto; display: grid; gap: 16px; }
form.simple-form label { font-weight: 600; font-size: 0.88rem; display: block; margin-bottom: 5px; color: var(--text); }
form.simple-form input, form.simple-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
}
form.simple-form input:focus, form.simple-form textarea:focus { outline: none; border-color: var(--green); }
form.simple-form .fineprint { font-size: 0.78rem; color: var(--text-muted); }

/* ============ Affiliates ============ */
.affiliate-list { display: grid; gap: 20px; margin-top: 30px; }

/* ============ Article list / post ============ */
.article-card { border-bottom: 1px solid var(--border); padding: 30px 0; }
.article-card h2 { font-size: 1.3rem; }
.article-card .date { color: var(--text-muted); font-size: 0.85rem; }
.article-post img.featured { border-radius: var(--radius-lg); margin-bottom: 26px; border: 1px solid var(--border); }
.article-post .date { color: var(--text-muted); margin-bottom: 26px; }

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 44px 0 30px;
  font-size: 0.88rem;
}
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 18px; }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

/* ============ Responsive ============ */
@media (max-width: 880px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .tile, .bento .tile.wide, .bento .tile.large { grid-column: span 2; }
}
@media (max-width: 780px) {
  .site-nav { position: fixed; inset: 68px 0 0 0; background: var(--bg); flex-direction: column; align-items: flex-start; padding: 24px; gap: 18px; transform: translateX(100%); transition: transform 0.35s var(--ease); overflow-y: auto; }
  .site-nav.is-open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .hero { padding: 100px 0 64px; }
  section { padding: 60px 0; }
}
@media (max-width: 480px) {
  .brand-name { display: none; }
  .footer-brand .brand-name { display: none; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .cursor-glow { display: none; }
}
