/* ===== MyRoof Group — Light Cream Design System ===== */
/* Inspired by Anthropic.com + TurboTax: warm cream backgrounds, dark text, tons of whitespace */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --green: #02ca81;
  --green-hover: #02b574;
  --green-light: rgba(2, 202, 129, 0.1);
  --green-glow: rgba(2, 202, 129, 0.25);
  --teal: #0ea5a0;
  --orange: #fb7f4a;
  --orange-light: rgba(251, 127, 74, 0.1);

  /* Dark palette (used for text, footer) */
  --dark: #0F172A;
  --dark-800: #1E293B;
  --dark-700: #334155;

  /* Warm cream palette — Anthropic-inspired */
  --cream: #F5F0EB;
  --cream-dark: #EDE8E0;
  --cream-light: #FAF8F5;
  --white: #FFFFFF;
  --bg: #F5F0EB;

  /* Grays — warmer undertone */
  --gray-50: #FAF9F7;
  --gray-100: #F3F1ED;
  --gray-200: #E2DFD8;
  --gray-300: #C9C4BC;
  --gray-400: #9A9490;
  --gray-500: #6B6560;
  --gray-600: #4A4540;

  /* Accents */
  --error: #ef4444;
  --blue: #3b82f6;
  --blue-light: rgba(59, 130, 246, 0.1);
  --purple: #8b5cf6;
  --purple-light: rgba(139, 92, 246, 0.1);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #02ca81 0%, #0ea5a0 100%);
  --gradient-warm: linear-gradient(135deg, #02ca81 0%, #0ea5a0 50%, #fb7f4a 100%);
  --gradient-hero: linear-gradient(135deg, #F5F0EB 0%, #FAF8F5 50%, #F5F0EB 100%);
  --gradient-footer: linear-gradient(180deg, #131c2e 0%, #0a1020 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-400); }

/* ===== UTILITY CLASSES ===== */

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

.glass-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.gradient-border {
  position: relative;
  border: none;
  background-clip: padding-box;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--gradient-brand);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.wave-divider {
  position: relative;
  overflow: hidden;
}

.wave-divider::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--cream);
  clip-path: ellipse(60% 100% at 50% 100%);
  pointer-events: none;
}

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

.animate-float {
  animation: float 5s ease-in-out infinite;
}

/* ===== NAVIGATION — LIGHT ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background 0.4s, box-shadow 0.4s, padding 0.3s;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 24px rgba(0, 0, 0, 0.06);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-brand span {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.3px;
}

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

.nav-link {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--dark);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--gradient-brand);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  margin-left: 12px;
  box-shadow: 0 2px 12px rgba(2, 202, 129, 0.25);
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(2, 202, 129, 0.35);
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
  position: relative;
}

.nav-link-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-link-dropdown svg {
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-link-dropdown svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(4px);
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a:hover {
  background: var(--cream);
  color: var(--dark);
}

.nav-dropdown-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 6px 8px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

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

/* ===== HERO — LIGHT CREAM ===== */
.hero {
  position: relative;
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 100px;
  overflow: hidden;
}

/* Subtle warm radial accents on cream */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 700px;
  height: 700px;
  background:
    radial-gradient(circle at 30% 40%, rgba(2, 202, 129, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(14, 165, 160, 0.04) 0%, transparent 50%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -15%;
  left: -10%;
  width: 600px;
  height: 600px;
  background:
    radial-gradient(circle at 60% 40%, rgba(14, 165, 160, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(2, 202, 129, 0.03) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

/* Grid pattern — very subtle warm dots on cream */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  text-align: center;
}

/* Page hero (shorter, for inner pages) */
.hero-page {
  min-height: auto;
  padding: 150px 24px 96px;
}

/* Small hero — compact for legal/utility pages */
.hero-sm {
  min-height: auto;
  padding: 120px 24px 48px;
}
.hero-sm h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}
.hero-sm p {
  font-size: 1rem;
  opacity: 0.8;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px 7px 10px;
  background: rgba(2, 202, 129, 0.08);
  border: 1px solid rgba(2, 202, 129, 0.18);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  margin-bottom: 36px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 68px;
  font-weight: 800;
  line-height: 1.06;
  color: var(--dark);
  margin-bottom: 28px;
  letter-spacing: -2.5px;
}

.hero h1 .highlight {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 19px;
  line-height: 1.75;
  color: var(--gray-500);
  max-width: 620px;
  margin: 0 auto 48px;
}

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

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--gradient-brand);
  color: var(--white);
  border: none;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
  box-shadow: 0 4px 24px rgba(2, 202, 129, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transition: left 0.5s ease;
}

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

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: transparent;
  color: var(--dark);
  border: none;
  border-radius: 14px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s, transform 0.2s;
  position: relative;
}

.btn-secondary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1.5px;
  background: var(--gray-300);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.3s;
}

