/* =========================================
   Clif-Connectx — Apple Design System
   ========================================= */

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

:root {
  --white: #fbfbfd;
  --black: #1d1d1f;
  --gray-50: #f5f5f7;
  --gray-100: #e8e8ed;
  --gray-200: #d2d2d7;
  --gray-300: #afafb2;
  --gray-400: #86868b;
  --gray-500: #6e6e73;
  --gray-600: #424245;
  --gray-700: #333336;
  --gray-800: #1d1d1f;
  --gray-900: #0a0a0b;

  --accent-1: #2997ff;
  --accent-2: #5856d6;
  --accent-3: #af52de;
  --accent-gradient: linear-gradient(135deg, #2997ff 0%, #5856d6 50%, #af52de 100%);
  --accent-gradient-text: linear-gradient(90deg, #2997ff 0%, #5856d6 50%, #af52de 100%);
  --accent-glow: rgba(41, 151, 255, 0.15);

  --surface: rgba(255, 255, 255, 0.72);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 60px rgba(41, 151, 255, 0.08);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* FIX #8: removed scroll-behavior:smooth — JS handles it to avoid double-smooth conflicts */
}

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* --- Utility --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.animated-gradient {
  background-size: 200% auto;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent-gradient);
  z-index: 10000;
  /* FIX #7: removed transition — JS rAF handles smooth updates, CSS transition fought it */
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  /* FIX #5: only transition specific properties, not 'all' — avoids border/padding jank */
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: var(--surface);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s var(--ease);
}

.nav-logo:hover {
  transform: scale(1.02);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-spring);
}

.nav-logo:hover .logo-mark {
  transform: rotate(-5deg) scale(1.1);
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--black);
}

.logo-dash {
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--gray-500);
  transition: color 0.3s var(--ease);
  letter-spacing: -0.01em;
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-gradient);
  transition: width 0.3s var(--ease-out);
  border-radius: 1px;
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--black);
}

.nav-cta {
  background: var(--black);
  color: var(--white) !important;
  padding: 8px 22px;
  border-radius: 980px;
  font-weight: 500;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease) !important;
}

.nav-cta:hover {
  background: var(--gray-700);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 18px;
  height: 1.5px;
  background: var(--black);
  border-radius: 2px;
  transition: transform 0.3s var(--ease);
  transform-origin: center;
}

/* --- Hero --- */
.hero {
  /* FIX #6: use dvh for proper mobile viewport height */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 760px;
  position: relative;
}

.hero-eyebrow {
  margin-bottom: 24px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(41, 151, 255, 0.06);
  border: 1px solid rgba(41, 151, 255, 0.12);
  border-radius: 980px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent-1);
  letter-spacing: 0.01em;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-headline {
  font-size: clamp(3rem, 7vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin-bottom: 28px;
  color: var(--black);
}

.hero-sub {
  font-size: 1.1875rem;
  color: var(--gray-500);
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto 44px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--gray-400);
  font-weight: 400;
}

.hero-trust svg { opacity: 0.5; flex-shrink: 0; }

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--gray-300);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--gray-400);
  border-radius: 2px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.3; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 980px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), opacity 0.4s var(--ease);
  cursor: pointer;
  border: none;
  font-family: var(--font);
  position: relative;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.btn-glow {
  background: var(--accent-gradient);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-glow:hover {
  box-shadow: 0 8px 40px rgba(41, 151, 255, 0.25);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

.btn-ghost:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  color: var(--black);
}

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

.btn-secondary:hover {
  background: var(--gray-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* --- Stats Bar --- */
.stats-bar {
  padding: 48px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.stat-item {
  text-align: center;
  min-width: 100px;
}

.stat-number {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  min-height: 40px;
}

/* FIX #2: gradient text only for numeric stats, not the lock icon */
.stat-number[data-target]:not([data-target="0"]) {
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Lock icon stat gets accent color directly */
.stat-number[data-target="0"] {
  color: var(--accent-1);
}

.stat-number svg {
  display: block;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 8px;
  font-weight: 400;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--gray-100);
  flex-shrink: 0;
}

/* --- Sections --- */
.section {
  padding: 140px 0;
  position: relative;
}

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

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--black);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  margin-top: 16px;
  font-weight: 400;
}

/* --- Market Reality --- */
.reality-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.reality-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 40px 32px 48px;
  position: relative;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
  overflow: hidden;
}

.reality-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(41, 151, 255, 0.1);
}

