/* =========================
   TomsBGRemover — 2026 Redesign
   Premium Software Aesthetic
   Clean • Refined • Professional
========================= */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Colors - Refined dark palette with teal accent */
  --bg: #09090b;
  --bg-elevated: #0c0c0f;
  --bg-card: #111114;
  --bg-hover: #18181c;
  
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.10);
  --border-accent: rgba(45,212,191,0.25);
  
  --accent: #2dd4bf;
  --accent-soft: rgba(45,212,191,0.15);
  --accent-glow: rgba(45,212,191,0.4);
  
  --secondary: #8b5cf6;
  --secondary-soft: rgba(139,92,246,0.15);
  
  --success: #22c55e;
  --warning: #f59e0b;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 60px rgba(45,212,191,0.15);
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Typography */
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  
  /* Spacing */
  --container: 1200px;
  --section-gap: 120px;
  
  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light theme */
:root[data-theme="light"] {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #f4f4f5;
  
  --text: #09090b;
  --text-secondary: #52525b;
  --text-muted: #a1a1aa;
  
  --border: rgba(0,0,0,0.06);
  --border-hover: rgba(0,0,0,0.10);
  --border-accent: rgba(13,148,136,0.25);
  
  --accent: #0d9488;
  --accent-soft: rgba(13,148,136,0.10);
  --accent-glow: rgba(13,148,136,0.2);
  
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 60px rgba(13,148,136,0.1);
}

/* ---------- Base Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle gradient mesh background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 20% -10%, var(--accent-soft), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 10%, var(--secondary-soft), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
::selection { background: var(--accent-soft); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* ---------- Container ---------- */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, var(--container)); }
}

/* ---------- Sections ---------- */
.section {
  padding: var(--section-gap) 0;
  position: relative;
}

.section--compact { padding: 80px 0; }

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.section__title {
  margin-bottom: 16px;
  background: linear-gradient(180deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section__desc {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.7;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s var(--ease-out);
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.site-header.is-scrolled {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 1;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--bg);
  box-shadow: var(--shadow-md), 0 0 20px var(--accent-glow);
}

.brand__name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.nav__links a {
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s var(--ease-out);
}

.nav__links a:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.nav__links a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-hover);
}

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

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 960px) {
  .nav__links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 12px;
    box-shadow: var(--shadow-lg);
  }
  
  .nav__links a {
    width: 100%;
    padding: 14px 16px;
  }
  
  .nav__toggle { display: flex; }
  .nav.is-open .nav__links { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  white-space: nowrap;
}

.btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

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

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent);
  filter: brightness(1.1);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn--secondary {
  background: var(--accent-soft);
  border-color: var(--border-accent);
  color: var(--accent);
}

.btn--secondary:hover {
  background: rgba(45,212,191,0.2);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}

.btn--ghost:hover {
  color: var(--text);
  background: var(--bg-hover);
}

.btn--lg {
  padding: 16px 28px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}

.icon-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease-out);
}