.btn-secondary:hover {
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-secondary:hover::before {
  background: var(--gradient-brand);
}

/* Secondary link-style button — simple underline, no box */
.btn-secondary-light {
  color: var(--gray-600);
  border: none;
  border-radius: 0;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-secondary-light::before {
  display: none;
}

.btn-secondary-light:hover {
  color: var(--green);
  text-decoration: underline;
}

/* Small button variant */
.btn-sm {
  padding: 10px 22px;
  font-size: 14px;
  border-radius: 10px;
}

/* ===== HERO TRUST ITEMS ===== */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
}

.hero-trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--green);
  flex-shrink: 0;
}

/* ===== HERO SPLIT LAYOUT ===== */
.hero-split {
  justify-content: flex-start;
}

.hero-split-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero-content-left {
  text-align: left;
  max-width: none;
}

.hero-content-left .hero-subtitle {
  margin-left: 0;
  margin-right: 0;
}

.hero-content-left .hero-ctas {
  justify-content: flex-start;
}

.hero-content-left .hero-trust {
  justify-content: flex-start;
}

/* ===== HERO ILLUSTRATION ===== */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-illustration {
  width: 100%;
  max-width: 520px;
  height: auto;
}

/* ===== SECTIONS ===== */
.section {
  padding: 56px 24px;
  position: relative;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-wide {
  max-width: 1200px;
}

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

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--green);
  margin-bottom: 20px;
  position: relative;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.section-title-light {
  color: var(--dark);
}

.section-desc {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.75;
}

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

/* Dark section — now warm sand */
.section-dark {
  background: var(--cream-dark);
}

/* Light warm section */
.section-light {
  background: var(--cream);
}

/* White section — clean break from cream */
.section-white {
  background: var(--white);
}

/* Contained section — colored container like DocuSign */
.section-contained {
  background: var(--white);
}

.section-contained .section-inner {
  background: var(--cream);
  border-radius: 24px;
  padding: 64px 48px;
}

.section-contained-green .section-inner {
  background: linear-gradient(135deg, rgba(2, 202, 129, 0.06) 0%, rgba(14, 165, 160, 0.04) 100%);
  border: 1px solid rgba(2, 202, 129, 0.12);
}

/* ===== PRODUCT CARDS — WHITE CARDS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  padding: 44px 36px;
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}

/* Subtle inner glow on hover */
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  opacity: 0;
  background: radial-gradient(circle at 50% 0%, rgba(2, 202, 129, 0.04) 0%, transparent 60%);
  transition: opacity 0.4s;
  pointer-events: none;
}

.product-card:hover {
  border-color: rgba(2, 202, 129, 0.4);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(2, 202, 129, 0.1);
}

.product-card:hover::after {
  opacity: 1;
}

.product-card-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-live {
  background: rgba(2, 202, 129, 0.12);
  color: var(--green);
  border: 1px solid rgba(2, 202, 129, 0.25);
}

.badge-soon {
  background: rgba(251, 127, 74, 0.12);
  color: var(--orange);
  border: 1px solid rgba(251, 127, 74, 0.25);
}

