/* ============================================
   BALLIE - Marketing Website Styles
   Design System: Mobile-First Responsive
   Colors: Deep Teal + Gold accent
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #1A5F7A;
  --primary-light: #2A8FB8;
  --primary-dark: #0F3D4F;
  --secondary: #F8B500;
  --success: #4CAF50;
  --success-dark: #388E3C;
  --bg-dark: #0a1628;
  --bg-dark-alt: #0f1f35;
  --bg-light: #f8fafe;
  --bg-white: #ffffff;
  --text-dark: #1a1a2e;
  --text-muted: #5a6478;
  --text-light: #ffffff;
  --text-light-muted: rgba(255,255,255,0.7);
  --border-light: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
  --nav-height: 72px;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  max-width: 65ch;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-light);
}

.section--light {
  background: var(--bg-light);
}

.section--white {
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header p {
  margin: 1rem auto 0;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.section--dark .section-header p {
  color: var(--text-light-muted);
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary-light);
  margin-bottom: 0.75rem;
}

.section--dark .section-label {
  color: var(--secondary);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--success);
  color: var(--text-light);
}

.btn--primary:hover {
  background: var(--success-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
}

.btn--secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn--secondary:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.1);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--text-light);
}

.btn--small {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn--store {
  background: #000;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  gap: 0.75rem;
}

.btn--store:hover {
  background: #222;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--store svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.btn--store .store-info {
  text-align: left;
  line-height: 1.2;
}

.btn--store .store-label {
  font-size: 0.6875rem;
  font-weight: 400;
  opacity: 0.8;
  display: block;
}

.btn--store .store-name {
  font-size: 1rem;
  font-weight: 600;
  display: block;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: all var(--transition);
}

.nav--transparent {
  background: transparent;
}

.nav--solid {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

/* Disable backdrop-filter when mobile menu is open to prevent
   position:fixed containment bug (backdrop-filter creates a new
   containing block, breaking .nav__mobile full-screen positioning) */
.nav--menu-open.nav--solid {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--bg-white);
}

/* When mobile menu is open on transparent nav (top of page),
   force solid white background and dark logo/text */
.nav--menu-open.nav--transparent {
  background: var(--bg-white);
}

.nav--menu-open .nav__logo-light {
  display: none !important;
}

.nav--menu-open .nav__logo-dark {
  display: block !important;
}

.nav--menu-open .nav__logo {
  color: var(--text-dark) !important;
}

.nav--menu-open .nav__toggle {
  color: var(--text-dark) !important;
}

.nav--menu-open .nav__lang-btn {
  border-color: var(--border-light);
  color: var(--text-dark);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  position: relative;
  z-index: 1001;
}

.nav__logo img {
  height: 36px;
  width: auto;
}

.nav__logo-dark {
  display: block;
}

.nav__logo-light {
  display: none;
}

.nav--transparent .nav__logo-dark {
  display: none;
}

.nav--transparent .nav__logo-light {
  display: block;
}

.nav--transparent .nav__logo {
  color: var(--text-light);
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: color var(--transition);
}

.nav__link:hover {
  color: var(--primary);
}

.nav--transparent .nav__link {
  color: var(--text-light);
}

.nav--transparent .nav__link:hover {
  color: var(--secondary);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1001;
}

.nav__lang {
  position: relative;
}

.nav__lang-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--text-light);
  transition: all var(--transition);
}

.nav--solid .nav__lang-btn {
  border-color: var(--border-light);
  color: var(--text-dark);
}

.nav__lang-btn:hover {
  background: rgba(255,255,255,0.1);
}

.nav--solid .nav__lang-btn:hover {
  background: var(--bg-light);
}

.nav__lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.375rem;
  min-width: 140px;
  z-index: 1002;
}

.nav__lang-dropdown.is-open {
  display: block;
}

.nav__lang-option {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  text-align: left;
  transition: background var(--transition);
}

.nav__lang-option:hover {
  background: var(--bg-light);
}

.nav__lang-option.is-active {
  color: var(--primary);
  font-weight: 600;
}

.nav__cta {
  display: none;
}

.nav__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-dark);
}

.nav--transparent .nav__toggle {
  color: var(--text-light);
}

.nav__toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-white);
  z-index: 1000;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 2rem;
  flex-direction: column;
  gap: 1rem;
}

.nav__mobile.is-open {
  display: flex;
}

.nav__mobile-link {
  font-size: 1.25rem;
  font-weight: 600;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-dark);
}

