/* ============================================================
   FAVENRA Global Inc. — Modern Light UI (v4)
   Clean white base, indigo accent, glass nav, airy spacing,
   pill buttons, subtle borders. Inspired by Linear/Stripe.
   ============================================================ */

:root {
  --logo: url('logo.png');

  /* Surfaces */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;

  /* Ink */
  --ink: #111827;
  --ink-2: #4B5563;
  --ink-3: #9CA3AF;

  /* Brand */
  --indigo: #4F46E5;
  --indigo-dark: #4338CA;
  --indigo-light: #EEF2FF;
  --navy: #1E293B;

  /* Accent */
  --emerald: #10B981;
  --emerald-light: #ECFDF5;

  /* Type */
  --f-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

  /* Layout */
  --shell: 1152px;
  --gut: 24px;
  --nav-h: 64px;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
}

/* ---------- UTILITIES ---------- */
.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gut);
}

@media (max-width: 640px) {
  .shell { padding: 0 16px; }
}

/* ---------- NAV ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px) saturate(1.8);
  -webkit-backdrop-filter: blur(12px) saturate(1.8);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.2s ease;
}

.site-nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gut);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo {
  display: block;
  width: 160px;
  height: 42px;
  background-image: var(--logo);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

@media (max-width: 480px) {
  .nav-logo { width: 130px; height: 34px; }
}

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

.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.15s;
  padding: 6px 0;
}

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

.nav-apply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  background: var(--indigo);
  padding: 9px 20px;
  border-radius: var(--r-full);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 2px rgba(79,70,229,0.3);
}

.nav-apply:hover {
  background: var(--indigo-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

/* Mobile panel & backdrop — hidden on desktop */
.nav-mobile,
.nav-backdrop { display: none; }

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  position: relative;
  z-index: 1100;
}

.nav-toggle-bars {
  position: relative;
  width: 22px;
  height: 16px;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 7px; }
.nav-toggle-bars span:nth-child(3) { top: 14px; }

/* Open state → X */
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-container { padding: 0 16px; }
  .nav-menu { display: none; }

  .nav-toggle { display: flex; }
  .nav-apply { display: none; }

  .nav-mobile { display: flex; }
  .nav-backdrop { display: block; }

  /* Full-width dropdown panel below the nav bar */
  .nav-mobile {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    padding: 8px 16px 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .nav-mobile.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-mobile a {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink-2);
    padding: 14px 4px;
    border-bottom: 1px solid var(--gray-100);
    transition: color 0.15s;
  }

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

  .nav-mobile .nav-mobile-apply {
    margin-top: 16px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    color: var(--white);
    background: var(--indigo);
    border-radius: var(--r-full);
    padding: 14px 28px;
    border: none;
    box-shadow: 0 2px 8px rgba(79,70,229,0.25);
  }

  .nav-mobile .nav-mobile-apply:hover {
    background: var(--indigo-dark);
    color: var(--white);
  }

  /* Dim the page behind the panel */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    z-index: 998;
    background: rgba(17,24,39,0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
  }

  .nav-backdrop.open {
    opacity: 1;
    visibility: visible;
  }

  /* Lock body scroll while menu is open */
  body.menu-open { overflow: hidden; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 80px) 0 100px;
  background: var(--white);
  overflow: hidden;
}

/* Subtle dot grid background */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--gray-200) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

/* Soft gradient glow */
.hero::after {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(79,70,229,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gut);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo);
  background: var(--indigo-light);
  border: 1px solid rgba(79,70,229,0.15);
  border-radius: var(--r-full);
  padding: 6px 16px;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--indigo) 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--indigo);
  padding: 14px 28px;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(79,70,229,0.25);
}

.btn-primary:hover {
  background: var(--indigo-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79,70,229,0.3);
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s;
}

.btn-primary:hover svg { transform: translateX(2px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  padding: 14px 28px;
  border-radius: var(--r-full);
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn-secondary:hover {
  border-color: var(--gray-200);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.hero-tag svg {
  width: 16px;
  height: 16px;
  color: var(--ink-3);
}

/* ---------- PLATFORM STRIP ---------- */
.platform-strip {
  padding: 40px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
  overflow: hidden;
}

.marquee-outer {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-inner {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.platform-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-right: 48px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
}

.platform-item svg {
  height: 20px;
  width: auto;
  opacity: 0.6;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 96px 0;
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 12px;
}

.section-label::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--indigo);
  border-radius: 1px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 560px;
}

/* ---------- STATS STRIP ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 48px 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
}

.stat-cell {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid var(--gray-200);
  transition: background 0.2s;
}

.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: var(--gray-50); }

.stat-cell .num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 4px;
}

.stat-cell .label {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
}

.stat-cell.highlight {
  background: var(--indigo);
}

.stat-cell.highlight .num { color: var(--white); }
.stat-cell.highlight .label { color: rgba(255,255,255,0.7); }
.stat-cell.highlight:hover { background: var(--indigo-dark); }

@media (max-width: 768px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--gray-200); }
}

@media (max-width: 480px) {
  .stats-strip { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .stat-cell:last-child { border-bottom: none; }
}

/* ---------- ROLE CARDS ---------- */
.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

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

.role-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.role-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-200);
}

