/* =====================================================
   Privacy AI — Demo Design System
   ===================================================== */

/* --- Variables --- */
:root {
  --bg:          #080c14;
  --bg-section:  #0a0f1c;
  --bg-card:     #0d1220;
  --border:      rgba(255,255,255,0.07);
  --border-hover:rgba(255,255,255,0.16);
  --text:        #edf2f7;
  --text-muted:  #64748b;
  --text-dim:    #334155;
  --blue:        #3b82f6;
  --teal:        #0891b2;
  --green:       #10b981;
  --purple:      #8b5cf6;
  --amber:       #f59e0b;
  --cyan:        #06b6d4;
  --pink:        #ec4899;
  --orange:      #f97316;
  --indigo:      #6366f1;
  --radius:      12px;
  --header-h:    64px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --- Typography --- */
.mono { font-family: 'JetBrains Mono', monospace; }
.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* =====================================================
   HEADER
   ===================================================== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 2rem;
  background: rgba(8, 12, 20, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
}
.logo {
  font-weight: 700; font-size: 15px; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.logo-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
nav a {
  font-size: 14px; color: var(--text-muted);
  transition: color 0.2s;
}
nav a:hover { color: var(--text); }
.lang-switcher {
  display: flex; align-items: center; gap: 4px;
  margin-left: 1rem;
}
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--text-muted); padding: 4px 6px; border-radius: 4px;
  transition: all 0.2s;
}
.lang-btn.active, .lang-btn:hover {
  color: var(--text); background: rgba(255,255,255,0.06);
}
.btn-download {
  background: var(--blue); color: #fff;
  padding: 8px 16px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.btn-download:hover { background: #2563eb; transform: translateY(-1px); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 4rem) 2rem 4rem;
  position: relative; overflow: hidden;
  text-align: center;
}
/* Animated background glow */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(59,130,246,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 70%, rgba(8,145,178,0.08) 0%, transparent 60%);
  animation: hero-pulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}
/* Subtle grid overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
@keyframes hero-pulse {
  from { opacity: 0.8; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.05); }
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800; line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}
.hero-title span { display: block; }
.hero-title span:nth-child(2) { color: var(--text-muted); }
.hero-title span:nth-child(3) {
  background: linear-gradient(90deg, var(--blue), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px; color: var(--text-muted); line-height: 1.7;
  max-width: 520px; margin: 0 auto 2.5rem;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.btn-appstore {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #000;
  padding: 12px 22px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-appstore:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,255,255,0.12); }
.btn-appstore svg { width: 20px; height: 20px; }
.hero-badges {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex-wrap: wrap; margin-top: 2.5rem;
}
.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-muted); background: rgba(255,255,255,0.03);
}
.badge.green  { border-color: rgba(16,185,129,0.35); color: var(--green); background: rgba(16,185,129,0.06); }
.badge.blue   { border-color: rgba(59,130,246,0.35);  color: var(--blue);  background: rgba(59,130,246,0.06); }
.badge.purple { border-color: rgba(139,92,246,0.35); color: var(--purple); background: rgba(139,92,246,0.06); }

/* =====================================================
   MARQUEE
   ===================================================== */
.marquee-strip {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0; overflow: hidden;
}
.marquee-track {
  display: flex; gap: 1.5rem; width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-strip:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--text-muted); white-space: nowrap;
  padding: 3px 12px; border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

/* =====================================================
   FEATURE SECTIONS
   ===================================================== */
.features-wrap { padding: 0 2rem; }
.feature-section {
  max-width: 1200px; margin: 0 auto;
  padding: 7rem 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.feature-grid.reverse .feature-video { order: -1; }
/* Decorative section number */
.section-num {
  position: absolute; top: 4rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(8rem, 15vw, 14rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none; user-select: none;
  opacity: 0.035;
  color: #fff;
  z-index: 0;
}
.feature-grid.reverse .section-num { right: 0; }
.feature-grid:not(.reverse) .section-num { left: 0; }
/* Content */
.feature-content { position: relative; z-index: 1; }
.feature-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.feature-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.03em; margin-bottom: 1rem;
}
.feature-desc {
  font-size: 16px; color: var(--text-muted);
  line-height: 1.75; margin-bottom: 1.75rem;
}
.feature-bullets { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature-bullets li {
  font-size: 14px; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 10px;
}
.feature-bullets li::before {
  content: '—'; color: currentColor; flex-shrink: 0; opacity: 0.5;
}
.feature-stat {
  margin-top: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900; line-height: 1;
  letter-spacing: -0.04em;
}
.feature-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 4px;
}
/* Video placeholder */
.feature-video { position: relative; z-index: 1; }
.video-placeholder {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.video-placeholder:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 24px 64px rgba(0,0,0,0.5);
}
.video-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(255,255,255,0.04) 0%, transparent 70%);
}
.video-label {
  position: absolute; top: 14px; left: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(0,0,0,0.4); padding: 4px 8px; border-radius: 4px;
  backdrop-filter: blur(4px);
}
.video-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: all 0.25s;
}
.video-placeholder:hover .video-play-btn {
  background: rgba(255,255,255,0.18);
  transform: translate(-50%, -50%) scale(1.08);
}
.video-play-btn svg { width: 20px; height: 20px; margin-left: 3px; }
.video-cta {
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--text-muted); white-space: nowrap;
}
/* Accent color per feature */
.accent-green  { color: var(--green);  }
.accent-blue   { color: var(--blue);   }
.accent-purple { color: var(--purple); }
.accent-amber  { color: var(--amber);  }
.accent-cyan   { color: var(--cyan);   }
.accent-pink   { color: var(--pink);   }
.accent-orange { color: var(--orange); }
.accent-indigo { color: var(--indigo); }

