/* Magic Bulk Renamer — Sales Landing Page */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --teal: #0d9488;
  --teal-light: #2dd4bf;
  --cyan: #22d3ee;
  --navy: #060b14;
  --surface: #0c1220;
  --card: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #a78bfa;
  --success: #4ade80;
  --danger: #f87171;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: min(92%, 1140px); margin: 0 auto; }

/* Typography */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--teal-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.gradient-text {
  background: linear-gradient(135deg, var(--teal-light), var(--cyan), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 58ch;
  margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s, border-color 0.25s;
}
.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.9rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--teal), #0891b2, #6366f1);
  color: #fff;
  box-shadow: 0 8px 28px rgba(13,148,136,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  left: -100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transition: left 0.55s ease;
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px rgba(34,211,238,0.4), 0 4px 20px rgba(99,102,241,0.25);
}
.btn-primary:hover::before { left: 100%; }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(45,212,191,0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(0,0,0,0.12);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13,148,136,0.15);
}
.price-featured .btn-primary:hover {
  box-shadow: 0 14px 40px rgba(34,211,238,0.45);
}
.btn-trial {
  background: #fff;
  color: #0d9488;
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25), 0 0 0 1px rgba(45,212,191,0.25);
  font-weight: 800;
}
.btn-trial:hover {
  background: linear-gradient(135deg, var(--teal), #0891b2);
  color: #fff;
  border-color: transparent;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(13,148,136,0.45);
}
.pricing .btn-pricing,
.pricing .price-card .btn-outline {
  color: #0f172a;
  border: 2px solid var(--teal);
  background: #fff;
}
.pricing .btn-pricing:hover,
.pricing .price-card .btn-outline:hover {
  background: rgba(13,148,136,0.08);
  color: #0d9488;
  border-color: #0891b2;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0.75rem 0;
  background: linear-gradient(180deg, rgba(12,18,32,0.98) 0%, rgba(6,11,20,0.94) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  transition: box-shadow 0.3s, background 0.3s;
}
.site-header.scrolled {
  background: rgba(8,14,26,0.98);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}
.nav-logo strong { color: var(--teal-light); font-weight: 800; }
.logo-text {
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.logo-img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  object-fit: contain;
  /* background: #fff; */
  border: 2px solid rgba(255,255,255,0.25);
  padding: 2px;
}
.nav-brand-wrap {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  /* background: rgba(255,255,255,0.96); */
  border-radius: 8px;
  /* border: 1px solid rgba(255,255,255,0.2); */
  /* box-shadow: 0 2px 12px rgba(0,0,0,0.2); */
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.nav-brand-wrap:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.28);
}
.nav-brand-logo {
  height: 26px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: none;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.nav-mobile-cta { display: none; }
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}
.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.nav-links a:hover { color: #fff; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* Hero */
.hero {
  position: relative;
  padding: 8rem 0 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45,212,191,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45,212,191,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.orb-1 { width: 500px; height: 500px; background: var(--teal); top: -10%; left: -5%; }
.orb-2 { width: 400px; height: 400px; background: #6366f1; bottom: 10%; right: -5%; opacity: 0.3; }
.container.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.5rem;
  background: rgba(13,148,136,0.12);
  border: 1px solid rgba(45,212,191,0.25);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-light);
  margin-bottom: 1.5rem;
}
.badge-logo {
  border-radius: 6px;
  object-fit: contain;
}
.hero-title { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.04em; margin-bottom: 1.25rem; }
.hero-subtitle { font-size: 1.15rem; color: var(--muted); max-width: 48ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.75rem; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2.5rem; }
.hero-pills span {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
}
.hero-pills .pill-highlight {
  background: rgba(13,148,136,0.2);
  border-color: rgba(45,212,191,0.4);
  color: var(--teal-light);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.stat strong { display: block; font-size: 1.75rem; font-weight: 800; color: #fff; line-height: 1; }
.stat span { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.stat-divider { width: 1px; height: 40px; background: var(--border); align-self: center; }

/* Screenshots */
.hero-visual { position: relative; max-width: min(100%, 520px); margin-left: auto; }
.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 48px rgba(0,0,0,0.45);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.screenshot-img.lightbox-img {
  cursor: zoom-in;
}
.screenshot-img.lightbox-img:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 32px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(45,212,191,0.15);
}
.screenshot-img.lightbox-img:focus-visible {
  outline: 2px solid var(--teal-light);
  outline-offset: 4px;
}
.image-glass-frame:has(.lightbox-img)::after {
  content: 'Click to enlarge';
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
}
.screenshot-sm { max-width: min(100%, 440px); margin: 0 auto; }
.screenshot-md { max-width: min(100%, 540px); margin: 0 auto; }
.screenshot-lg { max-width: min(100%, 580px); margin: 0 auto; }
.image-glass-frame {
  padding: 0.65rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius-lg) + 0.35rem);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}
.image-glass-frame .screenshot-img { border-radius: var(--radius); }
.themes-showcase-wrap {
  max-width: min(100%, 560px);
  margin: 0 auto 2rem;
}
.themes-showcase-wrap .screenshot-img {
  border-radius: var(--radius-lg);
}
.workflow-shot {
  max-width: min(100%, 480px);
  margin: 0 auto;
}
.comparison-visual .screenshot-img {
  max-width: min(100%, 540px);
}
.diagram-mockup .screenshot-img {
  max-width: min(100%, 540px);
}
.hero-dev-credit {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.hero-dev-credit strong { color: var(--teal-light); font-weight: 700; }

/* App mockup (fallback) */
.mockup-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle, rgba(13,148,136,0.35), transparent 70%);
  filter: blur(40px);
  z-index: 0;
}
.app-mockup {
  position: relative;
  z-index: 1;
  background: #0f172a;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(45,212,191,0.1);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: #1e293b;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }
.mockup-title {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.mockup-toolbar {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.tb-btn {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  color: var(--muted);
}
.tb-btn.primary { background: var(--teal); color: #fff; }
.mockup-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.mockup-file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
}
.mockup-file.old { background: rgba(248,113,113,0.08); color: #fca5a5; }
.mockup-file.new { background: rgba(74,222,128,0.1); color: #86efac; }
.mockup-arrow { text-align: center; font-size: 0.65rem; color: var(--teal-light); font-weight: 700; padding: 0.25rem; }

/* Comparison */
.comparison { padding: 6rem 0; background: var(--surface); }
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.before-after-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
}
.ba-col {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.ba-col.before { background: rgba(248,113,113,0.06); }
.ba-col.after { background: rgba(74,222,128,0.08); border-color: rgba(74,222,128,0.2); }
.ba-col h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; color: var(--muted); }
.ba-col.after h4 { color: var(--success); }
.ba-col ul { list-style: none; }
.ba-col li {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border);
  word-break: break-all;
}
.ba-arrow { font-size: 1.5rem; color: var(--teal-light); align-self: center; font-weight: 800; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-weight: 500;
}
.check-list li.bad { background: rgba(248,113,113,0.08); border: 1px solid rgba(248,113,113,0.15); }
.check-list li.good { background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.15); }
.check-list span { font-weight: 800; }

/* Trust */
.trust-bar { padding: 4rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.trust-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.trust-card:hover { transform: translateY(-4px); border-color: rgba(45,212,191,0.3); }
.trust-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.trust-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.trust-card p { font-size: 0.92rem; color: var(--muted); }

/* Demo */
.demo-section { padding: 6rem 0; }
.demo-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
}
.demo-body label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-light);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.demo-body label:last-of-type { color: var(--success); margin-top: 1.25rem; }
#demo-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--mono);
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#demo-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.2);
}
.demo-rules { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.rule-chip {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.rule-chip:hover {
  border-color: rgba(45,212,191,0.35);
  background: rgba(13,148,136,0.12);
  color: var(--teal-light);
  transform: translateY(-1px);
}
.output-box {
  padding: 1.1rem 1.25rem;
  background: rgba(74,222,128,0.1);
  border: 1px dashed rgba(74,222,128,0.4);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--success);
  word-break: break-all;
}

/* Diagram */
.visual-logic { padding: 6rem 0; background: var(--surface); }
.logic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.feature-bullets { list-style: none; }
.feature-bullets li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--muted);
  font-weight: 500;
}
.feature-bullets li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  background: var(--teal-light);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--teal);
}
.diagram-canvas {
  padding: 2rem;
  background: #0a0f18;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.d-node {
  padding: 0.6rem 1.25rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--border);
}
.d-node.start { background: rgba(13,148,136,0.2); border-color: var(--teal); color: var(--teal-light); }
.d-node.filter { background: rgba(99,102,241,0.15); border-color: #818cf8; color: #c4b5fd; }
.d-node.result { background: rgba(74,222,128,0.15); border-color: var(--success); color: var(--success); }
.d-line { width: 2px; height: 20px; background: linear-gradient(var(--teal), var(--accent)); position: relative; }
.d-line.split { height: 28px; }
.d-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.65rem;
  font-weight: 800;
  background: var(--surface);
  padding: 0 0.4rem;
  color: var(--accent);
}
.d-row { display: flex; gap: 1rem; }

