:root {
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f0f8ff;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --text-tertiary: #b0b0b0;
  --border-color: #f0f0f0;
  --shadow: rgba(0, 0, 0, 0.12);
  --shadow-hover: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #242424;
  --bg-tertiary: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #d0d0d0;
  --text-tertiary: #888888;
  --border-color: #333333;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-hover: rgba(0, 0, 0, 0.4);
}

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

html {
  /* body already clips, but the DOCUMENT element is what actually scrolls —
     without this the off-canvas nav made the page twice the viewport wide on
     every mobile browser. */
  overflow-x: clip;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: clip; /* clip avoids iOS Safari scroll-lock bug from hidden */
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(135, 206, 235, 0.03) 2px, rgba(135, 206, 235, 0.03) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(252, 76, 2, 0.03) 2px, rgba(252, 76, 2, 0.03) 4px);
  background-size: 100px 100px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

[data-theme="dark"] body::before {
  opacity: 0.2;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Header lives in ONE place now — see the HEADER BLOCK at the end of
   this file. Three generations of overrides had stacked up here and there,
   and the winning rule was whichever happened to be last. */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  animation: fadeInDown 0.8s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: flex;
  align-items: center;
}

.logo span {
  background: linear-gradient(135deg, #FC4C02 0%, #87CEEB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

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

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

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

.nav-links {
  display: flex;
  gap: 48px;
  align-items: center;
  animation: fadeInDown 0.8s ease 0.2s both;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s ease;
  letter-spacing: -0.2px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #FC4C02 0%, #87CEEB 100%);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #FC4C02;
}

.header-controls {
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Premium Dark Mode Toggle */
.theme-toggle-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.theme-toggle {
  position: relative;
  width: 64px;
  height: 32px;
  background: linear-gradient(135deg, #e0e0e0 0%, #c0c0c0 100%);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .theme-toggle {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
  box-shadow: 0 2px 12px rgba(252, 76, 2, 0.3);
}

.theme-toggle::before {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  top: 2px;
  left: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .theme-toggle::before {
  left: calc(100% - 26px);
  background: linear-gradient(135deg, #FC4C02 0%, #FF6B35 100%);
  box-shadow: 0 2px 8px rgba(252, 76, 2, 0.5);
}

.theme-toggle::after {
  content: '☀️';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

[data-theme="dark"] .theme-toggle::after {
  opacity: 0;
  transform: translateY(-50%) scale(0);
}

.theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .theme-toggle:hover {
  box-shadow: 0 4px 20px rgba(252, 76, 2, 0.4);
}

.btn-primary {
  background: linear-gradient(135deg, #FC4C02 0%, #FF6B35 100%);
  color: #ffffff !important;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  letter-spacing: -0.2px;
  box-shadow: 0 4px 12px rgba(252, 76, 2, 0.2);
  position: relative;
  overflow: hidden;
}

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

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(252, 76, 2, 0.3);
}

.hero-section {
  padding: 120px 0 160px;
  position: relative;
  background: var(--bg-primary);
  overflow: hidden;
  /* Contain hero stacking context so GPU-composited children (3D card)
     cannot bleed above position:fixed overlays on iOS Safari */
  isolation: isolate;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text {
  max-width: 600px;
  animation: fadeInLeft 1s ease;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(252, 76, 2, 0.1) 0%, rgba(135, 206, 235, 0.1) 100%);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #FC4C02;
  margin-bottom: 32px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(135, 206, 235, 0.3);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-text h1 {
  font-size: 72px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 32px;
  letter-spacing: -2px;
  color: var(--text-primary);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-text h1 .gradient {
  background: linear-gradient(135deg, #FC4C02 0%, #87CEEB 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 22px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  line-height: 1.7;
  font-weight: 400;
  animation: fadeInUp 0.8s ease 0.6s both;
}

/* Pre-release status line under the hero CTA. Quieter than the hero
   paragraph it inherits from, and it must not carry that rule's 48px
   bottom margin. */
.hero-text p.hero-status {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin: 20px 0 0;
  max-width: 34em;
}

.hero-image {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 64px var(--shadow);
  aspect-ratio: 16/9;
  animation: fadeInRight 1s ease;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: translateY(-10px);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mobile-app-section {
  padding: 160px 0;
  background: var(--bg-secondary);
  position: relative;
}

.mobile-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.mobile-text h2 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
  color: var(--text-primary);
}

.mobile-text p {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.app-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.app-badge {
  display: inline-block;
  transition: transform 0.2s ease;
}

.app-badge:hover {
  transform: scale(1.05);
}

.app-badge img {
  height: 60px;
  width: auto;
}

.mobile-mockups {
  position: relative;
  display: flex;
  justify-content: center;
  gap: -40px;
}

.mockup {
  width: 280px;
  height: 600px;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 24px 64px var(--shadow);
  background: #000;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.mockup:nth-child(1) {
  animation-delay: 0s;
  z-index: 3;
}

.mockup:nth-child(2) {
  margin-left: -60px;
  animation-delay: 0.5s;
  z-index: 2;
}

.mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.features-section {
  padding: 160px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
}

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

.section-header h2 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -1.5px;
  color: var(--text-primary);
}

.section-header p {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-primary);
  border-radius: 16px;
  padding: 36px 40px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 64px var(--shadow-hover);
  border-color: #87CEEB;
}

.feature-image {
  width: 100%;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8f4f8 100%);
  position: relative;
}

[data-theme="dark"] .feature-image {
  background: linear-gradient(135deg, #2a2a2a 0%, #1a2a3a 100%);
}

.feature-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(252, 76, 2, 0.1) 0%, rgba(135, 206, 235, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover .feature-image::after {
  opacity: 1;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-image img {
  transform: scale(1.1);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(252,76,2,0.1) 0%, rgba(135,206,235,0.1) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #FC4C02;
  flex-shrink: 0;
}

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

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

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

/* Problem statement strip */
.problem-section {
  padding: 64px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.problem-text {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.6;
  letter-spacing: -0.3px;
}

.problem-text s {
  color: var(--text-tertiary);
  text-decoration-color: #FC4C02;
  text-decoration-thickness: 2px;
}

/* Benefits grid — replaces fake stats */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.benefit-card {
  text-align: left;
  padding: 32px;
  background: var(--bg-primary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.benefit-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.benefit-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #FC4C02;
  margin-bottom: 12px;
}

.benefit-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-primary);
  margin-bottom: 12px;
}

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

/* Cookie consent banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -8px 32px var(--shadow);
}

.cookie-consent.visible {
  transform: translateY(0);
}

.cookie-consent .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
  min-width: 240px;
}

.cookie-text a {
  color: #87CEEB;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.cookie-btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.cookie-btn-secondary:hover {
  background: var(--bg-tertiary);
}

.cookie-btn-primary {
  background: linear-gradient(135deg, #FC4C02 0%, #FF6B35 100%);
  color: white;
}

.cookie-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(252, 76, 2, 0.3);
}

@media (max-width: 768px) {
  .cookie-consent .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cookie-actions {
    width: 100%;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

.stats-section {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-tertiary) 50%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(135, 206, 235, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item {
  opacity: 0;
  transform: translateY(20px);
}

.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.stat-item h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.stat-item p {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
}

.cta-section {
  padding: 160px 0;
  background: linear-gradient(135deg, #FC4C02 0%, #FF6B35 50%, #87CEEB 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?w=2000&q=80') center/cover;
  opacity: 0.15;
  transform: scale(1.1);
  transition: transform 0.5s ease;
}

.cta-section:hover::before {
  transform: scale(1);
}

.parallax-bg {
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(135, 206, 235, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite;
}

.cta-content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
}

.cta-content h2 {
  font-size: 64px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 32px;
  letter-spacing: -2px;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-content p {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 48px;
  line-height: 1.7;
}

.btn-white {
  background: #ffffff;
  color: #FC4C02;
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  letter-spacing: -0.2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.btn-white::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(252, 76, 2, 0.1), transparent);
  transition: left 0.5s ease;
}

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

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

footer {
  background: var(--bg-secondary);
  padding: 80px 0 40px;
  color: var(--text-primary);
  position: relative;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-logo-image {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.footer-brand h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: -0.2px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer-links ul li a:hover {
  color: #87CEEB;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 13px;
}

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

.footer-bottom-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 24px;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
  }
  33% {
    transform: translateY(-30px) translateX(20px);
  }
  66% {
    transform: translateY(30px) translateX(-20px);
  }
}

@media (max-width: 1024px) {
  .hero-section {
    padding: 60px 0 80px;
  }

  .hero-content, .mobile-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-text h1 {
    font-size: 56px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .mobile-mockups {
    flex-direction: column;
    align-items: center;
  }

  .mockup:nth-child(2) {
    margin-left: 0;
    margin-top: -40px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .logo {
    font-size: 22px;
  }

  .logo-image {
    height: 32px;
  }

  .mobile-menu-toggle {
    display: flex;
    z-index: 10002;
  }

  .nav-links {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-primary);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 24px 24px;
    gap: 0;
    box-shadow: -4px 0 24px var(--shadow);
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10001;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .nav-links.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
    visibility: visible;
  }

  .nav-links > a {
    width: 100%;
    padding: 16px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--border-color);
    display: block;
    position: relative;
    z-index: 1;
  }

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

  .header-controls {
    flex-direction: column;
    gap: 16px;
    width: 100%;
    margin-top: 24px;
    align-items: stretch;
    position: relative;
    z-index: 1;
  }

  .theme-toggle-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
  }

  .theme-toggle {
    width: 56px;
    height: 28px;
    cursor: pointer;
    pointer-events: all;
    position: relative;
    z-index: 1;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
    padding: 14px 24px;
    font-size: 16px;
    position: relative;
    z-index: 1;
    pointer-events: all;
  }

  .hero-section {
    padding: 40px 0 60px;
  }

  .hero-text h1 {
    font-size: 38px;
  }

  .section-header h2 {
    font-size: 34px;
  }

  /* Mobile menu overlay */
  body.menu-open {
    /* `overflow: hidden` alone does NOT lock the document on iOS Safari — it
       is honoured on desktop and quietly ignored there, so the page scrolled
       away underneath the open drawer while the drawer stayed put.
       `position: fixed` is the only thing WebKit respects, with the scroll
       offset held in `top` by the JS and restored on close (without that the
       page jumps to the top every time the menu is dismissed). */
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  body.menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    /* Force own GPU compositing layer so iOS Safari renders this
       above transformed/composited elements in the page */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  /* Lift the whole HEADER above the overlay while the menu is open.

     The drawer lives inside <header>, and header sets `position: sticky`,
     `z-index: 100` and `backdrop-filter` — each of which creates a stacking
     context on its own. So `.nav-links { z-index: 10001 }` only ever competed
     with its siblings inside the header; against the rest of the page it was
     pinned at the header's 100. The overlay is `body::after` at 10000 in the
     ROOT stacking context, and 10000 > 100, so it painted over the drawer and
     over the close button with it — a dark sheet across the whole screen and
     no way back out of it.

     Raising the HEADER is the fix, not the drawer: a child cannot escape its
     parent's stacking context however large its z-index. Scoped to
     `.menu-open` so the header keeps its ordinary 100 the rest of the time.

     Reported on iPhone Safari, where backdrop-filter compositing makes it
     reproduce every time. */
  body.menu-open header {
    z-index: 10001;
  }
}

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

  .logo-text {
    font-size: 20px;
  }

  .logo-image {
    height: 28px;
  }

  .nav-links {
    width: 85%;
    max-width: 280px;
  }
}




/* Integrations Section */
.integrations-section {
  padding: 120px 0;
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.integration-card {
  background: var(--bg-primary);
  padding: 48px 32px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 10px 40px var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
}

.integration-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--shadow-hover);
}

.integration-icon {
  margin: 0 auto 24px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: 20px;
}

.integration-card h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.integration-card p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Pricing Section */
.pricing-section {
  padding: 120px 0;
  background: var(--bg-primary);
  position: relative;
  z-index: 1;
}

.pricing-card {
  max-width: 600px;
  margin: 60px auto 0;
  background: var(--bg-secondary);
  padding: 60px 48px;
  border-radius: 32px;
  box-shadow: 0 20px 80px var(--shadow);
  text-align: center;
  border: 2px solid #87CEEB;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #87CEEB, #FC4C02);
}

.pricing-badge {
  display: inline-block;
  background: linear-gradient(135deg, #87CEEB, #5AB9EA);
  color: white;
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(135, 206, 235, 0.4);
}

.pricing-card h3 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.pricing-price {
  margin: 24px 0;
}

.price-amount {
  font-size: 72px;
  font-weight: 800;
  background: linear-gradient(135deg, #87CEEB, #FC4C02);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.price-period {
  display: block;
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 8px;
  font-weight: 500;
}

.pricing-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  margin: 40px 0;
  text-align: left;
}

.pricing-features li {
  font-size: 17px;
  padding: 16px 0;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  font-weight: 500;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.btn-large {
  padding: 18px 48px;
  font-size: 18px;
  margin-top: 24px;
}

.pricing-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .integrations-section,
  .pricing-section {
    padding: 80px 0;
  }

  .integrations-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .integration-card {
    padding: 32px 24px;
  }

  .pricing-card {
    padding: 40px 28px;
    margin-top: 40px;
  }

  .price-amount {
    font-size: 56px;
  }

  .pricing-features li {
    font-size: 15px;
    padding: 12px 0;
  }

  .btn-large {
    padding: 16px 36px;
    font-size: 16px;
  }
}


/* Contact Section */
.contact-section {
  padding: 100px 0;
  background: var(--bg-primary);
  position: relative;
  z-index: 1;
}

.contact-card {
  max-width: 800px;
  margin: 60px auto 0;
  background: var(--bg-secondary);
  padding: 48px;
  border-radius: 24px;
  box-shadow: 0 10px 40px var(--shadow);
  border: 1px solid var(--border-color);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-primary);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #87CEEB, #5AB9EA);
  border-radius: 12px;
  color: white;
}

.contact-details h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.contact-details p,
.contact-details a {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: #87CEEB;
}

.contact-message {
  padding: 24px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  border-left: 4px solid #87CEEB;
}

/* Footer Creator */
.footer-creator {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-tertiary);
}

.footer-creator a {
  color: #87CEEB;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-creator a:hover {
  color: #FC4C02;
}

/* ============================================
   PERFORMANCE: content-visibility for off-screen
   ============================================ */
.mobile-app-section,
.features-section,
.integrations-section,
.stats-section,
.pricing-section,
.cta-section,
.faq-section,
.contact-section {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

/* ============================================
   HERO APP PREVIEW — 3D glassmorphism card
   ============================================ */
.hero-preview-scene {
  perspective: 1200px;
  perspective-origin: 50% 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-app-preview {
  /* Frames a real app screenshot (public/images/app/dashboard.png), which
     replaced a hand-built CSS mock — the mock drifted from the real UI. */
  max-width: 320px;
  width: 100%;
  position: relative;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(160deg, #2a2a2e 0%, #111114 100%);
  transform: rotateY(-14deg) rotateX(4deg) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s ease;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12) inset,
    0 32px 80px rgba(0,0,0,0.28),
    0 8px 24px rgba(252,76,2,0.10);
  animation: fadeInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-app-preview picture,
.hero-app-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 31px;
}

/* Stacked depth card 1 */
.hero-app-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(252,76,2,0.12) 0%, rgba(135,206,235,0.12) 100%);
  transform: translateX(14px) translateY(14px) translateZ(-24px) rotateY(-2deg);
  z-index: -1;
  border: 1px solid rgba(252,76,2,0.1);
}

/* Stacked depth card 2 */
.hero-app-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(135,206,235,0.08) 0%, rgba(252,76,2,0.06) 100%);
  transform: translateX(28px) translateY(28px) translateZ(-48px) rotateY(-4deg);
  z-index: -2;
  border: 1px solid rgba(135,206,235,0.1);
}

.hero-app-preview:hover {
  transform: rotateY(-4deg) rotateX(1deg) translateZ(8px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.14) inset,
    0 48px 100px rgba(0,0,0,0.32),
    0 12px 32px rgba(252,76,2,0.14);
}

















































/* ============================================
   MOBILE SECTION — feature visual (replaces mockup)
   ============================================ */
.mobile-feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-visual-card {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.12), 0 4px 16px rgba(252,76,2,0.06);
  max-width: 340px;
  width: 100%;
  position: relative;
  transform: rotateY(10deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

[data-theme="dark"] .feature-visual-card {
  background: rgba(36,36,36,0.85);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}

.feature-visual-card:hover {
  transform: rotateY(3deg) rotateX(0deg);
}

.fv-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Replaces the old invented "247 matches / €3,840 earned" card. A list of
   what actually exists, not a fabricated stat card that reads as real data. */
.fv-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fv-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.fv-list li:last-child { margin-bottom: 0; }

.fv-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: #FC4C02;
}

.fv-list strong { color: var(--text-primary); font-weight: 600; }

.fv-big-number {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--text-primary);
  line-height: 1;
}

.fv-big-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  margin-bottom: 24px;
}

.fv-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  margin-bottom: 20px;
}

.fv-bar {
  flex: 1;
  background: rgba(135,206,235,0.25);
  border-radius: 4px 4px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding-bottom: 4px;
  transition: background 0.3s;
}

.fv-bar--active {
  background: linear-gradient(180deg, #FC4C02 0%, #FF6B35 100%);
}

.fv-bar span {
  font-size: 9px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.fv-bar--active span { color: rgba(255,255,255,0.8); }

.fv-footer {
  display: flex;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.fv-stat {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.fv-stat--green { color: #2e7d32; }

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 60px;
}

.faq-item {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: #87CEEB;
}

.faq-question {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  letter-spacing: -0.2px;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
  color: #FC4C02;
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

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

  .hero-app-preview {
    /* Keep the phone phone-sized on mobile — 100% made the frame fill the
       viewport and stop reading as a device. */
    max-width: 240px;
    margin: 0 auto;
    transform: none;
  }

  .feature-visual-card {
    max-width: 100%;
  }
}

/* ============================================
   APP STORE BADGE FALLBACK
   ============================================ */
.badge-fallback {
  border-radius: 8px;
  cursor: pointer;
}

/* ============================================
   EXISTING SECTION OVERRIDES
   ============================================ */

/* Remove Unsplash CTA background (was external image) */
.cta-section::before {
  display: none;
}

/* Hero layout: app preview card replaces video */
.hero-image, .hero-video { display: none; }

@media (max-width: 768px) {
  .contact-section {
    padding: 80px 0;
  }

  .contact-card {
    padding: 32px 24px;
    margin-top: 40px;
  }

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

  .contact-item {
    padding: 20px;
  }

  .contact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .contact-details p,
  .contact-details a {
    font-size: 16px;
  }

  .contact-message {
    padding: 20px;
    font-size: 15px;
  }
}

/* ============================================
   MOBILE PADDING REDUCTION — systematic pass
   All major sections inherit desktop values
   (160px / 120px / 100px) with no mobile override.
   Target: ~40px sections, tighter inner cards.
   ============================================ */
@media (max-width: 768px) {
  /* Section-level padding */
  .problem-section     { padding: 28px 0; }
  .mobile-app-section  { padding: 40px 0; }
  .features-section    { padding: 40px 0; }
  .stats-section       { padding: 32px 0; }
  .integrations-section{ padding: 32px 0; }
  .pricing-section     { padding: 32px 0; }
  .cta-section         { padding: 48px 0; }
  .faq-section         { padding: 40px 0; }
  .contact-section     { padding: 32px 0; }

  /* Section headers */
  .section-header        { margin-bottom: 28px; }
  .section-header h2     { font-size: 26px; letter-spacing: -0.5px; }
  .section-header p      { font-size: 15px; }

  /* Hero text spacing */
  .hero-badge            { margin-bottom: 16px; }
  .hero-text h1          { margin-bottom: 16px; }
  .hero-text p           { font-size: 16px; margin-bottom: 20px; }

  /* Problem strip */
  .problem-text          { font-size: 17px; }

  /* Mobile app section */
  .mobile-text h2        { font-size: 28px; margin-bottom: 12px; }
  .mobile-text p         { font-size: 15px; margin-bottom: 20px; }
  .app-badges            { gap: 12px; }

  /* Feature cards */
  .features-grid         { gap: 12px; }
  .feature-card          { padding: 20px; }
  .feature-icon-wrap     { margin-bottom: 12px; width: 40px; height: 40px; }
  .feature-card h3       { font-size: 17px; margin-bottom: 8px; }
  .feature-card p        { font-size: 14px; }

  /* Benefits grid */
  .benefits-grid         { gap: 12px; }
  .benefit-card          { padding: 16px; }
  .benefit-card h3       { font-size: 18px; }
  .benefit-card p        { font-size: 14px; }

  /* Integrations */
  .integrations-grid     { gap: 12px; margin-top: 24px; }
  .integration-card      { padding: 20px 16px; }

  /* Pricing */
  .pricing-card          { padding: 24px 16px; margin-top: 24px; }
  .price-amount          { font-size: 48px; }
  .pricing-description   { font-size: 15px; margin-bottom: 16px; }
  .pricing-features      { margin: 20px 0; }
  .pricing-features li   { font-size: 14px; padding: 10px 0; }
  .btn-large             { padding: 14px 24px; font-size: 15px; margin-top: 16px; }

  /* CTA section */
  .cta-content h2        { font-size: 28px; margin-bottom: 16px; }
  .cta-content p         { font-size: 16px; margin-bottom: 24px; }

  /* FAQ */
  .faq-grid              { gap: 8px; margin-top: 24px; }
  .faq-question          { padding: 16px 20px; font-size: 14px; }
  .faq-answer            { padding: 0 20px 16px; font-size: 14px; }

  /* Contact */
  .contact-card          { padding: 20px 16px; margin-top: 20px; }
  .contact-item          { padding: 14px; gap: 12px; }
  .contact-icon          { width: 36px; height: 36px; min-width: 36px; }
  .contact-details h4    { font-size: 11px; }
  .contact-details a     { font-size: 14px; }
  .contact-message       { padding: 14px 16px; font-size: 14px; }

  /* Footer */
  .footer-content        { grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
  .footer-brand          { grid-column: 1 / -1; }
  .footer-brand p        { font-size: 13px; }
  .footer-links h4       { font-size: 13px; margin-bottom: 12px; }
  .footer-links ul li    { margin-bottom: 8px; }
  .footer-links ul li a  { font-size: 13px; }

  footer                 { padding: 32px 0 20px; }
}


/* ─── App screenshots carousel ──────────────────────────────────────────────
   Real captures from the running app, framed as devices.

   Built on scroll-snap rather than absolutely-positioned 3D slides. The first
   version used `position:absolute` + `preserve-3d` + a fixed-height track,
   which rendered inconsistently on mobile Safari. Scroll-snap is native,
   swipes with real momentum, needs no JS to be usable, and cannot overflow —
   the track is the scroll container, so a slide can never be wider than it. */
.screens-section {
  padding: 72px 0 80px;
  background:
    radial-gradient(1000px 420px at 50% -10%, rgba(252,76,2,0.10), transparent 70%),
    linear-gradient(180deg, rgba(135,206,235,0.06) 0%, transparent 60%);
  overflow-x: hidden;
}

.screens-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
}

.screens-sub {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.screens-carousel { position: relative; }

.screens-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  /* Centres the first and last slide instead of pinning them to the edge. */
  padding: 8px max(16px, calc(50% - 130px)) 4px;
  scrollbar-width: none;
}

.screens-track::-webkit-scrollbar { display: none; }

.screen-slide {
  flex: 0 0 auto;
  /* Never wider than the viewport allows — this is what makes an oversized
     phone impossible regardless of stylesheet or script state. */
  width: clamp(190px, 60vw, 240px);
  margin: 0;
  scroll-snap-align: center;
  opacity: 0.55;
  transform: scale(0.94);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.screen-slide.is-active { opacity: 1; transform: scale(1); }

/* Device frame */
.screen-phone {
  position: relative;
  border-radius: 38px;
  padding: 8px;
  background: linear-gradient(160deg, #3a3a3f 0%, #101013 55%, #26262b 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.14) inset,
    0 22px 50px rgba(0,0,0,0.26),
    0 6px 16px rgba(252,76,2,0.10);
}

.screen-phone img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  /* Matches the capture (645x1400) so the frame reserves the right space
     before the image loads. */
  aspect-ratio: 645 / 1400;
  border-radius: 30px;
  background: #fff;
}

.screen-island {
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 19px;
  border-radius: 999px;
  background: #0b0b0d;
  z-index: 2;
}

.screen-slide figcaption {
  text-align: center;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.screen-slide figcaption strong { font-size: 16px; font-weight: 700; }
.screen-slide figcaption span   { font-size: 13px; color: var(--text-secondary); }

/* Controls */
.screens-nav {
  position: absolute;
  top: 38%;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.94);
  color: #1a1a1e;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, background 0.2s ease;
}

.screens-nav:hover { transform: scale(1.08); background: #fff; }
.screens-nav--prev { left: 6px; }
.screens-nav--next { right: 6px; }

/* Touch devices scroll the track directly; arrows would just cover content. */
@media (hover: none) {
  .screens-nav { display: none; }
}

.screens-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.screens-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,0.18);
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}

.screens-dot.is-active { width: 26px; background: #fc4c02; }

[data-theme="dark"] .screens-nav {
  background: rgba(30,30,34,0.9);
  color: #f5f5f7;
  border-color: rgba(255,255,255,0.12);
}

[data-theme="dark"] .screens-dot { background: rgba(255,255,255,0.22); }

@media (max-width: 768px) {
  .screens-section { padding: 52px 0 60px; }
  .screens-title { font-size: 28px; }
  .screens-track { gap: 16px; padding: 8px max(16px, calc(50% - 110px)) 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .screens-track { scroll-behavior: auto; }
  .screen-slide { transition: none; }
}

/* ---------- Launch countdown ---------- */

.launch {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border-color);
  max-width: 34em;
}

.launch-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FC4C02;
}

.launch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FC4C02;
  flex: none;
  animation: launch-pulse 2.4s ease-in-out infinite;
}

@keyframes launch-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.82); }
}

.launch-clock {
  display: flex;
  gap: 10px;
}

.launch-unit {
  flex: 1 1 0;
  min-width: 0;
  max-width: 88px;
  padding: 12px 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-secondary);
  text-align: center;
}

.launch-unit b {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--text-primary);
  /* Tabular figures so the seconds do not shift the row's width on every
     tick — proportional digits make a 1-Hz counter visibly jitter. */
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
}

.launch-unit span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Carries the date for screen readers; the digits above are aria-hidden. */
.launch-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .launch-dot { animation: none; }
}