.reality-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(41, 151, 255, 0.08), rgba(175, 82, 222, 0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-1);
  transition: transform 0.4s var(--ease-spring);
}

.reality-card:hover .reality-icon {
  transform: scale(1.1) rotate(-3deg);
}

.reality-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--black);
}

.reality-card p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  line-height: 1.65;
}

.card-number {
  position: absolute;
  bottom: 16px;
  right: 24px;
  font-size: 4rem;
  font-weight: 800;
  color: var(--gray-100);
  line-height: 1;
  letter-spacing: -0.04em;
  transition: color 0.4s var(--ease);
  pointer-events: none;
  -webkit-text-fill-color: var(--gray-100);
}

.reality-card:hover .card-number {
  color: rgba(41, 151, 255, 0.08);
  -webkit-text-fill-color: rgba(41, 151, 255, 0.08);
}

/* --- Tiers --- */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.tier-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px 28px 32px;
  position: relative;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  /* FIX #10: removed overflow:hidden so tier-badge isn't clipped */
}

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

.tier-featured {
  border: 2px solid transparent;
  background-image: linear-gradient(white, white), var(--accent-gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
}

.tier-featured:hover {
  transform: scale(1.04) translateY(-6px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.tier-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: white;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 980px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 1;
}

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

.tier-label {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tier-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.tier-card:hover .tier-icon-wrap {
  background: rgba(41, 151, 255, 0.06);
  color: var(--accent-1);
}

.featured-icon {
  background: rgba(41, 151, 255, 0.08);
  color: var(--accent-1);
}

.tier-name {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  color: var(--black);
}

.tier-focus {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 28px;
}

.tier-years {
  color: var(--gray-400);
  font-weight: 400;
}

.tier-features {
  margin-bottom: 28px;
}

.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--gray-600);
  padding: 10px 0;
  line-height: 1.5;
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(41, 151, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-1);
}

.tier-features li + li {
  border-top: 1px solid var(--gray-50);
}

/* --- Process Timeline --- */
.process-timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.process-line {
  position: absolute;
  top: 0;
  left: 23px;
  width: 2px;
  height: 100%;
  background: var(--gray-200);
  border-radius: 1px;
}

.process-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--progress, 0%);
  background: var(--accent-gradient);
  border-radius: 1px;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 20px 0;
  position: relative;
}

/* FIX #4: process dot uses white ring that contrasts with gray-50 bg */
.process-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
  flex-shrink: 0;
  margin-top: 6px;
  position: relative;
  z-index: 1;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 0 0 5px var(--gray-50), 0 0 0 7px var(--gray-200);
}

.process-step.visible .process-dot {
  background: var(--accent-1);
  box-shadow: 0 0 0 5px var(--gray-50), 0 0 0 7px rgba(41, 151, 255, 0.3);
}

.process-card {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  flex: 1;
  transition: box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.process-step:hover .process-card {
  box-shadow: var(--shadow-md);
  border-color: rgba(41, 151, 255, 0.1);
}

.process-number {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--accent-1);
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}

.process-card h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--black);
}

.process-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* --- About --- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content .section-eyebrow { text-align: left; }
.about-content .section-title { text-align: left; margin-bottom: 28px; }

.about-text {
  font-size: 1.0625rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-values {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-value {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease);
  border: 1px solid transparent;
}

.about-value:hover {
  background: white;
  box-shadow: var(--shadow-md);
  border-color: var(--gray-100);
  transform: translateX(4px);
}

.about-value-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  background: rgba(41, 151, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
  flex-shrink: 0;
}

.about-value-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
}

.about-value-desc {
  display: block;
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: 1px;
}

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

