/* =========================================
   APTFLOW — Deep Slate & Amber
   ========================================= */

:root {
  --bg: #0f1923;
  --bg-surface: #162030;
  --bg-card: #1a2740;
  --fg: #f0ede8;
  --fg-muted: #8b9ab4;
  --accent: #e8a838;
  --accent-dim: rgba(232, 168, 56, 0.12);
  --border: rgba(240, 237, 232, 0.08);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  z-index: 1;
}

/* ---- NAV ---- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 25, 35, 0.85);
  backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.nav-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 300;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex: 1;
}

.nav-cta {
  margin-left: auto;
  background: var(--accent);
  color: #0f1923;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 168, 56, 0.35);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 32px 80px;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232, 168, 56, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 168, 56, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

.hero-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 168, 56, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 24px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  color: var(--fg);
}

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

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-muted);
  max-width: 520px;
  font-weight: 300;
  margin-bottom: 28px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-stat-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.hero-stat {
  flex: 1;
  padding: 0 24px 0 0;
}

.hero-stat:first-child { padding-left: 0; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 4px 24px 0 0;
}

/* ---- CTA BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #0f1923;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(232, 168, 56, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--fg);
  font-weight: 500;
  font-size: 15px;
  padding: 14px 20px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.btn-secondary:hover {
  border-color: rgba(240, 237, 232, 0.3);
  background: rgba(240, 237, 232, 0.04);
}

/* Hero visual */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.phone-frame {
  background: #1e2d42;
  border: 1px solid rgba(232, 168, 56, 0.2);
  border-radius: 36px;
  padding: 16px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
  width: 280px;
}

.phone-notch {
  width: 80px;
  height: 24px;
  background: #0f1923;
  border-radius: 16px;
  margin: 0 auto 16px;
}

.phone-screen {
  background: #0f1923;
  border-radius: 24px;
  padding: 16px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 320px;
}

.sms-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 85%;
  font-family: var(--font-body);
}

.sms-bubble.bot {
  background: #1e2d42;
  color: var(--fg);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.sms-bubble.bot.sms-text {
  font-size: 12px;
  color: var(--fg-muted);
}

.sms-bubble.user {
  background: var(--accent);
  color: #0f1923;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.sms-time {
  font-size: 10px;
  color: var(--fg-muted);
  text-align: center;
  margin-top: 4px;
  opacity: 0.7;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  background: #1e2d42;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: fit-content;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-muted);
  animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.callout-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 168, 56, 0.1);
  border: 1px solid rgba(232, 168, 56, 0.2);
  border-radius: 24px;
  padding: 8px 16px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.badge-icon {
  color: var(--accent);
  display: flex;
}

/* ---- PROOF STRIP ---- */
.proof {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 32px;
}

.proof-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}

.proof-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proof-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.proof-label {
  font-size: 13px;
  color: var(--fg-muted);
  font-weight: 300;
}

.proof-sep {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ---- SHARED SECTION STYLES ---- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 16px;
  color: var(--fg-muted);
  font-weight: 300;
  max-width: 540px;
  line-height: 1.6;
}

.features {
  padding: 96px 32px;
}

.features-header {
  max-width: 1100px;
  margin: 0 auto 64px;
}

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(232, 168, 56, 0.3);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 300;
}

.feature-ex {
  font-size: 12px;
  color: var(--accent);
  font-style: italic;
  border-left: 2px solid rgba(232, 168, 56, 0.3);
  padding-left: 12px;
  line-height: 1.5;
}

/* ---- PROCESS ---- */
.process {
  padding: 96px 32px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.process-header {
  max-width: 1100px;
  margin: 0 auto 64px;
}

.process-steps {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  padding: 0 40px 0 0;
}

.step-connector {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, rgba(232, 168, 56, 0.4), rgba(232, 168, 56, 0.1));
  flex-shrink: 0;
  margin-top: 28px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ---- NICHES ---- */
.niches {
  padding: 96px 32px;
}

.niches-header {
  max-width: 1100px;
  margin: 0 auto 56px;
}

.niches-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.niche-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.2s;
}

.niche-card:hover {
  border-color: rgba(232, 168, 56, 0.3);
}

.niche-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.niche-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.niche-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* ---- PRICING ---- */
.pricing {
  padding: 96px 32px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.pricing-header {
  max-width: 1100px;
  margin: 0 auto 56px;
}

.pricing-cards {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px;
  position: relative;
}

.pricing-card--featured {
  border-color: rgba(232, 168, 56, 0.4);
  background: linear-gradient(135deg, var(--bg-card), rgba(232, 168, 56, 0.04));
}

.card-badge {
  position: absolute;
  top: -14px;
  left: 32px;
  background: var(--accent);
  color: #0f1923;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 20px;
}

.card-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.card-price {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.price-per {
  font-size: 18px;
  font-weight: 400;
  color: var(--fg-muted);
}

.card-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  font-weight: 300;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-features li {
  font-size: 14px;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 300;
}

.card-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e8a838' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}

.pricing-cta-note {
  max-width: 1100px;
  margin: 32px auto 0;
  text-align: center;
}

.pricing-cta-note p {
  font-size: 14px;
  color: var(--fg-muted);
}

.pricing-cta-note strong {
  color: var(--accent);
  font-weight: 600;
}

/* ---- CLOSING ---- */
.closing {
  padding: 120px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(232, 168, 56, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.closing-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.closing-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.closing-note {
  font-size: 14px;
  color: var(--fg-muted);
  font-weight: 300;
}

/* ---- FOOTER ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 4px;
  font-weight: 300;
}

.footer-note {
  font-size: 12px;
  color: var(--fg-muted);
  font-style: italic;
  font-weight: 300;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    order: -1;
  }

  .phone-frame {
    width: 240px;
  }

  .hero-stat-row {
    flex-direction: column;
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

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

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

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

  .process-steps {
    flex-direction: column;
    gap: 32px;
  }

  .step-connector {
    width: 2px;
    height: 32px;
    margin: 0 0 0 24px;
  }

  .proof-inner {
    flex-direction: column;
    gap: 28px;
  }

  .proof-sep {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 64px 20px 56px;
  }

  .features, .process, .niches, .pricing, .closing {
    padding: 64px 20px;
  }

  .nav-inner {
    padding: 16px 20px;
  }
}