/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0A0A0A;
  --surface: #18181B;
  --border: #27272A;
  --border-hover: #3F3F46;
  --lime: #C4F82A;
  --lime-glow: rgba(196,248,42,0.3);
  --lime-subtle: rgba(196,248,42,0.1);
  --white: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-tertiary: #8B8B96;
  --text-muted: #71717A;
  --purple: #7C3AED;
  --blue: #2563EB;
  --green: #22C55E;
  --red: #DC2626;
  --orange: #F97316;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --container: 1200px;
  --px: 80px;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  overflow-x: clip;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); cursor: pointer; }
input, textarea, select { font-family: var(--font-body); }

.container {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--px);
  box-sizing: border-box;
}

/* ===== LOADER ===== */
.loader-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease forwards;
}
.loader-bar-track {
  width: 200px; height: 3px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease 0.3s forwards;
}
.loader-bar {
  height: 100%; width: 0%;
  background: var(--lime);
  border-radius: 4px;
  animation: loadBar 1.2s ease 0.5s forwards;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loadBar {
  0% { width: 0; }
  60% { width: 80%; }
  100% { width: 100%; }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left { opacity: 0; transform: translateX(-50px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
  opacity: 1; transform: none;
}
.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.5s; }

/* ===== HEADER ===== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px var(--px);
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
header.scrolled { background: rgba(10,10,10,0.97); }

.logo {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800;
  transition: color 0.3s ease;
}
.logo:hover { color: var(--lime); }

.nav-links {
  display: flex; align-items: center; gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 15px; font-weight: 500;
  color: var(--text-secondary);
  position: relative; transition: color 0.3s ease;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--lime);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { width: 100%; }

.nav-links a.btn-primary,
.nav-links a.btn-primary:hover,
.nav-links a.btn-primary:focus { color: var(--bg); }
.nav-links a.btn-primary::after { display: none; }

.mobile-toggle {
  display: none;
  background: none; border: none; padding: 8px;
  cursor: pointer; position: relative; z-index: 110;
}
.mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all 0.3s ease;
}
.mobile-toggle span + span { margin-top: 6px; }
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 6px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -6px); }

.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 105;
  background: rgba(10,10,10,0.98);
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav-close {
  position: absolute; top: 20px; right: 20px;
  width: 48px; height: 48px; border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--white);
  display: none; align-items: center; justify-content: center;
  cursor: pointer; z-index: 106;
  font-size: 28px;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.mobile-nav-close:hover,
.mobile-nav-close:focus-visible {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(196,248,42,0.08);
  outline: none;
}
.mobile-nav-close .ph-duotone { --ph-duotone-opacity: 0.35; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}
.mobile-nav a:hover { color: var(--lime); }
.mobile-nav a.active { color: var(--lime); font-weight: 600; }
.mobile-nav a.active { color: var(--lime); font-weight: 600; }
.mobile-nav a.active { color: var(--lime); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600;
  border: none; border-radius: 10px; cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.btn:active { transform: translateY(0) scale(0.98) !important; }

.btn-primary {
  background: var(--lime); color: var(--bg);
  padding: 14px 28px; font-size: 15px;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 30px var(--lime-glow);
  background: #d2ff45;
}
.btn-primary:active { background: #b0e020; }

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }

.btn-secondary {
  background: var(--surface); color: var(--white);
  border: 1px solid var(--border);
  padding: 14px 28px; font-size: 15px;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: #1f1f23;
}

.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid var(--border);
  padding: 14px 28px; font-size: 15px;
}
.btn-outline:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(196,248,42,0.06);
  transform: translateY(-2px);
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--lime);
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--lime);
  animation: dotPulse 2s ease infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196,248,42,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(196,248,42,0); }
}

/* ===== SECTION HELPERS ===== */
.section { padding: 100px 0; }
.section-dark { background: var(--surface); }
.section-border-top { border-top: 1px solid var(--border); }
.section-border-bottom { border-bottom: 1px solid var(--border); }

.section-header {
  text-align: center;
  max-width: 700px; margin: 0 auto 60px;
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.section-tag {
  font-size: 13px; font-weight: 600;
  color: var(--lime); letter-spacing: 2px;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 700;
  line-height: 1.1;
}
.section-title .muted { color: var(--text-tertiary); }
.section-title .lime { color: var(--lime); }

/* Large CTA headlines — fluid type; :not() in media queries so these aren’t overridden */
.section-title.section-title--cta {
  font-weight: 800;
  line-height: 1.08;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  font-size: clamp(1.45rem, 5.2vw + 0.4rem, 3.25rem);
  overflow-wrap: anywhere;
  padding: 0 2px;
}
.section-title.section-title--mid {
  font-size: clamp(1.35rem, 4vw + 0.45rem, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.section-sub {
  font-size: 17px; color: var(--text-secondary);
  line-height: 1.6; max-width: 600px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 140px var(--px) 80px;
  gap: 36px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(196,248,42,0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: heroPulse 6s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: 72px; font-weight: 800;
  line-height: 1.05; letter-spacing: -2px;
}
.hero-sub {
  max-width: 700px; font-size: 20px;
  color: var(--text-secondary); line-height: 1.6;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

.page-hero {
  padding: 160px var(--px) 80px;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 20px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(196,248,42,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 800;
  line-height: 1.1; letter-spacing: -1px;
}
.page-hero p {
  max-width: 600px; font-size: 18px;
  color: var(--text-secondary); line-height: 1.6;
}

/* ===== STATS ===== */
.stats-row {
  display: flex; gap: 48px; align-items: center;
  justify-content: center; flex-wrap: wrap;
  padding-top: 40px;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 800;
}
.stat-label { font-size: 14px; color: var(--text-tertiary); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ===== CARDS ===== */
.cards-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  display: flex; flex-direction: column; gap: 20px;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0; transition: opacity 0.4s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.card:hover::before { opacity: 1; }

.ph-duotone { --ph-duotone-opacity: 0.2; }

.card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  position: relative;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
}
.card:hover .card-icon { transform: scale(1.1) rotate(-5deg); }
.card-icon.purple {
  color: #a78bfa;
  box-shadow: 0 0 24px rgba(124,58,237,0.18), inset 0 0 24px rgba(124,58,237,0.06);
  border-color: rgba(124,58,237,0.15);
}
.card-icon.green {
  color: var(--lime);
  box-shadow: 0 0 24px rgba(196,248,42,0.14), inset 0 0 24px rgba(196,248,42,0.05);
  border-color: rgba(196,248,42,0.12);
}
.card-icon.orange {
  color: #fb923c;
  box-shadow: 0 0 24px rgba(249,115,22,0.18), inset 0 0 24px rgba(249,115,22,0.06);
  border-color: rgba(249,115,22,0.15);
}
.card-icon.blue {
  color: #60a5fa;
  box-shadow: 0 0 24px rgba(37,99,235,0.18), inset 0 0 24px rgba(37,99,235,0.06);
  border-color: rgba(37,99,235,0.15);
}

.card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* ===== APP CARDS ===== */
.app-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.app-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.app-card.featured { border-color: rgba(196,248,42,0.25); }
.app-card.featured:hover { border-color: rgba(196,248,42,0.5); box-shadow: 0 20px 60px rgba(196,248,42,0.08); }

.app-card-top {
  height: 120px; position: relative;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 36px;
}
.app-card-top .app-card-preview {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.app-card-badge {
  position: absolute; top: 20px; left: 24px;
  z-index: 2;
  padding: 6px 14px; border-radius: 100px;
  background: var(--lime); font-size: 11px;
  font-weight: 700; color: var(--bg); letter-spacing: 0.5px;
}
.app-card-icon {
  opacity: 0.6;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.app-card:hover .app-card-icon { transform: scale(1.15) rotate(5deg); opacity: 1; }
.app-card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 12px; }
.app-card-body h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.app-card-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.app-card-price { font-size: 15px; font-weight: 600; color: var(--lime); }
.app-card-features { list-style: none; display: flex; flex-direction: column; gap: 8px; padding-top: 8px; }
.app-card-features li {
  font-size: 13px; color: var(--text-secondary);
  display: flex; align-items: center; gap: 8px;
}
.app-card-features li svg { color: var(--lime); flex-shrink: 0; }
.app-card-features li .ph-duotone { color: var(--lime); flex-shrink: 0; font-size: 18px; }

.btn .ph-duotone { font-size: 18px; }
.notify-input .ph-duotone { color: var(--text-muted); flex-shrink: 0; font-size: 18px; }

/* ===== BRANDS ===== */
.brands-row {
  display: flex; gap: 24px;
  justify-content: center; flex-wrap: wrap;
}
.brand-pill {
  padding: 16px 28px; border-radius: 12px;
  background: var(--border);
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  color: var(--text-secondary); letter-spacing: 1px;
  transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  cursor: pointer; border: 1px solid transparent;
}
.brand-pill:hover {
  transform: translateY(-4px);
  color: var(--white); background: #303033;
}
.brand-pill.active {
  color: var(--lime); border-color: var(--lime);
  background: rgba(196,248,42,0.08);
}

/* ===== TESTIMONIAL ===== */
.testimonial {
  max-width: 900px; margin: 0 auto;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px 60px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.testimonial:hover { border-color: var(--border-hover); box-shadow: 0 0 40px rgba(196,248,42,0.04); }
.quote-mark {
  font-family: var(--font-display);
  font-size: 64px; font-weight: 800;
  color: var(--lime); line-height: 0.5;
}
.testimonial blockquote { font-size: 18px; font-style: italic; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.testimonial-author strong { font-weight: 600; }
.testimonial-author span { color: var(--text-tertiary); }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--border); flex-shrink: 0;
  object-fit: cover;
}
.testimonial-meta { display: flex; flex-direction: column; gap: 2px; }
.testimonial-meta strong { font-size: 14px; }
.testimonial-meta span { font-size: 13px; color: var(--text-secondary); }

.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: var(--container); margin: 0 auto;
}
.testimonial-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}
.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.testimonial-card .stars { color: var(--lime); font-size: 14px; letter-spacing: 2px; }
.testimonial-card blockquote {
  font-size: 15px; font-style: italic;
  color: #c4c4cc; line-height: 1.6; flex: 1;
}
.testimonial-card .testimonial-author { margin-top: auto; }

/* ===== TESTIMONIAL CAROUSEL ===== */
.testimonials-carousel {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
}
.carousel-track {
  display: flex; gap: 24px;
  flex: 1;
  min-width: 0;
  overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none; scrollbar-width: none;
  padding: 8px 0;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track .testimonial-card {
  min-width: calc(33.333% - 16px); scroll-snap-align: start;
  flex-shrink: 0;
}
.carousel-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--white); font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  z-index: 2;
}
.carousel-arrow:hover {
  background: var(--border); border-color: var(--lime);
  color: var(--lime); transform: scale(1.08);
}
.carousel-arrow:disabled { opacity: 0.3; cursor: default; transform: none; }
.carousel-dots {
  display: flex; justify-content: center; gap: 10px;
  margin-top: 28px;
}
.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}
.carousel-dot.active { background: var(--lime); transform: scale(1.2); }
.carousel-dot:hover { background: var(--text-secondary); }

@media (max-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-track .testimonial-card { min-width: calc(50% - 12px); }
}
@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .carousel-track .testimonial-card { min-width: 85%; }
  .carousel-arrow { width: 40px; height: 40px; font-size: 18px; }
  .testimonials-carousel { gap: 8px; }
}

/* ===== FORMS ===== */
.form-group {
  display: flex; flex-direction: column; gap: 8px;
}
.form-label {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
}
.form-input, .form-textarea, .form-select {
  padding: 14px 18px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--white); font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-subtle);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 140px; }
.form-select option { background: var(--surface); color: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-error { font-size: 13px; color: var(--red); display: none; }
.form-group.error .form-input,
.form-group.error .form-textarea,
.form-group.error .form-select { border-color: var(--red); }
.form-group.error .form-error { display: block; }

.inline-form {
  display: flex; gap: 12px; align-items: center;
}
.inline-form .form-input { flex: 1; }

.notify-input {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.notify-input:focus-within { border-color: var(--lime); box-shadow: 0 0 0 3px var(--lime-subtle); }
.notify-input svg { color: var(--text-muted); flex-shrink: 0; }
.notify-input input {
  background: none; border: none; outline: none;
  color: var(--white); font-size: 14px; width: 100%;
  font-family: var(--font-body);
}
.notify-input input::placeholder { color: var(--text-muted); }
.notify-input--bounded {
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
}

/* success toast */
.toast {
  position: fixed; bottom: 32px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 16px 32px; border-radius: 12px;
  background: var(--lime); color: var(--bg);
  font-weight: 600; font-size: 15px;
  box-shadow: 0 8px 40px var(--lime-glow);
  z-index: 200;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
  display: flex; align-items: center; gap: 8px;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===== CASE STUDY CARDS ===== */
.case-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
}
.case-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
/* Case study: desktop + phone preview side by side */
.case-card-media {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  min-height: 200px;
  height: 220px;
  padding: 12px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.case-card-pane--desktop {
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.06);
  background: #0a0a0a;
}
.case-card-pane--desktop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.case-card-pane--mobile {
  flex-shrink: 0;
  width: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-card-phone {
  height: 100%;
  max-height: 196px;
  aspect-ratio: 9 / 19.5;
  width: auto;
  max-width: 100%;
  background: #050508;
  border-radius: 18px;
  border: 3px solid #2a2a32;
  box-shadow:
    0 10px 28px rgba(0,0,0,0.5),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
  position: relative;
}
.case-card-phone img.case-card-mobile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Narrow crop so mobile reads as a different viewport than desktop */
  object-position: 38% 12%;
  display: block;
}
.case-card-media-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, var(--surface), transparent 50%);
  z-index: 2;
}
@media (max-width: 480px) {
  .case-card-media { height: 200px; gap: 8px; padding: 10px; }
  .case-card-pane--mobile { width: 78px; }
  .case-card-phone { max-height: 180px; border-radius: 14px; border-width: 2px; }
}
.case-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.case-card-body h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.case-card-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.case-card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  padding: 4px 12px; border-radius: 6px;
  background: var(--border); font-size: 12px;
  font-weight: 500; color: var(--text-secondary);
}
.case-card-stats { display: flex; gap: 24px; padding-top: 8px; }
.case-stat { font-size: 13px; color: var(--text-tertiary); }
.case-stat strong { color: var(--lime); font-weight: 700; }

/* ===== TEAM ===== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  transition: transform 0.4s ease, border-color 0.3s ease;
}
.team-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }
.team-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  color: var(--text-muted);
}
img.team-avatar {
  display: block;
  object-fit: cover;
  flex-shrink: 0;
}
.team-card h4 { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.team-card .role { font-size: 14px; color: var(--lime); font-weight: 500; }
.team-card p { font-size: 13px; color: var(--text-tertiary); line-height: 1.5; }

/* ===== TIMELINE ===== */
.timeline { position: relative; max-width: 700px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item {
  position: relative; padding-left: 56px; padding-bottom: 48px;
}
.timeline-dot {
  position: absolute; left: 12px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--lime); border: 3px solid var(--bg);
}
.timeline-item h4 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.timeline-item .timeline-date { font-size: 13px; color: var(--lime); font-weight: 500; margin-bottom: 8px; }
.timeline-item p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ===== FOOTER ===== */
footer {
  padding: 48px var(--px);
  border-top: 1px solid var(--border);
}
.footer-top {
  display: flex; justify-content: space-between;
  max-width: var(--container); margin: 0 auto;
}
.footer-brand .logo { font-size: 24px; display: block; margin-bottom: 12px; }
.footer-tagline { font-size: 14px; color: var(--text-tertiary); line-height: 1.5; }
.footer-col h4 {
  font-size: 13px; font-weight: 600;
  color: var(--text-secondary); letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px;
  color: var(--text-tertiary); margin-bottom: 10px;
  transition: color 0.3s ease, transform 0.3s ease;
}
.footer-col a:hover { color: var(--white); transform: translateX(4px); }
.footer-divider {
  width: 100%; height: 1px;
  background: var(--border);
  margin: 40px auto; max-width: var(--container);
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-muted);
  max-width: var(--container); margin: 0 auto;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); transition: color 0.3s ease; }
