/* Japan Method - Main Stylesheet
 * Minimalist Japanese aesthetic with clean lines and ample white space
 */

/* ========================================
   CSS Custom Properties (Design Tokens)
   ======================================== */
:root {
  /* Color Palette - Inspired by Japanese aesthetics */
  --color-white: #ffffff;
  --color-off-white: #fafafa;
  --color-light-gray: #f5f5f5;
  --color-soft-gray: #e8e8e8;
  --color-medium-gray: #666666; /* Darkened from #9e9e9e for WCAG AA contrast */
  --color-dark-gray: #424242;
  --color-charcoal: #212121;
  --color-black: #0a0a0a;

  /* Accent colors - Subtle Japanese influences */
  --color-accent: #c41e3a; /* Traditional Japanese red (Aka) */
  --color-accent-light: #d4495e;
  --color-accent-dark: #9a1830;
  --color-sage: #8b9a7d; /* Matcha green undertone */
  --color-indigo: #264653; /* Traditional indigo (Ai) */

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Noto Serif JP', 'Georgia', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Font sizes - Modular scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Spacing - 8px base grid */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;

  /* Borders & Shadows */
  --border-radius-sm: 4px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 250ms ease;
  --transition-slow: 400ms ease;
}

/* ========================================
   Reset & Base Styles
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px; /* Increased base font for better readability */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.8; /* Increased line height for readability */
  color: var(--color-charcoal);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

/* Skip Navigation Link for Screen Readers */
.skip-link {
  position: absolute;
  top: -50px;
  left: 0;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 1rem 1.5rem;
  z-index: 10000;
  font-weight: 600;
  text-decoration: underline;
}

.skip-link:focus {
  top: 0;
}

/* High Contrast Focus States for Keyboard Navigation */
*:focus {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

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

a {
  color: var(--color-accent);
  text-decoration: underline; /* Always underline links for clarity */
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-dark);
  text-decoration-thickness: 2px;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-black);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-6);
}

h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-5);
}

h3 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-dark-gray);
}

.text-center {
  text-align: center;
}

.text-small {
  font-size: var(--text-sm);
}

.text-muted {
  color: var(--color-medium-gray);
}

/* Japanese character styling */
.jp-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
}

.jp-accent {
  color: var(--color-accent);
  font-size: var(--text-sm);
  display: block;
  margin-bottom: var(--space-2);
}

/* ========================================
   Layout Components
   ======================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--wide {
  max-width: var(--max-width-wide);
}

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

.section--gray {
  background-color: var(--color-light-gray);
}

.section--dark {
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p {
  color: var(--color-soft-gray);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-8);
}

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

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

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

  h1 {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-3xl);
  }
}

/* Flexbox utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.gap-4 {
  gap: var(--space-4);
}

.gap-8 {
  gap: var(--space-8);
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-soft-gray);
  transition: transform var(--transition);
}

.header--hidden {
  transform: translateY(-100%);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-black);
  text-decoration: none;
}

.logo span {
  color: var(--color-accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-dark-gray);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-black);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* Mobile navigation */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-charcoal);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: var(--space-8);
    gap: var(--space-6);
    background: var(--color-white);
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .nav--open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: var(--text-lg);
  }

  .nav-toggle {
    display: flex;
  }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  min-height: 44px; /* Minimum touch target for accessibility */
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

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

.btn--secondary {
  background-color: transparent;
  color: var(--color-charcoal);
  border-color: var(--color-charcoal);
}

.btn--secondary:hover {
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-dark-gray);
  padding: var(--space-2) var(--space-4);
}

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

.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}

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

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: linear-gradient(180deg, var(--color-off-white) 0%, var(--color-white) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e8e8e8' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.5;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background-color: rgba(196, 30, 58, 0.1);
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: 50px;
  margin-bottom: var(--space-6);
}

.hero__title {
  font-size: var(--text-6xl);
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-dark-gray);
  margin-bottom: var(--space-8);
  max-width: 550px;
}

.hero__cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: calc(72px + var(--space-16)) 0 var(--space-16);
  }

  .hero__title {
    font-size: var(--text-4xl);
  }

  .hero__subtitle {
    font-size: var(--text-lg);
  }
}

/* ========================================
   Cards
   ======================================== */
.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--color-soft-gray);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card--flat {
  box-shadow: none;
  border: 1px solid var(--color-soft-gray);
}

.card--flat:hover {
  box-shadow: none;
  transform: none;
  border-color: var(--color-accent);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-light-gray);
  border-radius: var(--border-radius);
  margin-bottom: var(--space-4);
  font-size: var(--text-2xl);
}

.card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.card__description {
  font-size: var(--text-sm);
  color: var(--color-medium-gray);
  margin-bottom: 0;
}

/* Method cards */
.method-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  border: 1px solid var(--color-soft-gray);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.method-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--color-accent);
  transform: scaleY(0);
  transition: transform var(--transition);
}

.method-card:hover::before {
  transform: scaleY(1);
}

.method-card:hover {
  box-shadow: var(--shadow-lg);
}

.method-card__jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: var(--text-3xl);
  color: var(--color-light-gray);
  margin-bottom: var(--space-2);
}

.method-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.method-card__description {
  font-size: var(--text-sm);
  color: var(--color-dark-gray);
  margin-bottom: var(--space-4);
}

