*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; color: #0f1117; background: #fff; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; letter-spacing: -0.3px; }
img { display: block; max-width: 100%; }
button, select, input, textarea { font-family: inherit; }

:root {
    --crimson: #d4364c;
    --crimson-dark: #b91c35;
    --crimson-glow: rgba(212,54,76,0.35);
    --text-main: #0f1117;
    --text-mid: #374151;
    --text-muted: #6b7280;
    --dark-bg: #0a0d14;
}

.container { max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.container-lg { max-width: 75rem; margin: 0 auto; padding: 0 1.5rem; }

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse-ring { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slide-in-right { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes nav-in { from { opacity:0; transform:translateY(-12px); } to { opacity:1; transform:translateY(0); } }
@keyframes popup-in { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Section Waves removed */
.reveal-left { opacity: 0; transform: translateX(-60px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(60px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── Nav ── */
#nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    background: rgba(255,255,255,0.88); backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.04); box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    transition: background 0.3s; animation: nav-in 0.6s ease forwards;
}
#nav.scrolled { background: rgba(255,255,255,0.97); }
.nav-inner { max-width: 75rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1.5rem; }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo img { height: 20px; }
.nav-logo-text { font-family: 'Outfit', system-ui, sans-serif; font-size: 0.95rem; font-weight: 700; color: #0f1117; letter-spacing: -0.5px; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-social { display: flex; align-items: center; gap: 0.5rem; }
.nav-social a { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: #6b7280; border: 1px solid #e5e7eb; transition: color 0.15s, border-color 0.15s, background 0.15s; text-decoration: none; }
.nav-social a:hover { color: var(--crimson); border-color: var(--crimson); background: rgba(212,54,76,0.04); }
.btn-demo { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.625rem 1.25rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 100%); box-shadow: 0 2px 14px var(--crimson-glow); border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; text-decoration: none; }
.btn-demo:hover { transform: scale(1.03); }

/* ── Hero ── */
#hero { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: calc(100svh - 180px); min-height: 440px; padding-top: 60px; overflow: hidden; background: #fff; }
.hero-accent-line { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--crimson) 30%, var(--crimson) 70%, transparent); animation: slide-in-right 1.4s ease forwards; }
.hero-content { position: relative; z-index: 10; max-width: 48rem; padding: 0 1.5rem; text-align: center; }
.hero-h1 { font-family: 'Outfit', system-ui, sans-serif; font-size: clamp(2.5rem, 5.5vw, 4rem); font-weight: 900; letter-spacing: -1.2px; line-height: 1.1; margin-bottom: 1.25rem; min-height: 2.6em; }
.hero-h1 .line1 { color: var(--text-main); display: block; }
.hero-h1 .line2 { color: var(--crimson); display: block; }
.hero-cursor { animation: blink 0.7s step-start infinite; }
.hero-p { font-size: clamp(1rem, 2vw, 1.125rem); color: var(--text-muted); max-width: 28rem; margin: 0 auto 2rem; line-height: 1.7; opacity: 0; animation: fade-up 0.7s ease 3.5s forwards; }
.hero-cta-wrap { opacity: 0; animation: fade-up 0.6s ease 3.8s forwards; }
.btn-demo-lg { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2.5rem; border-radius: 0.75rem; font-size: 0.9rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 100%); box-shadow: 0 4px 24px var(--crimson-glow); border: none; cursor: pointer; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.btn-demo-lg:hover { transform: scale(1.03); box-shadow: 0 8px 32px var(--crimson-glow); }

/* ── Metrics ── */
#metrics { background: var(--dark-bg); padding: 5rem 1.5rem; }
.metrics-grid { max-width: 64rem; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .metrics-grid { grid-template-columns: 1fr; } }
.metric-item { text-align: center; padding: 2.5rem 2rem; border-right: 1px solid rgba(255,255,255,0.07); opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.metric-item:last-child { border-right: none; }
.metric-item.visible { opacity: 1; transform: translateY(0); }
.metric-item:nth-child(2) { transition-delay: 0.15s; }
.metric-item:nth-child(3) { transition-delay: 0.3s; }
.metric-value { font-family: 'Outfit', system-ui, sans-serif; font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 900; line-height: 1; margin-bottom: 0.75rem; display: block; letter-spacing: -1px; }
.metric-value.red { color: var(--crimson); }
.metric-value.gold { color: #f5a623; }
.metric-label { font-size: 0.8rem; font-weight: 400; color: rgba(240,242,245,0.5); letter-spacing: 0.05em; text-transform: uppercase; }
@media (max-width: 640px) { .metric-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); } .metric-item:last-child { border-bottom: none; } }

/* ── AI Section ── */
#ai { position: relative; overflow: hidden; }
.ai-header { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; overflow: hidden; padding: 28px 1.5rem clamp(4rem, 8vh, 7rem); min-height: clamp(280px, 44vh, 500px); }
.ai-header-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right 40%; }
.ai-header-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.65); }
.ai-header-content { position: relative; z-index: 10; }
.ai-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.375rem 1rem; border-radius: 9999px; margin-bottom: 1.5rem; background: rgba(212,54,76,0.15); border: 1px solid rgba(212,54,76,0.4); }
.ai-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #ff6b7a; animation: blink 1.5s step-start infinite; }
.ai-badge-text { font-size: 0.75rem; font-weight: 900; letter-spacing: 0.15em; text-transform: uppercase; color: #ff6b7a; }
.ai-header-h2 { font-family: 'Outfit', system-ui, sans-serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; line-height: 1.2; color: #fff; letter-spacing: -0.8px; }
.ai-header-h2 span { color: #a78bfa; }

/* ── Features Grid ── */
#features { background: #fff; padding: 5rem 1.5rem; }
.features-intro { padding: 6rem 1.5rem 3rem; text-align: center; }
.features-eyebrow { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--crimson); margin-bottom: 1rem; }
.features-h2 { font-family: 'Outfit', system-ui, sans-serif; font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 900; line-height: 1.2; color: var(--text-main); letter-spacing: -0.8px; }

.features-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

/* ── Feature cards: split banner layout ── */
.feature-card {
  position: relative; overflow: hidden;
  height: 360px;
  border-radius: 1.5rem;
  background: var(--dark-bg);
  box-shadow: 0 4px 32px rgba(0,0,0,0.18), 0 1px 4px rgba(0,0,0,0.12);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), box-shadow 0.35s ease;
  cursor: default;
}
.feature-card:hover { transform: translateY(-4px) scale(1.012); box-shadow: 0 16px 56px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.14); }

/* Screenshot: clipped to right portion with chevron < left edge */
.feature-card-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  clip-path: polygon(52% 0, 100% 0, 100% 100%, 52% 100%, 42% 50%);
  transition: clip-path 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.6s ease;
}
.feature-card:hover .feature-card-bg {
  clip-path: polygon(0% 0%, 100% 0, 100% 100%, 0% 100%);
  transform: scale(1.04);
}

