/* =========================================================
   EPISODE-INSPIRED LIQUID GLASS UI
   ---------------------------------------------------------
   This stylesheet keeps your existing structure and class
   names, but shifts the design language toward:
   - playful dark gradients
   - liquid glass panels
   - soft neon glow accents
   - rounded, polished app UI
   - stronger "tool" feeling, less "luxury SaaS"
   ========================================================= */

:root {
  /* Core background palette */
  --bg: #0b1020;
  --bg-soft: #12182c;
  --bg-deep: #090d18;

  /* Glass surfaces */
  --panel: rgba(255, 255, 255, 0.08);
  --panel-strong: rgba(255, 255, 255, 0.13);
  --panel-soft: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(255, 255, 255, 0.22);

  /* Typography */
  --text: #f8f7ff;
  --muted: #c9c6d8;
  --muted-soft: #a9a7bb;

  /* Accent colors inspired by playful app / Episode vibes */
  --accent: #ff4fc4;
  --accent-2: #8b5cff;
  --accent-3: #53b7ff;
  --accent-4: #ff8dd8;

  /* Accent transparency helpers */
  --accent-soft: rgba(255, 79, 196, 0.16);
  --accent-soft-2: rgba(139, 92, 255, 0.18);
  --accent-soft-3: rgba(83, 183, 255, 0.16);

  /* Status / feedback */
  --danger: #ffd36d;

  /* Shadows */
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.22);

  /* Radii */
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  /* Layout */
  --max: 1180px;
  --transition: 0.28s ease;
}

* {
  box-sizing: border-box;
}

html {
  background: #0a0f1d;
  color-scheme: dark;
  min-height: 100%;
  min-height: -webkit-fill-available;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 8%, rgba(255, 79, 196, 0.18), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(83, 183, 255, 0.16), transparent 22%),
    radial-gradient(circle at 50% 82%, rgba(139, 92, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #0a0f1d 0%, #12182c 52%, #0d1322 100%);
  color: var(--text);
  line-height: 1.55;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  animation: page-fade-in 220ms ease both;
  transition: opacity 150ms ease;
}

body.page-fade-out {
  opacity: 0;
}

/* Global ambient light layer */
body::before {
  content: "";
  position: fixed;
  inset: -50vh 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.04), transparent 20%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.03), transparent 18%);
  z-index: 0;
}

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

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

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* =========================================================
   Small badge / eyebrow
   ========================================================= */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.16);
  color: #f9dcff;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 8px 24px rgba(0,0,0,0.16);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-4), var(--accent));
  box-shadow:
    0 0 14px rgba(255, 79, 196, 0.72),
    0 0 26px rgba(139, 92, 255, 0.28);
}

