/* ===== HIIRED BRAND TOKENS ===== */
:root {
  --black: #050505;
  --red: #fe3934;
  --offwhite: #F7F4EF;
  --softgrey: #D9D9D9;
  --charcoal: #1A1A1A;
  --warmgrey: #B8B2AA;
  --font: 'Inter', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 12px;
  --radius-lg: 20px;
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--offwhite);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

/* ===== UTILITY ===== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(255, 42, 42, 0.3);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.tag--light {
  color: rgba(247, 244, 239, 0.7);
  border-color: rgba(247, 244, 239, 0.2);
}

/* ===== LOGO ===== */
.logo {
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--black);
}

.logo-ii,
.logo-ii-dark {
  color: var(--red);
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-period,
.logo-period-dark {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s var(--ease);
}

.logo-period {
  color: var(--warmgrey);
}

.logo-period-dark {
  color: var(--softgrey);
}

.logo:hover .logo-ii,
.logo:hover .logo-ii-dark {
  transform: translateY(-2px);
}

.logo:hover .logo-period,
.logo:hover .logo-period-dark {
  transform: scale(1.3);
  color: var(--red);
}

/* ===== II MARK (standalone graphic) ===== */
.hero-ii-mark {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  margin-bottom: 32px;
}

.hero-ii-mark:hover .ii-bar:first-child {
  transform: translateY(-3px);
}

.hero-ii-mark:hover .ii-bar:last-child {
  transform: translateY(-5px);
}

/* ===== HERO APP STATUS BADGES ===== */
.hero-app-status {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hero-app-status .hero-ii-mark {
  margin-bottom: 0;
  margin-top: 10px; /* offset visual alignment due to dots */
}

.app-badges {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.app-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--black);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.app-badge.playstore:hover {
  transform: translateY(-2px);
  background: var(--charcoal);
  border-color: rgba(254, 57, 52, 0.4);
}

.app-badge.coming-soon {
  background: rgba(5, 5, 5, 0.03);
  color: rgba(5, 5, 5, 0.5);
  border: 1px solid rgba(5, 5, 5, 0.12);
  cursor: not-allowed;
}

.badge-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.app-badge.playstore .badge-icon {
  color: #fff;
}

.app-badge.coming-soon .badge-icon {
  color: rgba(5, 5, 5, 0.4);
}

.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.badge-subtitle {
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.badge-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ii-bar {
  width: 10px;
  height: 44px;
  background: var(--red);
  border-radius: 3px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ii-bar::before {
  content: '';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ii-bar:first-child::before {
  background: var(--red);
}

.ii-bar:last-child::before {
  background: var(--red);
}

.ii-mark-sm {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.ii-mark-sm span {
  width: 7px;
  height: 32px;
  background: var(--red);
  border-radius: 2px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ii-mark-sm span::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ii-mark-sm span:first-child::before {
  background: var(--red);
}

.ii-mark-sm span:last-child::before {
  background: var(--red);
}

/* Launch ii mark (large, on light bg) */
.launch-ii {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin-bottom: 28px;
}

.launch-ii span {
  width: 14px;
  height: 56px;
  background: var(--black);
  border-radius: 3px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.launch-ii span::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.launch-ii span:first-child::before {
  background: var(--black);
}

.launch-ii span:last-child::before {
  background: var(--black);
}

/* Keyframe Animations on Page Load */
@keyframes bar-grow {
  0% {
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
  }

  60% {
    transform: scaleY(1.12);
    transform-origin: bottom;
  }

  100% {
    transform: scaleY(1);
    transform-origin: bottom;
    opacity: 1;
  }
}

@keyframes dot-drop {
  0% {
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
  }

  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.ii-bar,
.ii-mark-sm span,
.launch-ii span {
  animation: bar-grow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.ii-bar::before,
.ii-mark-sm span::before,
.launch-ii span::before {
  animation: dot-drop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

.ii-bar:nth-child(2) {
  animation-delay: 0.1s;
}

.ii-bar:nth-child(2)::before {
  animation-delay: 0.4s;
}

.ii-mark-sm span:nth-child(2) {
  animation-delay: 0.1s;
}

.ii-mark-sm span:nth-child(2)::before {
  animation-delay: 0.4s;
}

.launch-ii span:nth-child(2) {
  animation-delay: 0.1s;
}

.launch-ii span:nth-child(2)::before {
  animation-delay: 0.4s;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255, 42, 42, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: skewX(-20deg);
  transition: left 0.75s var(--ease);
}

.btn-primary:hover::after {
  left: 150%;
}

.btn-primary:hover {
  background: #e02020;
  box-shadow: 0 8px 30px rgba(255, 42, 42, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 1.5px solid rgba(5, 5, 5, 0.2);
}

.btn-secondary:hover {
  border-color: var(--black);
  background: rgba(5, 5, 5, 0.04);
}

.btn-dark {
  background: var(--black);
  color: var(--offwhite);
}

.btn-dark:hover {
  background: var(--charcoal);
}

.btn-outline-dark {
  background: transparent;
  color: var(--black);
  border: 1.5px solid rgba(5, 5, 5, 0.25);
}

.btn-outline-dark:hover {
  border-color: var(--black);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

header.scrolled {
  background: rgba(247, 244, 239, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(5, 5, 5, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(5, 5, 5, 0.55);
  padding: 8px 13px;
  border-radius: 8px;
  display: inline-block;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), transform 0.2s var(--ease);
}

.nav-links a:hover {
  color: var(--black);
  background: rgba(5, 5, 5, 0.05);
  transform: scale(1.05);
}

.nav-cta {
  padding: 9px 20px !important;
  background: var(--black) !important;
  color: var(--offwhite) !important;
  border-radius: 10px !important;
  transition: transform 0.2s var(--ease), background 0.25s var(--ease) !important;
}

.nav-cta:hover {
  transform: scale(1.05) translateY(-1px) !important;
  background: var(--charcoal) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  display: block;
  transition: 0.3s var(--ease);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--offwhite);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
}

.mobile-menu a {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--black);
}

.mobile-menu a:hover,
.mobile-link-cta {
  color: var(--red) !important;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 0;
  background: var(--offwhite);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  padding-bottom: 72px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(5, 5, 5, 0.4);
  margin-bottom: 0;
  padding-top: 6px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 42, 42, 0.4);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(255, 42, 42, 0);
  }
}

.hero-headline {
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: 28px;
  margin-top: 32px;
  text-align: center;
}

/* ===== ROTATING TEXT ===== */
.rotating-text-wrapper {
  display: inline-block;
  vertical-align: bottom;
  overflow: hidden;
  position: relative;
  height: 1.35em;
  line-height: 1.15;
  margin-bottom: -0.22em;
}

#hero-rotating-text {
  display: inline-flex;
  flex-wrap: wrap;
}

.rotate-word {
  display: inline-flex;
  overflow: hidden;
}

.rotate-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(-120%);
  animation: rotate-char-in 0.45s cubic-bezier(0.34, 1.3, 0.64, 1) both;
  animation-delay: calc(var(--char-index) * 0.02s);
}

.rotate-char.red-i {
  color: var(--red);
}

.rotate-char.exit {
  animation: rotate-char-out 0.35s cubic-bezier(0.55, 0, 1, 0.45) both;
  animation-delay: calc(var(--char-index) * 0.01s);
}

.rotate-space {
  display: inline-block;
  white-space: pre;
}

@keyframes rotate-char-in {
  0% {
    opacity: 0;
    transform: translateY(-120%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rotate-char-out {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(120%);
  }
}

.hero-subhead {
  font-size: 1.05rem;
  color: rgba(5, 5, 5, 0.5);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.75;
  text-align: center;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Ticker */
.hero-ticker {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(5, 5, 5, 0.1);
  border-bottom: 1px solid rgba(5, 5, 5, 0.1);
  padding: 14px 0;
  background: var(--offwhite);
}

.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(5, 5, 5, 0.45);
  will-change: transform;
}

.ticker-track span {
  flex-shrink: 0;
}

.ticker-track em {
  font-style: normal;
  color: var(--red);
}

.ticker-dot {
  color: var(--red);
}

@keyframes ticker {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ===== PROBLEM ===== */
.problem {
  padding: 100px 0;
  background: var(--offwhite);
}

@media (min-width: 901px) {
  .problem {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
  }
}

.problem-label {
  margin-bottom: 40px;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.problem-card {
  padding: 40px 32px 32px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
}

.problem-card:hover {
  transform: scale(1.02) translateY(-4px);
  z-index: 2;
}

.problem-card--dark {
  background: var(--black);
}

.problem-card--dark:hover {
  box-shadow: 0 16px 36px rgba(255, 42, 42, 0.12);
}

.problem-card--light {
  background: var(--softgrey);
}

.problem-card--light:hover {
  box-shadow: 0 16px 36px rgba(5, 5, 5, 0.08);
}

/* Problem Card dots hover */
.problem-card:hover .ii-mark-sm span:first-child::before {
  transform: translateX(-50%) translateY(-2px);
}

.problem-card:hover .ii-mark-sm span:last-child::before {
  transform: translateX(-50%) translateY(-4px);
}

.problem-copy {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--black);
}

.problem-card--dark .problem-copy {
  color: var(--offwhite);
}

.problem-copy em {
  font-style: normal;
  color: var(--red);
}

.problem-detail {
  font-size: 0.82rem;
  color: rgba(5, 5, 5, 0.5);
  line-height: 1.6;
  margin-top: 16px;
}

.problem-card-logo {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--offwhite);
  margin-top: 24px;
}

.problem-card-logo.dark {
  color: var(--black);
}

.problem-card-logo span {
  color: var(--red);
}

.logo-period-dark {
  color: var(--softgrey);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 0;
  background: var(--black);
}

.how-it-works .tag {
  color: rgba(247, 244, 239, 0.5);
  border-color: rgba(247, 244, 239, 0.15);
}

.how-it-works .section-headline {
  color: var(--offwhite);
}

.how-it-works .section-sub {
  color: var(--warmgrey);
}

.how-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 56px;
}

.how-tab {
  padding: 11px 26px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid rgba(247, 244, 239, 0.15);
  color: var(--warmgrey);
  background: transparent;
  transition: 0.25s var(--ease);
}

.how-tab.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.how-steps {
  display: none;
}

.how-steps.active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  padding: 40px 28px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(247, 244, 239, 0.07);
  background: rgba(247, 244, 239, 0.03);
  position: relative;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.step-card:hover {
  border-color: rgba(255, 42, 42, 0.35);
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(255, 42, 42, 0.06);
}

.step-card .step-icon svg {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), stroke 0.3s var(--ease);
}

.step-card:hover .step-icon svg {
  transform: scale(1.15) rotate(3deg);
  stroke: #ff5555;
}

.step-number {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 20px;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.step-icon--money svg {
  stroke: #22c55e;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.25));
}

.step-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--offwhite);
}

.step-title em {
  font-style: normal;
  color: var(--red);
}

.step-text {
  font-size: 0.875rem;
  color: var(--warmgrey);
  line-height: 1.7;
}

/* ===== SECTION COMMON ===== */
.section-header {
  margin-bottom: 56px;
}

.section-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.section-headline em {
  font-style: normal;
  color: var(--red);
}

.section-sub {
  font-size: 0.95rem;
  color: rgba(5, 5, 5, 0.5);
  max-width: 500px;
  line-height: 1.75;
}

/* ===== AUDIENCE SECTIONS ===== */
.for-students {
  padding: 100px 0;
  background: var(--offwhite);
}

.for-agents {
  padding: 100px 0;
  background: var(--softgrey);
}

.audience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.audience-grid--reverse {
  direction: rtl;
}

.audience-grid--reverse>* {
  direction: ltr;
}

.audience-content .section-headline {
  margin-top: 8px;
}

.audience-benefits {
  list-style: none;
  margin: 24px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.audience-benefits li {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(5, 5, 5, 0.65);
  line-height: 1.55;
}

.benefit-check {
  color: var(--red);
  font-weight: 700;
  min-width: 16px;
  margin-top: 1px;
}

/* ===== FORM ===== */
.form-card {
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.for-agents .form-card {
  background: var(--black);
}

.form-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--offwhite);
  letter-spacing: -0.02em;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warmgrey);
  margin-bottom: 7px;
}

.form-input {
  width: 100%;
  background: rgba(247, 244, 239, 0.05);
  border: 1.5px solid rgba(247, 244, 239, 0.1);
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 0.88rem;
  color: var(--offwhite);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), padding-left 0.3s var(--ease);
  outline: none;
}

.form-input::placeholder {
  color: rgba(184, 178, 170, 0.5);
  transition: opacity 0.25s var(--ease);
}

.form-input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 42, 42, 0.12);
  padding-left: 18px;
}

.form-input:focus::placeholder {
  opacity: 0.6;
}

.form-input.error {
  border-color: var(--red);
}

.form-error {
  font-size: 0.73rem;
  color: var(--red);
  margin-top: 5px;
  display: none;
}

.form-error.show {
  display: block;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.form-tag-btn {
  padding: 6px 13px;
  border-radius: 100px;
  font-size: 0.73rem;
  font-weight: 600;
  background: transparent;
  border: 1.5px solid rgba(247, 244, 239, 0.12);
  color: var(--warmgrey);
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s var(--ease);
}

.form-tag-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 42, 42, 0.4);
}

.form-tag-btn:active {
  transform: scale(0.95);
}

.form-tag-btn.selected {
  background: rgba(255, 42, 42, 0.15);
  border-color: var(--red);
  color: var(--red);
  animation: tag-pop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes tag-pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
}

.form-success.show {
  display: block;
}

.form-success.show .icon-svg--success {
  animation: success-pop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1.1) both;
}

@keyframes success-pop {
  0% {
    transform: scale(0) rotate(-15deg);
    opacity: 0;
  }

  70% {
    transform: scale(1.15) rotate(5deg);
  }

  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

.form-success-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.form-success-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--offwhite);
  letter-spacing: -0.02em;
}

