/* =========================================================
   吃電 – Taiwan Social Platform  |  Main Stylesheet
   ========================================================= */

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

:root {
  /* Brand colours */
  --primary:       #FF4D4D;
  --primary-dark:  #E03030;
  --primary-light: #FF7070;
  --secondary:     #1A1A2E;
  --accent:        #FFD700;

  /* Gradient */
  --gradient-brand: linear-gradient(135deg, #FF4D4D 0%, #FF8C00 100%);
  --gradient-cool:  linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-hero:  linear-gradient(150deg, #0f0c29 0%, #302b63 50%, #24243e 100%);

  /* Neutrals */
  --white:        #ffffff;
  --off-white:    #f8f9fc;
  --gray-100:     #f1f3f7;
  --gray-200:     #e2e6ee;
  --gray-400:     #9ca3af;
  --gray-600:     #4b5563;
  --gray-800:     #1f2937;
  --black:        #0d0d0d;

  /* Typography */
  --font-sans: 'Noto Sans TC', system-ui, -apple-system, sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border radius */
  --radius-sm:  0.375rem;
  --radius-md:  0.75rem;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
  --shadow-xl:  0 20px 60px rgba(0,0,0,.18), 0 8px 20px rgba(0,0,0,.10);
  --shadow-primary: 0 8px 24px rgba(255,77,77,.35);

  /* Transitions */
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --max-width: 1200px;
  --navbar-height: 72px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--gray-800);
  background-color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }

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

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-24);
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-family: var(--font-sans);
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,77,77,.45);
  color: var(--white);
}

.btn-outline {
  border-color: rgba(255,255,255,.4);
  color: var(--white);
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.6);
  color: var(--white);
}

.btn-sm  { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.btn-lg  { padding: var(--space-3) var(--space-8); font-size: var(--text-lg); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  transition: background var(--transition-slow), box-shadow var(--transition-slow);
}

.navbar.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled .nav-links a,
.navbar.scrolled .nav-logo .logo-text {
  color: var(--gray-800);
}

.navbar.scrolled .nav-logo .logo-text:hover {
  color: var(--primary);
}

.nav-container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 900;
  font-size: var(--text-xl);
}

.logo-icon {
  font-size: 1.4em;
  filter: drop-shadow(0 0 8px rgba(255,200,0,.6));
}

.logo-text {
  color: var(--white);
  letter-spacing: -0.02em;
  transition: color var(--transition);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-left: auto;
}

.nav-links a {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: var(--text-sm);
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width var(--transition);
  border-radius: var(--radius-full);
}

.nav-links a:hover {
  color: var(--white);
}

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

.navbar.scrolled .nav-links a {
  color: var(--gray-600);
}
.navbar.scrolled .nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: var(--space-4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 2px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: var(--radius-full);
  transition: all var(--transition);
}

.navbar.scrolled .hamburger span {
  background: var(--gray-800);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--navbar-height);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: var(--radius-full);
  opacity: 0.12;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 400px;
  height: 400px;
  background: #667eea;
  bottom: -100px;
  left: -150px;
  animation-delay: 2s;
}

.shape-3 {
  width: 250px;
  height: 250px;
  background: var(--accent);
  top: 40%;
  left: 40%;
  animation-delay: 4s;
}

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

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  padding-block: var(--space-20);
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, var(--text-6xl));
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero-desc {
  color: rgba(255,255,255,.75);
  font-size: var(--text-lg);
  max-width: 480px;
  margin-bottom: var(--space-8);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-10);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.stat strong {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
}

.stat span {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.2);
}