.nav__mobile-cta {
  margin-top: 1rem;
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(42, 143, 184, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
}

.hero__content {
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(248, 181, 0, 0.15);
  border: 1px solid rgba(248, 181, 0, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--secondary);
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-light-muted);
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn-group {
  justify-content: center;
}

.hero__image {
  display: flex;
  justify-content: center;
}

.hero__phone {
  width: 260px;
  max-width: 100%;
  border-radius: 2rem;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

/* --- PAIN POINTS SECTION --- */
.pain-points {
  background: var(--bg-white);
}

.pain-grid {
  display: grid;
  gap: 1.5rem;
}

.pain-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border-left: 4px solid #e53e3e;
}

.pain-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229, 62, 62, 0.1);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
}

.pain-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.375rem;
  color: var(--text-dark);
}

.pain-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- FEATURES SECTION --- */

/* Unique feature (full-width showcase) */
.feature-showcase {
  padding: 4rem 0;
}

.feature-showcase:nth-child(even) {
  background: var(--bg-dark);
  color: var(--text-light);
}

.feature-showcase:nth-child(odd) {
  background: var(--bg-dark-alt);
  color: var(--text-light);
}

.feature-showcase__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.feature-showcase__content {
  text-align: center;
}

.feature-showcase__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  background: rgba(248, 181, 0, 0.15);
  border: 1px solid rgba(248, 181, 0, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.feature-showcase h2 {
  margin-bottom: 1rem;
}

.feature-showcase__desc {
  font-size: 1.0625rem;
  color: var(--text-light-muted);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.feature-showcase__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.feature-showcase__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  color: var(--text-light-muted);
}

.feature-showcase__tag svg {
  width: 16px;
  height: 16px;
  color: var(--success);
}

.feature-showcase__image {
  display: flex;
  justify-content: center;
}

.feature-showcase__phone {
  width: 240px;
  max-width: 100%;
  border-radius: 1.75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Standard feature (alternating left/right) */
.feature-row {
  padding: 4rem 0;
}

.feature-row:nth-child(even):not(.section--dark) {
  background: var(--bg-light);
}

.feature-row__inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.feature-row__content {
  text-align: center;
}

.feature-row h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.feature-row__desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.section--dark .feature-row__desc {
  color: var(--text-light-muted);
}

.feature-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--bg-light);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.section--dark .feature-tag {
  background: rgba(255,255,255,0.08);
  color: var(--text-light-muted);
}

.feature-tag svg {
  width: 14px;
  height: 14px;
  color: var(--success);
}

.feature-row__image {
  display: flex;
  justify-content: center;
}

.feature-row__phone {
  width: 220px;
  max-width: 100%;
  border-radius: 1.5rem;
  box-shadow: var(--shadow-xl);
}

/* Compact feature cards */
.feature-cards {
  display: grid;
  gap: 1.5rem;
}

.feature-card {
  padding: 1.75rem;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.section--dark .feature-card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.section--dark .feature-card p {
  color: var(--text-light-muted);
}

/* --- PHONE DEVICE FRAME --- */
.phone-frame {
  display: inline-block;
  background: #1a1a1a;
  border-radius: 2.5rem;
  padding: 8px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08);
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2rem;
}

/* Override individual phone styles when inside frame */
.phone-frame .hero__phone,
.phone-frame .feature-showcase__phone,
.phone-frame .feature-row__phone {
  border-radius: 2rem;
  box-shadow: none;
  width: 100%;
  max-width: none;
}

/* --- SCREENSHOT SHOWCASE (App-Store Style Cards) --- */
.screenshot-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1.25rem 0;
  border-radius: 1.5rem;
  position: relative;
  overflow: hidden;
  max-width: 300px;
  margin: 0 auto;
}

.screenshot-showcase__caption {
  font-size: clamp(0.9375rem, 2vw, 1.125rem);
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

/* Phone overflows bottom of card for depth effect */
.screenshot-showcase .phone-frame {
  position: relative;
  z-index: 1;
  transform: translateY(0.75rem);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.3);
}