.form-success-text {
  font-size: 0.875rem;
  color: var(--warmgrey);
  line-height: 1.7;
}

/* ===== TRUST ===== */
.trust {
  padding: 100px 0;
  background: var(--black);
}

.trust .tag {
  color: rgba(247, 244, 239, 0.5);
  border-color: rgba(247, 244, 239, 0.15);
}

.trust .section-headline {
  color: var(--offwhite);
}

.trust .section-sub {
  color: var(--warmgrey);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.trust-card {
  padding: 36px 28px;
  background: rgba(247, 244, 239, 0.04);
  border: 1px solid rgba(247, 244, 239, 0.07);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.trust-card:hover {
  border-color: rgba(255, 42, 42, 0.35);
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(255, 42, 42, 0.06);
}

.trust-card .trust-icon svg {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), stroke 0.3s var(--ease);
}

.trust-card:hover .trust-icon svg {
  transform: scale(1.15) rotate(-3deg);
  stroke: #ff5555;
}

.trust-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.trust-title {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--offwhite);
  letter-spacing: -0.01em;
}

.trust-text {
  font-size: 0.83rem;
  color: var(--warmgrey);
  line-height: 1.65;
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
  background: var(--offwhite);
}

.faq-list {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border-bottom: 1px solid rgba(5, 5, 5, 0.1);
  transition: border-color 0.2s;
}