/* =========================================================
   Header / navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  background: rgba(10, 14, 26, 0.58);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.16),
    rgba(139,92,255,0.24),
    transparent
  );
  pointer-events: none;
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.08)),
    linear-gradient(135deg, rgba(255,79,196,0.28), rgba(83,183,255,0.18));
  border: 1px solid rgba(255,255,255,0.18);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 8px 24px rgba(0,0,0,0.18);
  font-size: 1rem;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  transition: color var(--transition), opacity var(--transition);
  opacity: 0.92;
}

.nav-links a:hover {
  color: var(--text);
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 700;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    opacity var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background:
    linear-gradient(135deg, #ff5fcd 0%, #8b5cff 55%, #53b7ff 100%);
  color: white;
  box-shadow:
    0 14px 34px rgba(139,92,255,0.28),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

.btn-primary:hover {
  box-shadow:
    0 18px 40px rgba(139,92,255,0.34),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

.btn-secondary {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 8px 26px rgba(0,0,0,0.14);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.16);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  padding: 72px 0 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 34px;
  align-items: center;
}

.hero-grid.solo {
  grid-template-columns: 1fr;
  justify-items: end;
}

.hero-grid.solo .hero-copy {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero-grid.hero-with-demo {
  grid-template-columns: 0.96fr 1.04fr;
}

.hero-grid.hero-with-demo .hero-copy {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero-wave-wrap {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  transform: translateY(-50px);
}

.hero-wave-scene {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 9 / 7;
  border-radius: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-wave-arm-wrap {
  position: absolute;
  left: 14%;
  top: 13%;
  width: 72%;
  aspect-ratio: 1 / 1;
}

.hero-wave-arm-selection {
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  animation:
    heroAnchorIntro 7s linear 1 forwards,
    heroRotateIntro 7s ease-in-out 1 forwards,
    heroRotateLoop 3.4s ease-in-out 7s infinite;
}

.hero-wave-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

.hero-wave-selection-border {
  position: absolute;
  inset: 0;
  border: 1px solid #1fc45a;
  opacity: 0;
  pointer-events: none;
  animation: heroSelectionAppear 7s linear 1 forwards;
}

.hero-wave-anchor-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  background: #1fc45a;
  border-radius: 50%;
  opacity: 0;
  z-index: 3;
  pointer-events: none;
  animation:
    heroSelectionAppear 7s linear 1 forwards,
    heroDotIntro 7s linear 1 forwards;
}

.hero-wave-mouse {
  position: absolute;
  width: 24px;
  height: 34px;
  left: 72%;
  top: 44%;
  z-index: 20;
  pointer-events: none;
  animation:
    heroMouseIntro 7s ease-in-out 1 forwards,
    heroMouseLoop 3.4s ease-in-out 7s infinite;
}

.hero-wave-mouse::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  border: 2px solid #1f1f1f;
  clip-path: polygon(0 0, 0 100%, 30% 73%, 46% 100%, 58% 94%, 41% 66%, 76% 66%);
  box-shadow: 0 2px 7px rgba(0,0,0,0.18);
}

.hero-wave-mouse::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(31, 196, 90, 0.28);
  transform: scale(0);
  opacity: 0;
  animation: heroClickPulse 7s ease-in-out 1 forwards;
}

@keyframes heroSelectionAppear {
  0%, 14% { opacity: 0; }
  15%, 100% { opacity: 1; }
}

@keyframes heroClickPulse {
  0%, 14% { transform: scale(0); opacity: 0; }
  15% { transform: scale(0.35); opacity: 0.65; }
  19% { transform: scale(1.5); opacity: 0; }
  20%, 100% { transform: scale(0); opacity: 0; }
}

@keyframes heroDotIntro {
  0%, 58% { left: 50%; top: 50%; }
  72%, 100% { left: 18%; top: 82%; }
}

@keyframes heroAnchorIntro {
  0%, 58% { transform-origin: 50% 50%; }
  72%, 100% { transform-origin: 18% 82%; }
}

@keyframes heroRotateIntro {
  0%, 18% { transform: rotate(0deg); }
  30% { transform: rotate(-20deg); }
  40% { transform: rotate(40deg); }
  50%, 66% { transform: rotate(-20deg); }
  72% { transform: rotate(-20deg); }
  84% { transform: rotate(-20deg); }
  100% { transform: rotate(-20deg); }
}

@keyframes heroRotateLoop {
  0% { transform: rotate(-20deg); }
  38% { transform: rotate(40deg); }
  76% { transform: rotate(-20deg); }
  100% { transform: rotate(-20deg); }
}

@keyframes heroMouseIntro {
  0% { transform: translate(0, 0); }
  12% { transform: translate(-82px, -22px); }
  18% { transform: translate(-82px, -22px); }
  26% { transform: translate(-150px, -58px); }
  40% { transform: translate(-118px, -18px); }
  50% { transform: translate(-118px, -18px); }
  58% { transform: translate(-170px, -46px); }
  72% { transform: translate(-278px, 54px); }
  84% { transform: translate(-266px, 24px); }
  100% { transform: translate(-266px, 24px); }
}

@keyframes heroMouseLoop {
  0% { transform: translate(-266px, 24px); }
  38% { transform: translate(-236px, 124px); }
  76% { transform: translate(-266px, 24px); }
  100% { transform: translate(-266px, 24px); }
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 11ch;
  text-wrap: balance;
}

.hero-lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 26px;
}

.hero-copy strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
  justify-content: flex-end;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-note span::before {
  content: "\2022";
  color: var(--accent-4);
  text-shadow: 0 0 10px rgba(255,79,196,0.45);
}

/* =========================================================
   Glass cards / shared elevated surfaces
   ========================================================= */

.hero-card,
.card,
.demo-window,
.cta-card,
.demo-box {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255,255,255,0.18);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  overflow: hidden;
  isolation: isolate;
}

