/* ============================================
   NOTES+ WEBSITE — CORE DESIGN SYSTEM
   ============================================ */

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

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Colors */
  --bg-primary: #0A0A0F;
  --bg-secondary: #111118;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --bg-navbar: rgba(10, 10, 15, 0.85);
  --accent-yellow: #FFCC00;
  --accent-yellow-dim: rgba(255, 204, 0, 0.15);
  --accent-yellow-glow: rgba(255, 204, 0, 0.4);
  --accent-blue: #007AFF;
  --accent-blue-dim: rgba(0, 122, 255, 0.15);
  --text-primary: #FFFFFF;
  --text-secondary: #AEAEB2;
  --text-muted: #636366;
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(255, 255, 255, 0.15);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.5rem;
  --font-size-6xl: 4.5rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --navbar-height: 72px;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-base);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ---------- Background Texture ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 20% 10%, rgba(0, 122, 255, 0.06), transparent),
    radial-gradient(ellipse 600px 400px at 80% 80%, rgba(255, 204, 0, 0.04), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  background: var(--bg-navbar);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
  z-index: 1000;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  z-index: 1001;
}

.navbar-brand .brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.navbar-brand .brand-plus {
  color: var(--accent-yellow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav-links a {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-base);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-yellow);
  border-radius: 1px;
  transition: width var(--transition-base);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: calc(var(--navbar-height) + var(--space-2xl)) var(--space-2xl) var(--space-2xl);
    background: rgba(15, 15, 22, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid var(--border-glass);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: 1000;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: var(--font-size-lg);
    padding: var(--space-md) 0;
    width: 100%;
    border-bottom: 1px solid var(--border-glass);
  }
}

/* Mobile overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.nav-overlay.visible {
  display: block;
  opacity: 1;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-height);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero glow */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.hero-glow--yellow {
  background: var(--accent-yellow);
  top: 10%;
  left: -10%;
  opacity: 0.12;
}

.hero-glow--blue {
  background: var(--accent-blue);
  bottom: -20%;
  right: -5%;
  opacity: 0.08;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--accent-yellow-dim);
  border: 1px solid rgba(255, 204, 0, 0.2);
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  color: var(--accent-yellow);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
}

.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-yellow);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent-yellow), #FFE066);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-sm);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-yellow), #FFB800);
  color: #0A0A0F;
  box-shadow:
    0 0 20px var(--accent-yellow-dim),
    0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 40px var(--accent-yellow-glow),
    0 8px 25px rgba(0, 0, 0, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: var(--font-size-lg);
}

/* Version label */
.hero-version {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* ---------- Phone Mockup ---------- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  position: relative;
  width: 280px;
  perspective: 1000px;
}

.phone-frame {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  background: #1C1C1E;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 25px 60px rgba(0, 0, 0, 0.5),
    0 0 80px var(--accent-yellow-dim);
}

.phone-frame img {
  width: 100%;
  border-radius: 24px;
  display: block;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #0A0A0F;
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

/* Floating rings behind phone */
.phone-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 204, 0, 0.1);
  pointer-events: none;
}

.phone-ring--1 {
  width: 350px;
  height: 350px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ring-pulse 4s ease-in-out infinite;
}

.phone-ring--2 {
  width: 450px;
  height: 450px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ring-pulse 4s ease-in-out infinite 1s;
  border-color: rgba(0, 122, 255, 0.08);
}

/* ============================================
   HIGHLIGHTS / FEATURES PREVIEW
   ============================================ */
.highlights {
  position: relative;
  padding: var(--space-5xl) 0;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-yellow);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ---------- Glass Card ---------- */
.glass-card {
  position: relative;
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-base);
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--space-lg);
}

.card-icon--yellow {
  background: var(--accent-yellow-dim);
  color: var(--accent-yellow);
  border: 1px solid rgba(255, 204, 0, 0.15);
}

.card-icon--blue {
  background: var(--accent-blue-dim);
  color: var(--accent-blue);
  border: 1px solid rgba(0, 122, 255, 0.15);
}

.card-icon--white {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card h3 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.glass-card p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   FEATURE SECTIONS (features.html)
   ============================================ */
.features-page {
  position: relative;
  z-index: 1;
}

/* Individual feature row */
.feature-section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.feature-section + .feature-section {
  border-top: 1px solid var(--border-glass);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

/* Alternate: even sections flip the visual to the left */
.feature-section:nth-child(even) .feature-row {
  direction: rtl;
}

.feature-section:nth-child(even) .feature-row > * {
  direction: ltr;
}

/* Text side */
.feature-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.feature-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  width: fit-content;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--border-radius-full);
}