@media (max-width: 480px) {
  .launch-unit { padding: 10px 4px 8px; }
  .launch-unit b { font-size: 21px; }
}

/* ==========================================================================
   Header + hero polish — 2026-09-01
   ==========================================================================

   Written after the site was compared, unfavourably and fairly, to a generic
   AI-built landing page. The layout was never the problem. Six specific tells
   were, and they are all addressed below:

     1. A gradient-filled wordmark (#FC4C02 -> #87CEEB). Gradient text is the
        strongest template signal on the web right now, and those two hues have
        no relationship to one another — it reads as decorated, not decided.
     2. Logo mark AND logotype side by side, both saying "Court Crew".
     3. backdrop-filter: blur(20px) behind a 96%-opaque background, so the blur
        was invisible and the compositing cost was paid for nothing.
     4. An entrance animation on the header logo.
     5. transition: all, which animates properties that should never move.
     6. A permanent bottom border AND a shadow on scroll: two separators doing
        one job, which is what made the header feel heavy and "stuck".

   Appended rather than edited in place so the whole pass can be read, reviewed
   or reverted as one block.
   ========================================================================== */

/* --- Header ------------------------------------------------------------- */


/* No entrance animation on chrome. The header is not an event. */
.logo {
  animation: none;
  gap: 10px;
}