/* Crimson chevron stripe < at boundary — fades out on hover */
.feature-card::before {
  content: '';
  position: absolute; inset: 0; z-index: 5;
  background: var(--crimson);
  clip-path: polygon(52% 0, 56% 0, 46% 50%, 56% 100%, 52% 100%, 42% 50%);
  pointer-events: none;
  transition: opacity 0.45s ease;
}
.feature-card:hover::before { opacity: 0; }

/* Overlay: transparent at rest (dark bg handles left), gradient on hover */
.feature-card-overlay {
  position: absolute; inset: 0; z-index: 3;
  background: transparent;
  transition: background 0.45s ease;
}
.feature-card:hover .feature-card-overlay {
  background: linear-gradient(to top,
    rgba(8,10,18,0.99) 0%,
    rgba(8,10,18,0.92) 50%,
    rgba(8,10,18,0.72) 100%);
}

/* Content: left panel at rest, expands full width on hover */
.feature-card-content {
  position: absolute;
  left: 0; right: 48%;
  bottom: 0; top: 0;
  z-index: 10;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem 1rem 1.75rem 1.75rem;
  transition: right 0.55s cubic-bezier(0.22,1,0.36,1);
}
.feature-card:hover .feature-card-content { right: 0; }

/* Tag: absolutely pinned top-left, out of flex flow so no gap below it */
.feature-card-tag {
  position: absolute; top: 1.5rem; left: 1.75rem;
  display: inline-flex; align-items: center;
  font-size: 0.6rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08); backdrop-filter: blur(8px);
}

