/* ============================================================
   ReelGrab – Main Stylesheet
   Dark/Light theme, responsive, premium SaaS design
   ============================================================ */

/* ─── CSS Variables ──────────────────────────────────────── */
:root {
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Gradient */
  --grad-primary: linear-gradient(135deg, #f72585 0%, #7209b7 50%, #3a0ca3 100%);
  --grad-btn:     linear-gradient(135deg, #f72585 0%, #b5179e 100%);
  --grad-text:    linear-gradient(135deg, #f72585, #7209b7);
  --accent:       #f72585;
  --accent-2:     #7209b7;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Dark Theme (default) ───────────────────────────────── */
[data-theme="dark"] {
  --bg:           #0a0a0f;
  --bg-card:      #111118;
  --bg-card-2:    #16161f;
  --border:       rgba(255,255,255,0.07);
  --text:         #f0f0f8;
  --text-muted:   #8888aa;
  --text-faint:   #55556a;
  --input-bg:     rgba(255,255,255,0.05);
  --input-border: rgba(255,255,255,0.1);
  --shadow:       0 8px 40px rgba(0,0,0,0.6);
  --blob-opacity: 0.35;
  --navbar-bg:    rgba(10,10,15,0.85);
}

/* ─── Light Theme ────────────────────────────────────────── */
[data-theme="light"] {
  --bg:           #f8f8fc;
  --bg-card:      #ffffff;
  --bg-card-2:    #f2f2f8;
  --border:       rgba(0,0,0,0.07);
  --text:         #111122;
  --text-muted:   #555577;
  --text-faint:   #aaaacc;
  --input-bg:     rgba(0,0,0,0.04);
  --input-border: rgba(0,0,0,0.12);
  --shadow:       0 8px 40px rgba(0,0,0,0.1);
  --blob-opacity: 0.12;
  --navbar-bg:    rgba(248,248,252,0.85);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
}
.logo-icon { font-size: 1.5rem; }
.accent { background: var(--grad-text); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--grad-btn);
  transform: scaleX(0);
  transition: transform 0.2s;
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--input-bg);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  font-size: 1rem;
}
.theme-toggle:hover { border-color: var(--accent); transform: scale(1.05); }
.theme-icon { display: none; }
[data-theme="dark"] .theme-icon.sun { display: block; }
[data-theme="light"] .theme-icon.moon { display: block; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

/* Animated blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: var(--blob-opacity);
  animation: blobFloat 8s ease-in-out infinite;
  pointer-events: none;
}
.blob-1 {
  width: 600px; height: 600px;
  background: #f72585;
  top: -200px; left: -200px;
  animation-delay: 0s;
}
.blob-2 {
  width: 500px; height: 500px;
  background: #7209b7;
  bottom: -100px; right: -100px;
  animation-delay: -3s;
}
.blob-3 {
  width: 300px; height: 300px;
  background: #3a0ca3;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -6s;
}

@keyframes blobFloat {
  0%, 100% { transform: scale(1) translate(0, 0); }
  33%       { transform: scale(1.05) translate(20px, -20px); }
  66%       { transform: scale(0.95) translate(-15px, 15px); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  animation: fadeUp 0.6s var(--ease-out) both;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0.1); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
  animation: fadeUp 0.6s var(--ease-out) 0.1s both;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  font-weight: 300;
  animation: fadeUp 0.6s var(--ease-out) 0.2s both;
}

/* ─── Download Card ──────────────────────────────────────── */
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  max-width: 700px;
  margin: 0 auto 40px;
  box-shadow: var(--shadow);
  animation: fadeUp 0.6s var(--ease-out) 0.3s both;
  transition: background 0.3s, border-color 0.3s;
}

.input-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-faint);
  display: flex;
  pointer-events: none;
}

.url-input {
  width: 100%;
  padding: 14px 44px 14px 44px;
  border-radius: 14px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.url-input::placeholder { color: var(--text-faint); }
.url-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(247,37,133,0.15);
}

.paste-btn {
  position: absolute;
  right: 12px;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.paste-btn:hover { color: var(--accent); border-color: var(--accent); }

.download-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 14px;
  background: var(--grad-btn);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 4px 20px rgba(247,37,133,0.4);
  letter-spacing: 0.3px;
}
.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(247,37,133,0.5);
}
.download-btn:active { transform: translateY(0); }
.download-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Status message */
.status-msg {
  margin-top: 12px;
  font-size: 0.875rem;
  min-height: 20px;
  transition: all 0.3s;
}
.status-msg.error   { color: #ef4444; }
.status-msg.success { color: #22c55e; }
.status-msg.info    { color: var(--text-muted); }

/* Loader bar */
.loader-bar {
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 14px;
  overflow: hidden;
  display: none;
}
.loader-bar.active { display: block; }
.loader-progress {
  height: 100%;
  width: 0%;
  background: var(--grad-btn);
  border-radius: 3px;
  transition: width 0.3s;
  animation: loaderAnim 1.8s ease-in-out infinite;
}
@keyframes loaderAnim {
  0%   { width: 0%; margin-left: 0; }
  50%  { width: 60%; margin-left: 20%; }
  100% { width: 0%; margin-left: 100%; }
}

/* Result area */
.result-area {
  margin-top: 16px;
}
.result-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card-2);
  border-radius: 14px;
  border: 1px solid var(--border);
  animation: fadeUp 0.4s var(--ease-out) both;
}
.result-thumb {
  width: 64px; height: 64px;
  border-radius: 10px;
  background: var(--border);
  flex-shrink: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.result-info { flex: 1; min-width: 0; }
.result-info h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; truncate: ellipsis; }
.result-info p  { font-size: 0.8rem; color: var(--text-muted); }
.result-dl-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(247,37,133,0.35);
}
.result-dl-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(247,37,133,0.45); }