/* Single ink. Emphasis comes from weight, never from a gradient fill. */
.logo span,
.hero-text h1 .gradient {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
  color: inherit;
}

/* The brand orange, literal. There is no --brand token in :root, and defining
   one down here would leave it declared in a trailing block and referenced
   nowhere else. */
.hero-text h1 .gradient {
  color: #fc4c02;
}

/* --- Mobile: the mark carries the brand on its own ---------------------- */

@media (max-width: 768px) {
  .logo-text {
    display: none;
  }

}

/* --- Hero: fewer entrances, tighter type -------------------------------- */

.hero-text h1,
.hero-text p,
.hero-text .btn-primary,
.hero-app-preview {
  /* The staggered 0.2/0.4/0.6s cascade is the other half of the template
     feel: content assembling itself while you wait. One quiet fade for the
     whole block reads as composed rather than performed. */
  animation: none;
}

@media (prefers-reduced-motion: no-preference) {
  /* Direct children only, which no longer includes the watermark now that it
     lives inside the h1.

     That distinction was the bug: while the watermark WAS a direct child, this
     rule animated it, fadeInUp ends at opacity:1, and `both` makes the final
     keyframe stick. An animated value beats a normal declaration in the
     cascade, so `opacity: 0.045` never applied and the logotype painted solid
     black straight across the badge. No amount of specificity would have won
     that; moving it out of the selector's reach is the fix. */
  /* :not(.hero-logotype) is LOAD-BEARING. fadeInUp ends at opacity:1 and
     `both` makes it stick, and an animated value beats a normal declaration —
     so including the logotype here forces it to full opacity and it paints as
     solid gradient text. That shipped once already; do not simplify this
     selector. */
  .hero-text > *:not(.hero-logotype) {
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    letter-spacing: -1px;
    line-height: 1.1;
  }

  .hero-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
  }
}