.product-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.product-card-icon svg {
  width: 28px;
  height: 28px;
}

.product-card-icon-green {
  background: var(--green-light);
  color: var(--green);
}

.product-card-icon-blue {
  background: var(--blue-light);
  color: var(--blue);
}

.product-card-icon-orange {
  background: var(--orange-light);
  color: var(--orange);
}

.product-card-icon-purple {
  background: var(--purple-light);
  color: var(--purple);
}

.product-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.product-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.75;
  margin-bottom: 28px;
}

.product-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: gap 0.2s;
  position: relative;
  z-index: 1;
}

.product-card-link:hover {
  gap: 10px;
}

.product-card-link svg {
  width: 16px;
  height: 16px;
}

/* ===== STATS BAR — LIGHT ===== */
.stats-bar {
  background: var(--white);
  padding: 56px 24px;
  position: relative;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item {
  position: relative;
  padding: 0 24px;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--gray-200);
}

.stat-item h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -1.5px;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item p {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ===== FEATURE CARDS (light bg) ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 40px 36px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--green-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--green);
}

.feature-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.feature-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.75;
}

/* 3-column features variant */
.features-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== STEPS / HOW IT WORKS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(16.66% + 36px);
  right: calc(16.66% + 36px);
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--teal));
  opacity: 0.3;
}

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

.step-number {
  width: 72px;
  height: 72px;
  background: var(--gradient-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 24px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(2, 202, 129, 0.2);
  color: var(--white);
}

.step h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.step p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.75;
  max-width: 280px;
  margin: 0 auto;
}

/* ===== TRUST CARDS — WHITE ON CREAM ===== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.trust-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.trust-card:hover {
  border-color: transparent;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.trust-card svg {
  width: 32px;
  height: 32px;
  color: var(--green);
  margin-bottom: 18px;
}

.trust-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

.trust-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--white);
  padding: 80px 24px;
}

.cta-box {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, rgba(2, 202, 129, 0.06) 0%, rgba(14, 165, 160, 0.04) 100%);
  border-radius: 28px;
  padding: 72px 56px;
  box-shadow: 0 8px 40px rgba(2, 202, 129, 0.06);
  border: 1px solid rgba(2, 202, 129, 0.15);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-brand);
}

.cta-box h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}

.cta-box p {
  font-size: 17px;
  color: var(--gray-500);
  margin-bottom: 36px;
  line-height: 1.75;
}

/* Dark CTA variant — now warm sand */
.cta-dark {
  background: var(--cream-dark);
  padding: 80px 24px;
}

.cta-dark .cta-box {
  background: var(--white);
  border-color: var(--gray-200);
}

.cta-dark .cta-box::before {
  display: block;
}

.cta-dark .cta-box h2 {
  color: var(--dark);
}

.cta-dark .cta-box p {
  color: var(--gray-500);
}