.role-card h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: 20px;
}

.role-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.role-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.role-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--emerald);
}

.role-list li strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- PERKS GRID ---------- */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

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

.perk-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.perk-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--indigo-light);
}

.perk-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--indigo-light);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.perk-icon svg { width: 20px; height: 20px; }

.perk-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.perk-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ---------- PROCESS ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}

/* Connecting line */
.process-steps::before {
  content: "";
  position: absolute;
  top: 24px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 2px;
  background: var(--gray-200);
}

@media (max-width: 768px) {
  .process-steps { grid-template-columns: 1fr; gap: 32px; }
  .process-steps::before { display: none; }
}

.process-step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-3);
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.process-step:hover .step-num {
  border-color: var(--indigo);
  color: var(--indigo);
  background: var(--indigo-light);
}

.process-step h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 240px;
  margin: 0 auto;
}

/* ---------- CTA ---------- */
.section-cta {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--indigo-light) 100%);
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-inner > p {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  background: var(--indigo);
  padding: 16px 36px;
  border-radius: var(--r-full);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(79,70,229,0.3);
}

.btn-cta:hover {
  background: var(--indigo-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,70,229,0.35);
}

.cta-meta {
  display: block;
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--gray-200);
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
}

.footer-logo {
  display: block;
  width: 180px;
  height: 48px;
  background-image: var(--logo);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
  margin-bottom: 14px;
}

.footer-brand-col > p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: border-color 0.15s, transform 0.15s;
}

.footer-socials a:hover {
  border-color: var(--indigo);
  transform: translateY(-2px);
}

.footer-socials a svg { width: 20px; height: 20px; }

.footer-links-col h5 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.footer-links-col a,
.footer-links-col span {
  display: block;
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 10px;
  line-height: 1.5;
  transition: color 0.15s;
}

.footer-links-col a:hover { color: var(--indigo); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink-3);
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a {
  color: var(--ink-3);
  transition: color 0.15s;
}

.footer-legal-links a:hover { color: var(--ink); }

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--ink-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s, border-color 0.15s;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

.back-to-top svg { width: 18px; height: 18px; }

/* ---------- STORY SECTION ---------- */
.story-intro {
  max-width: 640px;
  margin-bottom: 48px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.story-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.story-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.story-item.wide { grid-column: span 2; }

@media (max-width: 560px) { .story-item.wide { grid-column: span 1; } }

.story-item .letter {
  font-size: 32px;
  font-weight: 800;
  color: var(--indigo);
  margin-bottom: 8px;
  line-height: 1;
}

.story-item h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.story-item p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* Timeline */
.timeline {
  margin-top: 64px;
}

.timeline h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 32px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.timeline-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.timeline-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.timeline-card.active {
  background: var(--indigo);
  border-color: var(--indigo);
}

.timeline-card.active h4 { color: var(--white); }
.timeline-card.active p { color: rgba(255,255,255,0.75); }
.timeline-card.active .year { color: rgba(255,255,255,0.6); }

.timeline-card .year {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--indigo);
  margin-bottom: 8px;
  display: block;
}

.timeline-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

.story-quote {
  margin-top: 56px;
  padding: 32px;
  background: var(--gray-50);
  border-left: 3px solid var(--indigo);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}

.story-quote p {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 12px;
  font-style: italic;
}

.story-quote cite {
  font-style: normal;
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- FORM (apply.html) ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 480px) { .form-card { padding: 24px 18px; } }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.field label .opt {
  font-weight: 400;
  color: var(--ink-3);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--f-sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-md);
  padding: 12px 14px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.field textarea {
  resize: vertical;
  min-height: 100px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--indigo);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.1);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-3);
}

@media (max-width: 900px) {
  .field input, .field select, .field textarea { font-size: 16px; }
}

.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

.field-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--indigo);
  flex-shrink: 0;
}

.submit-btn {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r-full);
}

.form-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  display: none;
}

