/* ==========================================================
   BigDuck AI — Landing Page
   Dark premium theme with emerald accents
   ========================================================== */

:root {
  --bg: #09090b;
  --bg-secondary: #111114;
  --bg-tertiary: #18181b;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-soft: rgba(16, 185, 129, 0.1);
  --accent-glow: rgba(16, 185, 129, 0.15);
  --warm: #f59e0b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 999px;
  --max-width: 1200px;
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  padding: 12px 24px;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}

.btn svg {
  flex-shrink: 0;
  display: inline;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

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

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

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

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

.btn-sm {
  padding: 8px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Section headers */
.section-header {
  max-width: 680px;
  margin-bottom: 48px;
}

.section-header h2 {
  margin-top: 16px;
}

.section-header p {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
}

/* ==========================================================
   NAVBAR
   ========================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 300ms ease;
}

.navbar.scrolled {
  padding: 10px 0;
  background: rgba(9, 9, 11, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  transition: all var(--transition);
}

.menu-toggle:hover,
.menu-toggle:active {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.14);
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  background: var(--text);
  border-radius: 2px;
  transition: all 300ms ease;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  background: rgba(9, 9, 11, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 99;
  padding: calc(88px + env(safe-area-inset-top)) 24px 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  transform: translateY(-8px);
  transition: all 300ms ease;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
}

.mobile-menu a {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  width: 100%;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-menu a.btn.btn-primary {
  margin-top: 8px;
  padding: 16px 24px;
  border-bottom: none;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  border-radius: var(--radius-full);
  text-align: center;
  font-size: 1rem;
}

.mobile-menu a.btn.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.hero-content h1 {
  margin-top: 24px;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  margin-top: 24px;
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 52ch;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

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

.stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Browser Mockup */
.hero-visual {
  position: relative;
}

.hero-glow {
  position: absolute;
  width: 120%;
  height: 120%;
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08), transparent 60%);
  pointer-events: none;
  filter: blur(40px);
  z-index: -1;
}

.browser-mockup {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.browser-dots span:first-child {
  background: #ff5f57;
}

.browser-dots span:nth-child(2) {
  background: #ffbd2e;
}

.browser-dots span:nth-child(3) {
  background: #28ca42;
}

.browser-url {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.browser-url svg {
  display: inline;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.browser-content {
  padding: 24px;
}

.mock-nav {
  height: 12px;
  width: 60%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  margin-bottom: 32px;
}

.mock-hero {
  margin-bottom: 28px;
}

.mock-title {
  height: 20px;
  width: 75%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  margin-bottom: 12px;
}

.mock-text {
  height: 10px;
  width: 90%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin-bottom: 16px;
}

.mock-btn {
  height: 28px;
  width: 100px;
  background: var(--accent);
  border-radius: var(--radius-full);
  opacity: 0.7;
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mock-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mock-card-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--accent-soft);
  margin-bottom: 12px;
}

.mock-card-line {
  height: 8px;
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  margin-bottom: 8px;
}

.mock-card-line.short {
  width: 65%;
}

/* ==========================================================
   TRUST STRIP
   ========================================================== */
.trust-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-strip .container {
  display: flex;
  align-items: center;
  gap: 32px;
}

.trust-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust-items span {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.trust-items span:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  color: var(--text);
}

/* ==========================================================
   FEATURES
   ========================================================== */
.features {
  padding: 100px 0;
}

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

.feature-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 300ms ease;
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ==========================================================
   PRICING
   ========================================================== */
.pricing {
  padding: 100px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}

.price-card {
  position: relative;
  padding: 36px;
  border-radius: var(--radius-2xl);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 300ms ease;
}

.price-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.price-card-featured {
  background: linear-gradient(
    180deg,
    rgba(16, 185, 129, 0.08),
    var(--surface)
  );
  border-color: rgba(16, 185, 129, 0.2);
}

.price-card-featured:hover {
  border-color: rgba(16, 185, 129, 0.4);
}

.price-card-custom {
  border-color: rgba(139, 92, 246, 0.25);
  background: linear-gradient(
    165deg,
    rgba(139, 92, 246, 0.06),
    var(--surface)
  );
}

.price-card-custom:hover {
  border-color: rgba(139, 92, 246, 0.45);
}

.price-custom {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 16px;
}

.price-custom-main {
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.price-custom-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

.featured-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 12px;
}

.currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-secondary);
  align-self: flex-start;
  margin-top: 8px;
}