/* Respect the system setting. Motion is a preference, not a flourish. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Header + hero, round two — 2026-09-01
   ==========================================================================
   Feedback after the first pass: the bar should be transparent rather than
   frosted; the hero never says "Court Crew" anywhere; the theme toggle is
   expensive for what it is; the hero reads claustrophobic on first open; and
   the shrinking logo is the right idea but too small to notice.
   ========================================================================== */


/* --- A logo worth watching shrink --------------------------------------- */


/* --- Hero breathing room ------------------------------------------------ */

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 40px;
    margin-bottom: 14px;
  }

  .hero-badge {
    margin-bottom: 14px;
  }

  .hero-text p {
    max-width: 32em;
  }
}

/* --- Theme toggle: a button, not a device -------------------------------
   Was a 64x32 pill with two gradients, two box-shadows, two emoji pseudo
   elements and `transition: all` on each — four composited layers and an
   emoji font lookup for something tapped once a session. A single glyph in
   currentColor does the same job for none of the cost. */

.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--border-color);
  box-shadow: none;
  transition: background-color 0.18s ease, border-color 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  padding: 0;
}

[data-theme='dark'] .theme-toggle {
  background: transparent;
  box-shadow: none;
}

.theme-toggle::before,
.theme-toggle::after {
  content: none;
}

