/* ============================================================
   FIRECAT LABS — style.css
   Main stylesheet for firecatlabs.com

   Sections:
   1.  Import & Reset
   2.  Design Tokens
   3.  Typography
   4.  Layout Utilities
   5.  Buttons
   6.  Cards & Badges
   7.  Navigation
   8.  Hero Section
   9.  About Section
   10. Apps Section
   11. Contact Section
   12. Footer
   13. Legal Pages
   14. Product Pages (Astro AI, etc.)
   15. Animations
   16. Responsive
   ============================================================ */

/* ── 1. Import & Reset ────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;1,14..32,400&display=swap');

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;           /* prevent horizontal scroll on mobile */
}

/* Remove 300ms tap delay on mobile */
a, button, [role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

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

/* ── 2. Design Tokens ─────────────────────────────────────── */
:root {
  /* Background */
  --bg-primary:   #FFFBF5;
  --bg-secondary: #FFF7ED;
  --bg-tertiary:  #FFEDD5;

  /* Brand colors */
  --color-fire:      #EA580C;
  --color-fire-dark: #C2410C;
  --color-ember:     #DC2626;
  --color-ember-dark:#B91C1C;

  /* Gradients */
  --gradient-fire:      linear-gradient(135deg, #EA580C 0%, #DC2626 100%);
  --gradient-fire-hover:linear-gradient(135deg, #C2410C 0%, #B91C1C 100%);
  --gradient-fire-soft: linear-gradient(135deg, rgba(234,88,12,0.08) 0%, rgba(220,38,38,0.08) 100%);

  /* Text */
  --text-primary:   #1C1917;
  --text-secondary: #57534E;
  --text-muted:     #A8A29E;
  --text-on-fire:   #FFFFFF;

  /* Borders */
  --border:       #E7E5E4;
  --border-hover: #D6D3D1;
  --white:        #FFFFFF;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(28,25,23,0.06);
  --shadow-sm: 0 1px 4px rgba(28,25,23,0.08), 0 0 1px rgba(28,25,23,0.04);
  --shadow-md: 0 4px 16px rgba(28,25,23,0.08), 0 0 1px rgba(28,25,23,0.04);
  --shadow-lg: 0 8px 32px rgba(28,25,23,0.10), 0 0 1px rgba(28,25,23,0.04);
  --shadow-fire: 0 4px 20px rgba(234,88,12,0.22);

  /* Radii */
  --radius-sm:   6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full:9999px;

  /* Spacing scale */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl:48px;
  --space-3xl:64px;
  --space-4xl:96px;

  /* Layout */
  --container-max:   1200px;
  --container-legal:  800px;
  --container-pad:    24px;
  --nav-height:       64px;

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

/* ── 3. Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.25rem, 6vw,  4rem);   font-weight: 800; }
h2 { font-size: clamp(1.5rem,  3vw,  2.25rem); }
h3 { font-size: clamp(1.125rem,2vw,  1.5rem);  }
h4 { font-size: 1.125rem; }

p {
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ── 4. Layout Utilities ──────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.container--legal {
  max-width: var(--container-legal);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section        { padding: var(--space-4xl) 0; }
.section--sm    { padding: var(--space-3xl) 0; }

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

.label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-fire);
  margin-bottom: var(--space-md);
}

/* ── 5. Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  min-height: 44px;             /* iOS/Android recommended touch target */
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: all var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--gradient-fire);
  color: var(--text-on-fire);
  box-shadow: var(--shadow-fire);
}
.btn--primary:hover {
  background: var(--gradient-fire-hover);
  box-shadow: 0 6px 24px rgba(234,88,12,0.32);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--white);
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-fire);
  padding: 8px 12px;
}
.btn--ghost:hover { background: var(--gradient-fire-soft); }

.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--sm { padding: 7px 14px;  font-size: 0.875rem; }

/* ── 6. Cards & Badges ────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge--fire {
  background: var(--bg-tertiary);
  color: var(--color-fire);
}
.badge--live {
  background: #DCFCE7;
  color: #15803D;
}
.badge--live::before {
  content: '';
  width: 6px; height: 6px;
  background: #16A34A;
  border-radius: 50%;
  display: inline-block;
}
.badge--soon {
  background: #F3F4F6;
  color: #6B7280;
}

/* ── 7. Navigation ────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255,251,245,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-fast);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: var(--nav-height); /* explicit — avoids % resolving against unsized .container parent */
  gap: var(--space-xl);
}