/* ---- Phone mockup ---- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  position: relative;
  z-index: 2;
}

.phone-frame {
  width: 260px;
  background: #1a1a2e;
  border-radius: 40px;
  border: 3px solid rgba(255,255,255,.15);
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 60px rgba(255,77,77,.2);
}

.phone-screen {
  border-radius: 30px;
  overflow: hidden;
  background: #0d0d1a;
  aspect-ratio: 9/19;
}

.mock-app {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.mock-header {
  padding: 12px 14px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a2e;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.mock-logo {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.mock-notif {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.mock-feed {
  flex: 1;
  overflow: hidden;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-post {
  display: flex;
  gap: 8px;
}

.mock-avatar {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.mock-post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mock-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,.12);
}
.mock-line.long   { width: 90%; }
.mock-line.medium { width: 65%; }
.mock-line.short  { width: 40%; }

.mock-img-placeholder {
  height: 60px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255,77,77,.3), rgba(255,140,0,.2));
  margin-block: 3px;
}

.mock-actions {
  display: flex;
  gap: 10px;
  font-size: 9px;
  color: rgba(255,255,255,.5);
}

.mock-tabbar {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  background: #1a1a2e;
}

.mock-tab {
  font-size: 16px;
  opacity: 0.4;
  cursor: pointer;
}

.mock-tab.active {
  opacity: 1;
}

.phone-glow {
  position: absolute;
  inset: -20px;
  border-radius: 60px;
  background: radial-gradient(ellipse, rgba(255,77,77,.25) 0%, transparent 70%);
  z-index: -1;
}

/* Floating cards */
.floating-card {
  position: absolute;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: floatCard 6s ease-in-out infinite;
  z-index: 3;
}

.floating-card span {
  font-size: var(--text-xs);
  color: var(--gray-400);
}

.floating-card strong {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gray-800);
  white-space: nowrap;
}

.card-1 { top: 15%;  right: -20px; animation-delay: 0s; }
.card-2 { top: 50%;  left: -30px;  animation-delay: 2s; }
.card-3 { bottom: 15%; right: -10px; animation-delay: 4s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--gray-100);
  padding-block: var(--space-6);
  border-block: 1px solid var(--gray-200);
}

.trust-bar .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.trust-label {
  font-size: var(--text-sm);
  color: var(--gray-400);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  justify-content: center;
}

.trust-item {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
}

.trust-divider {
  color: var(--gray-400);
}

/* ---------- Section headers ---------- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section-badge {
  display: inline-block;
  background: rgba(255,77,77,.1);
  color: var(--primary);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  border: 1px solid rgba(255,77,77,.2);
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: var(--gray-800);
}

.section-desc {
  color: var(--gray-600);
  font-size: var(--text-lg);
  max-width: 540px;
  margin-inline: auto;
  line-height: 1.8;
}

/* ---------- Features ---------- */
.features {
  background: var(--white);
}

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

.feature-card {
  background: var(--off-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-slow);
}

.feature-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-6px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-md);
}

.feature-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--space-3);
}

.feature-card p {
  color: var(--gray-600);
  line-height: 1.75;
}

/* ---------- How it works ---------- */
.how-it-works {
  background: var(--off-white);
}

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

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.step-number {
  font-size: var(--text-5xl);
  font-weight: 900;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.step-content h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: var(--space-2);
}

.step-content p {
  color: var(--gray-600);
  line-height: 1.75;
}

.step-visual {
  width: 80px;
  height: 80px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-primary);
}

.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #FF8C00);
  border-radius: var(--radius-full);
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #FF8C00;
}

/* ---------- Community / Testimonials ---------- */
.community {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-16);
}

.testimonial-card {
  background: var(--off-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-slow);
}

.testimonial-card:hover,
.testimonial-card.featured {
  background: var(--white);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
  transform: scale(1.02);
}

.testimonial-card.featured {
  transform: scale(1.04);
}

.testimonial-stars {
  color: var(--accent);
  font-size: var(--text-lg);
  letter-spacing: 2px;
  margin-bottom: var(--space-4);
}

.testimonial-card blockquote {
  color: var(--gray-600);
  font-size: var(--text-base);
  line-height: 1.8;
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-weight: 700;
  color: var(--gray-800);
}

.author-info span {
  font-size: var(--text-sm);
  color: var(--gray-400);
}

/* Community stats */
.community-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  background: var(--gradient-brand);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
}

