/* ═══════════════════════════════════════════════════════════════
   Scanly — styles.css
   Dark glass-morphism, electric blue accent, Inter font
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ───────────────────────────────────────────────── */
:root {
  --bg:               #0a0a0f;
  --bg-secondary:     #0f0f18;
  --surface:          rgba(255,255,255,0.04);
  --surface-hover:    rgba(255,255,255,0.07);
  --surface-strong:   rgba(255,255,255,0.06);
  --border:           rgba(255,255,255,0.08);
  --border-accent:    rgba(10,132,255,0.4);
  --accent:           #0A84FF;
  --accent-dim:       rgba(10,132,255,0.15);
  --accent-glow:      rgba(10,132,255,0.25);
  --text:             #ffffff;
  --text-secondary:   rgba(255,255,255,0.60);
  --text-tertiary:    rgba(255,255,255,0.35);
  --radius-sm:        10px;
  --radius-md:        16px;
  --radius-lg:        24px;
  --radius-xl:        32px;
  --nav-h:            68px;
  --transition:       0.3s cubic-bezier(0.16,1,0.3,1);
}

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

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }

/* ── Typography ───────────────────────────────────────────────── */
h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }

.gradient-text {
  background: linear-gradient(135deg, #0A84FF 0%, #BF5AF2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Utility ──────────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 100px 0; }

/* ── Scroll-reveal ────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--transition), transform 0.7s var(--transition);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }
.delay-3 { transition-delay: 0.30s; }
.delay-4 { transition-delay: 0.40s; }

/* ══════════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10,10,15,0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav.scrolled {
  background: rgba(10,10,15,0.9);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-logo-icon {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10,10,15,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 99;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 14px 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover, .nav-mobile a.active { color: var(--text); }

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 80px) 0 100px;
  text-align: center;
  overflow: hidden;
}

/* Radial glow behind hero text */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at 50% 30%, rgba(10,132,255,0.18) 0%, transparent 65%);
  pointer-events: none;
}

/* Subtle grid texture */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 70%);
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 44px;
  line-height: 1.7;
  font-weight: 400;
}

/* Store badges */
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.badge-link {
  display: block;
  transition: transform var(--transition), opacity var(--transition);
}
.badge-link:hover { transform: scale(1.04); opacity: 0.9; }
.badge-link img  { height: 52px; width: auto; border-radius: 8px; }

/* Trust line */
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}
.trust-dot {
  width: 4px; height: 4px;
  background: var(--text-tertiary);
  border-radius: 50%;
}

/* ══════════════════════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════════════════════ */
.features { background: transparent; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  margin-bottom: 14px;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  max-width: 480px;
  margin: 0 auto;
}

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

.feature-card {
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 24px 64px rgba(10,132,255,0.08);
}

.feature-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   PRO SECTION
══════════════════════════════════════════════════════════════ */
.pro-section {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.pro-section::before {
  content: '';
  position: absolute;
  bottom: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(191,90,242,0.08) 0%, transparent 65%);
  pointer-events: none;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 780px;
  margin: 0 auto 28px;
}

.pricing-card {
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.pricing-card.pro {
  background: rgba(10,132,255,0.06);
  border-color: var(--border-accent);
  box-shadow: 0 0 60px rgba(10,132,255,0.06);
}

.pricing-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.pricing-card.pro .pricing-label { color: var(--accent); }

.pricing-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.pricing-price {
  font-size: 1.0rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-weight: 500;
}
.pricing-price strong {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}

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

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.check {
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  margin-top: 1px;
}
.pricing-card.pro .check {
  background: var(--accent);
  color: #fff;
}

.pro-footnote {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.875rem;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.875rem;
  color: var(--text-tertiary);
}

/* ══════════════════════════════════════════════════════════════
   PRIVACY PAGE
══════════════════════════════════════════════════════════════ */
.privacy-page {
  padding: calc(var(--nav-h) + 80px) 0 100px;
}

.privacy-hero {
  text-align: center;
  margin-bottom: 72px;
}
.privacy-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 16px;
}
.privacy-hero .effective {
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

.privacy-body {
  max-width: 760px;
  margin: 0 auto;
}

.privacy-section {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.privacy-section:last-child { border-bottom: none; margin-bottom: 0; }

.privacy-section h2 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.privacy-section h2 .num {
  color: var(--accent);
  margin-right: 8px;
  font-weight: 800;
}

.privacy-section p, .privacy-section li {
  color: var(--text-secondary);
  font-size: 0.9875rem;
  line-height: 1.8;
  margin-bottom: 12px;
}
.privacy-section ul {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.privacy-section ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 0;
}
.privacy-section ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.privacy-highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.privacy-highlight .icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.privacy-highlight p { color: var(--text); font-weight: 500; margin-bottom: 0; }

.contact-link {
  color: var(--accent);
  transition: opacity var(--transition);
}
.contact-link:hover { opacity: 0.8; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .features-grid   { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-grid    { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto 28px; }
}

@media (max-width: 700px) {
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding-top: calc(var(--nav-h) + 48px); }
  .hero h1 { font-size: 2.25rem; }
  .hero-sub { font-size: 1rem; }

  .badge-link img { height: 44px; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }

  .privacy-page { padding-top: calc(var(--nav-h) + 48px); }
}

@media (max-width: 460px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .badge-link img { height: 48px; }
}

/* ── Hamburger open state ─────────────────────────────────────── */
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
