/* ===== SwipeVault Website — Design System ===== */

:root {
  /* Midnight theme colors */
  --bg-top: #0f1224;
  --bg-bottom: #141a33;
  --accent: #00e4ff;
  --accent-glow: rgba(0, 228, 255, 0.25);
  --glass-fill: rgba(255, 255, 255, 0.06);
  --glass-fill-elevated: rgba(255, 255, 255, 0.10);
  --glass-stroke: rgba(255, 255, 255, 0.18);
  --glass-stroke-bright: rgba(255, 255, 255, 0.30);
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.60);
  --text-tertiary: rgba(255, 255, 255, 0.40);
  --key-yellow: #ffd600;
  --laser-red: #ff4444;
  --exit-green: #44ff88;
  --shadow: rgba(0, 0, 0, 0.25);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Rounded', 'SF Pro Display', system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--bg-top);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== Animated background ===== */
.bg-animation {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.45;
  animation: float 18s ease-in-out infinite;
}

.blob-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0, 228, 255, 0.35), transparent 70%);
  top: -80px; left: 15%;
  animation-delay: 0s;
}

.blob-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(90, 60, 200, 0.35), transparent 70%);
  bottom: 10%; right: 10%;
  animation-delay: -6s;
}

.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0, 228, 255, 0.20), transparent 70%);
  top: 50%; left: 50%;
  animation-delay: -12s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(60px, -40px) scale(1.08); }
  50%      { transform: translate(-30px, 50px) scale(0.95); }
  75%      { transform: translate(-50px, -30px) scale(1.05); }
}

/* ===== Layout ===== */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 24px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: rgba(15, 18, 36, 0.75);
  border-bottom: 1px solid var(--glass-stroke);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.15rem;
}

.nav-brand img {
  width: 36px; height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 18, 36, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-stroke);
    padding: 8px 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
  }
}

/* ===== Hero ===== */
.hero {
  padding: 160px 0 80px;
  text-align: center;
}

.hero-tagline {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--accent);
  color: #0a0c1a;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px var(--accent-glow);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--accent-glow);
}

.hero-cta svg {
  width: 22px; height: 22px;
}

/* App Store badge */
.app-store-badge {
  height: 54px;
  transition: transform 0.2s;
}

.app-store-badge:hover {
  transform: translateY(-2px);
}

/* ===== Screenshot showcase ===== */
.screenshots {
  padding: 40px 0 80px;
  overflow: hidden;
}

.screenshot-scroll {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.screenshot-scroll img {
  width: 220px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-stroke);
  box-shadow: 0 12px 40px var(--shadow);
  transition: transform 0.3s;
}

.screenshot-scroll img:hover {
  transform: translateY(-6px) scale(1.02);
}

/* ===== Glass card ===== */
.glass-card {
  background: var(--glass-fill);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px var(--shadow);
}

.glass-card-elevated {
  background: var(--glass-fill-elevated);
  border-color: var(--glass-stroke-bright);
}

/* ===== Features section ===== */
.features {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 56px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

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

.feature-card {
  text-align: center;
  padding: 36px 24px;
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== How it works ===== */
.how-it-works {
  padding: 80px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.step {
  text-align: center;
  padding: 32px 20px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0c1a;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== Packs preview ===== */
.packs {
  padding: 80px 0;
}

.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 48px;
}

.pack-card {
  padding: 20px 16px;
  text-align: center;
  transition: transform 0.2s;
}

.pack-card:hover {
  transform: translateY(-3px);
}

.pack-card .pack-emoji {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
}

.pack-card h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.pack-card p {
  color: var(--text-tertiary);
  font-size: 0.78rem;
}

.pack-card .pack-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-free {
  background: rgba(0, 228, 255, 0.15);
  color: var(--accent);
  border: 1px solid rgba(0, 228, 255, 0.3);
}

.badge-premium {
  background: rgba(255, 214, 0, 0.12);
  color: var(--key-yellow);
  border: 1px solid rgba(255, 214, 0, 0.25);
}

/* ===== Premium section ===== */
.premium {
  padding: 80px 0;
}

.premium-card {
  text-align: center;
  padding: 48px 32px;
  border-color: rgba(255, 214, 0, 0.25);
  background: linear-gradient(145deg, rgba(255, 214, 0, 0.04), var(--glass-fill));
}

.premium-card h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.premium-card .premium-subtitle {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1rem;
}

.premium-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
  text-align: left;
}

.premium-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.premium-feature .check {
  color: var(--exit-green);
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.premium-feature span {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.premium-note {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-top: 16px;
}

/* ===== Footer ===== */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--glass-stroke);
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ===== Legal pages ===== */
.legal-page {
  padding: 120px 0 80px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-page .last-updated {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  color: var(--accent);
}

.legal-page p, .legal-page li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page a {
  color: var(--accent);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

/* ===== Support page ===== */
.support-page {
  padding: 120px 0 80px;
}

.support-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.support-page .support-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 48px;
  font-size: 1.05rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 48px;
}

.faq-item {
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
}

.faq-question .arrow {
  transition: transform 0.25s;
  color: var(--text-tertiary);
}

.faq-item.open .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-top: 12px;
}

.faq-answer p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.contact-card {
  text-align: center;
  padding: 40px 32px;
}

.contact-card h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

/* ===== Utility ===== */
.text-accent { color: var(--accent); }
.text-yellow { color: var(--key-yellow); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .hero { padding: 130px 0 60px; }
  .hero h1 { font-size: 2.4rem; }
  .features, .how-it-works, .packs, .premium { padding: 56px 0; }
  .glass-card { padding: 24px 18px; }
  .screenshot-scroll img { width: 170px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .packs-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