.feature-label--yellow {
  color: var(--accent-yellow);
  background: var(--accent-yellow-dim);
  border: 1px solid rgba(255, 204, 0, 0.15);
}

.feature-label--blue {
  color: var(--accent-blue);
  background: var(--accent-blue-dim);
  border: 1px solid rgba(0, 122, 255, 0.15);
}

.feature-label--white {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-text h2 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
}

.feature-text h2 .highlight {
  background: linear-gradient(135deg, var(--accent-yellow), #FFE066);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-text h2 .highlight-blue {
  background: linear-gradient(135deg, var(--accent-blue), #5AC8FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-text .feature-desc {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 480px;
}

/* Feature bullet list */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent-yellow);
}

.feature-list.blue li::before {
  background: var(--accent-blue);
}

/* Visual side — phone(s) */
.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 400px;
}

/* Dual phone layout */
.feature-phones {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  position: relative;
}

.feature-phones .phone-mockup:nth-child(2) {
  transform: translateY(30px);
}

.feature-phones .phone-mockup {
  width: 200px;
}

/* Single phone in feature section */
.feature-visual > .phone-mockup {
  width: 240px;
}

/* Icon-only visual (no screenshot) */
.feature-icon-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

.feature-icon-block {
  width: 180px;
  height: 180px;
  border-radius: var(--border-radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--transition-base);
}

.feature-icon-block:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  transform: scale(1.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.feature-icon-block svg {
  width: 72px;
  height: 72px;
  opacity: 0.9;
}

.feature-icon-block::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 204, 0, 0.2), transparent, rgba(0, 122, 255, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Floating accent glow behind feature visuals */
.feature-visual::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
}

.feature-section:nth-child(odd) .feature-visual::before {
  background: var(--accent-yellow);
}

.feature-section:nth-child(even) .feature-visual::before {
  background: var(--accent-blue);
}

/* ============================================
   FEATURE SECTIONS — RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .feature-row {
    gap: var(--space-2xl);
  }

  .feature-phones .phone-mockup {
    width: 170px;
  }

  .feature-visual > .phone-mockup {
    width: 210px;
  }

  .feature-text h2 {
    font-size: var(--font-size-2xl);
  }
}

@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  /* Reset RTL direction trick on mobile */
  .feature-section:nth-child(even) .feature-row {
    direction: ltr;
  }

  .feature-text {
    align-items: center;
  }

  .feature-text .feature-desc {
    max-width: 100%;
  }

  .feature-list {
    text-align: left;
    max-width: 340px;
  }

  .feature-visual {
    order: -1;
    min-height: auto;
  }

  .feature-phones .phone-mockup {
    width: 150px;
  }

  .feature-phones .phone-mockup:nth-child(2) {
    transform: translateY(20px);
  }

  .feature-visual > .phone-mockup {
    width: 180px;
  }

  .feature-icon-block {
    width: 140px;
    height: 140px;
  }

  .feature-icon-block svg {
    width: 56px;
    height: 56px;
  }

  .feature-section {
    padding: var(--space-3xl) 0;
  }
}

/* ============================================
   SCREENSHOTS PAGE
   ============================================ */
.screenshots-page {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-4xl);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  max-width: 1100px;
  margin: 0 auto;
}

.screenshot-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  cursor: pointer;
  transition: transform var(--transition-base);
}

.screenshot-item:hover {
  transform: translateY(-6px);
}

.screenshot-item:hover .phone-frame {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 60px var(--accent-yellow-dim);
}

.screenshot-item .phone-mockup {
  width: 100%;
  max-width: 220px;
}

.screenshot-caption {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
  max-width: 200px;
  transition: color var(--transition-base);
}

.screenshot-item:hover .screenshot-caption {
  color: var(--text-secondary);
}

/* ---------- Lightbox ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 400px;
  width: 90%;
  animation: scale-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-content img {
  width: 100%;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-top: var(--space-lg);
}

.lightbox-close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 2001;
  position: fixed;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 2001;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.18);
}

.lightbox-arrow--prev {
  left: var(--space-xl);
}

.lightbox-arrow--next {
  right: var(--space-xl);
}

.lightbox-counter {
  position: fixed;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  z-index: 2001;
}

/* Screenshots responsive */
@media (max-width: 1024px) {
  .screenshots-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .lightbox-arrow {
    width: 40px;
    height: 40px;
  }

  .lightbox-arrow--prev {
    left: var(--space-md);
  }

  .lightbox-arrow--next {
    right: var(--space-md);
  }
}

