/* ==========================================================================
   SnipWiz Marketing Site
   High-contrast dark theme inspired by the app's HC palette
   ========================================================================== */

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

:root {
  /* Palette — from SnipWiz high-contrast theme */
  --bg:              #000000;
  --surface:         #0A0A14;
  --surface-high:    #1E1E3A;
  --surface-highest: #2A2A4E;
  --primary:         #E8DBFF;   /* soft purple */
  --primary-deep:    #3D1F7C;   /* deep purple */
  --secondary:       #E0D6F0;
  --tertiary:        #FFD0E0;   /* pink */
  --text:            #FFFFFF;
  --text-muted:      #B0B0C0;
  --outline:         #666680;
  --focus:           #FFD60A;   /* yellow */
  --radius:          12px;
  --radius-sm:       8px;
  --font-display:    'Orbitron', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% -5%, rgba(61, 31, 124, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 90% 30%, rgba(90, 40, 70, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse 50% 30% at 5% 60%, rgba(61, 31, 124, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 70% 40% at 60% 90%, rgba(90, 40, 56, 0.25) 0%, transparent 50%),
    radial-gradient(circle 400px at 30% 20%, rgba(232, 219, 255, 0.04) 0%, transparent 100%),
    var(--bg);
  background-attachment: fixed;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--tertiary); }

img { max-width: 100%; height: auto; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* --- Layout -------------------------------------------------------------- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }

.section {
  padding: 100px 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.7;
}

.center .section-title,
.center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* --- Navigation ---------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-logo:hover { color: var(--primary); }

.nav-logo-img {
  width: 32px;
  height: 32px;
}

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

.nav-link {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-link:hover { color: var(--text); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-deep);
  color: var(--primary);
  border: 1px solid rgba(232, 219, 255, 0.2);
}

.btn-primary:hover {
  background: #4E28A0;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(61, 31, 124, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--outline);
}

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

.btn-disabled {
  background: var(--surface-highest);
  color: var(--outline);
  border: 1px solid rgba(102, 102, 128, 0.2);
  cursor: default;
  pointer-events: none;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  padding-top: 120px;
  padding-bottom: 40px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 100%;
  background:
    radial-gradient(ellipse 40% 50% at 50% 30%, rgba(61, 31, 124, 0.45) 0%, transparent 70%),
    radial-gradient(ellipse 30% 40% at 70% 60%, rgba(90, 40, 70, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero-text {
  max-width: 680px;
  margin: 0 auto;
}

.hero-wizard-inline {
  width: 100px;
  height: 100px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 40px rgba(61, 31, 124, 0.6));
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--primary);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--outline);
}

/* Hero screenshot — full-width app preview below the headline */
.hero-screenshot {
  max-width: 1000px;
  margin: 60px auto 0;
  padding: 0 24px;
}

.screenshot {
  border-radius: var(--radius);
  border: 1px solid rgba(102, 102, 128, 0.3);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(232, 219, 255, 0.05);
}

.screenshot-hero {
  border-radius: 16px;
  box-shadow:
    0 32px 100px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(232, 219, 255, 0.08),
    0 0 80px rgba(61, 31, 124, 0.3);
}

/* --- Why SnipWiz --------------------------------------------------------- */
.section-why {
  background: linear-gradient(180deg, rgba(10, 10, 20, 0.95) 0%, rgba(30, 30, 58, 0.5) 50%, rgba(10, 10, 20, 0.95) 100%);
  border-top: 1px solid rgba(232, 219, 255, 0.08);
  border-bottom: 1px solid rgba(232, 219, 255, 0.08);
  position: relative;
}

.section-why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(61, 31, 124, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

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

.why-card {
  background: var(--surface-high);
  border: 1px solid rgba(102, 102, 128, 0.15);
  border-radius: var(--radius);
  padding: 36px 28px;
}

.why-icon {
  font-size: 2rem;
  font-weight: 800;
  color: var(--tertiary);
  margin-bottom: 16px;
  font-family: 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Features — Alternating screenshot rows ------------------------------ */
.section-features .section-title {
  text-align: center;
  margin-bottom: 80px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 120px;
}

.feature-row:last-child {
  margin-bottom: 0;
}

.feature-row-reverse {
  grid-template-columns: 1fr 1.1fr;
}

.feature-row-reverse .feature-text {
  order: 2;
}

.feature-row-reverse .feature-img {
  order: 1;
}

.feature-text h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.feature-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 6px 0 6px 24px;
  position: relative;
  line-height: 1.5;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-deep);
  border: 1px solid var(--primary);
}

.feature-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-img .screenshot {
  max-width: 90%;
}

/* --- Download CTA -------------------------------------------------------- */
.section-download {
  padding: 120px 0;
}

.download-wizard {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  opacity: 0.85;
}

/* --- Footer -------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid rgba(102, 102, 128, 0.2);
  padding: 32px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.footer-logo {
  width: 24px;
  height: 24px;
  opacity: 0.6;
}

.footer-copy {
  color: var(--outline);
  font-size: 0.85rem;
}

/* --- Blog / Content pages ------------------------------------------------ */
.page-section {
  padding-top: 120px;
  padding-bottom: 80px;
}

.content-page {
  max-width: 720px;
}

.content-page h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.post-date {
  display: block;
  color: var(--outline);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.content-page p {
  margin-bottom: 16px;
  color: var(--text-muted);
}

.content-page h2 {
  font-size: 1.5rem;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 12px;
}

.content-page code {
  background: var(--surface-high);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 0.9em;
}

.content-page pre {
  background: var(--surface-high);
  border: 1px solid var(--outline);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.content-page pre code {
  background: none;
  padding: 0;
}

.content-page ul, .content-page ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--text-muted);
}

.content-page li {
  margin-bottom: 4px;
}

.post-card {
  background: var(--surface-high);
  border: 1px solid rgba(102, 102, 128, 0.15);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.post-card:hover {
  border-color: var(--primary-deep);
}

.post-card h2 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.post-card h2 a {
  color: var(--text);
}

.post-card h2 a:hover {
  color: var(--primary);
}

.post-card time {
  font-size: 0.85rem;
  color: var(--outline);
  display: block;
  margin-bottom: 8px;
}

.post-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- Download page ------------------------------------------------------- */
.dl-header {
  text-align: center;
  padding-bottom: 48px;
}

.dl-wizard {
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  opacity: 0.9;
}

.dl-header h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.dl-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Stats bar */
.dl-included {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.dl-included-item {
  background: var(--surface-high);
  border: 1px solid rgba(102, 102, 128, 0.15);
  border-radius: var(--radius);
  padding: 20px 28px;
  text-align: center;
  min-width: 140px;
  flex: 1;
  max-width: 180px;
}

.dl-stat {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--tertiary);
  font-family: 'SF Mono', 'Consolas', 'Liberation Mono', monospace;
  margin-bottom: 4px;
}

.dl-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* System requirements */
.dl-requirements {
  margin-bottom: 64px;
}

.dl-requirements h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

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

.dl-req-card {
  background: var(--surface);
  border: 1px solid rgba(102, 102, 128, 0.15);
  border-radius: var(--radius);
  padding: 24px;
}

.dl-req-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 6px;
}

.dl-req-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.dl-req-note {
  color: var(--outline) !important;
  font-size: 0.85rem !important;
}

/* Platform download cards */
.dl-platforms {
  margin-bottom: 48px;
}

.dl-platforms h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 24px;
}

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