.about-quote {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  position: relative;
  box-shadow: var(--shadow-md);
}

.quote-mark {
  font-size: 5rem;
  line-height: 0.6;
  font-weight: 800;
  background: var(--accent-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.2;
  margin-bottom: 16px;
}

.about-quote p {
  font-size: 1.3125rem;
  font-weight: 500;
  color: var(--gray-600);
  line-height: 1.55;
  letter-spacing: -0.015em;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.quote-line {
  width: 24px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 1px;
}

.quote-author span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-400);
}

/* --- Contact --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info .section-eyebrow { text-align: left; }
.contact-info .section-title { text-align: left; margin-bottom: 20px; }

.contact-sub {
  font-size: 1.0625rem;
  color: var(--gray-500);
  line-height: 1.65;
  margin-bottom: 36px;
}

.contact-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9375rem;
  color: var(--gray-600);
}

.contact-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(41, 151, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
  flex-shrink: 0;
}

/* --- Form --- */
.contact-form-wrap {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

/* FIX #12: placeholder option color */
.form-group select:invalid {
  color: var(--gray-400);
}

.form-group select option {
  color: var(--black);
}

.form-group select option:disabled {
  color: var(--gray-400);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent-1);
  background: white;
  box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.08);
}

.form-group input::placeholder {
  color: var(--gray-300);
}

.file-upload {
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
  background: var(--white);
}

.file-upload:hover {
  border-color: var(--accent-1);
  background: rgba(41, 151, 255, 0.02);
}

.file-upload.dragover {
  border-color: var(--accent-1);
  background: rgba(41, 151, 255, 0.04);
  transform: scale(1.01);
}

.file-upload.has-file {
  border-color: #34c759;
  background: rgba(52, 199, 89, 0.04);
  border-style: solid;
}

.file-upload-icon {
  color: var(--gray-400);
  margin: 0 auto 10px;
  display: flex;
  justify-content: center;
  transition: transform 0.3s var(--ease);
}

.file-upload:hover .file-upload-icon {
  transform: translateY(-2px);
}

.file-upload-text {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-500);
  font-weight: 500;
  margin-bottom: 4px;
}

.file-upload-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* --- Footer --- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--gray-100);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer .nav-logo {
  gap: 8px;
}

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: 8px;
}

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

.footer-links a {
  font-size: 0.8125rem;
  color: var(--gray-500);
  transition: color 0.3s var(--ease);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--gray-100);
}

.footer-legal { margin-bottom: 20px; }

.footer-legal p {
  font-size: 0.75rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.footer-privacy {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.footer-privacy svg { flex-shrink: 0; }

.footer-copyright {
  font-size: 0.75rem;
  color: var(--gray-300);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
  .reality-grid,
  .tiers-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .tier-featured {
    transform: none;
    order: -1;
  }

  .tier-featured:hover {
    transform: translateY(-6px);
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stats-grid {
    flex-wrap: wrap;
    gap: 32px;
  }

  .stat-divider { display: none; }
}

@media (max-width: 768px) {
  /* FIX #11: mobile nav uses opacity/visibility for smooth transition */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(251, 251, 253, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  }

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

  .nav-links a {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--black);
  }

  .nav-links a::after { display: none; }

  .nav-cta {
    font-size: 1rem !important;
    padding: 14px 32px;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-toggle.active span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
  }

  .nav-toggle.active span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
  }

  .hero {
    min-height: auto;
    padding: 140px 24px 100px;
  }

  .hero-headline { font-size: 2.75rem; }
  .hero-sub { font-size: 1rem; }
  .hero-scroll-indicator { display: none; }

  .section { padding: 100px 0; }
  .section-header { margin-bottom: 56px; }

  .process-timeline { max-width: 100%; }

  .contact-form-wrap { padding: 28px; }

  .footer-top {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer .nav-logo { justify-content: center; }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 2.25rem; }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

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

  .stats-grid { gap: 24px; }
  .stat-number { font-size: 1.75rem; }

  .process-step { gap: 16px; }
  .process-card { padding: 20px 24px; }
}
