@import url('https://fonts.googleapis.com/css2?family=Anton&family=Work+Sans:wght@400;500;700&display=swap');

:root {
  --color-primary: #1A1B1E;
  --color-secondary: #2C2D32;
  --color-accent: #cd001a;
  --color-bg: #F8F8F9;
  --color-surface: #FFFFFF;
  --color-text: #111214;
  --color-muted: #6B6D76;
  --color-border: #E2E3E6;

  --font-heading: 'Anton', sans-serif;
  --font-body: 'Work Sans', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1.5rem;
  --space-md: 3rem;
  --space-lg: 5rem;
  --space-xl: 10rem;
  --space-2xl: 14rem;

  --radius: 6px;
  --shadow-inset: inset 0 2px 6px rgba(0,0,0,0.15);
  --transition-fast: 0.2s ease;
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); background-color: var(--color-bg); color: var(--color-text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, video, svg { max-width: 100%; height: auto; display: block; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; line-height: 1.1; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: var(--space-sm); }
h1 { font-size: clamp(3rem, 8vw, 5rem); }
h2 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h4 { font-size: 1.25rem; }
p { margin-bottom: var(--space-sm); }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-primary); }

/* Scoped Max-Widths */
.section-subtitle, .hero-subtitle, .prose p { max-width: 60ch; }

/* Layout Utilities */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--space-md); }
.section { padding: var(--space-xl) 0; position: relative; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-md); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-md); }
.flex-center { display: flex; align-items: center; justify-content: center; }

/* Section Decorations */
.section--dark { background-color: var(--color-primary); color: var(--color-surface); position: relative; overflow: hidden; }
.section--dark h2, .section--dark h3 { color: var(--color-surface); }
.section--dark::before { content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: radial-gradient(circle at top right, rgba(255,255,255,0.04) 0%, transparent 60%); pointer-events: none; z-index: 0; }

.section--accent { background-color: var(--color-accent); color: var(--color-surface); position: relative; overflow: hidden; }
.section--accent h2, .section--accent h3 { color: var(--color-surface); }
.section--accent::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(0,0,0,0.05) 40px, rgba(0,0,0,0.05) 80px); pointer-events: none; z-index: 0; }

.section--gradient { background: linear-gradient(180deg, var(--color-bg) 0%, #EAECEF 100%); position: relative; overflow: hidden; }
.section--gradient::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(26,27,30,0.05)"/></svg>') repeat; pointer-events: none; z-index: 0; }

.section--image-bg { background-size: cover; background-position: center; position: relative; background-attachment: fixed; color: var(--color-surface); }
.section--image-bg::before { content: ''; position: absolute; inset: 0; background: rgba(26, 27, 30, 0.8); z-index: 0; }
.section--image-bg > * { position: relative; z-index: 1; }

.section--dark > *, .section--accent > *, .section--gradient > * { position: relative; z-index: 1; }

/* Advanced Layouts */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); auto-rows: minmax(300px, auto); }
.bento-item { background: var(--color-surface); border-radius: var(--radius); padding: var(--space-md); display: flex; flex-direction: column; justify-content: space-between; }
.bento-item--wide { grid-column: span 2; }
.bento-item--tall { grid-row: span 2; }

.horizontal-scroll { display: flex; overflow-x: scroll; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; gap: var(--space-md); padding-bottom: var(--space-md); }
.horizontal-scroll__item { scroll-snap-align: start; flex-shrink: 0; width: 85%; max-width: 500px; }