.footer-links a:hover { color: var(--text-secondary); }

/* ===== PARTICLES & GLOW ===== */
.particles {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.particle {
  position: absolute; width: 2px; height: 2px;
  background: var(--lime); border-radius: 50%;
  opacity: 0; animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(100vh) scale(0); }
  10% { opacity: 0.3; } 90% { opacity: 0.3; }
  100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}
.cursor-glow {
  position: fixed; width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,248,42,0.03) 0%, transparent 70%);
  pointer-events: none; z-index: 1;
  transform: translate(-50%, -50%);
  transition: left 0.15s ease-out, top 0.15s ease-out;
}

/* ===== MAP ===== */
.map-wrapper { border-radius: 0; overflow: hidden; max-width: 100%; }
#map { max-width: 100%; }
.leaflet-container { max-width: 100% !important; }
.bespop-marker { position: relative; }
.map-dot {
  position: absolute; top: 50%; left: 50%;
  width: 16px; height: 16px;
  background: #C4F82A; border-radius: 50%;
  border: 3px solid #0A0A0A;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(196,248,42,0.6);
  z-index: 2;
}
.map-ping {
  position: absolute; top: 50%; left: 50%;
  width: 16px; height: 16px;
  background: rgba(196,248,42,0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: mapPulse 2s ease-out infinite;
  z-index: 1;
}
@keyframes mapPulse {
  0% { width: 16px; height: 16px; opacity: 0.6; }
  100% { width: 60px; height: 60px; opacity: 0; }
}
.leaflet-popup-content-wrapper {
  background: #18181B; color: #fff;
  border: 1px solid #27272A; border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.leaflet-popup-tip { background: #18181B; }
.leaflet-popup-close-button { color: #A1A1AA !important; }
.leaflet-popup-close-button:hover { color: #C4F82A !important; }
.leaflet-control-zoom a {
  background: #18181B !important; color: #A1A1AA !important;
  border-color: #27272A !important;
}
.leaflet-control-zoom a:hover { color: #C4F82A !important; background: #27272A !important; }
.leaflet-control-attribution { background: rgba(10,10,10,0.8) !important; color: #52525B !important; }
.leaflet-control-attribution a { color: #71717A !important; }

/* ===== LEGAL PAGES ===== */
.legal-content { max-width: 800px; margin: 0 auto; padding: 0 var(--px) 80px; }
.legal-content h2 {
  font-family: var(--font-display); font-size: 24px; font-weight: 700;
  margin: 48px 0 16px;
}
.legal-content p {
  font-size: 15px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 16px;
}
.legal-content ul {
  padding-left: 24px; margin-bottom: 16px;
}
.legal-content li {
  font-size: 15px; color: var(--text-secondary);
  line-height: 1.7; margin-bottom: 8px;
}

/* ===== TWO COLUMN LAYOUT ===== */
.two-col {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: start;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  :root { --px: 48px; }
}

@media (max-width: 1024px) {
  .hero h1 { font-size: 56px; }
  .page-hero h1 { font-size: 44px; }
  .section-title:not(.section-title--cta):not(.section-title--mid) { font-size: 40px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { flex-wrap: wrap; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --px: 24px; }

  .nav-links { display: none; }
  .mobile-toggle { display: flex; flex-direction: column; }
  .mobile-nav { display: flex; }
  .mobile-nav-close { display: flex; }

  .hero { padding: 120px var(--px) 60px; gap: 28px; min-height: auto; }
  .hero h1 { font-size: 40px; letter-spacing: -1px; overflow-wrap: anywhere; }
  .hero-sub { font-size: 17px; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .page-hero { padding: 120px var(--px) 60px; }
  .page-hero h1 { font-size: 36px; overflow-wrap: anywhere; }
  .page-hero p { font-size: 16px; }

  .section { padding: 60px 0; }
  .section-header { margin-bottom: 40px; }
  .section-title:not(.section-title--cta):not(.section-title--mid) { font-size: 32px; overflow-wrap: anywhere; }

  .hero-ctas .btn-secondary { overflow-wrap: anywhere; word-break: break-word; }
  .section-sub { font-size: 15px; }

  .stats-row { gap: 24px; }
  .stat-num { font-size: 28px; }
  .stat-divider { display: none; }

  .cards-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }

  .brands-row { gap: 12px; }
  .brand-pill { padding: 12px 20px; font-size: 13px; }

  .testimonial { padding: 28px 24px; }
  .testimonial blockquote { font-size: 16px; }

  .form-row { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
  .inline-form .btn { width: 100%; justify-content: center; }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { justify-content: center; }

  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .page-hero h1 { font-size: 28px; }
  .section-title:not(.section-title--cta):not(.section-title--mid) { font-size: 28px; }
  .stat { min-width: 100px; }

  .hero-ctas .btn-secondary { font-size: 14px; padding-left: 18px; padding-right: 18px; }
}

/* Full-width sections: keep content from forcing horizontal scroll */
.section > .container {
  max-width: min(var(--container), 100%);
}