/* Features */
.features { padding: 6rem 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.feature-card {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-light), var(--cyan), var(--accent));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(45,212,191,0.25);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  background: rgba(255,255,255,0.05);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  border-radius: 14px;
  background: var(--grad);
  margin-bottom: 1.25rem;
}
.feature-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.feature-card p { font-size: 0.95rem; color: var(--muted); }
.feature-card code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(255,255,255,0.08);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

/* Workflow */
.workflow {
  padding: 6rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  color: #0f172a;
}
.workflow .section-eyebrow { background: linear-gradient(90deg, var(--teal), #0891b2); -webkit-background-clip: text; }
.workflow .section-title { color: #0f172a; }
.workflow-step {
  display: grid;
  grid-template-columns: auto 1fr 1.1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 3.5rem;
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.workflow-step.reverse { direction: rtl; }
.workflow-step.reverse > * { direction: ltr; }
.step-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px var(--teal);
  line-height: 1;
}
.step-content h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.step-content p { color: #64748b; font-size: 0.95rem; }
.step-mock {
  padding: 1.5rem;
  background: #0f172a;
  border-radius: var(--radius);
  min-height: 140px;
}
.workflow-step .workflow-shot .screenshot-img {
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.06);
}
.workflow-step .workflow-shot .screenshot-img:hover {
  box-shadow: 0 24px 48px rgba(0,0,0,0.18);
}
.drop-zone {
  border: 2px dashed rgba(45,212,191,0.5);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--teal-light);
  font-weight: 600;
  margin-bottom: 1rem;
}
.file-line { height: 8px; background: #334155; border-radius: 4px; margin-bottom: 0.5rem; }
.file-line.short { width: 60%; }
.rule-row { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-size: 0.75rem; }
.rule-tag { color: var(--teal-light); font-weight: 700; }
.rule-val { color: #94a3b8; }
.preview-line {
  margin-top: 0.75rem;
  padding: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  border-radius: 6px;
  background: rgba(74,222,128,0.15);
  color: var(--success);
}
.mock-apply-btn {
  display: block;
  width: 100%;
  padding: 0.6rem;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}
.success-toast {
  font-size: 0.75rem;
  color: var(--success);
  text-align: center;
  font-weight: 600;
}

/* Themes */
.themes-section { padding: 6rem 0; text-align: center; }
.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.theme-card {
  cursor: pointer;
  padding: 1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: transform 0.25s, border-color 0.25s;
}
.theme-card:hover, .theme-card.active-theme {
  transform: translateY(-4px);
  border-color: var(--teal);
}
.theme-preview {
  height: 80px;
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tp-bar { height: 6px; border-radius: 3px; width: 40%; }
.tp-line { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.2); }
.tp-line.short { width: 55%; }
.tp-dark { background: #1e1e1e; } .tp-dark .tp-bar { background: var(--teal); }
.tp-light { background: #f1f5f9; } .tp-light .tp-bar { background: #0078d4; } .tp-light .tp-line { background: #cbd5e1; }
.tp-dracula { background: #282a36; } .tp-dracula .tp-bar { background: #bd93f9; } .tp-dracula .tp-line { background: #6272a4; }
.tp-ocean { background: #0f141e; } .tp-ocean .tp-bar { background: #88c0d0; } .tp-ocean .tp-line { background: #3b4252; }
.theme-card p { font-size: 0.9rem; font-weight: 600; }
.theme-badge { font-size: 0.7rem; color: var(--teal-light); font-weight: 700; }

/* Pricing */
.pricing {
  padding: 6rem 0;
  background: linear-gradient(180deg, #f1f5f9, #fff);
  text-align: center;
}
.pricing .section-title { color: #0f172a; }
.pricing .section-sub { color: #64748b; margin-left: auto; margin-right: auto; }
.pricing-trial-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 640px;
  margin: 0 auto 2rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(13,148,136,0.12), rgba(99,102,241,0.1));
  border: 1px solid rgba(45,212,191,0.3);
  border-radius: var(--radius-lg);
  color: #0f172a;
  font-size: 0.95rem;
}
.trial-banner-icon {
  font-size: 1.25rem;
  color: var(--teal);
}
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.pricing-grid-two {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.price-badge-trial {
  top: 1.25rem;
  right: 1.25rem;
  bottom: auto;
  background: rgba(13,148,136,0.12);
  color: #0d9488;
  border: 1px solid rgba(13,148,136,0.35);
  text-transform: none;
  letter-spacing: 0;
}
.price-featured .price-badge-trial {
  background: rgba(45,212,191,0.2);
  color: var(--teal-light);
  border-color: rgba(45,212,191,0.4);
}
.price-featured .price-badge:not(.price-badge-trial) {
  left: 1.25rem;
  right: auto;
}
.price-featured .price-badge-trial {
  right: 1.25rem;
  left: auto;
}
.price-card {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 360px;
  padding: 2.5rem 2rem;
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  color: #0f172a;
  text-align: left;
  transition: transform 0.35s var(--ease);
}
.price-card:hover { transform: translateY(-8px); }
.price-featured-one {
  background: linear-gradient(160deg, #29385d 0%, #0b1a3c 100%);
  color: #fff;
  border: 1px solid rgba(45,212,191,0.25);
  transform: scale(1.04);
  box-shadow: 0 24px 56px rgba(13,148,136,0.2);
}
.price-featured {
  background: linear-gradient(160deg, #313641 0%, #057f92 35%, #21a3b8 70%, #0a8c7f 100%);
  color: #fff;
  border: 1px solid rgba(45,212,191,0.25);
  transform: scale(1.04);
  box-shadow: 0 24px 56px rgba(13,148,136,0.2);
}
.price-featured:hover { transform: scale(1.04) translateY(-8px); }
.price-badge {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.price-card h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.price-amount { font-size: 3.5rem; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.price-amount .currency { font-size: 1.5rem; vertical-align: super; }
.price-amount .cents { font-size: 1.75rem; }
.price-period { color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0 1.5rem; }
.price-featured .price-period { color: #94a3b8; }
.price-features { list-style: none; margin-bottom: 2rem; }
.price-features li {
  padding: 0.45rem 0;
  font-size: 0.92rem;
  font-weight: 500;
  padding-left: 1.5rem;
  position: relative;
}
.price-features li::before {
  position: absolute;
  left: 0;
  font-weight: 800;
}
.price-features li.yes::before { content: '✓'; color: var(--teal); }
.price-features li.no::before { content: '✕'; color: #94a3b8; }
.price-features li.no { color: #94a3b8; opacity: 0.7; }
.price-featured .price-features li.yes::before { color: var(--teal-light); }
.price-card .btn { width: 100%; }
.price-featured .btn-outline { border-color: rgba(255,255,255,0.2); color: #fff; }
.pricing-note { margin-top: 2rem; font-size: 0.9rem; color: #64748b; }

/* FAQ */
.faq { padding: 6rem 0; }
.faq-list { max-width: 720px; margin: 2.5rem auto 0; }
.faq-item {
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s;
}
.faq-q:hover { background: rgba(255,255,255,0.03); }
.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--teal-light);
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item[aria-expanded="true"] .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s;
}
.faq-a p { padding: 0 1.5rem 1.25rem; color: var(--muted); font-size: 0.95rem; }
.faq-a a { color: var(--teal-light); }
.faq-item[aria-expanded="true"] .faq-a { max-height: 280px; }

/* CTA */
.cta-banner {
  margin: 0 1.5rem 4rem;
  padding: 4rem 2rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(13,148,136,0.25), rgba(99,102,241,0.2));
  border: 1px solid rgba(45,212,191,0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(45,212,191,0.15), transparent 60%);
}
.cta-inner { position: relative; z-index: 1; }
.cta-logo {
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 32px rgba(13,148,136,0.35);
  width: 64px;
  height: 64px;
  object-fit: contain;
}
.cta-inner h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 0.75rem; }
.cta-inner p { color: var(--muted); margin-bottom: 2rem; max-width: 42ch; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Footer */
.footer {
  padding: 4rem 0 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin: 1rem 0; line-height: 1.7; }
.footer-store-link {
  color: var(--teal-light);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.footer-store-link:hover {
  text-decoration: underline;
  color: #fff;
}
.footer-developed {
  font-size: 0.8rem;
  color: var(--teal-light);
  font-weight: 600;
  margin-top: 0.5rem;
}
.footer-links { display: flex; gap: 2.5rem; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 1rem; }
.footer-col a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.3rem 0;
  opacity: 0.85;
  transition: color 0.2s, opacity 0.2s;
}
.footer-col a:hover { color: var(--teal-light); opacity: 1; }
.footer-company { text-align: right; }
.company-logo {
  max-width: 140px;
  height: auto;
  border-radius: 8px;
  margin-left: auto;
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox[hidden] { display: none; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 11, 20, 0.92);
  backdrop-filter: blur(8px);
  border: none;
  cursor: zoom-out;
}
.lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.lightbox-panel img {
  max-width: 100%;
  max-height: calc(92vh - 3rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
  border: 1px solid var(--border);
}
.lightbox-close {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, transform 0.2s;
}
.lightbox-close:hover {
  background: var(--teal);
  transform: scale(1.05);
}
.lightbox-caption {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  max-width: 60ch;
}
.company-tag { font-size: 0.8rem; color: var(--muted); margin-top: 0.75rem; }
.footer-bottom {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-bottom p { font-size: 0.85rem; color: var(--muted); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile nav */
@media (max-width: 900px) {
  .container.hero-grid,
  .comparison-grid,
  .logic-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: min(100%, 460px); margin: 0 auto; }
  .workflow-shot { max-width: min(100%, 420px); }
  .comparison-visual .screenshot-img,
  .diagram-mockup .screenshot-img { max-width: min(100%, 480px); }
  .themes-showcase-wrap { max-width: min(100%, 480px); }
  .nav-brand-wrap { display: none; }
  .hero { min-height: auto; padding-top: 7rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-step { grid-template-columns: 1fr; }
  .workflow-step.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-company { text-align: left; }
  .company-logo { margin-left: 0; }
  .price-featured { transform: none; }
  .price-featured:hover { transform: translateY(-8px); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 4.5rem;
    left: 1rem; right: 1rem;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.85rem 1rem; border-radius: 8px; }
  .nav-links a:hover { background: rgba(255,255,255,0.05); }
  .hamburger { display: flex; }
  .nav-actions .btn-trial,
  .nav-actions .btn-primary { display: none; }
  .nav-mobile-cta { display: list-item; width: 100%; margin-top: 0.5rem; }
  .nav-mobile-cta .btn { width: 100%; }
  .pricing-grid { flex-direction: column; align-items: center; }
  .before-after-card { grid-template-columns: 1fr; }
  .ba-arrow { transform: rotate(90deg); text-align: center; }
  .stat-divider { display: none; }
  .footer-links { flex-direction: column; gap: 1.5rem; }
}