/* Gradient variants — more vibrant brand palette */
.screenshot-showcase--1 {
  background: linear-gradient(170deg, #2a8fb8 0%, #0a1628 100%);
}

.screenshot-showcase--2 {
  background: linear-gradient(170deg, #1A5F7A 0%, #1a1a4a 100%);
}

.screenshot-showcase--3 {
  background: linear-gradient(170deg, #0f3d4f 0%, #2a8fb8 100%);
}

.screenshot-showcase--4 {
  background: linear-gradient(170deg, #0a1628 0%, #1e6f8e 100%);
}

/* --- HERO PHONE 3D PERSPECTIVE --- */
.hero__image {
  perspective: 1200px;
}

.hero__image .phone-frame {
  width: 260px;
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.hero__image .phone-frame:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

/* --- HOW IT WORKS --- */
.steps-grid {
  display: grid;
  gap: 2rem;
  counter-reset: step;
}

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

.step__number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--text-light);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 300px;
  margin: 0 auto;
}

/* --- STATS / SOCIAL PROOF --- */
.stats-grid {
  display: grid;
  gap: 1.5rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
}

.stat__value {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.9375rem;
  color: var(--text-light-muted);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light-muted);
}

.trust-badge svg {
  width: 20px;
  height: 20px;
  color: var(--success);
}

/* --- SOLUTION CARDS (Pain → Fix) --- */
.solutions-grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.solution-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition);
}

.solution-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.solution-card__pain {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.375rem;
}

.solution-card__fix {
  font-size: 0.9375rem;
  color: var(--text-light-muted);
  line-height: 1.5;
}

/* --- ORIGIN STORY --- */
.origin-story__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.origin-story__quote {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.8;
  color: var(--text-muted);
  font-style: italic;
  margin: 1.5rem 0 1rem;
  border: none;
  padding: 0;
}

.section--light .origin-story__quote {
  color: var(--text-dark);
}

.origin-story__team {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
}

/* --- DOWNLOAD CTA --- */
.download-cta {
  text-align: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  position: relative;
  overflow: hidden;
}

.download-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(248, 181, 0, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.download-cta h2 {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.download-cta p {
  color: var(--text-light-muted);
  font-size: 1.125rem;
  margin: 0 auto 2rem;
}

.download-cta .btn-group {
  justify-content: center;
}

/* --- FAQ SECTION --- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item.is-open {
  border-color: var(--primary-light);
  box-shadow: 0 2px 8px rgba(26, 95, 122, 0.1);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.125rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--text-muted);
}

.faq-item.is-open .faq-question svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer__inner {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- FOOTER --- */
.footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer__logo img {
  height: 32px;
  width: auto;
}

.footer__tagline {
  font-size: 0.9375rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.footer__desc {
  font-size: 0.875rem;
  color: var(--text-light-muted);
  line-height: 1.6;
}

.footer__col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--text-light-muted);
}

.footer__col a {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-light);
  padding: 0.25rem 0;
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--secondary);
}

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-light-muted);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__legal a {
  color: var(--text-light-muted);
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: var(--text-light);
}

/* --- ANIMATIONS --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* --- RESPONSIVE: Tablet (768px+) --- */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .section {
    padding: 5rem 0;
  }

  .nav__links {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }

  .nav__cta {
    display: inline-flex;
  }

  .hero__inner {
    grid-template-columns: 1fr 1fr;
    padding: 4rem 0;
  }

  .hero__content {
    text-align: left;
  }

  .hero__subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .hero .btn-group {
    justify-content: flex-start;
  }

  .hero__phone {
    width: 280px;
  }

  .hero__image .phone-frame {
    width: 280px;
  }

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

  .feature-showcase__inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .feature-showcase__content {
    text-align: left;
  }

  .feature-showcase__desc {
    margin-left: 0;
    margin-right: 0;
  }

  .feature-showcase__list {
    justify-content: flex-start;
  }

  .feature-showcase--reverse .feature-showcase__image {
    order: -1;
  }

  .feature-row__inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .feature-row__content {
    text-align: left;
  }

  .feature-row__desc {
    margin-left: 0;
    margin-right: 0;
  }

  .feature-row__tags {
    justify-content: flex-start;
  }

  .feature-row--reverse .feature-row__image {
    order: -1;
  }

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

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

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

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

  .screenshot-showcase {
    padding: 1.75rem 1.5rem 0;
    border-radius: 1.75rem;
    max-width: 320px;
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* --- RESPONSIVE: Desktop (1024px+) --- */
@media (min-width: 1024px) {
  .section {
    padding: 6rem 0;
  }

  .hero__phone {
    width: 320px;
  }

  .hero__image .phone-frame {
    width: 320px;
  }

  .feature-showcase__phone {
    width: 280px;
  }

  .feature-row__phone {
    width: 260px;
  }

  .screenshot-showcase {
    max-width: 340px;
  }

  .pain-card {
    padding: 2rem;
  }
}

/* --- RESPONSIVE: Large (1440px+) --- */
@media (min-width: 1440px) {
  .container {
    padding: 0 3rem;
  }

  :root {
    --max-width: 1320px;
  }
}

/* --- ACCESSIBILITY --- */
:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