.dl-card {
  background: var(--surface-high);
  border: 1px solid rgba(102, 102, 128, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.dl-card:hover {
  border-color: var(--primary-deep);
}

.dl-card-soon {
  opacity: 0.7;
}

.dl-card-soon:hover {
  opacity: 1;
}

.dl-card-header {
  padding: 20px 24px 0;
}

.dl-card-header h3 {
  font-size: 1.2rem;
  color: var(--text);
}

.dl-card-body {
  padding: 16px 24px 24px;
}

.dl-btn {
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.dl-rec {
  font-size: 0.8rem;
  color: var(--outline);
  text-align: center;
  margin-bottom: 12px;
}

.dl-alt-links {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid rgba(102, 102, 128, 0.15);
}

.dl-alt-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.dl-alt-links a:hover {
  color: var(--primary);
}

.dl-sep {
  color: var(--outline);
  margin: 0 8px;
}

/* Trust line */
.dl-trust {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(102, 102, 128, 0.15);
}

.dl-trust p {
  color: var(--outline);
  font-size: 0.9rem;
}

/* --- Security page ------------------------------------------------------- */
.sec-intro {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 56px;
}

.security-page {
  max-width: 900px;
}

.security-page h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.sec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 56px;
  max-width: 960px;
}

.sec-card {
  background: var(--surface-high);
  border: 1px solid rgba(102, 102, 128, 0.15);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.sec-card h2 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 8px;
  margin-top: 0;
}

.sec-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

.sec-disclosure {
  background: var(--surface);
  border: 1px solid rgba(102, 102, 128, 0.2);
  border-radius: var(--radius);
  padding: 28px;
}

.sec-disclosure h2 {
  font-size: 1.15rem;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 8px;
}

.sec-disclosure p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Download trust bar -------------------------------------------------- */
.dl-trust-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 28px 0;
  margin-bottom: 8px;
}

.dl-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.dl-trust-icon {
  font-size: 1.1rem;
}

.dl-trust a {
  color: var(--primary);
}

.dl-trust a:hover {
  color: var(--tertiary);
}

/* --- Lightbox ------------------------------------------------------------ */
.screenshot {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  cursor: zoom-out;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.lightbox-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.25s;
}

.lightbox-open .lightbox-img {
  transform: scale(1);
}

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

/* Tablet */
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .feature-row,
  .feature-row-reverse {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 72px;
  }

  .feature-row-reverse .feature-text { order: 1; }
  .feature-row-reverse .feature-img { order: 2; }

  .feature-img .screenshot {
    max-width: 100%;
  }

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

/* Mobile */
@media (max-width: 600px) {
  /* Prevent overflow */
  html, body {
    overflow-x: hidden;
  }

  .hero::before,
  .hero::after {
    display: none;
  }

  /* Nav — stack or shrink */
  .nav-inner {
    padding: 0 16px;
    height: 56px;
  }

  .nav-logo {
    font-size: 0.95rem;
    gap: 8px;
  }

  .nav-logo-img {
    width: 26px;
    height: 26px;
  }

  .nav-logo-text {
    display: none;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-link {
    font-size: 0.8rem;
  }

  /* Hero */
  .hero {
    padding-top: 80px;
    padding-bottom: 20px;
  }

  .hero-inner {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-wizard-inline {
    width: 64px;
    height: 64px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .hero-screenshot {
    margin-top: 32px;
    padding: 0 8px;
  }

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

  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-lead {
    font-size: 1rem;
  }

  .section-features .section-title {
    margin-bottom: 40px;
  }

  .feature-row,
  .feature-row-reverse {
    margin-bottom: 48px;
  }

  .feature-text h3 {
    font-size: 1.15rem;
  }

  .feature-text p {
    font-size: 0.95rem;
  }

  /* Why cards */
  .why-grid {
    max-width: none;
  }

  .why-card {
    padding: 24px 20px;
  }

  .why-icon {
    font-size: 1.5rem;
  }

  /* Download page */
  .dl-header h1 {
    font-size: 1.6rem;
  }

  .dl-included {
    gap: 10px;
  }

  .dl-included-item {
    min-width: 0;
    flex: 1 1 calc(50% - 10px);
    padding: 14px 12px;
  }

  .dl-stat {
    font-size: 1.2rem;
  }

  .dl-label {
    font-size: 0.7rem;
  }

  .dl-req-grid,
  .dl-platform-grid {
    grid-template-columns: 1fr;
  }

  .dl-trust-bar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* Download CTA */
  .section-download {
    padding: 64px 0;
  }

  .download-wizard {
    width: 80px;
    height: 80px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 0 16px;
  }

  /* Security */
  .security-page {
    max-width: 100%;
  }

  .sec-card {
    padding: 24px 20px;
  }

  /* Blog */
  .content-page h1 {
    font-size: 1.8rem;
  }

  /* Lightbox */
  .lightbox {
    padding: 16px;
  }
}
