/* Hit n Spin — Brex-inspired design system */

:root {
  --primary: #FF5900;
  --accent-hover: #E65000;
  --accent-pressed: #CC4700;
  --ink: #15191E;
  --body: #33383F;
  --muted: #60646C;
  --canvas: #FCFCFD;
  --surface: #FFFFFF;
  --surface-alt: #F6F7F9;
  --border: #E6E8EB;
  --border-strong: #C9CDD2;
  --soft-orange: #FFF3EC;
  --footer-bg: #15191E;
  --on-primary: #FFFFFF;
  --on-dark: #FCFCFD;
  --success: #138A43;
  --logo-gray: #A5A9B1;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --max-width: 1200px;
  --nav-height: 72px;
  --section-pad: clamp(64px, 10vw, 120px);
  --gutter: clamp(24px, 4vw, 32px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ink);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: 200;
  padding: 12px 16px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
}

.skip-link:focus {
  top: 12px;
}

/* Announcement bar */
.announcement {
  background: var(--ink);
  color: var(--on-dark);
  text-align: center;
  padding: 8px 16px;
  font-size: 14px;
  letter-spacing: -0.02em;
}

.announcement a {
  color: var(--on-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.announcement-arrow {
  transition: transform 0.15s ease;
}

.announcement a:hover .announcement-arrow {
  transform: translateX(3px);
}

/* Navigation */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.nav-brand-mark {
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-brand-mark svg {
  width: 16px;
  height: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 10px 12px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  transition: background 0.15s ease;
}

.nav-links a:hover {
  background: var(--surface-alt);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px;
  cursor: pointer;
  color: var(--ink);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.43;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  min-height: 44px;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

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

.btn-primary:active {
  background: var(--accent-pressed);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-strong);
  background: var(--surface-alt);
}

.btn-link-arrow {
  background: transparent;
  color: var(--ink);
  padding: 0;
  min-height: auto;
  font-weight: 600;
  gap: 6px;
}

.btn-link-arrow:hover {
  color: var(--primary);
}

.btn-link-arrow .arrow {
  transition: transform 0.15s ease;
}

.btn-link-arrow:hover .arrow {
  transform: translateX(3px);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-pad) 0;
}

.section-alt {
  background: var(--surface-alt);
}

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.33;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--body);
  margin: 0;
  line-height: 1.5;
}

/* Hero */
.hero {
  padding: clamp(48px, 8vw, 80px) 0 clamp(64px, 10vw, 100px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--soft-orange);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 24px;
}

.hero-title .brand {
  display: block;
  color: var(--primary);
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.5;
  color: var(--body);
  margin: 0 0 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--body);
}

.hero-bullets svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--success);
}

/* Hero media panel */
.hero-media {
  background: var(--surface-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  position: relative;
}

.hero-media-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.hero-ui-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

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

.hero-ui-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.hero-ui-dots span:first-child {
  background: #FF5F57;
}

.hero-ui-dots span:nth-child(2) {
  background: #FFBD2E;
}

.hero-ui-dots span:nth-child(3) {
  background: #28CA41;
}

.hero-ui-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-spin-display {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.spin-wheel {
  width: clamp(140px, 40%, 200px);
  height: clamp(140px, 40%, 200px);
  border-radius: 50%;
  background: conic-gradient(
    var(--primary) 0deg 60deg,
    var(--ink) 60deg 120deg,
    var(--primary) 120deg 180deg,
    #33383F 180deg 240deg,
    var(--primary) 240deg 300deg,
    var(--ink) 300deg 360deg
  );
  border: 6px solid var(--surface);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  position: relative;
  animation: spin-slow 12s linear infinite;
}

.spin-wheel::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 18px solid var(--primary);
}

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

.spin-cta-mock {
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  letter-spacing: -0.01em;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: auto;
}

.hero-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: center;
}

.hero-stat-value {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--soft-orange);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

/* Metrics */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.metric-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}

.metric-value {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
}

.metric-value .accent {
  color: var(--primary);
}

.metric-label {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* Trust section */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.trust-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--body);
}

.trust-list svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.trust-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  flex: 1;
  min-width: 140px;
  text-align: center;
}

.trust-badge-icon {
  font-size: 24px;
  margin-bottom: 8px;
}

.trust-badge-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.trust-badge-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* Languages strip */
.lang-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.lang-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  letter-spacing: -0.01em;
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
  letter-spacing: -0.015em;
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Final CTA */
.cta-band {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 8vw, 64px);
  text-align: center;
  margin: 0 var(--gutter);
  max-width: calc(var(--max-width) - var(--gutter) * 2);
  margin-left: auto;
  margin-right: auto;
}

.cta-band-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: var(--on-dark);
}

.cta-band-desc {
  font-size: 16px;
  color: rgba(252, 252, 253, 0.75);
  margin: 0 auto 32px;
  max-width: 520px;
  line-height: 1.5;
}

.cta-band .btn-primary {
  font-size: 15px;
  padding: 14px 32px;
}

.cta-disclaimer {
  font-size: 12px;
  color: rgba(252, 252, 253, 0.5);
  margin-top: 20px;
  line-height: 1.5;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--on-dark);
  padding: 64px var(--gutter) 32px;
  margin-top: var(--section-pad);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-size: 14px;
  font-weight: 600;
  color: var(--on-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(252, 252, 253, 0.6);
  line-height: 1.5;
  margin: 0;
  max-width: 320px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(252, 252, 253, 0.5);
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(252, 252, 253, 0.75);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--on-dark);
}

.footer-bottom {
  border-top: 1px solid rgba(252, 252, 253, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-legal {
  font-size: 12px;
  color: rgba(252, 252, 253, 0.45);
  line-height: 1.5;
  max-width: 640px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(252, 252, 253, 0.45);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(21, 25, 30, 0.5);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mobile-nav-close {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-links a {
  display: block;
  padding: 14px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  border-radius: var(--radius-md);
}

.mobile-nav-links a:hover {
  background: var(--surface-alt);
}

.mobile-nav-cta {
  margin-top: auto;
  padding-top: 24px;
}

/* Responsive */
@media (max-width: 1023px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
    max-height: 360px;
    aspect-ratio: auto;
  }

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

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .nav-links,
  .nav-actions .btn-secondary {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

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

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .cta-band {
    margin: 0 var(--gutter);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .spin-wheel {
    animation: none;
  }
}