.theme-toggle:hover {
  background: var(--bg-secondary);
  border-color: var(--text-tertiary);
  transform: none;
  box-shadow: none;
}


/* ==========================================================================
   Header + hero, round three — 2026-09-01
   ==========================================================================
   The small uppercase wordmark read as an orphan label sitting above the
   badge, and the emoji toggle read as childish. Both replaced.
   ========================================================================== */

/* --- Logotype under the headline --------------------------------------- */

/* Sits BELOW "Yours." as its own line — a signature under the sentence rather
   than a wash behind it. It is a normal block element now, not absolutely
   positioned: anchoring it to a corner meant guessing where the last line of a
   headline ended, which held in English and drifted the moment German or
   Spanish wrapped differently. */
.hero-logotype {
  display: block;
  margin: -2px 0 26px;
  font-size: clamp(40px, 12vw, 68px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(115deg, #fc4c02 0%, #ff8a3d 45%, #87ceeb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.34;
  pointer-events: none;
  user-select: none;
}

[data-theme='dark'] .hero-logotype {
  opacity: 0.4;
}

@media (max-width: 768px) {
  .hero-logotype {
    font-size: clamp(36px, 13vw, 56px);
    margin-bottom: 20px;
  }
}

/* --- Secondary hero link ------------------------------------------------ */

/* Was an inline `margin-left: 16px` with no colour, so it fell back to the
   browser's visited-link purple and sat hard against the left edge once the
   buttons stacked on mobile. */
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.hero-cta-secondary:visited {
  color: var(--text-secondary);
}

.hero-cta-secondary::after {
  content: '\2192';
  transition: transform 0.18s ease;
}

.hero-cta-secondary:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-tertiary);
}