.amount {
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.cents {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.plan-desc {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.plan-features {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.plan-features svg {
  flex-shrink: 0;
  display: inline;
  color: var(--accent);
}

/* Comparison Table */
.comparison {
  margin-top: 64px;
}

.comparison-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.comparison-footnote {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 720px;
}

.comparison-footnote a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.comparison-footnote a:hover {
  text-decoration: underline;
}

.comparison-table {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.table-row:last-child {
  border-bottom: 0;
}

.table-row span {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.table-head {
  background: rgba(16, 185, 129, 0.06);
}

.table-head span {
  font-weight: 700;
  color: var(--text);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table-row .check {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.table-row .dash {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Mobile comparison cards — hidden on desktop, shown on mobile */
.comparison-mobile {
  display: none;
}

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

.comp-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.comp-card-title {
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.comp-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comp-card-row:last-child {
  border-bottom: none;
}

.comp-plan {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.comp-card-row .check {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.15rem;
}

.comp-card-row .dash {
  color: var(--text-muted);
  font-size: 1.15rem;
}

/* ==========================================================
   STEPS
   ========================================================== */
.steps {
  padding: 100px 0;
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step-card {
  flex: 1;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 300ms ease;
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.step-connector {
  width: 48px;
  height: 2px;
  background: var(--border);
  margin-top: 48px;
  flex-shrink: 0;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ==========================================================
   FAQ
   ========================================================== */
.faq {
  padding: 100px 0;
}

.faq-list {
  max-width: 740px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:hover,
.faq-item.open {
  border-color: var(--border-hover);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 300ms ease;
  display: inline;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================
   CTA
   ========================================================== */
.cta-section {
  padding: 60px 0 100px;
}

.cta-card {
  position: relative;
  padding: 64px;
  border-radius: var(--radius-2xl);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  pointer-events: none;
}

.cta-card h2 {
  margin-top: 16px;
  max-width: 600px;
  margin-inline: auto;
}

.cta-card > p {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  margin-inline: auto;
}

.cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  position: relative;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 64px;
}

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

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.footer-bottom {
  margin-top: 48px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid children */
.features-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.features-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.features-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.features-grid .reveal:nth-child(4) { transition-delay: 240ms; }
.features-grid .reveal:nth-child(5) { transition-delay: 320ms; }
.features-grid .reveal:nth-child(6) { transition-delay: 400ms; }

.pricing-grid .reveal:nth-child(1) { transition-delay: 0ms; }
.pricing-grid .reveal:nth-child(2) { transition-delay: 100ms; }
.pricing-grid .reveal:nth-child(3) { transition-delay: 200ms; }
.pricing-grid .reveal:nth-child(4) { transition-delay: 300ms; }
.pricing-grid .reveal:nth-child(5) { transition-delay: 400ms; }

.faq-list .reveal:nth-child(1) { transition-delay: 0ms; }
.faq-list .reveal:nth-child(2) { transition-delay: 60ms; }
.faq-list .reveal:nth-child(3) { transition-delay: 120ms; }
.faq-list .reveal:nth-child(4) { transition-delay: 180ms; }
.faq-list .reveal:nth-child(5) { transition-delay: 240ms; }
.faq-list .reveal:nth-child(6) { transition-delay: 300ms; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid {
    flex-direction: column;
    gap: 16px;
  }

  .step-connector {
    width: 2px;
    height: 32px;
    margin: 0 auto;
  }

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

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

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-content h1 {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .badge {
    max-width: 100%;
    white-space: normal;
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .trust-strip .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .comparison-desktop {
    display: none;
  }

  .comparison-mobile {
    display: block;
  }

  .cta-card {
    padding: 40px 24px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    gap: 40px;
  }

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

  .hero-ctas .btn {
    width: 100%;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }

  .price-card {
    padding: 28px;
  }

  .comparison {
    margin-top: 40px;
  }

  .modal {
    margin: 16px;
    max-height: calc(100dvh - 32px);
    padding: 28px;
  }

  .modal-header h3 {
    font-size: 1.4rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .footer-links {
    flex-wrap: wrap;
  }
}

/* ==========================================================
   CONTACT MODAL
   ========================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: min(520px, 96vw);
  max-height: 92dvh;
  overflow-y: auto;
  padding: 40px;
  border-radius: var(--radius-2xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  transform: translateY(20px) scale(0.97);
  transition: transform 300ms ease;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition);
}

.modal-close:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.modal-header {
  margin-bottom: 28px;
}

.modal-header h3 {
  margin-top: 14px;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.modal-header p {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Form */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group label .optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.form-group.is-hidden {
  display: none;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group textarea {
  min-height: 88px;
  resize: vertical;
}

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

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  font-size: 0.88rem;
  font-weight: 500;
}

.form-error.visible {
  display: block;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--accent);
  text-align: center;
}

.form-success.visible {
  display: flex;
}

.form-success strong {
  font-size: 1.1rem;
}

.form-success span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

#formSubmit {
  margin-top: 4px;
}

#formSubmit .btn-loading {
  display: none;
  align-items: center;
  gap: 8px;
}

#formSubmit.loading .btn-text {
  display: none;
}

#formSubmit.loading .btn-loading {
  display: inline-flex;
}

.spinner {
  animation: spin 0.8s linear infinite;
  display: inline;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