.faq-item.open {
  border-color: var(--red);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: left;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
  letter-spacing: -0.01em;
}

.faq-question:hover {
  color: var(--red);
  padding-left: 6px;
}

.faq-chevron {
  min-width: 20px;
  height: 20px;
  background: rgba(5, 5, 5, 0.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s var(--ease), color 0.25s var(--ease);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: rgba(255, 42, 42, 0.12);
  color: var(--red);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-answer-inner {
  padding: 0 0 20px;
  font-size: 0.88rem;
  color: rgba(5, 5, 5, 0.55);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.faq-item.open .faq-answer-inner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.05s;
}

/* ===== LAUNCH BAND ===== */
.launch-band {
  padding: 96px 0;
  background: var(--offwhite);
  border-top: 1px solid rgba(5, 5, 5, 0.1);
}

.launch-inner {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.launch-text {
  flex: 1;
}

.launch-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--black);
  margin-bottom: 14px;
}

.launch-headline em {
  font-style: normal;
  color: var(--red);
}

.launch-sub {
  font-size: 0.95rem;
  color: rgba(5, 5, 5, 0.5);
  margin-bottom: 32px;
}

.launch-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== FOOTER ===== */
footer {
  background: var(--softgrey);
  border-top: 1px solid rgba(5, 5, 5, 0.08);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  color: var(--black);
}

.footer-tagline {
  font-size: 0.83rem;
  color: rgba(5, 5, 5, 0.45);
  line-height: 1.7;
  max-width: 230px;
  margin: 12px 0 20px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.social-link {
  width: 34px;
  height: 34px;
  background: rgba(5, 5, 5, 0.07);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(5, 5, 5, 0.65);
  transition: background 0.2s, color 0.2s;
}

.social-link:hover {
  background: var(--black);
  color: var(--offwhite);
}

.footer-col-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(5, 5, 5, 0.35);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  color: rgba(5, 5, 5, 0.5);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--black);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(5, 5, 5, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(5, 5, 5, 0.4);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.78rem;
  color: rgba(5, 5, 5, 0.4);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--black);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Staggered Reveals for Grid Items */
.problem-grid .reveal:nth-child(1) {
  transition-delay: 0s;
}

.problem-grid .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.problem-grid .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.problem-grid .reveal:nth-child(4) {
  transition-delay: 0.3s;
}

.how-steps .reveal:nth-child(1) {
  transition-delay: 0s;
}

.how-steps .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.how-steps .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.trust-grid .reveal:nth-child(1) {
  transition-delay: 0s;
}

.trust-grid .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.trust-grid .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.trust-grid .reveal:nth-child(4) {
  transition-delay: 0.3s;
}

/* ===== SVG ICON STYLES ===== */
.icon-svg {
  display: inline-block;
  vertical-align: middle;
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
  fill: none;
  stroke: currentColor;
}

.icon-svg--btn {
  width: 0.95rem;
  height: 0.95rem;
  margin-left: 6px;
  stroke-width: 2.5;
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon-svg--btn {
  transform: translateX(4px);
}

.icon-svg--menu {
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 4px;
  stroke-width: 2.5;
}

.icon-svg--check {
  width: 0.95rem;
  height: 0.95rem;
  stroke-width: 3;
}

.icon-svg--success {
  width: 4rem;
  height: 4rem;
  stroke: var(--red);
  margin: 0 auto 12px;
  display: block;
}

.step-icon svg {
  width: 2.25rem;
  height: 2.25rem;
  stroke: var(--red);
  stroke-width: 1.5;
  display: block;
  margin: 0 auto;
}

.trust-icon svg {
  width: 2.25rem;
  height: 2.25rem;
  stroke: var(--red);
  stroke-width: 1.5;
  display: block;
}

.faq-chevron svg {
  width: 0.8rem;
  height: 0.8rem;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.3s;
}

.social-link svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

/* ===== LEGAL / PRIVACY PAGE LAYOUT ===== */
.legal-hero {
  padding: 160px 0 60px;
  background: var(--offwhite);
  border-bottom: 1px solid rgba(5, 5, 5, 0.08);
}

.legal-meta {
  font-size: 0.8rem;
  color: var(--warmgrey);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 12px;
}

.legal-wrapper {
  padding: 80px 0;
  background: var(--offwhite);
}

.legal-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(5, 5, 5, 0.45);
  transition: color 0.2s, padding-left 0.2s;
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: 12px;
}

.legal-nav-link:hover,
.legal-nav-link.active {
  color: var(--black);
  border-left-color: var(--red);
  padding-left: 16px;
}

.legal-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(5, 5, 5, 0.7);
}