.nav__logo {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  flex-shrink: 0;
}
.nav__logo .logo-fire {
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav__logo .logo-labs {
  color: var(--text-secondary);
  font-weight: 500;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-left: auto;
}

.nav__link {
  padding: 10px 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--t-fast);
  white-space: nowrap;
}
.nav__link:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}
.nav__link.active {
  color: var(--color-fire);
  background: var(--gradient-fire-soft);
}

/* Dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  min-width: 190px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--t-fast);
  z-index: 200;
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown-item {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--t-fast);
}
.nav__dropdown-item:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}
.nav__dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 5px 8px;
}

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  background: none;
  border: none;
}
.nav__hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  display: block;
  transition: all var(--t-fast);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: var(--space-md);
  z-index: 99;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.nav__mobile.open { display: block; }
.nav__mobile-link {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  min-height: 48px;             /* larger touch target in drawer */
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background var(--t-fast);
}
.nav__mobile-link:hover,
.nav__mobile-link:active {
  background: var(--bg-secondary);
  color: var(--text-primary);
}
.nav__mobile-section {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 14px 16px 4px;
}

/* ── 8. Hero ──────────────────────────────────────────────── */
.hero {
  padding: var(--space-4xl) 0;
  text-align: center;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(234,88,12,0.07) 0%, transparent 68%);
  pointer-events: none;
}

.hero__eyebrow { margin-bottom: var(--space-lg); }

.hero__title {
  max-width: 820px;
  margin: 0 auto var(--space-lg);
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero__subtitle {
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ── 9. About Section ─────────────────────────────────────── */
.about {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about__content h2 { margin-bottom: var(--space-lg); }
.about__content p  { margin-bottom: var(--space-md); }

.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.value-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-xs);
}
.value-item__icon {
  width: 38px; height: 38px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1rem;
  color: var(--color-fire);
  font-weight: 700;
}
.value-item__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}
.value-item__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── 10. Apps Section ─────────────────────────────────────── */
.apps__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.apps__header h2   { margin-bottom: var(--space-md); }
.apps__header .sub {
  max-width: 520px;
  margin: 0 auto;
  color: var(--text-muted);
}

.apps__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.app-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-base);
  display: flex;
  flex-direction: column;
}
.app-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.app-card--featured {
  border-color: rgba(234,88,12,0.25);
  background: linear-gradient(160deg, #FFFFFF 0%, #FFFBF5 100%);
}
.app-card--featured:hover {
  border-color: rgba(234,88,12,0.4);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(234,88,12,0.12);
}
.app-card--placeholder {
  border-style: dashed;
  background: var(--bg-secondary);
  cursor: default;
}

.app-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
}

.app-card__name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.app-card__tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.app-card__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-xl);
  flex: 1;
}

.app-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ── 11. Contact Section ──────────────────────────────────── */
.contact {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: start;
}
.contact__title { margin-bottom: var(--space-md); }

.contact__cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t-fast);
}
.contact-card:hover { box-shadow: var(--shadow-sm); }

.contact-card__icon {
  width: 44px; height: 44px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.125rem;
}
.contact-card__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.contact-card__value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}
.contact-card__value a {
  color: var(--color-fire);
  transition: color var(--t-fast);
}
.contact-card__value a:hover { color: var(--color-fire-dark); }

/* ── 12. Footer ───────────────────────────────────────────── */
.footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.65);
  padding: var(--space-3xl) 0 var(--space-xl);
}

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

.footer__brand .logo {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
}
.footer__brand .logo-fire {
  background: var(--gradient-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer__brand .logo-labs {
  color: rgba(255,255,255,0.45);
  font-weight: 500;
}
.footer__brand p {
  color: rgba(255,255,255,0.45);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 260px;
}

.footer__col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--space-md);
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__link {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--t-fast);
}
.footer__link:hover { color: rgba(255,255,255,0.9); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}
.footer__copyright {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.3);
}
.footer__bottom-links { display: flex; gap: var(--space-lg); }
.footer__bottom-link {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
  transition: color var(--t-fast);
}
.footer__bottom-link:hover { color: rgba(255,255,255,0.65); }