.icon-btn:hover {
  color: var(--text);
  background: var(--bg-hover);
  border-color: var(--border-hover);
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all 0.3s var(--ease-out);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.card--featured {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.card__title {
  margin-bottom: 8px;
}

.card__text {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Grid System ---------- */
.grid {
  display: grid;
  gap: 20px;
}

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

@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ---------- Hero Section ---------- */
.hero {
  padding-top: 160px;
  padding-bottom: var(--section-gap);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 1024px) {
  .hero__layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

.hero__content {
  max-width: 560px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero__badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero__title {
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero__title span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.hero__stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero Visual */
.hero__visual {
  position: relative;
}

.app-preview {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.app-preview__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.app-preview__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.app-preview__dot--red { background: #ff5f57; }
.app-preview__dot--yellow { background: #febc2e; }
.app-preview__dot--green { background: #28c840; }

.app-preview__title {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.app-preview__body {
  padding: 0;
}

.app-preview__body img {
  width: 100%;
  display: block;
}

/* Feature callouts floating around preview */
.hero__callouts {
  position: absolute;
  top: 50%;
  right: -60px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 220px;
}

@media (max-width: 1200px) {
  .hero__callouts {
    position: static;
    transform: none;
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 24px;
  }
}

.callout {
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 13px;
  transition: all 0.2s var(--ease-out);
}

.callout:hover {
  border-color: var(--border-accent);
  transform: translateX(-4px);
}

@media (max-width: 1200px) {
  .callout:hover { transform: translateY(-2px); }
}

.callout strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.callout span {
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---------- Features Grid ---------- */
.features {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
}

.feature-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-card__title {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.feature-card__text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- Steps / Workflow ---------- */
.steps {
  display: flex;
  gap: 24px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

@media (max-width: 768px) {
  .steps {
    flex-direction: column;
  }
  
  .steps::before {
    top: 0;
    bottom: 0;
    left: 27px;
    right: auto;
    width: 2px;
    height: auto;
  }
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .step {
    display: flex;
    text-align: left;
    gap: 20px;
  }
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

@media (max-width: 768px) {
  .step__number {
    margin: 0;
    flex-shrink: 0;
  }
}

.step__content {
  max-width: 280px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .step__content {
    margin: 0;
    max-width: none;
  }
}

.step__title {
  margin-bottom: 8px;
}

.step__text {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ---------- Testimonials ---------- */
.testimonial {
  padding: 32px;
  position: relative;
}

.testimonial__quote {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial__author {
  color: var(--text-muted);
  font-size: 14px;
}

/* ---------- Pricing Cards ---------- */
.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 36px;
  height: 100%;
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  position: relative;
}

.pricing-card--featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: var(--accent);
  color: var(--bg);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
}

.pricing-card__badge {
  display: inline-flex;
  padding: 6px 12px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  align-self: flex-start;
}

.pricing-card__name {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card__desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-card__feature::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* ---------- FAQ Accordion ---------- */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
}

.faq-item + .faq-item {
  margin-top: 12px;
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--text-muted);
  transition: transform 0.2s var(--ease-out);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- CTA Section ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-soft), transparent 70%);
  pointer-events: none;
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

.cta-section__title {
  margin-bottom: 16px;
}

.cta-section__desc {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
  background: var(--bg-elevated);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 540px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

.footer__brand {
  max-width: 300px;
}

.footer__brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer__brand-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s var(--ease-out);
}

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

.footer__bottom {
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer__bottom a {
  color: var(--text-secondary);
}

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

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ---------- Checklist ---------- */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.checklist li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Code / KBD ---------- */
code, .kbd {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ---------- Divider ---------- */
.hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

/* ---------- Before/After Gallery Slider ---------- */
.ba {
  --pos: 50%;
  position: relative;
  width: 100%;
  height: clamp(300px, 40vw, 500px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-image: var(--ba-before);
  background-size: cover;
  background-position: center;
}

.ba__after {
  position: absolute;
  inset: 0;
  background-color: #f1f1f1;
  background-image:
    var(--ba-after),
    linear-gradient(45deg, rgba(0,0,0,0.08) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.08) 75%),
    linear-gradient(45deg, rgba(0,0,0,0.08) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.08) 75%);
  background-size: cover, 20px 20px, 20px 20px;
  background-position: center, 0 0, 10px 10px;
  clip-path: inset(0 0 0 var(--pos));
}

.ba__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  background: white;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.ba__range {
  -webkit-appearance: none;
  appearance: none;
  width: calc(100% - 40px);
  height: 32px;
  background: transparent;
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 10;
}

.ba__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid white;
  cursor: grab;
  box-shadow: var(--shadow-md);
}

.ba__range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.3);
}

/* ---------- Form Inputs ---------- */
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 14px;
  transition: all 0.2s var(--ease-out);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* ---------- Stat Blocks ---------- */
.stat {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.stat__label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.stat__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

/* ---------- Panel ---------- */
.panel {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.panel__title {
  font-size: 1rem;
  margin-bottom: 8px;
}

.panel__text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- App Frame (for screenshots) ---------- */
.app-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.app-frame__topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot--red { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green { background: #28c840; }

.app-frame__title {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.app-frame__body {
  padding: 0;
}

.app-frame__body img {
  width: 100%;
  display: block;
}

/* =========================
   Generated content typography
   ========================= */

.content-article {
  max-width: 76ch;
  margin: 0 auto;
}

.content-article a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.content-article a:hover {
  text-decoration-thickness: 2px;
}

.content-article h1 {
  margin: 0 0 14px 0;
  line-height: 1.15;
}

.content-article h2 {
  margin: 34px 0 12px 0;
  line-height: 1.2;
}

.content-article h3 {
  margin: 22px 0 10px 0;
  line-height: 1.25;
}

.content-article p {
  margin: 0 0 14px 0;
  line-height: 1.7;
}

.content-article ul,
.content-article ol {
  margin: 0 0 16px 22px;
  padding: 0;
}

.content-article li {
  margin: 8px 0;
  line-height: 1.65;
}

.content-article hr {
  margin: 22px 0;
  opacity: 0.25;
}

.content-article blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--accent-primary);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
}

.content-article blockquote p {
  margin: 0;
}

.content-article__kicker {
  margin: 0 0 10px 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: 0.85;
}

.content-article__intro {
  margin: 0 0 14px 0;
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.95;
}

.content-article__meta {
  margin: 10px 0 0 0;
  font-size: 13px;
  opacity: 0.8;
}

.content-callout {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.content-callout--tip {
  border-left: 3px solid #22c55e;
}

.content-callout--note {
  border-left: 3px solid #3b82f6;
}

.content-callout--warning {
  border-left: 3px solid #ef4444;
}

.content-article__footer {
  margin-top: 28px;
}


/* ---------- Meta Pills ---------- */
.meta-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.meta-pill__label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-pill__value {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

.animate-fade-in {
  animation: fadeIn 0.6s var(--ease-out) forwards;
  opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
