:root {
  --primary: #E4302B;
  --primary-dark: #B7211D;
  --primary-light: #FDEBEA;
  --accent: #FFC72C;
  --secondary: #2C3E50;
  --bg: #FFFFFF;
  --bg-alt: #F5F5F5;
  --text: #1A1A1A;
  --text-muted: #616161;
  --border: #E0E0E0;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  position: relative;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/background-v2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.brand-name {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
  color: var(--text);
}

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

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
}

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

.nav .nav-cta,
.nav .nav-cta:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 4px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(228, 48, 43, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

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

.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }


/* Hero */
.hero {
  padding: 72px 0 48px;
  overflow: hidden;
}

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

.eyebrow {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 18px;
}

.hero-copy h1 {
  font-size: 44px;
  line-height: 1.12;
  letter-spacing: -1px;
  margin: 0 0 20px;
  font-weight: 800;
}

.hero-copy .accent { color: var(--primary); }

.hero-copy .lede {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-blob {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent), var(--primary) 75%);
  opacity: 0.15;
  filter: blur(4px);
}

.hero-mascot {
  position: relative;
  width: 100%;
  max-width: 340px;
  opacity: 0;
  transform: translateY(28px);
  animation: hero-mascot-in 1.2s ease 0.2s forwards;
}

@keyframes hero-mascot-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mascot { animation: none; opacity: 1; transform: none; }
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }

.section-eyebrow {
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin: 0 0 40px;
}

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

.role-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.role-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.role-icon img { width: 100%; height: 100%; object-fit: contain; }

.role-card h3 {
  font-size: 19px;
  margin: 0 0 8px;
  font-weight: 800;
}

.role-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.steps.in-view .step { opacity: 1; transform: none; }

.step:nth-child(2) { transition-delay: 0.5s; }
.step:nth-child(3) { transition-delay: 1s; }

@media (prefers-reduced-motion: reduce) {
  .step { transition: none; opacity: 1; transform: none; }
}

.step-img {
  display: block;
  width: 100%;
  max-width: 210px;
  height: auto;
  margin: 20px auto 0;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  margin-bottom: 16px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.step p {
  color: var(--text-muted);
  margin: 0;
  font-size: 14.5px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature h3 {
  font-size: 16px;
  margin: 0 0 6px;
  font-weight: 800;
}

.feature p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.feature-img {
  display: block;
  width: 100%;
  max-width: 160px;
  height: auto;
  margin: 0 auto 18px;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 72px 0;
}

.cta-inner {
  text-align: center;
  max-width: 560px;
}

.cta h2 {
  font-size: 30px;
  margin: 0 0 12px;
  font-weight: 800;
}

.cta p {
  opacity: 0.9;
  margin: 0 0 28px;
}

.cta .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: none;
}

.cta .btn-primary:hover { background: var(--accent); color: var(--secondary); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-note {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { order: -1; }
  .hero-mascot { max-width: 260px; }

  .role-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header.open .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
  }

  .hero-copy h1 { font-size: 32px; }
  .feature-grid { grid-template-columns: 1fr; }
}