.legal-body h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--black);
  margin-top: 48px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legal-body h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--red);
  border-radius: 2px;
}

.legal-body h2:first-of-type {
  margin-top: 0;
}

.legal-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--black);
  margin-top: 28px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-body p {
  margin-bottom: 20px;
}

.legal-body ul,
.legal-body ol {
  margin-bottom: 24px;
  padding-left: 20px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body a {
  color: var(--red);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.legal-body a:hover {
  color: var(--black);
}

.legal-card {
  background: rgba(5, 5, 5, 0.03);
  border: 1px solid rgba(5, 5, 5, 0.06);
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}

@media (max-width: 900px) {
  .legal-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .legal-nav {
    display: none;
  }

  .legal-hero {
    padding: 130px 0 48px;
  }

  .legal-wrapper {
    padding: 48px 0;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .problem-grid {
    grid-template-columns: 1fr 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .launch-inner {
    flex-direction: column;
    gap: 32px;
  }
}

@media (max-width: 768px) {

  section,
  .problem,
  .how-it-works,
  .for-students,
  .for-agents,
  .trust,
  .faq,
  .launch-band {
    padding: 72px 0;
  }

  .nav-links {
    display: none;
  }

  .ticker-track {
    animation-duration: 18s;
    gap: 32px;
  }

  .hamburger {
    display: flex;
  }

  .hero-headline {
    font-size: clamp(2.8rem, 10vw, 4.5rem);
  }

  .hero-top {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .app-badges {
    justify-content: center;
  }

  .how-steps.active {
    grid-template-columns: 1fr;
  }

  .audience-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .audience-grid--reverse {
    direction: ltr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .problem-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-headline {
    font-size: 2.6rem;
  }

  .launch-headline {
    font-size: 2rem;
  }

  .ticker-track {
    animation-duration: 12s;
  }
}

/* ===== THEME TOGGLER & WORKSPACE ACTIONS ===== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

@media (min-width: 769px) {
  .nav-links {
    margin-left: auto;
    margin-right: 16px;
  }
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s var(--ease);
}

.theme-toggle-btn:hover {
  background-color: rgba(5, 5, 5, 0.05);
  transform: scale(1.05);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

.theme-toggle-btn svg {
  position: absolute;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s var(--ease);
  width: 18px;
  height: 18px;
}

/* Light mode state: show moon, hide sun */
.theme-toggle-btn .sun-icon {
  transform: rotate(90deg) scale(0);
  opacity: 0;
}

.theme-toggle-btn .moon-icon {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

/* Dark mode state: show sun, hide moon */
html.dark .theme-toggle-btn {
  color: #F7F4EF;
}

html.dark .theme-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

html.dark .theme-toggle-btn .sun-icon {
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

html.dark .theme-toggle-btn .moon-icon {
  transform: rotate(-90deg) scale(0);
  opacity: 0;
}

/* ===== VIEW TRANSITIONS FOR THEME TOGGLER ===== */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

html[data-magicui-theme-vt="active"]::view-transition-group(root) {
  animation-duration: var(--magicui-theme-toggle-vt-duration, 500ms);
}

/* ===== DARK MODE OVERRIDES ===== */
html.dark {
  background-color: #0A0A0A;
}

html.dark body {
  background-color: #0A0A0A;
  color: #F7F4EF;
}

html.dark .btn-secondary {
  color: #F7F4EF;
  border-color: rgba(247, 244, 239, 0.25);
}

html.dark .btn-secondary:hover {
  background: rgba(247, 244, 239, 0.05);
  border-color: #F7F4EF;
}

html.dark .app-badge.coming-soon {
  background: rgba(247, 244, 239, 0.03);
  color: rgba(247, 244, 239, 0.5);
  border-color: rgba(247, 244, 239, 0.12);
}

html.dark .app-badge.coming-soon .badge-icon {
  color: rgba(247, 244, 239, 0.4);
}

/* Header */
html.dark header.scrolled {
  background: rgba(10, 10, 10, 0.85);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

html.dark .logo {
  color: #F7F4EF;
}

html.dark .logo-period {
  color: #8a857e;
}

html.dark .nav-links a {
  color: rgba(247, 244, 239, 0.6);
}

html.dark .nav-links a:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

html.dark .nav-cta {
  background: #F7F4EF !important;
  color: #050505 !important;
}

html.dark .nav-cta:hover {
  background: #FFFFFF !important;
}

html.dark .hamburger span {
  background: #F7F4EF;
}

html.dark .mobile-menu {
  background: #0A0A0A;
}

html.dark .mobile-menu a {
  color: #F7F4EF;
}

/* Hero & General typography */
html.dark .hero {
  background: #0A0A0A;
}

html.dark .hero-eyebrow {
  color: rgba(247, 244, 239, 0.55);
}

html.dark .section-sub {
  color: rgba(247, 244, 239, 0.6);
}

html.dark .hero-headline {
  color: #F7F4EF;
}

html.dark .hero-subhead {
  color: rgba(247, 244, 239, 0.6);
}

html.dark .hero-ticker {
  background: #0A0A0A;
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .ticker-track {
  color: rgba(247, 244, 239, 0.5);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Problem Section */
html.dark .problem {
  background: #0A0A0A;
}

html.dark .problem-card--light {
  background: #141414;
}

html.dark .problem-card--light:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

html.dark .problem-card--light .problem-copy {
  color: #F7F4EF;
}

html.dark .problem-card-logo.dark {
  color: #F7F4EF;
}

html.dark .logo-period-dark {
  color: #A0A0A0;
}

html.dark .problem-detail {
  color: rgba(247, 244, 239, 0.75);
}

/* How It Works Section */
html.dark .how-tab:not(.active) {
  border-color: rgba(255, 255, 255, 0.15);
  color: #B8B2AA;
}

/* For Students Section */
html.dark .for-students {
  background: #0A0A0A;
}

html.dark .audience-content .section-sub {
  color: rgba(247, 244, 239, 0.6);
}

html.dark .audience-benefits li {
  color: rgba(247, 244, 239, 0.7);
}

/* For Agents Section */
html.dark .for-agents {
  background: #111111;
  color: #F7F4EF;
}

html.dark .for-agents .section-headline {
  color: #F7F4EF;
}

html.dark .for-agents .section-sub {
  color: rgba(247, 244, 239, 0.6);
}

html.dark .for-agents .audience-benefits li {
  color: rgba(247, 244, 239, 0.7);
}

html.dark .for-agents .btn-secondary {
  color: #F7F4EF;
  border-color: rgba(255, 255, 255, 0.2);
}

html.dark .for-agents .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #F7F4EF;
}

/* FAQ Section */
html.dark .faq {
  background: #0A0A0A;
}

html.dark .faq-item {
  border-color: rgba(255, 255, 255, 0.1);
}

html.dark .faq-item.open {
  border-color: var(--red);
}

html.dark .faq-question {
  color: #F7F4EF;
}

html.dark .faq-chevron {
  background: rgba(255, 255, 255, 0.08);
  color: #F7F4EF;
}

html.dark .faq-answer-inner {
  color: rgba(247, 244, 239, 0.65);
}

/* Launch Band */
html.dark .launch-band {
  background: #0A0A0A;
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .launch-headline {
  color: #F7F4EF;
}

html.dark .launch-sub {
  color: rgba(247, 244, 239, 0.6);
}

html.dark .btn-outline-dark {
  color: #F7F4EF;
  border-color: rgba(255, 255, 255, 0.2);
}

html.dark .btn-outline-dark:hover {
  border-color: #F7F4EF;
  background: rgba(255, 255, 255, 0.05);
}

html.dark .launch-ii span {
  background: #F7F4EF;
}

html.dark .launch-ii span::before {
  background: #F7F4EF;
}

/* Footer */
html.dark footer {
  background: #111111;
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .footer-logo {
  color: #F7F4EF;
}

html.dark .footer-tagline {
  color: rgba(247, 244, 239, 0.55);
}

html.dark .social-link {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(247, 244, 239, 0.7);
}

html.dark .social-link:hover {
  background: #F7F4EF;
  color: #050505;
}

html.dark .footer-col-title {
  color: rgba(255, 255, 255, 0.35);
}

html.dark .footer-links a {
  color: rgba(247, 244, 239, 0.6);
}

html.dark .footer-links a:hover {
  color: #FFFFFF;
}

html.dark .footer-bottom {
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .footer-copy {
  color: rgba(247, 244, 239, 0.45);
}

html.dark .footer-legal a {
  color: rgba(247, 244, 239, 0.45);
}

html.dark .footer-legal a:hover {
  color: #FFFFFF;
}

/* Legal Page specific overrides */
html.dark .legal-hero {
  background: #0A0A0A;
  border-color: rgba(255, 255, 255, 0.08);
}

html.dark .legal-wrapper {
  background: #0A0A0A;
}

html.dark .legal-nav-link {
  color: rgba(247, 244, 239, 0.5);
}

html.dark .legal-nav-link:hover,
html.dark .legal-nav-link.active {
  color: #FFFFFF;
}

html.dark .legal-body {
  color: rgba(247, 244, 239, 0.75);
}

html.dark .legal-body h2,
html.dark .legal-body h3 {
  color: #F7F4EF;
}

html.dark .legal-body a:hover {
  color: #FFFFFF;
}

html.dark .legal-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

/* ===== NEW PROBLEM SECTION & CARD SWAP ===== */
.problem-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.problem-intro {
  flex: 1;
  max-width: 480px;
}

.problem-intro .section-headline {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.problem-intro .section-headline em {
  font-style: normal;
  color: var(--red);
}

.problem-intro .section-sub {
  font-size: 1.0rem;
  color: rgba(5, 5, 5, 0.6);
  line-height: 1.6;
  margin-bottom: 32px;
}

.dark .problem-intro .section-sub {
  color: rgba(247, 244, 239, 0.6);
}

.problem-intro-bullets {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.bullet-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.bullet-dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.bullet-item div {
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(5, 5, 5, 0.75);
}

.dark .bullet-item div {
  color: rgba(247, 244, 239, 0.75);
}

.bullet-item div strong {
  color: var(--black);
  font-weight: 700;
}

.dark .bullet-item div strong {
  color: var(--offwhite);
}

.problem-deck-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 500px;
}

/* Card Swap Container styles */
.card-swap-container {
  position: relative;
  width: 440px;
  height: 400px;
  perspective: 1200px;
  overflow: visible;
}

.card-swap-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 440px;
  height: 400px;
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  user-select: none;
}

.card--dark {
  background: #0B0B0B;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #F7F4EF;
}

.card--light {
  background: #F7F4EF;
  border: 1px solid rgba(5, 5, 5, 0.06);
  color: #050505;
}

.dark .card--light {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #F7F4EF;
}

.dark .card--dark {
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: #F7F4EF;
}

/* Top Logo Inside Card */
.card-top-logo {
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.card-top-logo span {
  color: var(--red);
}

/* Card Body Layouts */
.card-body-layout {
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
}

.card-grid-1 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  width: 100%;
  align-items: center;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  width: 100%;
  align-items: center;
}

.card-center-content {
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

.card-left-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-left-content.flex-center-y {
  height: 100%;
}

.card-right-graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Card Headings */
.card-heading {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.card-heading--large {
  font-size: 2.8rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.card-heading--medium {
  font-size: 2.1rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.card-logo-large {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 8px;
}

.card-logo-large span {
  color: var(--red);
}

.card-subhead {
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(5, 5, 5, 0.4);
  letter-spacing: -0.02em;
}

.dark .card-subhead {
  color: rgba(247, 244, 239, 0.4);
}

.dot-grey {
  color: #B8B2AA;
}

.text-ii {
  color: var(--red);
  letter-spacing: -0.05em;
  font-weight: 900;
}

/* Card Bottom Text */
.card-bottom-text {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  align-self: flex-end;
  color: rgba(5, 5, 5, 0.35);
  margin-top: 10px;
}

.card--dark .card-bottom-text {
  color: rgba(247, 244, 239, 0.35);
}

/* Timeline Graphic styling */
.timeline-graphic {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.timeline-line {
  position: absolute;
  top: 24px;
  bottom: 24px;
  right: 24px;
  width: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.timeline-slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
  font-weight: 600;
}

.slot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  z-index: 2;
  margin-right: 4px;
}

.timeline-slot.active {
  color: #ffffff;
  font-weight: 700;
}

.timeline-slot.active .slot-ii-dots {
  display: flex;
  gap: 4px;
  z-index: 2;
  margin-right: -1px;
}

.timeline-slot.active .slot-ii-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

/* Giant II Brand Mark in Card 4 & 6 */
.giant-ii-logo {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.giant-ii-logo span {
  width: 14px;
  height: 72px;
  background: var(--red);
  border-radius: 3px;
  position: relative;
}

.giant-ii-logo span::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
}

/* Matching Graphic Card 3 */
.matching-graphic {
  position: relative;
  width: 100%;
  height: 220px;
  margin: 10px 0;
}

.match-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 20px;
  width: 170px;
  text-align: center;
  position: absolute;
  z-index: 2;
}

.match-box--left {
  top: 10px;
  left: 10px;
}

.match-box--right {
  bottom: 10px;
  right: 10px;
}

.match-box h4 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.02em;
}

.card--light .match-box {
  background: rgba(5, 5, 5, 0.03);
  border-color: rgba(5, 5, 5, 0.08);
}

.card--light .match-box h4 {
  color: #050505;
}

.match-svg-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .problem-layout {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .problem {
    padding: 80px 0;
  }

  .problem-layout {
    display: block;
    text-align: center;
  }
  
  .problem-intro {
    max-width: 600px;
    margin: 0 auto 48px;
  }

  .problem-intro .section-headline {
    font-size: clamp(2.2rem, 5vw, 3.0rem) !important;
    margin-bottom: 20px;
  }

  .problem-intro .section-sub {
    font-size: 1.0rem;
    margin-bottom: 24px;
    line-height: 1.6;
  }

  .problem-intro-bullets {
    gap: 16px;
    margin-bottom: 32px;
  }

  .bullet-item {
    text-align: left;
  }

  .bullet-dot {
    margin-top: 8px;
  }

  .bullet-item div {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .problem-intro-cta {
    margin-bottom: 40px;
  }

  .problem-deck-wrapper {
    min-height: 420px;
    width: 100%;
    overflow: visible;
    padding-bottom: 40px;
  }

  /* Responsive Fluid Card Swap Deck */
  .card-swap-container {
    width: 90%;
    max-width: 380px;
    height: 340px;
    margin: 20px auto 40px;
    transform: none !important;
  }

  .card-swap-item {
    width: 100%;
    max-width: 380px;
    height: 340px;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  /* Scale Typography Inside Cards */
  .card-heading {
    font-size: 1.8rem;
  }

  .card-heading--large {
    font-size: 2.0rem;
  }

  .card-heading--medium {
    font-size: 1.6rem;
  }

  .card-logo-large {
    font-size: 2.6rem;
  }

  .card-subhead {
    font-size: 1.0rem;
  }

  /* Compact nested graphics inside cards */
  .timeline-graphic {
    padding: 12px 14px;
    gap: 10px;
    border-radius: 10px;
  }

  .timeline-line {
    top: 18px;
    bottom: 18px;
    right: 18px;
  }

  .timeline-slot {
    font-size: 0.72rem;
  }

  .slot-dot {
    width: 6px;
    height: 6px;
  }

  .timeline-slot.active .slot-ii-dots span {
    width: 6px;
    height: 6px;
  }

  /* Card 3: Matching columns */
  .matching-graphic {
    height: 180px;
    margin: 5px 0;
  }

  .match-box {
    width: 115px;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .match-box h4 {
    font-size: 0.78rem;
  }

  .match-box--left {
    top: 5px;
    left: 5px;
  }

  .match-box--right {
    bottom: 5px;
    right: 5px;
  }

  /* Cards 4 & 6: Giant II brand mark */
  .giant-ii-logo span {
    width: 10px;
    height: 52px;
    border-radius: 2px;
  }

  .giant-ii-logo span::before {
    width: 10px;
    height: 10px;
    top: -14px;
  }
}

@media (max-width: 480px) {
  .problem-deck-wrapper {
    min-height: 380px;
  }

  .card-swap-container {
    height: 310px;
  }

  .card-swap-item {
    height: 310px;
    padding: 16px 20px;
  }

  .card-heading {
    font-size: 1.55rem;
  }

  .card-heading--large {
    font-size: 1.75rem;
  }

  .card-heading--medium {
    font-size: 1.4rem;
  }

  .card-logo-large {
    font-size: 2.2rem;
  }

  .matching-graphic {
    height: 160px;
  }

  .match-box {
    width: 105px;
    padding: 8px 10px;
  }

  .match-box h4 {
    font-size: 0.72rem;
  }

  .giant-ii-logo span {
    height: 44px;
  }

  .giant-ii-logo span::before {
    top: -12px;
  }
}