.method-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background-color: var(--color-light-gray);
  color: var(--color-dark-gray);
  font-size: var(--text-xs);
  border-radius: 50px;
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing {
  background-color: var(--color-light-gray);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

@media (max-width: 1024px) {
  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .pricing__grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-8);
  border: 2px solid var(--color-soft-gray);
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.pricing-card:hover {
  border-color: var(--color-medium-gray);
}

.pricing-card--featured {
  border-color: var(--color-accent);
  position: relative;
  transform: scale(1.02);
}

.pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-1) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: 50px;
}

.pricing-card__name {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.pricing-card__price {
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-black);
  margin-bottom: var(--space-4);
}

.pricing-card__price span {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-medium-gray);
}

.pricing-card__description {
  font-size: var(--text-sm);
  color: var(--color-dark-gray);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-soft-gray);
}

.pricing-card__features {
  flex: 1;
  margin-bottom: var(--space-6);
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}

.pricing-card__feature::before {
  content: '\2713';
  color: var(--color-sage);
  font-weight: 600;
  flex-shrink: 0;
}

.pricing-card__feature--disabled {
  color: var(--color-medium-gray);
}

.pricing-card__feature--disabled::before {
  content: '\2717';
  color: var(--color-medium-gray);
}

/* ========================================
   Quiz Section
   ======================================== */
.quiz-section {
  background-color: var(--color-off-white);
}

.quiz {
  max-width: 700px;
  margin: 0 auto;
}

.quiz__progress {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.quiz__progress-step {
  flex: 1;
  height: 4px;
  background-color: var(--color-soft-gray);
  border-radius: 2px;
  transition: background-color var(--transition);
}

.quiz__progress-step--active {
  background-color: var(--color-accent);
}

.quiz__progress-step--complete {
  background-color: var(--color-sage);
}

.quiz__question {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-10);
  box-shadow: var(--shadow);
}

.quiz__question-number {
  font-size: var(--text-sm);
  color: var(--color-medium-gray);
  margin-bottom: var(--space-2);
}

.quiz__question-text {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-8);
}

.quiz__options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.quiz__option {
  display: block;
  padding: var(--space-4) var(--space-6);
  border: 2px solid var(--color-soft-gray);
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition);
  text-align: left;
}

.quiz__option:hover {
  border-color: var(--color-medium-gray);
  background-color: var(--color-off-white);
}

.quiz__option--selected {
  border-color: var(--color-accent);
  background-color: rgba(196, 30, 58, 0.05);
}

.quiz__option input {
  display: none;
}

.quiz__nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-8);
}

/* ========================================
   Results Section
   ======================================== */
.results {
  padding-top: calc(72px + var(--space-16));
}

.results__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.results__title {
  margin-bottom: var(--space-4);
}

.results__subtitle {
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
}

.result-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-8);
}

.result-card--primary {
  border: 2px solid var(--color-accent);
}

.result-card__label {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: var(--space-4);
}

.result-card__method {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.result-card__jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: var(--text-5xl);
  color: var(--color-light-gray);
}

.result-card__info h3 {
  margin-bottom: var(--space-2);
}

.result-card__match {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-sage);
  font-weight: 500;
}

.result-card__description {
  border-top: 1px solid var(--color-soft-gray);
  padding-top: var(--space-6);
}

/* Locked content */
.locked {
  position: relative;
  overflow: hidden;
}

.locked::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--color-white) 80%);
  pointer-events: none;
}

.locked__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-8);
  text-align: center;
  z-index: 10;
}

/* ========================================
   Benefits Section
   ======================================== */
.benefits {
  background-color: var(--color-white);
}

.benefit-item {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
}

.benefit-item__number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.benefit-item__content h4 {
  margin-bottom: var(--space-2);
}

/* ========================================
   About Section
   ======================================== */
.about-hero {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-black) 100%);
  color: var(--color-white);
  padding: calc(72px + var(--space-20)) 0 var(--space-20);
}

.about-hero h1 {
  color: var(--color-white);
}

.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-soft-gray);
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-10);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) - 5px);
  top: 0;
  width: 12px;
  height: 12px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

.timeline__year {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

/* ========================================
   Forms
   ======================================== */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-charcoal);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-family: inherit;
  border: 2px solid var(--color-soft-gray);
  border-radius: var(--border-radius);
  transition: border-color var(--transition);
  background-color: var(--color-white);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-hint {
  font-size: var(--text-sm);
  color: var(--color-medium-gray);
  margin-top: var(--space-2);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background-color: var(--color-charcoal);
  color: var(--color-soft-gray);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer__logo span {
  color: var(--color-accent);
}

.footer__tagline {
  font-size: var(--text-sm);
  margin-bottom: 0;
}

.footer__heading {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--color-medium-gray);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--text-sm);
}

.footer__bottom a {
  color: var(--color-medium-gray);
}

.footer__bottom a:hover {
  color: var(--color-white);
}

@media (max-width: 640px) {
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

/* ========================================
   Utility Classes
   ======================================== */
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }

.pt-8 { padding-top: var(--space-8); }

.hidden { display: none; }
.visible { display: block; }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-slide-in {
  animation: slideIn 0.6s ease forwards;
}

/* Stagger animation delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ========================================
   Keyboard Navigation - Focus States
   ======================================== */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
.btn:focus,
.quiz__option:focus-within,
.nav__link:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Remove outline for mouse users, keep for keyboard */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
.btn:focus:not(:focus-visible) {
  outline: none;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ========================================
   Large Screen Support (1920px+)
   ======================================== */
@media (min-width: 1920px) {
  html {
    font-size: 18px;
  }

  .container {
    max-width: 1400px;
  }

  .hero__title {
    font-size: 4.5rem;
  }

  .hero__subtitle {
    font-size: 1.35rem;
  }

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