/* ---------- ROOT TOKENS ----------
   Ported from the app's dark "Nocturne" theme (app/styles/auth-theme.css).
   Kept as flat :root vars here since this static site can't import that file. */
:root {
  --bg: #08070c;
  --panel-bg: #0d0e16;
  --glow: #1c1a30;
  --card: #14151d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f5f7;
  --text-soft: #8b93a1;
  --input-bg: #1a1b24;
  --accent: #7c7ff5;
  --accent-soft: rgba(124, 127, 245, 0.1);

  --font-space-grotesk: "Space Grotesk", sans-serif;
  --font-inter: "Inter", sans-serif;
  --font-ibm-plex-mono: "IBM Plex Mono", monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-inter);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- SHARED PRIMITIVES ---------- */
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.btn-primary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(124, 127, 245, 0.25);
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-secondary {
  color: var(--text-soft);
}
.btn-secondary:hover {
  color: var(--text);
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-title {
  font-family: var(--font-space-grotesk);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.section-subtitle {
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-space-grotesk);
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.brand svg {
  width: 22px;
  height: 22px;
  flex: none;
}

/* ---------- SCROLL REVEAL ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- AMBIENT KEYFRAMES ---------- */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes scrollCueBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(8px);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.85;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

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

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  background: rgba(8, 7, 12, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-soft);
}
.nav-links a {
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-login-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
}
.header-login-link:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  padding: 48px 40px;
  background: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(
    ellipse 900px 700px at 50% 420px,
    var(--glow),
    transparent 70%
  );
  animation: glowPulse 8s ease-in-out infinite;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("../assets/hero-background.png");
  background-size: cover;
  background-position: center 35%;
  opacity: 0.4;
  filter: grayscale(55%) brightness(0.65) contrast(1.05);
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-copy .eyebrow {
  animation: heroFadeUp 0.8s var(--ease-out) both;
}

.hero-headline {
  font-family: var(--font-space-grotesk);
  font-weight: 700;
  font-size: 48px;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 18px;
  animation: heroFadeUp 0.8s var(--ease-out) 0.1s both;
}

.hero-subtitle {
  color: var(--text-soft);
  font-size: 16.5px;
  line-height: 1.6;
  margin: 0 0 32px;
  max-width: 46ch;
  animation: heroFadeUp 0.8s var(--ease-out) 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  animation: heroFadeUp 0.8s var(--ease-out) 0.3s both;
}

.hero-secondary-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-soft);
}
.hero-secondary-link:hover {
  color: var(--text);
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: heroFadeUp 0.9s var(--ease-out) 0.25s both;
}
.hero-visual img {
  width: 100%;
  max-width: 640px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55));
  animation: heroFloat 6s ease-in-out 1.1s infinite;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  color: var(--text-soft);
  opacity: 0.7;
  animation: heroFadeUp 0.8s var(--ease-out) 0.5s both;
}
.hero-scroll-cue svg {
  width: 22px;
  height: 22px;
  animation: scrollCueBounce 2s ease-in-out infinite;
}
.hero-scroll-cue:hover {
  color: var(--text);
  opacity: 1;
}

/* ---------- WHAT WE DO ---------- */
.section {
  padding: 96px 40px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition:
    transform 0.35s var(--ease-out),
    border-color 0.35s ease,
    box-shadow 0.35s var(--ease-out);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.35s var(--ease-out);
}
.feature-card:hover .feature-icon {
  transform: scale(1.1);
}
.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-title {
  font-family: var(--font-space-grotesk);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 8px;
}

.feature-desc {
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- TEMPLATES ---------- */
.section-alt {
  background: var(--panel-bg);
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 16px;
}

.template-card-frame {
  border-radius: 12px;
  overflow: hidden;
  height: 220px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s var(--ease-out);
}
.template-card-frame:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.template-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.45s var(--ease-out);
}
.template-card-frame:hover img {
  transform: scale(1.06);
}

.template-card-label {
  margin: 14px 0 0;
  font-family: var(--font-space-grotesk);
  font-weight: 700;
  font-size: 15px;
  transition: color 0.3s ease;
}
.template-card-frame:hover ~ .template-card-label {
  color: var(--accent);
}

.templates-note {
  color: var(--text-soft);
  font-size: 13.5px;
  font-family: var(--font-ibm-plex-mono);
  margin: 0 0 32px;
}

/* ---------- SOCIAL PROOF ---------- */
.social-proof {
  position: relative;
  background-image:
    linear-gradient(
      180deg,
      var(--bg) 0%,
      rgba(8, 7, 12, 0.94) 40%,
      rgba(8, 7, 12, 0.94) 100%
    ),
    url("../assets/hero-background.png");
  background-size: cover;
  background-position: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: rgba(20, 21, 29, 0.9);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 26px;
  backdrop-filter: blur(4px);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out);
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.testimonial-quote {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 20px;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-space-grotesk);
  font-weight: 700;
  font-size: 13px;
  flex: none;
}