/* Soft glow decoration inside glass panels */
.hero-card::before,
.card::before,
.demo-window::before,
.cta-card::before,
.demo-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.14), transparent 26%),
    radial-gradient(circle at bottom right, rgba(139,92,255,0.12), transparent 28%);
  pointer-events: none;
  z-index: -1;
}

/* Additional decorative glow for larger panels */
.hero-card::after,
.cta-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,255,0.18), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-card {
  padding: 24px;
}

/* =========================================================
   Demo / app window
   ========================================================= */

.demo-window {
  border-radius: 20px;
}

.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  font-size: 0.92rem;
  color: var(--muted);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.dots {
  display: flex;
  gap: 7px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.demo-body {
  padding: 18px;
  display: grid;
  gap: 18px;
}

/* =========================================================
   Dropzone
   ========================================================= */

.dropzone {
  border: 1px dashed rgba(255,255,255,0.24);
  border-radius: 18px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)),
    linear-gradient(135deg, rgba(255,79,196,0.08), rgba(83,183,255,0.05));
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.dropzone:hover,
.dropzone.is-dragover {
  border-color: rgba(255,255,255,0.34);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.05)),
    linear-gradient(135deg, rgba(255,79,196,0.12), rgba(83,183,255,0.08));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 12px 30px rgba(0,0,0,0.16);
  transform: translateY(-1px);
}

.dropzone-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.dropzone-sub {
  color: var(--muted);
  font-size: 0.94rem;
}

.dropzone-input {
  display: none;
}

.dropzone-file {
  margin-top: 10px;
  color: #ffd3f4;
  font-size: 0.9rem;
}

/* =========================================================
   Demo controls / progress
   ========================================================= */

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.demo-status {
  color: var(--muted);
  font-size: 0.92rem;
}

.demo-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.demo-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff5fcd 0%, #8b5cff 55%, #53b7ff 100%);
  box-shadow: 0 0 24px rgba(139,92,255,0.35);
  transition: width 180ms linear;
}

.demo-output {
  display: grid;
  gap: 14px;
}

.demo-output-note {
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================================================
   Shade previews
   ========================================================= */

.shade-group {
  display: grid;
  gap: 8px;
}

.shade-group-title {
  color: #f7dcff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.shade-row {
  display: grid;
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 8px;
}

.shade-cell {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr auto;
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.shade-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  background: rgba(4, 7, 16, 0.22);
  aspect-ratio: 1 / 1.1;
}

.shade-label {
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
  padding: 5px 4px 6px;
  border-top: 1px solid rgba(255,255,255,0.08);
  letter-spacing: 0.02em;
}

/* =========================================================
   Preview tiles
   ========================================================= */

.preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.preview-tile {
  aspect-ratio: 1 / 1.12;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
}

.preview-tile::before {
  content: "";
  position: absolute;
  inset: 14% 22%;
  border-radius: 999px 999px 40% 40%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0.08));
  opacity: 0.85;
}

.preview-tile::after {
  content: "PREVIEW";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.20);
  transform: rotate(-35deg) scale(1.2);
}

/* =========================================================
   Status chips
   ========================================================= */

.tool-status {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.status-chip {
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
}

/* =========================================================
   Generic sections
   ========================================================= */

.section {
  padding: 42px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-head.section-head-right {
  margin-left: auto;
  text-align: right;
}

.problem-grid,
.steps-grid,
.pricing-grid,
.faq-grid,
.feature-grid,
.proof-grid {
  display: grid;
  gap: 18px;
}

.problem-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-grid.proof-grid-single {
  grid-template-columns: 1fr;
}

.pricing-grid {
  grid-template-columns: 0.92fr 1.08fr;
  align-items: stretch;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Base card */
.card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.card p,
.card li {
  color: var(--muted);
}

/* =========================================================
   Lists / bullets
   ========================================================= */

.muted-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
}

.muted-list li {
  position: relative;
  padding-left: 18px;
}

.muted-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent-4), var(--accent-2));
  box-shadow: 0 0 12px rgba(255,79,196,0.34);
}

/* =========================================================
   Steps
   ========================================================= */

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,79,196,0.20), rgba(83,183,255,0.16)),
    rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 8px 20px rgba(0,0,0,0.14);
}