/* ===== FOOTER — DARK, ANTHROPIC-STYLE ===== */
.footer {
  background: var(--gradient-footer);
  padding: 72px 24px 36px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Wide grid: logo + 4 columns */
.footer-grid-wide {
  display: grid;
  grid-template-columns: 80px 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

/* Legacy 4-col grid (for pages not yet updated) */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
}

.footer-brand-col p {
  font-size: 15px;
  color: var(--gray-400);
  line-height: 1.75;
  margin-top: 20px;
  max-width: 300px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.footer-brand span {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  color: var(--gray-400);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom .social-links {
  margin-top: 0;
}

.footer-bottom .social-link {
  background: transparent;
}

.footer-bottom .social-link svg {
  color: var(--gray-400);
}

.footer-bottom .social-link:hover {
  background: rgba(255,255,255,0.06);
}

.footer-bottom .social-link:hover svg {
  color: var(--white);
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 620px;
}

.footer-copyright {
  font-size: 13px;
  color: var(--gray-500);
  white-space: nowrap;
}

/* ===== ABOUT PAGE — VALUES/TEAM ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-card {
  text-align: center;
  padding: 44px 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s;
}

.value-card:hover {
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.value-card:hover::before {
  opacity: 1;
}

.value-card .value-icon {
  width: 60px;
  height: 60px;
  background: var(--green-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}

.value-card .value-icon svg {
  width: 28px;
  height: 28px;
  color: var(--green);
}

.value-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

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

.team-card {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 44px 28px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.team-card-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--cream);
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--cream-dark);
}

.team-card-avatar svg {
  width: 48px;
  height: 48px;
  color: var(--gray-300);
}

.team-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.team-card p {
  font-size: 14px;
  color: var(--green);
  font-weight: 500;
}

/* ===== TECHNOLOGY — FLYWHEEL ===== */
.flywheel {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

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

.flywheel-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 84px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--green), var(--teal));
  opacity: 0.3;
}

.flywheel-num {
  width: 48px;
  height: 48px;
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(2, 202, 129, 0.2);
}

.flywheel-content h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.flywheel-content p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.75;
}

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.blog-card-thumb {
  height: 200px;
  background: linear-gradient(135deg, #02ca81 0%, #0ea5a0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.blog-card-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 85%, rgba(255,255,255,0.12) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
}

.blog-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, #000 20%, transparent 80%);
  pointer-events: none;
}

.blog-card-thumb svg {
  width: 100px;
  height: 100px;
  color: #fff;
  opacity: 0.9;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

/* Blog card thumb theme variants */
.blog-thumb-housing {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.blog-thumb-randy {
  background: linear-gradient(135deg, #02ca81 0%, #0ea5a0 100%);
}

.blog-thumb-roommate {
  background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.blog-thumb-tech {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}

.blog-thumb-company {
  background: linear-gradient(135deg, #0ea5a0 0%, #0f766e 100%);
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 30px 28px;
}

.blog-card-meta {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.blog-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card h3 a {
  text-decoration: none;
  transition: color 0.2s;
}

.blog-card h3 a:hover {
  color: var(--green);
}

.blog-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.75;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  transition: gap 0.2s;
}

.blog-card-link:hover {
  gap: 10px;
}

.blog-card-link svg {
  width: 16px;
  height: 16px;
}

/* Blog post single */
.blog-post {
  max-width: 720px;
  margin: 0 auto;
}

.blog-post-meta {
  font-size: 14px;
  color: var(--gray-400);
  margin-bottom: 32px;
}

.blog-post h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin: 48px 0 16px;
  letter-spacing: -0.3px;
}

.blog-post p {
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.85;
  margin-bottom: 24px;
}

.blog-post ul, .blog-post ol {
  margin: 0 0 24px 24px;
  font-size: 17px;
  color: var(--gray-600);
  line-height: 1.85;
}

.blog-post li {
  margin-bottom: 8px;
}

.blog-post blockquote {
  border-left: 3px solid var(--green);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--cream);
  border-radius: 0 12px 12px 0;
  font-size: 17px;
  color: var(--gray-600);
  font-style: italic;
}

.blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 40px;
}

.blog-post-back svg {
  width: 16px;
  height: 16px;
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--dark);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(2, 202, 129, 0.1);
}

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

.form-submit {
  width: 100%;
}

.form-success {
  text-align: center;
  padding: 40px 0;
}

.form-success svg {
  color: var(--green);
  margin-bottom: 16px;
}

.form-success h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 16px;
  color: var(--gray-500);
}

.contact-info-card {
  background: var(--cream);
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 36px;
  margin-bottom: 24px;
}