/* ── 13. Legal Pages ──────────────────────────────────────── */
.legal-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: var(--space-3xl) 0 var(--space-2xl);
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}
.legal-breadcrumb a {
  color: var(--color-fire);
  font-weight: 500;
  transition: color var(--t-fast);
}
.legal-breadcrumb a:hover { color: var(--color-fire-dark); }
.legal-breadcrumb__sep { color: var(--border-hover); }

.legal-header h1 {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  margin-bottom: var(--space-sm);
}
.legal-header__meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-content { padding: var(--space-3xl) 0 var(--space-4xl); }

/* Legal body typography */
.legal-body {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.legal-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--space-3xl) 0 var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
}
.legal-body h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.legal-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: var(--space-xl) 0 var(--space-sm);
}
.legal-body p   { margin-bottom: var(--space-md); }
.legal-body ul,
.legal-body ol  { padding-left: var(--space-xl); margin-bottom: var(--space-md); }
.legal-body ul  { list-style: disc; }
.legal-body ol  { list-style: decimal; }
.legal-body li  { margin-bottom: 6px; color: var(--text-secondary); line-height: 1.75; }
.legal-body a   { color: var(--color-fire); font-weight: 500; transition: color var(--t-fast); }
.legal-body a:hover { color: var(--color-fire-dark); text-decoration: underline; }
.legal-body strong { font-weight: 700; color: var(--text-primary); }

.legal-callout {
  background: var(--bg-tertiary);
  border: 1px solid rgba(234,88,12,0.18);
  border-left: 4px solid var(--color-fire);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-xl) 0;
}
.legal-callout p { margin: 0; font-size: 0.9375rem; }

.legal-callout--warning {
  background: #FFF7ED;
  border-color: rgba(234,88,12,0.25);
  border-left-color: var(--color-fire);
}
.legal-callout--info {
  background: #EFF6FF;
  border-color: rgba(59,130,246,0.2);
  border-left-color: #3B82F6;
}

/* ── 14. Product Pages ────────────────────────────────────── */
.product-hero {
  padding: var(--space-4xl) 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}
.product-hero::before {
  content: '';
  position: absolute;
  top: -150px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(234,88,12,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.product-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}
.product-hero__content h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: var(--space-lg);
}
.product-hero__content p {
  font-size: 1.0625rem;
  margin-bottom: var(--space-xl);
  line-height: 1.75;
}
.product-hero__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }

.product-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.product-mockup {
  width: 260px; height: 480px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 34px;
  box-shadow: var(--shadow-lg), 0 0 0 8px rgba(28,25,23,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-mockup__bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #FFFBF5 0%, #FFF7ED 50%, #FFEDD5 100%);
}
.product-mockup__content {
  position: relative;
  text-align: center;
  padding: var(--space-xl);
}
.product-mockup__icon {
  width: 64px; height: 64px;
  background: var(--gradient-fire);
  border-radius: 20px;
  box-shadow: var(--shadow-fire);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.5rem;
  font-weight: 900;
  color: white;
}
.product-mockup__name {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}
.product-mockup__sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Features section */
.features {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features__header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.features__header h2 { margin-bottom: var(--space-md); }

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-xs);
  transition: all var(--t-base);
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-card__icon {
  width: 44px; height: 44px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}
.feature-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}
.feature-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Product legal strip */
.product-legal {
  border-top: 1px solid var(--border);
  padding: var(--space-2xl) 0;
  background: var(--bg-primary);
}
.product-legal__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}
.product-legal__label {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.product-legal__links { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.product-legal__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-fire);
  transition: color var(--t-fast);
}
.product-legal__link:hover {
  color: var(--color-fire-dark);
  text-decoration: underline;
}

/* ── 15. Animations ───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.fade-up           { animation: fadeUp 0.55s ease forwards; }
.fade-up-delay-1   { animation: fadeUp 0.55s 0.10s ease both; }
.fade-up-delay-2   { animation: fadeUp 0.55s 0.20s ease both; }
.fade-up-delay-3   { animation: fadeUp 0.55s 0.30s ease both; }

/* ── 16. Responsive ───────────────────────────────────────── */

/* ─── Tablet (≤ 1024px) ─────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  .product-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .product-hero__actions  { justify-content: center; }
  .product-visual         { order: -1; }
  .product-mockup         { width: 220px; height: 380px; }
  .features__grid         { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Mobile landscape / large phones (≤ 768px) ─────────── */