.comm-stat {
  text-align: center;
  color: var(--white);
}

.comm-stat strong {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-1);
}

.comm-stat span {
  font-size: var(--text-sm);
  opacity: 0.8;
}

/* ---------- Download CTA ---------- */
.download {
  background: var(--off-white);
}

.download-card {
  background: var(--secondary);
  border-radius: var(--radius-2xl);
  padding: var(--space-16);
  display: flex;
  align-items: center;
  gap: var(--space-16);
  position: relative;
  overflow: hidden;
}

.download-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.dl-shape {
  position: absolute;
  border-radius: var(--radius-full);
  opacity: 0.12;
}

.dl-shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -150px;
  right: 100px;
}

.dl-shape-2 {
  width: 250px;
  height: 250px;
  background: #667eea;
  bottom: -80px;
  right: -60px;
}

.download-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.download-content h2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.download-content > p {
  color: rgba(255,255,255,.7);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  line-height: 1.8;
}

.download-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.store-btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}

.store-btn:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
  color: var(--white);
}

.store-sub {
  display: block;
  font-size: var(--text-xs);
  opacity: 0.7;
  font-weight: 400;
}

.store-name {
  display: block;
  font-size: var(--text-base);
  font-weight: 700;
}

.download-note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,.5);
  font-size: var(--text-sm);
}

/* QR Code placeholder */
.download-qr {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.qr-placeholder {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  width: 180px;
}

.qr-grid {
  width: 120px;
  height: 120px;
  background:
    repeating-linear-gradient(0deg, #000 0 8px, transparent 8px 16px) 0 0 / 16px 100%,
    repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 16px) 0 0 / 100% 16px;
  background-color: var(--white);
  border: 3px solid #000;
  border-radius: var(--radius-sm);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-inner {
  width: 30px;
  height: 30px;
  background: var(--white);
  border: 3px solid #000;
  border-radius: 4px;
}

.qr-placeholder p {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-800);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--black);
  color: rgba(255,255,255,.7);
  padding-top: var(--space-16);
}

.footer-top {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-16);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.8;
  margin-block: var(--space-4);
  max-width: 280px;
}

.footer-logo .logo-text {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-block: var(--space-6);
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.35);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for grid children */
.features-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.features-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.features-grid .reveal:nth-child(4) { transition-delay: 0.1s; }
.features-grid .reveal:nth-child(5) { transition-delay: 0.2s; }
.features-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

.testimonials-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.testimonials-grid .reveal:nth-child(3) { transition-delay: 0.3s; }

/* =========================================================
   Responsive
   ========================================================= */

/* Tablet */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    justify-content: center;
  }

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

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

  .step-connector {
    width: 2px;
    height: 40px;
    transform: rotate(90deg);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-inline: auto;
  }

  .testimonial-card.featured {
    transform: none;
  }

  .community-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-card {
    flex-direction: column;
    text-align: center;
    padding: var(--space-10);
    gap: var(--space-8);
  }

  .download-buttons {
    justify-content: center;
  }

  .download-note {
    justify-content: center;
  }

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

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --navbar-height: 64px;
  }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: rgba(15,12,41,.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: var(--space-4) 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
    pointer-events: none;
    margin-left: 0;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
    color: rgba(255,255,255,.85);
    border-bottom: 1px solid rgba(255,255,255,.06);
    width: 100%;
    text-align: left;
  }

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

  .navbar.scrolled .nav-links a {
    color: rgba(255,255,255,.85);
  }

  .section { padding-block: var(--space-16); }

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

  .steps { gap: var(--space-8); }

  .community-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: var(--space-8);
  }

  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .trust-logos {
    flex-direction: column;
    gap: var(--space-3);
  }

  .trust-divider { display: none; }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-stats {
    flex-direction: column;
    gap: var(--space-3);
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .footer-links { grid-template-columns: repeat(2, 1fr); }

  .download-buttons {
    flex-direction: column;
  }
}

/* Focus styles for accessibility */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
