/* ═══════════════════════════════════════════════════════════════
   LEGROOM — Design System
   Bold. Warm. Vacation vibes. Design-forward.
   Inspired by vacation.inc — retro warmth meets modern UX.
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  /* Warm, saturated palette — dopamine design */
  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --surface-warm: #FFF7EE;
  --text-primary: #1A1A1D;
  --text-secondary: #5C5C63;
  --text-tertiary: #9898A0;
  --teal: #1A9E9E;
  --teal-light: #DFFAFA;
  --teal-dark: #0E7A7A;
  --teal-glow: rgba(26,158,158,0.18);
  --amber: #E87A3A;
  --amber-light: #FFF0E6;
  --amber-glow: rgba(232,122,58,0.15);
  --coral: #E8636B;
  --coral-light: #FFEAEB;
  --green: #3D9E6B;
  --green-light: #E4F5EC;
  --red: #D94F4F;
  --sand: #F5E6D3;
  --sky: #B8E0F0;
  --border: #EAE5DD;
  --border-light: #F2EDE6;

  /* Curves — generous, friendly */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-pill: 100px;

  /* Motion — bouncy, playful */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --duration-fast: 0.2s;
  --duration-med: 0.4s;
  --duration-slow: 0.7s;

  /* Shadows — warm tones */
  --shadow-sm: 0 2px 8px rgba(26,26,29,0.04);
  --shadow-md: 0 8px 30px rgba(26,26,29,0.08);
  --shadow-lg: 0 20px 60px rgba(26,26,29,0.12);
  --shadow-glow: 0 8px 40px var(--teal-glow);
  --shadow-warm: 0 12px 40px rgba(232,122,58,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Selection — teal highlight */
::selection {
  background: var(--teal);
  color: white;
}

/* ——— DISPLAY HEADINGS ———
   Bold outline text for that vacation.inc vibe */
.outline-text {
  -webkit-text-stroke: 2px var(--text-primary);
  -webkit-text-fill-color: transparent;
}
.outline-text-teal {
  -webkit-text-stroke: 2px var(--teal);
  -webkit-text-fill-color: transparent;
}

/* ——— NAV ——— */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(251,248,243,0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--duration-fast), padding var(--duration-fast);
}
nav.scrolled {
  border-bottom-color: var(--border);
  padding: 10px 32px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.logo {
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -1.5px;
  color: var(--text-primary);
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-spring);
}
.logo:hover { transform: scale(1.05); }
.logo span { color: var(--teal); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--duration-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2.5px;
  background: var(--teal);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--duration-fast) var(--ease-out);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--teal); }

.nav-cta {
  background: var(--text-primary);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration-fast) var(--ease-spring);
}
.nav-cta:hover {
  background: var(--teal);
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-glow);
}

/* ——— PAGE SECTIONS ——— */
.page-section {
  padding: 100px 32px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.page-hero {
  text-align: center;
  padding: 160px 32px 80px;
  max-width: 820px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--teal-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero .subtitle {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ——— STAT GRID ——— */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 48px 0;
}

.stat-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: transform var(--duration-med) var(--ease-spring), box-shadow var(--duration-med), border-color var(--duration-fast);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  opacity: 0;
  transition: opacity var(--duration-fast);
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}
.stat-card:hover::before { opacity: 1; }

.stat-number {
  font-size: 44px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: -2px;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.stat-source {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* ——— DATA SECTION ——— */
.data-section {
  margin: 64px 0;
}

.data-section h2 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.data-section > p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 32px;
}

/* ——— FEATURE CARDS ——— */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 48px 0;
}

.feature-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform var(--duration-med) var(--ease-spring), box-shadow var(--duration-med), border-color var(--duration-fast);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-med) var(--ease-out);
}
.feature-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}
.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  transition: transform var(--duration-med) var(--ease-spring);
  border: 2px solid transparent;
}
.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(-5deg);
  border-color: currentColor;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.feature-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-top: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1.5px solid currentColor;
}

/* ——— DIAGRAM / VISUAL BLOCK ——— */
.visual-block {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--duration-med), border-color var(--duration-fast);
}
.visual-block:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.visual-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--coral), var(--teal));
  background-size: 300% 100%;
  animation: gradientShift 6s ease infinite;
}

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

/* ——— FLOW DIAGRAM ——— */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  padding: 20px 0;
}

.flow-step {
  text-align: center;
  padding: 24px 20px;
  min-width: 130px;
  border-radius: var(--radius-lg);
  transition: all var(--duration-med) var(--ease-spring);
  cursor: default;
  border: 2px solid transparent;
}
.flow-step:hover {
  background: var(--teal-light);
  transform: translateY(-6px);
  border-color: var(--teal);
  box-shadow: var(--shadow-glow);
}