.sticky-story { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.sticky-story__pin { position: sticky; top: 8rem; align-self: start; }

.card-stack { position: relative; }
.card-stack .card:nth-child(2) { transform: translateY(30px); z-index: 2; }
.card-stack .card:nth-child(3) { transform: translateY(60px); z-index: 3; }

/* Components */
.card { background: var(--color-surface); border-radius: var(--radius); padding: var(--space-md); border: none; box-shadow: none; }
.card-image { margin: calc(var(--space-md) * -1) calc(var(--space-md) * -1) var(--space-md); border-radius: var(--radius) var(--radius) 0 0; }

.btn-primary, .btn-secondary, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; padding: 1rem 2.5rem; border-radius: var(--radius); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: all var(--transition-fast); border: none; box-shadow: var(--shadow-inset); }
.btn-primary { background: var(--color-accent); color: var(--color-surface); }
.btn-primary:hover { background: #a80015; }
.btn-secondary { background: var(--color-primary); color: var(--color-surface); }
.btn-secondary:hover { background: var(--color-secondary); }
.btn-ghost { background: transparent; color: var(--color-primary); box-shadow: none; }
.btn-ghost:hover { background: rgba(26,27,30,0.05); }

.tag, .badge { display: inline-block; padding: 0.35rem 1rem; border-radius: var(--radius); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; background: var(--color-primary); color: var(--color-surface); box-shadow: var(--shadow-inset); }

.scroll-progress { position: fixed; top: 0; left: 0; height: 4px; background: var(--color-accent); z-index: 9999; width: 0%; }
.feature-strip { display: flex; gap: var(--space-lg); overflow-x: auto; padding: var(--space-sm) 0; }
.feature-strip__item { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-heading); font-size: 1.5rem; white-space: nowrap; text-transform: uppercase; }
.trust-badges { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; }

.pricing-toggle { display: flex; align-items: center; gap: 1.5rem; justify-content: center; margin-bottom: var(--space-lg); font-weight: 700; text-transform: uppercase; }
.pricing-toggle__track { width: 70px; height: 36px; background: var(--color-surface); border-radius: var(--radius); position: relative; cursor: pointer; box-shadow: var(--shadow-inset); }
.pricing-toggle__thumb { width: 28px; height: 28px; background: var(--color-primary); border-radius: 4px; position: absolute; top: 4px; left: 4px; transition: transform var(--transition-fast); }

.comparison-slider { position: relative; width: 100%; overflow: hidden; border-radius: var(--radius); }
.testimonial-slider { overflow: hidden; position: relative; }
.testimonial-slider__track { display: flex; transition: transform 0.5s ease; }
.testimonial-slider__item { min-width: 100%; padding: var(--space-md); }
.testimonial-slider__nav { display: flex; justify-content: center; gap: 1rem; margin-top: var(--space-md); }

.image-collage { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); position: relative; }
.image-collage__item:nth-child(2) { transform: translateY(3rem); }
.image-mask { clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 100%); }

.metric-card { background: var(--color-surface); border-radius: var(--radius); padding: var(--space-md); text-align: center; }
.metric-card h3 { font-size: 4rem; margin-bottom: 0; color: var(--color-accent); }
.faq-search { width: 100%; padding: 1.25rem 2rem; border: none; border-radius: var(--radius); font-family: var(--font-body); font-size: 1.125rem; box-shadow: var(--shadow-inset); background: var(--color-surface); }