/* Accent: sits naturally above h3 — content is flex-end so they hug the bottom */
.feature-card-accent {
  width: 2.25rem; height: 3px; border-radius: 9999px;
  margin-bottom: 0.625rem;
  transition: width 0.35s ease;
}
.feature-card:hover .feature-card-accent { width: 3rem; }

/* h3: always visible at bottom of left panel */
.feature-card-h3 {
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  font-weight: 900; line-height: 1.25;
  color: #fff; letter-spacing: -0.3px;
  margin-bottom: 0;
  transition: margin-bottom 0.35s ease;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.feature-card:hover .feature-card-h3 { margin-bottom: 0.75rem; }

.feature-card-body {
  font-size: 0.8rem; line-height: 1.65;
  color: rgba(220,224,232,0.72);
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.45s ease, opacity 0.35s ease 0.08s;
}
.feature-card:hover .feature-card-body { max-height: 160px; opacity: 1; }

@media (hover: none) {
  .feature-card-bg { clip-path: polygon(0% 0%, 100% 0, 100% 100%, 0% 100%); }
  .feature-card::before { opacity: 0; }
  .feature-card-overlay { background: linear-gradient(to top, rgba(8,10,18,0.99) 0%, rgba(8,10,18,0.92) 50%, rgba(8,10,18,0.72) 100%); }
  .feature-card-content { right: 0; }
  .feature-card-h3 { margin-bottom: 0.75rem; }
  .feature-card-body { max-height: 200px; opacity: 1; }
}


/* ── Platform ── */
#platform { padding: 7rem 1.5rem; background: #fafafa; }
.platform-eyebrow { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--crimson); margin-bottom: 1rem; }
.platform-h2 { font-family: 'Outfit', system-ui, sans-serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; line-height: 1.2; max-width: 28rem; margin-bottom: 4rem; letter-spacing: -0.8px; }
.pillar-cards { display: flex; flex-direction: column; gap: 1.25rem; }
.pillar-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 1.5rem; border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 2px 24px rgba(0,0,0,0.04); }
@media (min-width: 1024px) { .pillar-card { flex-direction: row; } }
.pillar-card.reverse { }
@media (min-width: 1024px) { .pillar-card.reverse { flex-direction: row-reverse; } }
.pillar-accent { display: flex; align-items: center; justify-content: center; padding: 2.5rem 3.5rem; width: 100%; }
@media (min-width: 1024px) { .pillar-accent { width: 280px; flex-shrink: 0; } }
.pillar-num { font-family: 'Outfit', system-ui, sans-serif; font-size: 5rem; font-weight: 900; line-height: 1; display: block; }
.pillar-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
.pillar-body-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 2.5rem 3.5rem; background: #fff; }
.pillar-rule { width: 2.5rem; height: 3px; border-radius: 9999px; margin-bottom: 1.5rem; }
.pillar-h3 { font-family: 'Outfit', system-ui, sans-serif; font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 900; line-height: 1.3; margin-bottom: 1rem; color: #0f1117; letter-spacing: -0.5px; }
.pillar-p { font-size: 1rem; line-height: 1.7; color: var(--text-muted); }

/* ── How It Works ── */
#how { padding: 7rem 1.5rem; background: #fff; overflow: hidden; }
.how-eyebrow { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--crimson); margin-bottom: 0.75rem; text-align: center; }
.how-h2 { font-family: 'Outfit', system-ui, sans-serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; text-align: center; margin-bottom: 5rem; letter-spacing: -0.8px; }
.how-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 640px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .how-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.how-connecting-line { display: none; position: absolute; top: 36px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, #f3f4f6, #d4364c 30%, #7c3aed 55%, #059669 75%, #d97706, #f3f4f6); }
@media (min-width: 1024px) { .how-connecting-line { display: block; } }
.how-step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.how-circle { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Outfit', system-ui, sans-serif; font-size: 1.25rem; font-weight: 900; margin-bottom: 1.75rem; background: #fff; position: relative; z-index: 10; transition: transform 0.2s; }
.how-circle:hover { transform: scale(1.08); }
.how-step-title { font-size: 1.125rem; font-weight: 700; color: #111827; margin-bottom: 0.75rem; }
.how-step-body { font-size: 0.875rem; line-height: 1.6; max-width: 240px; color: var(--text-muted); }

/* ── CTA ── */
#cta { position: relative; padding: 7rem 1.5rem; background: var(--dark-bg); overflow: hidden; }
.cta-rings { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0.2; }
.cta-ring { position: absolute; border-radius: 50%; border: 2px solid var(--crimson); animation: pulse-ring 3s ease-out infinite; }
.cta-ring:nth-child(1) { width: 200px; height: 200px; animation-delay: 0s; }
.cta-ring:nth-child(2) { width: 340px; height: 340px; animation-delay: 1s; }
.cta-ring:nth-child(3) { width: 480px; height: 480px; animation-delay: 2s; }
.cta-inner { max-width: 48rem; margin: 0 auto; text-align: center; position: relative; z-index: 10; }
.cta-rule-wrap { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-bottom: 3rem; }
.cta-rule-line { height: 1px; width: 80px; background: var(--crimson); }
.cta-rule-label { font-size: 0.6rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--crimson); }
.cta-h2 { font-family: 'Outfit', system-ui, sans-serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; line-height: 1.2; color: #f0f2f5; margin-bottom: 1.25rem; letter-spacing: -0.8px; }
.cta-p { font-size: 1rem; line-height: 1.7; max-width: 32rem; margin: 0 auto 2.5rem; color: rgba(240,242,245,0.45); }
.btn-cta { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 100%); box-shadow: 0 4px 28px rgba(212,54,76,0.45); border: none; cursor: pointer; transition: transform 0.2s, opacity 0.2s; }
.btn-cta:hover { transform: scale(1.04); }
.btn-cta:active { transform: scale(0.98); }

/* ── Footer ── */
footer { padding: 1.75rem 1.5rem; background: #1a1d27; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-inner { max-width: 75rem; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
@media (min-width: 640px) { .footer-inner { flex-direction: row; justify-content: space-between; } }
.footer-left { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.footer-logo { height: 16px; opacity: 0.65; }
.footer-logo-text { font-family: 'Outfit', system-ui, sans-serif; font-size: 0.9rem; font-weight: 700; color: rgba(255,255,255,0.5); }
.footer-copy { font-size: 0.75rem; color: rgba(240,242,245,0.35); }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: rgba(255,255,255,0.35); border: 1px solid rgba(255,255,255,0.1); transition: color 0.15s, border-color 0.15s; text-decoration: none; }
.footer-social a:hover { color: var(--crimson); border-color: var(--crimson); }

/* ── Popup ── */
@keyframes backdrop-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes popup-slide-up { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
#popup-backdrop { display: none; position: fixed; inset: 0; z-index: 9998; align-items: center; justify-content: center; padding: 1rem; background: rgba(15,17,23,0.35); backdrop-filter: blur(6px); opacity: 0; }
#popup-backdrop.open { display: flex; animation: backdrop-fade-in 0.35s ease forwards; }
#popup-panel { position: relative; width: 100%; max-width: 700px; background: #fff; border-radius: 1.5rem; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,0.14), 0 0 0 1px rgba(0,0,0,0.05); animation: popup-slide-up 0.38s cubic-bezier(0.22,1,0.36,1); }
.popup-close { position: absolute; top: 1rem; right: 1rem; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #9ca3af; border: 1px solid #e5e7eb; background: #f9fafb; cursor: pointer; transition: all 0.15s; z-index: 10; }
.popup-close:hover { color: #374151; border-color: #d1d5db; background: #f3f4f6; }
.popup-body { display: grid; grid-template-columns: 1fr 220px; min-height: 320px; }
@media (max-width: 560px) { .popup-body { grid-template-columns: 1fr; } .popup-right { display: none; } }
.popup-left { padding: 2.25rem 1.75rem 2.25rem 2.25rem; display: flex; flex-direction: column; justify-content: center; }
.popup-overline { font-size: 0.65rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--crimson); margin-bottom: 0.75rem; }
.popup-h2 { font-family: 'Outfit', system-ui, sans-serif; font-size: clamp(1.35rem, 2.5vw, 1.75rem); font-weight: 900; line-height: 1.2; color: #0f1117; margin-bottom: 0.75rem; letter-spacing: -0.5px; }
.popup-p { font-size: 0.8rem; line-height: 1.65; color: #6b7280; margin-bottom: 1.25rem; }
.popup-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.5rem; }
.popup-chip { font-size: 0.7rem; font-weight: 500; color: var(--crimson); padding: 0.25rem 0.65rem; border-radius: 9999px; border: 1px solid rgba(212,54,76,0.25); background: rgba(212,54,76,0.05); }
.popup-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 0.625rem; font-size: 0.875rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 100%); box-shadow: 0 4px 18px rgba(212,54,76,0.35); border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.popup-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(212,54,76,0.4); }
.popup-disclaimer { font-size: 0.68rem; color: #9ca3af; margin-top: 0.75rem; }
.popup-right { background: #fef2f2; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.popup-illustration { width: 100%; max-width: 200px; height: auto; }

/* ── Demo Modal ── */
#modal-backdrop { display: none; position: fixed; inset: 0; z-index: 9999; align-items: center; justify-content: center; padding: 1rem; background: rgba(15,17,23,0.5); backdrop-filter: blur(8px); opacity: 0; }
#modal-backdrop.open { display: flex; animation: backdrop-fade-in 0.3s ease forwards; }
#modal-panel { position: relative; width: 100%; max-width: 880px; background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.06); max-height: 92vh; overflow-y: auto; animation: fade-up 0.22s ease; }
.modal-accent-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--crimson) 0%, var(--crimson-dark) 100%); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 2rem; border-bottom: 1px solid #f3f4f6; }
.modal-header-left { display: flex; align-items: center; gap: 0.75rem; }
.modal-header-logo { height: 15px; }
.modal-header-logo-text { font-family: 'Outfit', system-ui, sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--crimson); }
.modal-header-divider { width: 1px; height: 16px; background: #e5e7eb; }
.modal-header-title { font-size: 0.875rem; font-weight: 600; color: #374151; }
.modal-close { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: #9ca3af; border: none; background: transparent; cursor: pointer; transition: background 0.15s, color 0.15s; }
.modal-close:hover { background: #f3f4f6; color: #374151; }
.modal-body { padding: 1.5rem 2rem; }
.form-label { display: block; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #4b5563; margin-bottom: 6px; }
.form-input { width: 100%; background: #fff; border: 1px solid #e5e7eb; border-radius: 0.5rem; padding: 0.625rem 0.875rem; font-size: 0.875rem; color: #1f2937; transition: border-color 0.15s, box-shadow 0.15s; outline: none; }
.form-input::placeholder { color: #9ca3af; }
.form-input:focus { border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(212,54,76,0.12); }
.form-row { display: grid; gap: 1.25rem 1rem; margin-bottom: 1rem; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.form-row-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .form-row-3, .form-row-4 { grid-template-columns: 1fr; } }
@media (min-width: 641px) and (max-width: 900px) { .form-row-3 { grid-template-columns: repeat(2, 1fr); } .form-row-4 { grid-template-columns: repeat(2, 1fr); } }
.phone-wrap { display: flex; align-items: center; gap: 4px; }
.phone-plus { font-size: 0.875rem; font-weight: 600; color: #6b7280; flex-shrink: 0; }
.phone-cc { width: 52px; flex-shrink: 0; }
.phone-num { flex: 1; }
.size-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.size-pill { padding: 0.375rem 0.875rem; border-radius: 0.5rem; font-size: 0.75rem; font-weight: 600; border: 1px solid #e5e7eb; background: #fff; color: #6b7280; cursor: pointer; transition: all 0.15s; }
.size-pill:hover { border-color: var(--crimson); color: var(--crimson); }
.size-pill.selected { background: var(--crimson); color: #fff; border-color: var(--crimson); }
.form-textarea { resize: none; height: 64px; }
.form-section-label { font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #4b5563; margin-bottom: 0.5rem; }
.form-footer { display: flex; align-items: center; gap: 1rem; }
.btn-submit { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--crimson) 0%, var(--crimson-dark) 100%); box-shadow: 0 4px 16px rgba(212,54,76,0.35); border: none; cursor: pointer; transition: opacity 0.2s; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-submit:not(:disabled):hover { opacity: 0.9; }
.form-consent { font-size: 0.625rem; color: #6b7280; max-width: 160px; line-height: 1.5; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; flex-shrink: 0; }
.form-error { background: #fff1f2; color: #be123c; border: 1px solid #fecdd3; border-radius: 0.5rem; padding: 0.625rem 1rem; font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; }
.form-success { padding: 3rem 1.5rem; text-align: center; }
.form-success-icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(212,54,76,0.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.form-success h3 { font-family: 'Outfit', system-ui, sans-serif; font-size: 1.125rem; font-weight: 700; color: #1f2937; margin-bottom: 0.5rem; }
.form-success p { font-size: 0.875rem; color: #6b7280; max-width: 300px; margin: 0 auto 1.5rem; }
.btn-close-success { padding: 0.5rem 1.5rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600; color: #6b7280; border: 1px solid #e5e7eb; background: #fff; cursor: pointer; transition: background 0.15s; }
.btn-close-success:hover { background: #f9fafb; }
@media (max-width: 640px) { .modal-body { padding: 1rem; } .modal-header { padding: 0.75rem 1rem; } .modal-accent-bar { display: none; } }

/* ── Consent Checkbox ── */
.consent-label { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.78rem; color: #6b7280; line-height: 1.5; cursor: pointer; margin-bottom: 0.875rem; }
.consent-checkbox { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; accent-color: var(--crimson); cursor: pointer; }
.consent-text { user-select: none; }
.consent-link { background: none; border: none; padding: 0; font-family: inherit; font-size: inherit; color: var(--crimson); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.consent-link:hover { color: var(--crimson-dark); }

/* ── Footer Links ── */
.footer-sep { color: rgba(240,242,245,0.2); font-size: 0.75rem; }
.footer-link { background: none; border: none; cursor: pointer; font-size: 0.75rem; color: rgba(240,242,245,0.35); padding: 0; font-family: inherit; transition: color 0.15s; }
.footer-link:hover { color: rgba(240,242,245,0.7); }

/* ── Legal Modal ── */
#legal-modal-backdrop { display: none; position: fixed; inset: 0; z-index: 10000; align-items: center; justify-content: center; padding: 1rem; background: rgba(15,17,23,0.5); backdrop-filter: blur(8px); opacity: 0; }
#legal-modal-backdrop.open { display: flex; animation: backdrop-fade-in 0.3s ease forwards; }
#legal-modal-panel { position: relative; width: 100%; max-width: 580px; background: #fff; border-radius: 1rem; overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.06); max-height: 85vh; display: flex; flex-direction: column; animation: fade-up 0.22s ease; }
.legal-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid #f3f4f6; flex-shrink: 0; }
.legal-modal-title { font-family: 'Outfit', system-ui, sans-serif; font-size: 1rem; font-weight: 700; color: #1f2937; }
.legal-modal-body { padding: 1.5rem; overflow-y: auto; font-size: 0.875rem; line-height: 1.7; color: #374151; }
.legal-modal-body h3 { font-family: 'Outfit', system-ui, sans-serif; font-size: 0.875rem; font-weight: 700; color: #1f2937; margin: 1.25rem 0 0.375rem; }
.legal-modal-body h3:first-of-type { margin-top: 0; }
.legal-modal-body p { margin-bottom: 0.5rem; color: #4b5563; }
.legal-modal-body .legal-updated { font-size: 0.75rem; color: #9ca3af; margin-bottom: 1rem; }