.hero-cta-secondary:hover::after {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  /* Stacked, so it centres under the primary button instead of hanging off
     the left edge on its own line. */
  .hero-text .btn-primary {
    display: block;
    text-align: center;
  }

  .hero-cta-secondary {
    display: flex;
    justify-content: center;
    margin: 18px 0 0;
  }
}

/* --- Theme toggle: line icons, not emoji -------------------------------- */

.theme-toggle .icon-moon,
.theme-toggle .icon-sun {
  display: block;
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

/* Show the state you would switch TO, which is the convention people already
   read: a moon in light mode, a sun in dark. */
.theme-toggle .icon-sun {
  display: none;
}

[data-theme='dark'] .theme-toggle .icon-moon {
  display: none;
}

[data-theme='dark'] .theme-toggle .icon-sun {
  display: block;
}

.theme-toggle:hover .icon-moon,
.theme-toggle:hover .icon-sun {
  color: var(--text-primary);
}

/* The origin line under the closing CTA. Quieter than the paragraph above it:
   it is credibility, not argument, and it should read as an aside rather than
   another claim competing for attention. */
.cta-origin {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  max-width: 44em;
  margin-left: auto;
  margin-right: auto;
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.72;
}

/* ==========================================================================
   Header, consolidated — 2026-09-01
   ==========================================================================

   Everything about the header is here, and nowhere else.

   It had accumulated four generations of rules in three places: the original
   frosted bar, a polish pass, a transparency pass, and a mobile-sizing block.
   They did not conflict cleanly — they conflicted by ORDER, so the winning
   value was whichever declaration happened to sit last in the file. That is
   how a hairline survived two separate commits that claimed to remove it:
   `header.scrolled { border-bottom-color: var(--border-color) }` from the
   second generation was still in the file, and reading any one block gave no
   hint that the others existed.

   The rule for changing this: edit HERE. If you find yourself adding a header
   override somewhere else in the file, that is the bug repeating.
   ========================================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;

  /* Transparent, always. The page shows through and the bar is only a place
     for the logo and the menu to live. No background, so no blur — with
     nothing behind it to frost, backdrop-filter was compositing cost for an
     effect nobody could see. */
  background: transparent;

  /* No border and no shadow, in either state. A separator only makes sense as
     the edge of a panel; with no panel it is a line floating across the page
     attached to nothing. */
  border-bottom: none;
  box-shadow: none;

  /* Named properties. `transition: all` animated things that should never
     move, including layout. */
  transition: padding 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme='dark'] header {
  background: transparent;
}