@media (max-width: 768px) {
  :root {
    --container-pad: 20px;
    /* Reduce spacing scale on mobile */
    --space-4xl: 64px;
    --space-3xl: 48px;
  }

  /* ── Navigation ── */
  .nav__links     { display: none; }
  .nav__hamburger {
    display: flex;
    width: 44px;          /* 44px minimum touch target */
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: auto;
  }

  /* ── Hero ── */
  .hero            { padding: 52px 0 48px; }
  .hero__subtitle  { font-size: 1rem; max-width: 100%; }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero__actions .btn { justify-content: center; }

  /* ── About ── */
  .about__values  { grid-template-columns: 1fr 1fr; }

  /* ── Apps ── */
  .apps__grid     { grid-template-columns: 1fr; }

  /* ── Features ── */
  .features__grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }

  /* ── Contact ── */
  .contact__inner { grid-template-columns: 1fr; gap: var(--space-xl); }

  /* ── Footer ── */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
  }
  .footer__bottom-links { justify-content: center; }

  /* ── Product pages ── */
  .product-hero         { padding: 48px 0; }
  .product-hero__content p { font-size: 1rem; }
  .product-hero__actions   { flex-wrap: wrap; }

  /* ── Legal ── */
  .legal-header   { padding: var(--space-2xl) 0 var(--space-xl); }
  .legal-breadcrumb { font-size: 0.8125rem; gap: 6px; }

  /* ── Product legal strip ── */
  .product-legal__inner { flex-direction: column; text-align: center; }
  .product-legal__links { justify-content: center; flex-wrap: wrap; }
}

/* ─── Small mobile (≤ 600px) ────────────────────────────── */
@media (max-width: 600px) {
  :root { --container-pad: 16px; }

  /* Section spacing */
  .section     { padding: 52px 0; }
  .section--sm { padding: 40px 0; }
  .hero        { padding: 44px 0; }

  /* Single column everywhere */
  .about__values  { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .footer__grid   { grid-template-columns: 1fr; gap: var(--space-xl); }

  /* Tighter card padding */
  .app-card     { padding: var(--space-lg); }
  .feature-card { padding: var(--space-lg); }
  .value-item   { padding: var(--space-md); }

  /* Contact cards */
  .contact-card { padding: var(--space-md) var(--space-lg); gap: var(--space-md); }
  .contact-card__icon { width: 40px; height: 40px; font-size: 1rem; }

  /* Legal */
  .legal-callout { padding: var(--space-md); }
  .legal-body h2 { font-size: 1.125rem; }
  .legal-body    { font-size: 0.9375rem; }

  /* App card footer: stack on very small */
  .app-card__footer { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }

  /* Product mockup: smaller */
  .product-mockup { width: 190px; height: 340px; border-radius: 28px; }
}

/* ─── Small phones — iPhone SE, 375–420px (≤ 420px) ─────── */
@media (max-width: 420px) {
  :root { --container-pad: 14px; }

  .hero        { padding: 36px 0; }
  .section     { padding: 44px 0; }
  .section--sm { padding: 32px 0; }

  /* Hero buttons: always full-width */
  .hero__actions { max-width: 100%; }

  /* Product mockup: even smaller */
  .product-mockup { width: 170px; height: 300px; }
  .product-mockup__icon { width: 52px; height: 52px; border-radius: 16px; font-size: 1.25rem; }
  .product-mockup__content { padding: var(--space-md); }

  /* Value icons smaller */
  .value-item__icon { width: 32px; height: 32px; font-size: 0.8rem; margin-bottom: var(--space-sm); }

  /* Badges */
  .badge { font-size: 0.75rem; padding: 3px 10px; }

  /* Nav mobile drawer */
  .nav__mobile-section { padding: 10px 14px 4px; font-size: 0.7rem; }
  .nav__mobile-link    { padding: 10px 14px; font-size: 0.9rem; }

  /* Legal */
  .legal-header h1  { font-size: 1.5rem; }
  .legal-body       { font-size: 0.9rem; line-height: 1.75; }
  .legal-body h2    { font-size: 1.0625rem; margin: var(--space-2xl) 0 var(--space-md); }
  .legal-body h3    { font-size: 0.9375rem; }
  .legal-body ul,
  .legal-body ol    { padding-left: var(--space-lg); }
  .legal-callout    { padding: var(--space-md); border-radius: var(--radius-sm); }

  /* Footer bottom links */
  .footer__bottom-links { gap: var(--space-md); }
}

/* ─── Accessibility: respect reduced motion ──────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