/* Navigation */
.site-header { position: sticky; top: 0; background: var(--color-surface); z-index: 1000; padding: var(--space-sm) 0; }
.site-nav { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.nav-logo-img { height: 40px; width: auto; max-width: 160px; object-fit: contain; }
.nav-logo-text { font-family: var(--font-heading); font-size: 2rem; color: var(--color-primary); text-transform: uppercase; }
.nav-links { display: flex; gap: var(--space-md); align-items: center; }
.nav-link { font-weight: 700; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.05em; }
.nav-toggle { display: none; background: none; border: none; font-size: 2rem; color: var(--color-primary); cursor: pointer; }

/* Hero */
.hero { min-height: 90vh; position: relative; display: flex; align-items: center; background: var(--color-primary); color: var(--color-surface); overflow: hidden; }
.hero--with-image { background-size: cover; background-position: center; background-attachment: fixed; }
.hero--with-image::before { content: ''; position: absolute; inset: 0; background: rgba(26,27,30,0.6); z-index: 0; }
.hero--split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; background: var(--color-bg); color: var(--color-text); }
.hero--video { position: relative; }
.hero--video::before { content: ''; position: absolute; inset: 0; background: rgba(26,27,30,0.7); z-index: 1; }
.hero-overlay { position: absolute; inset: 0; z-index: 0; }
.hero-content { position: relative; z-index: 2; width: 100%; }
.hero-title { font-size: clamp(4rem, 10vw, 7rem); color: var(--color-surface); margin-bottom: var(--space-sm); line-height: 0.9; }
.hero--split .hero-title { color: var(--color-primary); }
.hero-subtitle { font-size: 1.5rem; color: rgba(255,255,255,0.8); margin-bottom: var(--space-lg); font-weight: 500; }
.hero--split .hero-subtitle { color: var(--color-muted); }
.hero-cta-group { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.hero__eyebrow { display: inline-block; font-family: var(--font-heading); font-size: 1.5rem; text-transform: uppercase; color: var(--color-accent); margin-bottom: var(--space-sm); }
.hero__badge { background: var(--color-accent); color: var(--color-surface); padding: 0.35rem 1rem; border-radius: var(--radius); font-size: 1rem; font-weight: 700; text-transform: uppercase; display: inline-block; margin-bottom: var(--space-sm); box-shadow: var(--shadow-inset); }
.hero__metrics { display: flex; gap: var(--space-md); margin-top: var(--space-xl); }

/* Section Transitions */
.section--wave-bottom { padding-bottom: calc(var(--space-xl) + 100px); }
.section--wave-bottom::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 100px; background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 100" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,50 C320,150 420,-50 740,50 C1060,150 1120,-50 1440,50 L1440,100 L0,100 Z" fill="%23F8F8F9"/></svg>') no-repeat center bottom; background-size: 100% 100%; z-index: 2; }
.section--overlap { margin-bottom: -6rem; z-index: 10; }

/* Footer */
.site-footer { background: var(--color-primary); color: var(--color-surface); padding: var(--space-xl) 0 var(--space-md); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-lg); margin-bottom: var(--space-lg); }
.footer-col-title { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: var(--space-sm); color: var(--color-surface); text-transform: uppercase; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--space-md); text-align: center; font-size: 0.875rem; color: rgba(255,255,255,0.5); }

/* Form */
.form-group { margin-bottom: var(--space-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
label { display: block; font-weight: 700; margin-bottom: 0.5rem; color: var(--color-primary); text-transform: uppercase; font-size: 0.875rem; }
input, textarea, select { width: 100%; padding: 1rem 1.25rem; border: none; border-radius: var(--radius); font-family: var(--font-body); font-size: 1rem; background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-inset); transition: box-shadow var(--transition-fast); }
textarea { resize: vertical; min-height: 150px; }
input:focus, textarea:focus, select:focus { outline: none; box-shadow: inset 0 2px 6px rgba(205,0,26,0.3); }
.form-error { color: var(--color-accent); font-size: 0.875rem; margin-top: 0.5rem; font-weight: 700; }

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--color-muted); }
.text-primary { color: var(--color-primary); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* Animations */
.animate-fade-up { opacity: 0; transform: translateY(30px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
body.hero-loaded .animate-fade-up { opacity: 1; transform: translateY(0); }
.animate-slide-left { opacity: 0; transform: translateX(-30px); transition: all 0.5s ease-out; }
.animate-slide-right { opacity: 0; transform: translateX(30px); transition: all 0.5s ease-out; }
.animate-scale-in { opacity: 0; transform: scale(0.95); transition: all 0.5s ease-out; }

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--color-surface); flex-direction: column; padding: var(--space-md); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
  .nav-open .nav-links { display: flex; }
  .nav-logo-img { height: 32px; }
  .grid-2, .grid-3, .grid-4, .bento-grid, .sticky-story, .hero--split, .form-row { grid-template-columns: 1fr; }
  .bento-item--wide, .bento-item--tall { grid-column: auto; grid-row: auto; }
  .sticky-story__pin { position: static; }
  .hero { text-align: center; }
  .hero-cta-group { justify-content: center; }
  .hero__metrics { flex-direction: column; }
}