@media (max-width: 480px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .screenshot-caption {
    font-size: 0.65rem;
  }
}

/* ============================================
   DOWNLOAD PAGE
   ============================================ */
.download-page {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-4xl);
}

/* Version hero card */
.download-hero {
  max-width: 640px;
  margin: 0 auto var(--space-4xl);
  text-align: center;
}

.version-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-3xl) var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.version-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.3), transparent);
}

.version-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(135deg, var(--accent-yellow), #FFB800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: #0A0A0F;
  margin: 0 auto var(--space-xl);
  box-shadow: 0 8px 30px var(--accent-yellow-dim);
}

.version-number {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.version-code {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.version-changelog {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-full);
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}

.version-changelog svg {
  flex-shrink: 0;
}

.download-btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.download-btn-wrapper .btn-primary {
  font-size: var(--font-size-base);
  padding: 16px 40px;
}

.download-size {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* Sideload guide */
.sideload-section {
  max-width: 720px;
  margin: 0 auto var(--space-4xl);
}

.sideload-section h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-2xl);
  letter-spacing: -0.02em;
}

.sideload-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.sideload-step {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  position: relative;
  transition: all var(--transition-base);
}

.sideload-step:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  transform: translateY(-3px);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-yellow-dim);
  border: 1px solid rgba(255, 204, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--accent-yellow);
  margin: 0 auto var(--space-md);
}

.step-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.sideload-step h3 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.sideload-step p {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

/* Connector line between steps */
.sideload-step + .sideload-step::before {
  content: '';
  position: absolute;
  left: -var(--space-lg);
  top: 50%;
  width: var(--space-lg);
  height: 1px;
  background: var(--border-glass);
}

/* Info note */
.info-note {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.info-note-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-blue-dim);
  border: 1px solid rgba(0, 122, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  margin-top: 2px;
}

.info-note h3 {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.info-note p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Download responsive */
@media (max-width: 768px) {
  .sideload-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .sideload-step + .sideload-step::before {
    display: none;
  }

  .version-number {
    font-size: var(--font-size-3xl);
  }

  .info-note {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .sideload-steps {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ============================================
   PRIVACY PAGE
   ============================================ */
.privacy-page {
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-4xl);
}

.privacy-content {
  max-width: 720px;
  margin: 0 auto;
}

.privacy-section {
  margin-bottom: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--border-radius-lg);
  padding: var(--space-2xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-base);
}

.privacy-section:hover {
  border-color: var(--border-glass-hover);
}

.privacy-section h2 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.privacy-section h2 svg {
  flex-shrink: 0;
  color: var(--accent-yellow);
}

.privacy-section p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.privacy-section p:last-child {
  margin-bottom: 0;
}

.privacy-section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.privacy-updated {
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  margin-top: var(--space-2xl);
}

/* Privacy responsive */
@media (max-width: 768px) {
  .privacy-section {
    padding: var(--space-xl);
  }

  .privacy-section h2 {
    font-size: var(--font-size-lg);
  }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border-glass);
  z-index: 1;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.footer-brand .brand-plus {
  color: var(--accent-yellow);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.footer-links a {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  transition: color var(--transition-base);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

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

.footer-credit {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  width: 100%;
  text-align: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-glass);
}

.footer-credit .credit-name {
  color: var(--accent-yellow);
  font-weight: 500;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================
   PAGE HEADER (for sub-pages)
   ============================================ */
.page-header {
  padding: calc(var(--navbar-height) + var(--space-4xl)) 0 var(--space-3xl);
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-header h1 {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

.page-header p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero .container {
    gap: var(--space-2xl);
  }

  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .phone-mockup {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--navbar-height) + var(--space-3xl));
    padding-bottom: var(--space-3xl);
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-3xl);
  }

  .hero-content {
    align-items: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .hero-visual {
    order: -1;
  }

  .phone-mockup {
    width: 200px;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .section-title {
    font-size: var(--font-size-2xl);
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-header h1 {
    font-size: var(--font-size-3xl);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--font-size-2xl);
  }

  .btn {
    padding: 12px 24px;
    font-size: var(--font-size-xs);
  }

  .glass-card {
    padding: var(--space-xl);
  }
}
