:root {
  --color-navy: #221464;
  --color-navy-dark: #1a0f4d;
  --color-orange: #cc7617;
  --color-orange-dark: #b8661a;
  --color-slate: #67748e;
  --color-gray-50: #f9fafb;
  --color-gray-700: #374151;
  --color-white: #ffffff;
  --shadow-md: 0 15px 30px rgba(26, 15, 77, 0.12);
  --shadow-lg: 0 25px 35px rgba(26, 15, 77, 0.18);
  --shadow-xl: 0 35px 45px rgba(26, 15, 77, 0.25);
  --shadow-orange: 0 20px 35px rgba(204, 118, 23, 0.25);
  --max-width: 56rem;
  --transition-default: 0.3s ease;
  --font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  /* Spacing scale for consistent rhythm */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--color-white);
  color: var(--color-gray-700);
  line-height: 1.6;
}

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

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

button,
.btn {
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
}

.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(34, 20, 100, 0.08);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(34, 20, 100, 0.04);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .header__inner {
    gap: 2rem;
  }
}

.header__brand {
  display: inline-flex;
  align-items: center;
}

.header__logo {
  height: clamp(2.25rem, 4vw, 2.9rem);
  transition: transform var(--transition-default);
}

.header__brand:hover .header__logo {
  transform: translateY(-2px);
}

.header__cta {
  padding: 0.65rem 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 0.75rem;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border: none;
  transition: transform var(--transition-default), box-shadow var(--transition-default), background var(--transition-default), color var(--transition-default);
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
}

.header__brand:focus-visible,
.header__cta:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px;
  border-radius: 0.75rem;
}

.btn--large {
  padding: 1rem 3rem;
  font-size: 1.125rem;
}

.btn--full {
  width: 100%;
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--color-navy);
  color: var(--color-navy);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: var(--color-navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--accent {
  background: var(--color-orange);
  color: var(--color-white);
  box-shadow: var(--shadow-orange);
  font-size: 1.125rem;
  padding: 1.125rem 3rem;
}

.btn--accent:hover {
  background: var(--color-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 25px 45px rgba(204, 118, 23, 0.3);
}

/* Hero */
.hero {
  background: var(--color-navy);
  color: var(--color-white);
  padding: clamp(3.75rem, 10vw, 6.5rem) 1rem clamp(4.75rem, 12vw, 7.25rem);
  position: relative;
  overflow: hidden;
}

.hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
}

.hero__circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero__circle--1 {
  width: 7rem;
  height: 7rem;
  top: 5rem;
  left: 2.5rem;
}

.hero__circle--2 {
  width: 5rem;
  height: 5rem;
  right: 5rem;
  bottom: 10rem;
  border-color: rgba(204, 118, 23, 0.4);
}

.hero__glow {
  position: absolute;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  right: 25%;
  top: 52%;
  background: rgba(204, 118, 23, 0.3);
  filter: blur(32px);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__headline {
  font-weight: 700;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero__line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-start;
  line-height: 1.05;
}

.hero__line--stacked {
  gap: 0.4rem;
}

.hero__line--primary {
  font-size: clamp(2.75rem, 10vw, 5.75rem);
  text-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
}

/* Keep the first phrase on one line */
.hero__line--primary > span:first-child {
  white-space: nowrap;
}

.hero__line--secondary {
  font-size: clamp(2.5rem, 9vw, 5rem);
  position: relative;
}

.hero__highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.35rem;
  position: relative;
  color: var(--color-orange);
  text-shadow: 0 0 18px rgba(204, 118, 23, 0.55);
}

.hero__underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.3rem;
  height: 0.18rem;
  background: linear-gradient(90deg, var(--color-orange) 0%, rgba(204, 118, 23, 0.05) 100%);
  transform-origin: left;
  animation: underline-sweep 1.3s ease forwards;
}

.hero__line-text {
  position: relative;
  display: inline-block;
}

.hero__cta {
  margin-top: clamp(1.75rem, 4.5vw, 2.5rem);
  width: fit-content;
}

.icon {
  width: clamp(2.5rem, 6vw, 3.75rem);
  height: clamp(2.5rem, 6vw, 3.75rem);
  vertical-align: middle;
}

.icon--clock {
  margin-right: 0.75rem;
}

.hero__lead {
  margin: 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* Content sections */
.content-section {
  padding: clamp(4rem, 10vw, 6rem) 1rem;
  background: var(--color-white);
}

.content-section--muted {
  background: var(--color-gray-50);
}

.content-section--spacious {
  padding: clamp(5rem, 12vw, 7rem) 1.5rem;
}

.content-section__inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .content-section__inner {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
}

.content-section__text {
  flex: 1;
}

.content-section__title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: var(--color-navy);
  margin: 0 0 1.5rem;
}