.contact-info-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item svg {
  width: 20px;
  height: 20px;
  color: var(--green);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-info-item p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

.contact-info-item a {
  color: var(--green);
  text-decoration: none;
}

.contact-info-item a:hover {
  text-decoration: underline;
}

/* Social links */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.social-link {
  width: 42px;
  height: 42px;
  background: var(--gray-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.social-link:hover {
  background: var(--green-light);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(2, 202, 129, 0.15);
}

.social-link svg {
  width: 20px;
  height: 20px;
  color: var(--gray-500);
}

.social-link:hover svg {
  color: var(--green);
}

/* ===== EMAIL SIGNUP (waitlist) — adapted for light/dark contexts ===== */
.email-signup {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.email-signup input {
  flex: 1;
  padding: 11px 14px;
  background: var(--cream);
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
}

.email-signup input::placeholder {
  color: var(--gray-400);
}

.email-signup input:focus {
  border-color: var(--green);
}

.email-signup button {
  padding: 11px 18px;
  background: var(--gradient-brand);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.email-signup button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 202, 129, 0.3);
}

/* ===== ABOUT - STORY ===== */
.story-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.story-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.story-content p {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.85;
  margin-bottom: 16px;
}

.story-image {
  background: linear-gradient(135deg, #02ca81 0%, #0ea5a0 50%, #0f766e 100%);
  border-radius: 24px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border: none;
}

.story-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(0,0,0,0.05) 0%, transparent 80%);
  pointer-events: none;
}

.story-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 20%, transparent 70%);
  pointer-events: none;
}