.video-glow-green  .video-bg { background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(16,185,129,0.1) 0%, transparent 70%); }
.video-glow-blue   .video-bg { background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(59,130,246,0.1) 0%, transparent 70%); }
.video-glow-purple .video-bg { background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(139,92,246,0.1) 0%, transparent 70%); }
.video-glow-cyan   .video-bg { background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(6,182,212,0.1) 0%, transparent 70%); }

/* =====================================================
   FEATURES GRID
   ===================================================== */
.grid-section {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 2rem;
}
.grid-inner { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.5rem;
}
.section-header p { color: var(--text-muted); font-size: 16px; }
.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.grid-card {
  background: var(--bg-card);
  padding: 1.75rem;
  transition: background 0.2s;
  position: relative; overflow: hidden;
}
.grid-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.02), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.grid-card:hover { background: #0f1728; }
.grid-card:hover::before { opacity: 1; }
.card-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 16px;
}
.grid-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.grid-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact-section {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 6rem 2rem;
}
.contact-inner { max-width: 1200px; margin: 0 auto; }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 3.5rem;
}
.contact-card {
  background: var(--bg-card);
  padding: 2.25rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: background 0.2s;
}
.contact-card:hover { background: #0f1728; }
.contact-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.25rem;
}
.contact-card-icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 16px; font-weight: 700; }
.contact-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.contact-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
  transition: opacity 0.2s;
}
.contact-card-link:hover { opacity: 0.75; }
.contact-card-link svg { width: 14px; height: 14px; }

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
  padding: 8rem 2rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(59,130,246,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.cta-inner h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800; letter-spacing: -0.04em;
  line-height: 1.1; margin-bottom: 1rem;
}
.cta-inner p { color: var(--text-muted); font-size: 16px; margin-bottom: 2.5rem; }
.cta-platforms {
  margin-top: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim);
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-inner {
  width: 100%; max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
footer .label { font-size: 12px; }
.footer-links { display: flex; gap: 1.5rem; align-items: center; }
.footer-links a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-social { display: flex; align-items: center; gap: 12px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: all 0.2s;
}
.footer-social a:hover { border-color: var(--border-hover); color: var(--text); background: rgba(255,255,255,0.04); }
.footer-social svg { width: 16px; height: 16px; }

/* =====================================================
   SCROLL ANIMATION
   ===================================================== */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .feature-grid.reverse .feature-video { order: 0; }
  .section-num { display: none; }
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  header { padding: 0 1rem; }
  nav { display: none; }
  .hero-title { font-size: 2.75rem; }
  .features-wrap { padding: 0 1rem; }
  .grid-section, .contact-section { padding: 4rem 1rem; }
  .grid-cards { grid-template-columns: 1fr; }
  .cta-section { padding: 5rem 1rem; }
  footer { padding: 1.5rem 1rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
}

/* =====================================================
   PAGE CONTENT UTILITIES (whats_new, api-model-pricing)
   ===================================================== */
.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 3rem) 2rem 4rem;
}
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-muted);
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.back-link:hover { color: var(--text); }
.version-section {
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--green);
  background: rgba(16,185,129,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 2.5rem 0 1rem;
}
.version-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px;
  border: 1px solid rgba(16,185,129,0.4);
  color: var(--green); background: rgba(16,185,129,0.08);
  margin-bottom: 0.5rem;
}
.version-tag.latest {
  border-color: rgba(59,130,246,0.4);
  color: var(--blue); background: rgba(59,130,246,0.08);
}