.content-section__description {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--color-gray-700);
  margin: 0 0 2.25rem;
  line-height: 1.7;
}

.content-section__illustration {
  display: none;
}

@media (min-width: 768px) {
  .content-section__illustration {
    display: block;
  }
}

.content-section__illustration svg {
  width: clamp(220px, 24vw, 280px);
  height: clamp(220px, 24vw, 280px);
}

/* Overlay section */
/* Commute redesign */
.commute {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 900px) {
  .commute {
    grid-template-columns: 1.05fr 1fr;
  }
}

/* badge removed */

.commute__panel {
  max-width: 36rem;
}

.commute__title {
  font-size: clamp(2.2rem, 4.5vw, 3.1rem);
  color: var(--color-navy);
  margin: 0 0 var(--space-4);
  text-shadow: 0 12px 20px rgba(26, 15, 77, 0.12);
}

.commute__description {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--color-gray-700);
  margin: 0 0 var(--space-8);
  line-height: 1.6;
}

.commute__slider {
  margin: 0 0 var(--space-8);
}

.commute__track {
  position: relative;
  height: 10px;
  background: #e5e7eb; /* slate-200 */
  border-radius: 999px;
  overflow: hidden;
}

.commute__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  background: linear-gradient(90deg, var(--color-orange), var(--color-navy));
}

.commute__ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #64748b; /* slate-500 */
  margin-top: var(--space-3);
}

.commute__cta .btn {
  padding: 1rem 3rem;
}

.commute__art svg {
  width: clamp(280px, 45vw, 640px);
  height: auto;
}

/* Legal (Terms) page */
.legal {
  padding: clamp(3rem, 8vw, 5rem) 1rem;
  background: var(--color-white);
}

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

.legal__title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--color-navy);
  margin: 0 0 0.25rem;
}

.legal__meta {
  color: var(--color-slate);
  margin: 0 0 1.75rem;
}

.legal__h2 {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  margin: 1.5rem 0 0.5rem;
  color: var(--color-navy);
}

.legal__h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.25rem);
  margin: 1.5rem 0 0.5rem;
  color: var(--color-navy);
}

.legal p {
  max-width: 65ch;
  line-height: 1.75;
  margin: 0 0 1rem;
}

.legal a {
  color: var(--color-navy);
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--color-slate);
  padding: 3rem 1rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__link a {
  color: var(--color-white);
  font-weight: 500;
  transition: color var(--transition-default);
}

.footer__link a:hover {
  color: var(--color-orange);
}

/* Utility classes */
.drop-shadow-lg {
  filter: drop-shadow(0 10px 20px rgba(14, 23, 53, 0.25));
}

.drop-shadow-xl {
  filter: drop-shadow(0 18px 35px rgba(34, 20, 100, 0.25));
}

.drop-shadow-2xl {
  filter: drop-shadow(0 25px 45px rgba(34, 20, 100, 0.25));
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce {
  animation: bounce 1.4s ease-in-out infinite;
}

.blur-xl {
  filter: blur(24px);
}

/* Animations */
@keyframes hero-glow {
  0%,
  100% {
    text-shadow: 0 0 18px rgba(204, 118, 23, 0.5);
  }
  50% {
    text-shadow: 0 0 30px rgba(204, 118, 23, 0.85);
  }
}

@keyframes underline-sweep {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Responsive tweaks */
@media (max-width: 767px) {
  .hero__headline {
    gap: 1.25rem;
  }

  .hero__cta {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2.25rem;
  }

  .hero__underline {
    display: none;
  }

  /* Keep second hero line on a single row */
  .hero__line--secondary {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  }
  .icon--clock {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
  }

  .commute__panel {
    text-align: center;
    margin: 0 auto;
  }
  .commute__art svg {
    width: min(88vw, 520px);
  }

  .hero__circle--1,
  .hero__circle--2,
  .hero__glow {
    opacity: 0.08;
    filter: blur(28px);
  }

  /* Mobile: adjust overlay spacing */
  .overlay-card__content {
    width: 100%;
    max-width: 36rem;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .btn {
    width: auto;
  }

  .btn--accent {
    width: 100%;
  }
}

}

/* Header stacks at <= 360px */
@media (max-width: 360px) {
  .header__inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
  .header__cta {
    width: 100%;
    justify-content: center;
  }
  .header {
    padding: 1rem 0;
  }
}