.story-image svg {
  width: 120px;
  height: 120px;
  color: #fff;
  opacity: 0.85;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

/* Story image theme variants */
.story-image-housing {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #dc2626 100%);
}

.story-image-randy {
  background: linear-gradient(135deg, #02ca81 0%, #0ea5a0 50%, #0f766e 100%);
}

.story-image-roommate {
  background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #6d28d9 100%);
}

.story-image-tech {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0ea5a0 100%);
}

.story-image-mission {
  background: linear-gradient(135deg, #0ea5a0 0%, #02ca81 40%, #10b981 100%);
}

.story-image-portfolio {
  background: linear-gradient(135deg, #fb7f4a 0%, #f59e0b 60%, #fbbf24 100%);
}

.story-image-chat {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
}

/* ===== PRODUCT DETAIL SECTIONS ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 0;
}

.product-detail:last-child {
  margin-bottom: 0;
}

.product-detail.reverse {
  direction: rtl;
}

.product-detail.reverse > * {
  direction: ltr;
}

.product-detail-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.product-detail-content p {
  font-size: 16px;
  color: var(--gray-500);
  line-height: 1.85;
  margin-bottom: 24px;
}

.product-detail-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.product-detail-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 15px;
  color: var(--gray-600);
}

.product-detail-features li svg {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
}

.product-detail-visual {
  background: var(--cream-light);
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 16px;
}

.product-detail-visual::before {
  display: none;
}

.product-detail-visual::after {
  display: none;
}

.product-detail-visual svg {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

/* Product visual theme variants — subtle tinted backgrounds */
.product-visual-housing {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 50%, #FAF8F5 100%);
  border-color: rgba(245, 158, 11, 0.15);
}

.product-visual-randy {
  background: linear-gradient(135deg, #F0FDF9 0%, #E8F9F1 50%, #FAF8F5 100%);
  border-color: rgba(2, 202, 129, 0.15);
}

.product-visual-roommate {
  background: linear-gradient(135deg, #F5F3FF 0%, #EDE9FE 50%, #FAF8F5 100%);
  border-color: rgba(139, 92, 246, 0.15);
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-card {
    padding: 28px 20px;
    border-radius: 16px;
  }

  .product-card-icon {
    width: 48px;
    height: 48px;
  }

  .product-card h3 {
    font-size: 18px;
  }

  .product-card p {
    font-size: 14px;
  }

  .product-card-badge {
    top: 16px;
    right: 16px;
    font-size: 10px;
    padding: 3px 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-grid-wide {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-grid-wide .footer-brand-col {
    grid-column: 1 / -1;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-detail,
  .product-detail.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 32px;
  }

  .story-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .story-image {
    height: 280px;
    border: none;
  }
}

@media (max-width: 900px) {
  .hero-split-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-content-left { text-align: center; }
  .hero-content-left .hero-ctas { justify-content: center; }
  .hero-content-left .hero-trust { justify-content: center; }
  .hero-content-left .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-visual { max-width: 400px; margin: 0 auto; }
  .hero h1 { font-size: 48px; letter-spacing: -1.5px; }
  .hero-subtitle { font-size: 17px; }
  .section { padding: 36px 16px; }
  .section-title { font-size: 38px; letter-spacing: -0.8px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .features-grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .steps::before { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cta-box { padding: 52px 32px; }
  .cta-box h2 { font-size: 30px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .product-detail-visual { height: 240px; }

  .nav-inner { height: 72px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: 16px 24px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 16px; }
  .nav-link::after { display: none; }
  .nav-btn { text-align: center; justify-content: center; margin: 8px 0 0; }
  .nav-toggle { display: block; }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    background: transparent;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 8px 14px; font-size: 13px; }
  .nav-dropdown-divider { display: none; }
}

@media (max-width: 640px) {
  .hero { padding: 120px 20px 80px; min-height: auto; }
  .hero h1 { font-size: 38px; letter-spacing: -1px; }
  .hero-subtitle { font-size: 16px; }
  .hero-page { padding: 140px 20px 80px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .btn-secondary { padding: 16px 36px; }
  .hero-trust { flex-direction: column; gap: 12px; }
  .hero-visual { max-width: 320px; }

  .section { padding: 36px 16px; }
  .section-header { margin-bottom: 36px; }
  .section-title { font-size: 32px; }
  .stats-bar { padding: 60px 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat-item h3 { font-size: 36px; }
  .stat-item::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid-wide { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; }
  .feature-card { padding: 32px 28px; }
  .section-contained .section-inner { padding: 40px 24px; border-radius: 16px; }
  .cta-box { padding: 44px 24px; border-radius: 20px; }
  .cta-section { padding: 60px 20px; }
  .cta-dark { padding: 60px 20px; }
  .values-grid { grid-template-columns: 1fr; }

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

  .product-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .product-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
  }

  .product-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .product-card p {
    font-size: 13px;
    line-height: 1.5;
  }

  .product-card-link {
    font-size: 13px;
    margin-top: 12px;
  }

  .product-card-badge {
    top: 12px;
    right: 12px;
    font-size: 9px;
    padding: 2px 7px;
  }

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

  .product-detail-visual {
    height: 240px;
  }
}

@media (max-width: 520px) {
  .features-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* === Legal Pages: Accordion + TOC === */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 100px;
  background: var(--white, #fff);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.08);
}

.legal-toc h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light, #6b7280);
  margin-bottom: 16px;
  font-weight: 600;
}

.legal-toc a {
  display: block;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-light, #6b7280);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: all 0.2s;
}

.legal-toc a:hover,
.legal-toc a.active {
  color: var(--green, #02ca81);
  border-left-color: var(--green, #02ca81);
}

.legal-accordion {}

.legal-section {
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--white, #fff);
  transition: box-shadow 0.2s;
}

.legal-section:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.legal-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text, #1a1a2e);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  gap: 12px;
}

.legal-section-header::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text-light, #6b7280);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.legal-section.open .legal-section-header::after {
  content: '\2212';
}

.legal-section-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.legal-section.open .legal-section-body {
  max-height: 2000px;
}

.legal-section-body-inner {
  padding: 0 20px 20px;
  color: var(--text-light, #6b7280);
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-section-body-inner ul,
.legal-section-body-inner ol {
  padding-left: 20px;
  margin: 8px 0;
}

.legal-section-body-inner li {
  margin-bottom: 4px;
}

.legal-section-body-inner strong {
  color: var(--text, #1a1a2e);
}

.legal-section-body-inner a {
  color: var(--green, #02ca81);
}

/* Legal pages responsive */
@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .legal-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
  }
  .legal-toc h3 {
    width: 100%;
  }
  .legal-toc a {
    border-left: none;
    padding-left: 0;
    padding: 4px 0;
  }
}

.legal-intro {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-light, #6b7280);
  margin-bottom: 24px;
  max-width: 800px;
}
