/* ═══════════════════════════════════════════════════
   Magne — Landing Page Styles (Frosted Glass)
   ═══════════════════════════════════════════════════ */

:root {
  /* ── Palette (Frosted Glass) ── */
  --bg-base: #0a0c10;
  --bg-surface: #0f1114;
  --bg-elevated: #13161b;
  --bg-glass: rgba(15, 17, 20, 0.72);
  --bg-glass-hover: rgba(15, 17, 20, 0.85);

  --accent: #97b1b9;
  --accent-glow: rgba(151, 177, 185, 0.18);
  --accent-border: rgba(151, 177, 185, 0.12);
  --accent-hover: rgba(151, 177, 185, 0.28);

  --text-primary: #f0f2f5;
  --text-secondary: rgba(240, 242, 245, 0.65);
  --text-muted: rgba(240, 242, 245, 0.35);

  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(151, 177, 185, 0.15);

  --danger: #e85d75;
  --danger-glow: rgba(232, 93, 117, 0.12);
  --success: #4dd4ac;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --blur: 24px;
  --blur-light: 12px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', monospace;
}

/* ── Reset ── */
*, *::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-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Background Grain + Gradient ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(151, 177, 185, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(151, 177, 185, 0.03) 0%, transparent 50%);
}

/* ── Utility ── */
.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;
}

/* ═══════════════════════════
   LAYOUT
   ═══════════════════════════ */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 12, 16, 0.6);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-logo {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.nav-wordmark {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

/* ═══════════════════════════
   HERO
   ═══════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 88px;
  height: 88px;
  color: var(--accent);
  margin: 0 auto 32px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.2s forwards;
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.35s forwards;
}

.hero-title .text-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.6;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.5s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease-out 0.65s forwards;
}

/* ── Glow orb behind hero ── */
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(151, 177, 185, 0.07) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

/* ═══════════════════════════
   BUTTONS
   ═══════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  position: relative;
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: rgba(151, 177, 185, 0.08);
  backdrop-filter: blur(var(--blur-light));
  -webkit-backdrop-filter: blur(var(--blur-light));
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.btn-primary:hover {
  background: rgba(151, 177, 185, 0.15);
  border-color: rgba(151, 177, 185, 0.3);
  box-shadow: 0 0 20px rgba(151, 177, 185, 0.08);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(var(--blur-light));
  -webkit-backdrop-filter: blur(var(--blur-light));
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.1);
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ═══════════════════════════
   SECTIONS
   ═══════════════════════════ */

section {
  padding: 100px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
  opacity: 0.4;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ═══════════════════════════
   PRIVACY SECTION
   ═══════════════════════════ */

.privacy-section {
  position: relative;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.glass-card.danger {
  border-color: rgba(232, 93, 117, 0.12);
}

.glass-card.danger:hover {
  border-color: rgba(232, 93, 117, 0.25);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon.accent {
  background: var(--accent-glow);
  color: var(--accent);
}

.card-icon.danger {
  background: var(--danger-glow);
  color: var(--danger);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.card-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.card-text strong {
  color: var(--danger);
  font-weight: 600;
}

.card-text .text-accent {
  color: var(--accent);
  font-weight: 600;
}

/* Full-width card */
.privacy-grid .glass-card.full-width {
  grid-column: 1 / -1;
}

/* ═══════════════════════════
   FEATURES / CALLOUTS
   ═══════════════════════════ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur-light));
  -webkit-backdrop-filter: blur(var(--blur-light));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-2px);
}

.feature-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════
   DOWNLOAD SECTION
   ═══════════════════════════ */

.download-section {
  text-align: center;
  padding: 120px 0;
  position: relative;
}

.download-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 50%, rgba(151, 177, 185, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.download-content {
  position: relative;
  z-index: 1;
}

.download-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.download-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.download-meta {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.download-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ═══════════════════════════
   FOOTER
   ═══════════════════════════ */

.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-text {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ═══════════════════════════
   ANIMATIONS
   ═══════════════════════════ */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.6;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════
   RESPONSIVE
   ═══════════════════════════ */

@media (max-width: 768px) {
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 100px 20px 60px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