.testimonial-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.testimonial-role {
  font-size: 12.5px;
  color: var(--text-soft);
}

/* ---------- PRICING ---------- */
.pricing-free-card {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 40px;
  text-align: center;
  margin: 0 0 24px;
}

.pricing-free-label {
  font-family: var(--font-ibm-plex-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}

.free-feature-list {
  list-style: none;
  margin: 0 auto 28px;
  padding: 0;
  max-width: 520px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  text-align: left;
}
.free-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
}
.free-feature-list li svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--accent);
}

.disclosure {
  margin: 0 0 24px;
}

.disclosure-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-soft);
  list-style: none;
}
.disclosure-toggle::-webkit-details-marker {
  display: none;
}
.disclosure-toggle:hover {
  color: var(--text);
}

.disclosure-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}
.disclosure[open] .disclosure-chevron {
  transform: rotate(180deg);
}

.disclosure-toggle + * {
  margin-top: 28px;
}

.pricing-table-scroll {
  overflow-x: auto;
  margin: 0 0 28px;
}

.pricing-table {
  position: relative;
  display: grid;
  grid-template-columns: 2.1fr 1fr 1.4fr;
  min-width: 560px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}

.pricing-table-highlight {
  background: var(--accent-soft);
  z-index: 0;
}

.pricing-cell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}
.pricing-cell-last-row {
  border-bottom: none;
}

.pricing-head-cell {
  background: rgba(255, 255, 255, 0.02);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.pricing-feature-cell {
  gap: 10px;
}
.pricing-feature-cell svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--text-soft);
}

.pricing-align-right {
  justify-content: flex-end;
  text-align: right;
}

.pricing-muted {
  color: var(--text-soft);
}

.pricing-pro-cell {
  font-weight: 600;
  gap: 6px;
}
.pricing-head-cell.pricing-pro-cell {
  color: var(--accent);
}
.pricing-head-cell.pricing-pro-cell svg {
  width: 14px;
  height: 14px;
}

.pricing-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 40px 32px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--card);
}

.pricing-cta-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.pricing-cta-icon svg {
  width: 24px;
  height: 24px;
}

.pricing-cta-title {
  font-family: var(--font-space-grotesk);
  font-weight: 700;
  font-size: 19px;
  margin: 0;
}

.pricing-cta-subtitle {
  color: var(--text-soft);
  font-size: 14px;
  margin: 0;
  max-width: 44ch;
}

.pricing-cta-action {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 14px;
}

.pricing-cta-price {
  font-family: var(--font-space-grotesk);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}
.pricing-cta-price-period {
  font-family: var(--font-inter);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-list .disclosure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  transition: border-color 0.3s ease;
}
.faq-list .disclosure[open] {
  border-color: var(--border-strong);
}

.faq-list .disclosure-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.faq-list .disclosure-toggle:hover {
  color: var(--accent);
}

.faq-list .disclosure-chevron {
  flex: none;
  color: var(--text-soft);
}

.faq-list .disclosure-toggle + * {
  margin-top: 14px;
}

.faq-answer {
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

/* ---------- CTA BAND ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
  padding: 100px 40px;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    ellipse 900px 700px at 50% 420px,
    var(--glow),
    transparent 70%
  );
  animation: glowPulse 8s ease-in-out 2s infinite reverse;
  pointer-events: none;
}

.cta-band-title {
  font-family: var(--font-space-grotesk);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 auto 32px;
  max-width: 20ch;
}

/* ---------- FOOTER ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 32px 40px;
  border-top: 1px solid var(--border);
}

.footer-copy {
  color: var(--text-soft);
  font-size: 13px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13.5px;
  color: var(--text-soft);
}
.footer-links a:hover {
  color: var(--text);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
  .container,
  .site-header,
  .hero,
  .section,
  .cta-band,
  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    order: -1;
  }
  .hero-headline {
    font-size: 34px;
  }
  .section-title {
    font-size: 26px;
  }
  .cta-band-title {
    font-size: 28px;
  }

  .feature-grid,
  .templates-grid,
  .testimonial-grid,
  .free-feature-list {
    grid-template-columns: 1fr;
  }

  .pricing-free-card {
    padding: 28px 20px;
  }

  .header-actions {
    gap: 12px;
  }

  .btn {
    width: 100%;
  }
  .hero-actions .btn,
  .cta-band .btn {
    width: auto;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-actions .btn-primary {
    flex: 1;
  }
}