/* =========================================================
   Spotlight cards
   ========================================================= */

.spotlight {
  position: relative;
  overflow: hidden;
}

.spotlight::after {
  content: "";
  position: absolute;
  inset: auto auto -60px -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255,79,196,0.16), transparent 70%);
  pointer-events: none;
}

/* =========================================================
   Pricing
   ========================================================= */

.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.plan-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-size: 0.84rem;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--muted);
  width: fit-content;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.price {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 10px 0 4px;
}

.price strong {
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.price span {
  color: var(--muted);
  padding-bottom: 8px;
}

.pricing-note {
  color: var(--muted);
  margin-bottom: 18px;
}

.pricing-action-right {
  display: flex;
  justify-content: flex-end;
}

.community-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
}

.community-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(145deg, rgba(88, 101, 242, 0.92), rgba(255, 79, 196, 0.44));
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 34px rgba(88, 101, 242, 0.22);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.community-icon:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 22px 40px rgba(88, 101, 242, 0.28);
}

.community-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.community-card p {
  margin: 0 0 10px;
}

.community-card p:last-child {
  margin-bottom: 0;
}

.community-tag {
  color: #ffd3f4;
  font-weight: 800;
}

.community-action {
  align-self: end;
}

#pricing .section-head {
  width: min(100%, 760px);
  margin: 0 auto 28px;
  text-align: left;
}

#pricing .pricing-grid {
  grid-template-columns: 1fr;
  justify-items: center;
}

#pricing .pricing-card {
  width: min(100%, 760px);
  text-align: left;
  grid-column: auto;
  justify-self: center;
}

#pricing .plan-tag {
  margin-left: 0;
  margin-right: auto;
}

#pricing .price {
  justify-content: flex-start;
}

#pricing .muted-list li {
  padding-left: 18px;
  padding-right: 0;
}

#pricing .muted-list li::before {
  left: 0;
  right: auto;
}

#pricing .pricing-action-right {
  justify-content: flex-start;
}

.comparison {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.comparison-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}

.comparison-row strong {
  color: var(--text);
  font-weight: 600;
}

/* =========================================================
   Demo box / empty state
   ========================================================= */

.demo-box {
  min-height: 320px;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  color: var(--muted);
}

.demo-box strong {
  display: block;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-item {
  height: 100%;
}

.faq-item h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

/* =========================================================
   CTA
   ========================================================= */

.cta {
  padding: 54px 0 80px;
}

.cta-card {
  padding: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  border: 1px solid rgba(255,255,255,0.16);
}

.cta-card h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.cta-card p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  padding: 22px 0 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

.global-logout-btn {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 120;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(10, 14, 26, 0.72);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.global-logout-btn:hover {
  border-color: rgba(255,255,255,0.28);
}

.footer-inner {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* =========================================================
   Scroll reveal
   ========================================================= */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  filter: blur(3px);
  transition:
    opacity 720ms ease,
    transform 780ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 680ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: none;
  filter: none;
}

@keyframes page-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal-on-scroll,
  .reveal-on-scroll.is-revealed {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1040px) {
  .hero-grid,
  .problem-grid,
  .feature-grid,
  .steps-grid,
  .pricing-grid,
  .proof-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .community-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .community-action {
    align-self: start;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .hero-grid.hero-with-demo .hero-copy {
    text-align: center;
    align-items: center;
  }

  .hero-wave-wrap {
    justify-content: center;
  }

  .hero-wave-scene {
    width: min(100%, 520px);
  }

}

@media (max-width: 760px) {
  .hero-grid.hero-with-demo {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .nav-links {
    display: none;
  }

  .nav-actions .btn-secondary {
    display: none;
  }

  .nav-actions #nav-auth-btn {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-card,
  .card,
  .cta-card {
    padding: 20px;
  }

  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .shade-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .hero-note {
    flex-direction: column;
    gap: 8px;
  }

  .hero-wave-wrap {
    order: -1;
    width: 100%;
    justify-content: center;
    transform: none;
    margin-bottom: 10px;
  }

  .hero-wave-scene {
    width: min(100%, 260px);
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .cta-card {
    align-items: flex-start;
  }

  .cta-actions {
    width: 100%;
    display: grid;
    gap: 10px;
  }
}