header.scrolled {
  padding: 9px 0;
}

/* The logo is the only thing that reacts to scroll — big enough at rest to be
   the brand, small enough scrolled to stay out of the way. That shrink is the
   entire "premium" cue here; everything else holds still. */
.logo {
  animation: none;
  gap: 10px;
}

.logo-image {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled .logo-image {
  height: 28px;
}

/* Single ink. A gradient-filled wordmark beside a gradient-filled logo was the
   loudest "template" signal on the page. */
.logo span {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
  color: inherit;
}

/* Mobile: the mark carries the brand alone. The logotype beside it said
   "Court Crew" a second time in the same 40px of screen. */
@media (max-width: 768px) {
  .logo-text {
    display: none;
  }
}

/* --- Desktop: the bar needs a surface --------------------------------------

   Transparency works on a phone because the bar holds two things — a mark and
   a burger — both of which read against anything. From tablet up it also
   carries the nav links and Sign In, and those sit in the middle of the
   column where content scrolls straight under them. Legibility beats the
   effect there.

   Kept in THIS block on purpose: a media query for the header living further
   up the file is precisely how four generations of overrides accumulated and
   how the hairline survived two attempted fixes. */

@media (min-width: 769px) {
  header {
    background: rgba(255, 255, 255, 0.82);
  }

  [data-theme='dark'] header {
    background: rgba(20, 20, 20, 0.82);
  }

  /* The blur only earns its cost once there is something behind it to frost;
     at the top of the page it would be compositing an untouched background. */
  header.scrolled {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
  }

  [data-theme='dark'] header.scrolled {
    background: rgba(20, 20, 20, 0.72);
  }
}
