/* ApexLift marketing site: shared design system */

:root {
  --bg: #000000;
  --surface: #121214;
  --surface-2: #1c1c1f;
  --border: #29292c;
  --border-soft: #1e1e21;
  --text: #f5f4f2;
  --text-secondary: #96918c;
  --text-tertiary: #5c5a57;
  --accent: #ff4433;
  --accent-bright: #ff6a53;
  --accent-dim: rgba(255, 68, 51, 0.14);
  --accent-2: #8b7bff;
  --accent-2-dim: rgba(139, 123, 255, 0.14);
  --serif-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --sans: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --max: 1160px;
  --radius: 20px;
  --radius-sm: 12px;
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

::selection { background: var(--accent); color: #000; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

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

.nav-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
}

.nav-mark .dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease;
}

.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }

.nav-links a.current { color: var(--accent); }

/* ---------- Buttons / badges ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--surface);
}

.pill .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 68, 51, 0.6);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 68, 51, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(255, 68, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 68, 51, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface-2);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.btn:hover { border-color: var(--text-secondary); }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}

.btn.primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }

/* ---------- Hero ---------- */

.hero {
  padding: 76px 0 40px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

h1.headline {
  font-family: var(--serif-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 5.4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  text-wrap: balance;
}

h1.headline .accent { color: var(--accent); }

.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
}

.hero-stat .label {
  font-size: 12.5px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ---------- Phone mockup ---------- */

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1600px;
}

.phone-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 68%);
  filter: blur(10px);
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: 250px;
  border-radius: 40px;
  border: 6px solid #1a1a1c;
  background: #000;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}

.phone-frame:hover { transform: rotate(0deg) translateY(-4px); }

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

.phone-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 20px;
  background: #000;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

/* ---------- Section scaffolding ---------- */

section { padding: 96px 0; }

.section-head { max-width: 640px; margin: 0 0 56px; }

.section-head .eyebrow { margin-bottom: 14px; }

h2.section-title {
  font-family: var(--serif-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -0.005em;
  margin: 0 0 16px;
  text-wrap: balance;
}

.section-lede {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 54ch;
  margin: 0;
}

/* ---------- Feature rows ---------- */

.feature-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--border-soft);
}

.feature-row:first-of-type { border-top: none; padding-top: 0; }

.feature-row.reverse { grid-template-columns: 1.15fr 0.85fr; }
.feature-row.reverse .feature-shot { order: 1; }
.feature-row.reverse .feature-copy { order: 2; }

.feature-index {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

h3.feature-title {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  line-height: 1.08;
  margin: 0 0 14px;
  text-wrap: balance;
}

.feature-body {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
  max-width: 42ch;
  margin: 0;
}

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

.feature-shot .phone-frame {
  width: 220px;
  transform: rotate(0deg);
}

.feature-shot .phone-frame:hover { transform: translateY(-4px); }

/* ---------- Privacy band ---------- */

.privacy-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 64px;
  position: relative;
  overflow: hidden;
}

.privacy-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, var(--accent-2-dim), transparent 55%);
  pointer-events: none;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  position: relative;
}

.privacy-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.privacy-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15.5px;
  color: var(--text-secondary);
}

.privacy-list .mark {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  flex: none;
}

.privacy-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  border-left: 1px solid var(--border);
  padding-left: 40px;
}

.big-stat .num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 44px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}

.big-stat .label {
  font-size: 13.5px;
  color: var(--text-tertiary);
  margin-top: 8px;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 64px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-mark {
  font-family: var(--serif-display);
  font-weight: 800;
  font-size: 20px;
}

.footer-mark .dot { color: var(--accent); }

.footer-tag {
  color: var(--text-tertiary);
  font-size: 13.5px;
  margin-top: 8px;
  max-width: 32ch;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin: 0 0 14px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

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

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  color: var(--text-tertiary);
  font-size: 13px;
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ---------- Doc pages (privacy / support) ---------- */

.doc-hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--border-soft);
}

.doc-title {
  font-family: var(--serif-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  margin: 0 0 14px;
  text-wrap: balance;
}

.doc-meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-tertiary);
}

.doc-body {
  max-width: 680px;
  padding: 56px 0 100px;
}

.doc-body .lede {
  font-size: 18px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  margin: 0 0 48px;
  text-wrap: balance;
}

.doc-body section { padding: 0; margin: 0 0 42px; }

.doc-body h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 14px;
  color: var(--text);
}

.doc-body p {
  color: var(--text-secondary);
  margin: 0 0 14px;
  max-width: 62ch;
}

.doc-body ul {
  margin: 0 0 14px;
  padding-left: 0;
  list-style: none;
  max-width: 62ch;
}

.doc-body li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.doc-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-value {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 3px 10px;
  border-radius: 6px;
  text-decoration: none;
}

/* FAQ */

.faq-item {
  border-bottom: 1px solid var(--border-soft);
  padding: 26px 0;
}

.faq-item:first-child { padding-top: 0; }

.faq-q {
  font-weight: 600;
  font-size: 16.5px;
  color: var(--text);
  margin: 0 0 10px;
  display: flex;
  gap: 12px;
}

.faq-q .qmark {
  color: var(--accent);
  font-family: var(--mono);
  flex: none;
}

.faq-a {
  color: var(--text-secondary);
  margin: 0;
  padding-left: 26px;
  max-width: 58ch;
}

.support-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 56px;
  margin: 48px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.support-cta h3 {
  font-family: var(--serif-display);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
}

.support-cta p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 14.5px;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 48px; text-align: left; }
  .phone-stage { order: -1; }
  .phone-frame { width: 210px; }

  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
  }
  .feature-row.reverse .feature-shot,
  .feature-row.reverse .feature-copy,
  .feature-row .feature-shot { order: -1; }

  .privacy-band { padding: 40px 28px; }
  .privacy-grid { grid-template-columns: 1fr; gap: 40px; }
  .privacy-side { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 32px; }

  .support-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
  .nav-links { gap: 18px; font-size: 13px; }
  .hero-stats { gap: 24px; }
}