/* Trust row */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  animation: fadeUp 0.6s var(--ease-out) 0.4s both;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.trust-item strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.trust-item span { font-size: 0.78rem; color: var(--text-muted); }
.trust-divider {
  width: 1px; height: 32px;
  background: var(--border);
}

/* ─── Sections ───────────────────────────────────────────── */
.section { padding: 96px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ─── Steps ──────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeUp 0.6s var(--ease-out) var(--delay, 0s) both;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 8px;
  transition: color 0.3s;
}
.step-card:hover .step-number { color: var(--accent); opacity: 0.3; }

.step-icon { font-size: 2rem; margin-bottom: 12px; }

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Step mock UI */
.step-img-guide { margin-top: auto; }

.mock-phone {
  width: 80px;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  background: var(--bg-card-2);
  margin: 0 auto;
}
.mock-screen { border-radius: 8px; overflow: hidden; background: var(--bg); }
.mock-post { height: 40px; background: var(--border); border-radius: 4px; margin-bottom: 4px; }
.mock-menu { padding: 4px; }
.mock-menu-item {
  font-size: 0.55rem;
  padding: 3px 5px;
  border-radius: 3px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.mock-menu-item.active {
  background: rgba(247,37,133,0.15);
  color: var(--accent);
}

.mock-input-demo { border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; display: flex; align-items: center; gap: 4px; }
.mock-url-bar { font-size: 0.65rem; color: var(--text-faint); font-family: monospace; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
.mock-cursor { width: 2px; height: 14px; background: var(--accent); }
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0; } }

.mock-download-demo { }
.mock-progress-bar { height: 6px; background: var(--border); border-radius: 6px; overflow: hidden; margin-bottom: 8px; }
.mock-progress-fill { height: 100%; width: 0; background: var(--grad-btn); border-radius: 6px; animation: fill 2.5s var(--ease-out) infinite; }
@keyframes fill { 0% { width:0; } 80%,100% { width:100%; } }
.mock-dl-label { font-size: 0.7rem; color: var(--text-muted); text-align: center; }

/* ─── Features ───────────────────────────────────────────── */
.features { background: var(--bg-card-2); }

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  border-color: rgba(247,37,133,0.3);
}
.feat-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Supported Content ──────────────────────────────────── */
.content-types {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.content-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  min-width: 120px;
  transition: transform 0.3s, border-color 0.3s;
  position: relative;
}
.content-type:hover { transform: translateY(-4px); border-color: var(--accent); }
.ct-emoji { font-size: 2.2rem; }
.content-type strong { font-weight: 600; font-size: 0.95rem; }
.ct-badge {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--grad-btn);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(247,37,133,0.3); }

.faq-question {
  width: 100%;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  gap: 12px;
}
.faq-arrow {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--text-muted);
  transition: transform 0.3s;
}
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--accent); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p {
  padding: 0 22px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Download History ───────────────────────────────────── */
.history-list {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100px;
}
.history-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 48px;
  color: var(--text-faint);
  font-size: 0.9rem;
  border: 2px dashed var(--border);
  border-radius: 16px;
}
.history-empty span { font-size: 2rem; }

.history-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  animation: fadeUp 0.3s var(--ease-out) both;
}
.history-icon { font-size: 1.5rem; flex-shrink: 0; }
.history-info { flex: 1; min-width: 0; }
.history-info h4 { font-size: 0.85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-info p  { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.history-link {
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--accent);
  white-space: nowrap;
  transition: background 0.2s;
}
.history-link:hover { background: rgba(247,37,133,0.1); }

/* ─── Ad Slot ────────────────────────────────────────────── */
.ad-slot {
  margin: 0 auto 0;
  padding: 16px 24px;
}
.ad-placeholder {
  height: 90px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding-top: 64px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-faint);
}
.footer-disclaimer { margin-top: 6px; font-size: 0.75rem; }

/* ─── Back to top ────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(247,37,133,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.3s;
  z-index: 50;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-3px); }

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

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease-out);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-link { padding: 14px 24px; }
  .nav-link::after { display: none; }
  .hamburger { display: flex; }

  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .input-row { flex-direction: column; }
  .download-btn { width: 100%; justify-content: center; }
  .trust-row { gap: 16px; }
  .trust-divider { height: 24px; }

  .hero { padding: 100px 0 60px; }
  .section { padding: 64px 0; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .content-types { flex-direction: column; align-items: center; }
  .back-to-top { bottom: 20px; right: 20px; }
}

/* ─── Sub-pages shared ───────────────────────────────────── */
.page-hero {
  padding: 120px 0 64px;
  text-align: center;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.page-hero p {
  color: var(--text-muted);
  font-size: 1rem;
}

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 40px 0 12px;
}
.page-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.page-content ul {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.page-content ul li { margin-bottom: 8px; font-size: 0.95rem; line-height: 1.7; }
.page-content a { color: var(--accent); text-decoration: underline; }

/* Contact form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  margin-top: 32px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(247,37,133,0.12);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  background: var(--grad-btn);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(247,37,133,0.4);
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(247,37,133,0.5); }