.form-status.show { display: block; }
.form-status.ok { background: var(--emerald-light); color: #065F46; }
.form-status.err { background: #FEF2F2; color: #DC2626; }

/* ---------- SIDE CARD (apply.html) ---------- */
.side-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 28px;
  margin-bottom: 20px;
}

.side-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 18px;
}

.contact-row {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--gray-100);
  font-size: 15px;
}

.contact-row:first-of-type { border-top: none; padding-top: 0; }

.contact-row .ico {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--indigo-light);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-row .ico svg { width: 16px; height: 16px; }
.contact-row .txt-label { color: var(--ink-3); font-size: 12px; margin-bottom: 2px; }
.contact-row .txt-val { color: var(--ink); font-weight: 600; line-height: 1.4; }

.contact-link {
  color: inherit;
  transition: color 0.15s;
}

.contact-link:hover { color: var(--indigo); }

.social-row {
  padding-top: 16px;
  margin-top: 6px;
  border-top: 1px solid var(--gray-100);
}

.social-row > .txt-label {
  color: var(--ink-3);
  font-size: 12px;
  margin-bottom: 12px;
}

.social-links { display: flex; gap: 8px; }

.social-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: border-color 0.15s, transform 0.15s;
}

.social-brand:hover {
  border-color: var(--indigo);
  transform: translateY(-2px);
}

.social-brand svg { width: 20px; height: 20px; }

.map-frame {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.map-embed {
  width: 100%;
  height: 260px;
  display: block;
  border: 0;
}

.map-caption {
  padding: 16px 20px;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}

.map-caption .txt-label { font-size: 12px; color: var(--ink-3); margin-bottom: 2px; }
.map-caption .txt-val { font-size: 14px; font-weight: 600; color: var(--ink); }

.map-address-link {
  color: inherit;
  border-bottom: 1px solid var(--gray-200);
  transition: border-color 0.15s;
}

.map-address-link:hover { border-color: var(--indigo); }

/* ---------- ROLE RECAP (apply.html) ---------- */
.role-recap {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  margin-bottom: 20px;
}

.role-recap h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.role-recap dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  font-size: 14px;
}

.role-recap dt { color: var(--ink-3); }
.role-recap dd { color: var(--ink); font-weight: 600; margin: 0; }

/* ---------- BACK LINK (apply.html) ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 24px;
  transition: color 0.15s;
}

.back-link:hover { color: var(--indigo); }
.back-link svg { width: 16px; height: 16px; }

/* ---------- APPLY PAGE LAYOUT ---------- */
.apply-page {
  padding: calc(var(--nav-h) + 48px) 0 80px;
}

.apply-page .section-head {
  max-width: 560px;
  margin: 0 auto 40px;
  text-align: center;
}

.apply-page .section-head .eyebrow {
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--indigo);
  border-radius: 1px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-head p {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
}

.apply-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .apply-layout { grid-template-columns: 1fr; max-width: 560px; }
}

/* ---------- CONTACT PAGE (contact.html) ---------- */
.contact-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.contact-info-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.contact-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 18px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.contact-info-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--indigo-light);
}

.contact-info-item .ico {
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--indigo-light);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item .ico svg { width: 16px; height: 16px; }
.contact-info-item .txt-label { color: var(--ink-3); font-size: 12px; margin-bottom: 2px; }
.contact-info-item .txt-val { color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.4; }

@media (max-width: 900px) {
  .contact-info-bar { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}

/* ---------- RESULTS / SOCIAL PROOF (contact.html) ---------- */
.results-section {
  margin-top: 72px;
  padding-top: 64px;
  border-top: 1px solid var(--gray-200);
}

.results-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.results-head h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}

.results-head p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.result-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: 28px 22px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.result-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--gray-200);
}

.res-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.res-icon svg { width: 24px; height: 24px; }

.res-icon.indigo  { background: var(--indigo-light); color: var(--indigo); }
.res-icon.teal    { background: #E0F7F6; color: #0D9488; }
.res-icon.coral   { background: #FFF1ED; color: #EA580C; }
.res-icon.green   { background: var(--emerald-light); color: var(--emerald); }

.res-num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}

.res-num sup {
  font-size: 20px;
  font-weight: 700;
  vertical-align: super;
  letter-spacing: 0;
}

.res-label {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 20px;
}

.res-divider {
  width: 100%;
  height: 1px;
  background: var(--gray-200);
  margin-bottom: 18px;
}

.res-client {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.res-client .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

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

@media (max-width: 520px) {
  .results-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}

/* ---------- SCROLL HINT ---------- */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s ease-in-out infinite;
}

.hero-scroll-hint svg {
  width: 20px;
  height: 20px;
  color: var(--ink-3);
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-hint { animation: none; }
}
