/* ═══════════════════════════════════════════════════════════
   APEX DIGITAL — Premium Dark Theme
   Self-contained. No CDNs. No tracking. No bullshit.
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --bg: #0A0A0A;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1C1C1C;
  --accent: #FF4D2E;
  --accent-hover: #FF6B4A;
  --accent-soft: rgba(255, 77, 46, 0.08);
  --accent-glow: rgba(255, 77, 46, 0.25);
  --accent-border: rgba(255, 77, 46, 0.2);
  --white: #FFFFFF;
  --text: #E8E8E8;
  --text-secondary: #999999;
  --text-muted: #666666;
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.14);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-accent: 0 4px 24px rgba(255, 77, 46, 0.2);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Typography ───────────────────────────────── */
h1, h2, h3, h4, h5 {
  color: var(--white);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 16px; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.05rem; font-weight: 600; }
p { color: var(--text); margin-bottom: 12px; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-hover); }

.text-muted { color: var(--text-secondary); }
.text-dim { color: var(--text-muted); }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* ── Layout ───────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}
section {
  padding: 96px 0;
  position: relative;
}

/* ── Navigation ───────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav__logo:hover { color: var(--white); }
.nav__logo svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav__links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  text-decoration: none;
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--white);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
}
.nav__toggle svg {
  width: 24px;
  height: 24px;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
  }
  .nav__links.open { display: flex; }
  .nav__links a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
  }
}

/* ── Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 32px rgba(255, 77, 46, 0.3);
}
.btn--secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid var(--border-hover);
}
.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}
.btn--large {
  padding: 18px 40px;
  font-size: 1.05rem;
  border-radius: var(--radius);
}
.btn--small {
  padding: 10px 20px;
  font-size: 0.85rem;
}

/* ── Cards ────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.card--accent:hover {
  border-color: var(--accent-border);
}

/* ── Badges ───────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge--accent {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.badge--neutral {
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ── Hero ─────────────────────────────────────── */
.hero {
  padding: 160px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 77, 46, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero__badge { margin-bottom: 24px; }
.hero__title {
  margin-bottom: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Section Headers ──────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: 12px;
}

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

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .grid--3, .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Product Cards ────────────────────────────── */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.product-card__title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.product-card__desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  flex: 1;
  margin-bottom: 20px;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-card__price {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

/* ── Feature List ─────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.feature-item {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.feature-item:hover {
  border-color: var(--border-hover);
}
.feature-item__icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
  display: block;
}
.feature-item__title {
  margin-bottom: 8px;
}
.feature-item__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ── Stats Row ────────────────────────────────── */
.stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  padding: 40px 0;
}
.stat {
  text-align: center;
}
.stat__value {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}
.stat__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── CTA Section ──────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 32px;
}
.cta-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* ── Screenshots Gallery ──────────────────────── */
.screenshots {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screenshots::-webkit-scrollbar { display: none; }
.screenshots img {
  height: 480px;
  width: auto;
  border-radius: var(--radius);
  scroll-snap-align: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 768px) {
  .screenshots img {
    height: 360px;
  }
}

/* ── FAQ ──────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  padding: 4px 0;
  text-align: left;
}
.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-question::after {
  content: '−';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  opacity: 1;
}
.faq-answer p {
  padding-top: 12px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── Footer ───────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}
.footer__links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer__links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}
.footer__links a:hover { color: var(--white); }
.footer__social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}
.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.footer__social a:hover {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}
.footer__social svg { width: 18px; height: 18px; }
.footer__copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ── Divider ──────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Spacer ───────────────────────────────────── */
.spacer-top { padding-top: 64px; }

/* ── Page-specific: Product Detail Hero ──────── */
.product-hero {
  padding: 140px 0 64px;
}
.product-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 768px) {
  .product-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
}
.product-hero__content h1 {
  margin-bottom: 16px;
}
.product-hero__content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
.product-hero__visual {
  display: flex;
  justify-content: center;
}
.product-hero__visual img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ── Checklist ────────────────────────────────── */
.checklist {
  list-style: none;
  padding: 0;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  color: var(--text);
  font-size: 0.95rem;
}
.checklist li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Pricing Box ──────────────────────────────── */
.pricing-box {
  background: var(--bg-card);
  border: 2px solid var(--accent-border);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.pricing-box__price {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  margin: 16px 0 8px;
}
.pricing-box__label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.pricing-box__guarantee {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Contact Info ─────────────────────────────── */
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.contact-card:hover {
  border-color: var(--border-hover);
}
.contact-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-card__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.contact-card__value {
  font-size: 1rem;
  color: var(--white);
  margin-top: 2px;
}

/* ── Scroll Animations ────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Selection ────────────────────────────────── */
::selection {
  background: rgba(255, 77, 46, 0.3);
  color: var(--white);
}

/* ── Scrollbar ────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ── About page values ────────────────────────── */
.value-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.value-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.value-item__content h3 { margin-bottom: 6px; }
.value-item__content p { color: var(--text-secondary); font-size: 0.92rem; }

/* ── App icon style ───────────────────────────── */
.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: linear-gradient(135deg, #FF4D2E 0%, #FF8A65 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 8px 32px rgba(255, 77, 46, 0.3);
}

/* ── Guarantee badge ──────────────────────────── */
.guarantee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #22c55e;
  font-size: 0.82rem;
  font-weight: 600;
}