.flow-step .step-icon {
  font-size: 36px;
  margin-bottom: 12px;
  transition: transform var(--duration-med) var(--ease-spring);
}
.flow-step:hover .step-icon { transform: scale(1.3) rotate(-3deg); }

.flow-step .step-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.flow-step .step-detail {
  font-size: 12px;
  color: var(--text-tertiary);
}

.flow-arrow {
  font-size: 22px;
  color: var(--teal);
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity var(--duration-fast);
}

/* ——— BAR CHART ——— */
.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 0;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bar-label {
  font-size: 13px;
  font-weight: 600;
  min-width: 120px;
  text-align: right;
  color: var(--text-secondary);
}

.bar-track {
  flex: 1;
  height: 40px;
  background: var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding-left: 14px;
  font-size: 13px;
  font-weight: 700;
  color: white;
  transition: width 1.2s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.bar-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  animation: shimmer 2.5s ease infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ——— COMPARISON TABLE ——— */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 32px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border);
}

.comparison-table th {
  background: var(--text-primary);
  color: white;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.3px;
}

.comparison-table th.highlight {
  background: var(--teal);
}

.comparison-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background var(--duration-fast);
}

.comparison-table tr:hover td { background: var(--surface-warm); }
.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table td.highlight {
  background: var(--teal-light);
  font-weight: 600;
  color: var(--teal-dark);
}
.comparison-table tr:hover td.highlight { background: var(--teal-light); }

/* ——— CTA SECTION ——— */
.cta-section {
  text-align: center;
  background: var(--text-primary);
  color: white;
  padding: 120px 32px;
  margin: 0 -32px;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, var(--teal-dark) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, var(--amber) 0%, transparent 40%);
  opacity: 0.12;
  animation: ctaFloat 15s ease infinite;
}
@keyframes ctaFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(3%, -3%) rotate(1deg); }
  66% { transform: translate(-2%, 2%) rotate(-1deg); }
}

.cta-section h2 {
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 16px;
  color: white;
  position: relative;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  max-width: 440px;
  margin: 0 auto 40px;
  line-height: 1.6;
  position: relative;
}

.cta-section .cta-button,
.cta-button {
  display: inline-block;
  background: var(--teal);
  color: white;
  padding: 18px 48px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  position: relative;
  transition: transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-fast);
  border: 2px solid var(--teal);
}
.cta-section .cta-button:hover,
.cta-button:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 50px rgba(26,158,158,0.45);
}

/* Outline variant button */
.cta-button-outline {
  display: inline-block;
  background: transparent;
  color: var(--teal);
  padding: 18px 48px;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border: 2.5px solid var(--teal);
  transition: all var(--duration-fast) var(--ease-spring);
}
.cta-button-outline:hover {
  background: var(--teal);
  color: white;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 50px rgba(26,158,158,0.35);
}

/* ——— FOOTER ——— */
footer {
  background: var(--text-primary);
  padding: 48px 32px;
  text-align: center;
  color: rgba(255,255,255,0.25);
  font-size: 13px;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
}

footer a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--duration-fast);
}
footer a:hover { color: var(--teal); }

/* ——— FADE-IN (legacy compat) ——— */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out), transform var(--duration-slow) var(--ease-out);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— RESPONSIVE ——— */
@media (max-width: 768px) {
  nav { padding: 12px 20px; }
  nav.scrolled { padding: 10px 20px; }
  .nav-links { display: none; }
  .page-section { padding: 80px 20px 60px; }
  .page-hero { padding: 130px 20px 60px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 20px 16px; }
  .stat-number { font-size: 32px; }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .flow-diagram { flex-direction: column; gap: 0; }
  .flow-arrow { transform: rotate(90deg); }
  .flow-step { min-width: unset; padding: 14px 20px; }
  .visual-block { padding: 28px 20px; border-radius: var(--radius-lg); }
  .bar-label { min-width: 80px; font-size: 11px; }
  .bar-track { height: 32px; }
  .comparison-table { font-size: 12px; }
  .comparison-table th, .comparison-table td { padding: 10px 12px; }
  .cta-section { padding: 80px 20px; margin: 0 -20px; }
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .page-hero h1 { letter-spacing: -1px; }
}

/* ——— HOVER MEDIA QUERY (touch devices) ——— */
@media (hover: none) {
  .feature-card:hover { transform: none; box-shadow: none; border-color: var(--border); }
  .feature-card:hover::after { transform: scaleX(0); }
  .feature-card:hover .feature-icon { transform: none; border-color: transparent; }
  .stat-card:hover { transform: none; box-shadow: none; border-color: var(--border); }
  .stat-card:hover::before { opacity: 0; }
  .flow-step:hover { background: none; transform: none; border-color: transparent; box-shadow: none; }
  .flow-step:hover .step-icon { transform: none; }
  .nav-cta:hover { transform: none; }
  .cta-button:hover { transform: none; }
  .visual-block:hover { border-color: var(--border); }
}
