/* ==========================================================================
   Unchained — Shared + Landing Page Styles
   Theme: dark background, purple accent
   ========================================================================== */

:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --surface-hover: #222531;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-glow: rgba(139, 92, 246, 0.15);
  --border: #27272a;
  --link: #a78bfa;
}

html {
  scroll-behavior: smooth;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Legal Pages — existing styles (container, header, content, footer)
   ========================================================================== */

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

header {
  text-align: center;
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
}

header .subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text);
}

p {
  margin-bottom: 12px;
  color: var(--text);
}

ul, ol {
  margin: 12px 0 12px 24px;
}

li {
  margin-bottom: 8px;
}

strong {
  color: var(--text);
  font-weight: 600;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

th, td {
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--border);
}

th {
  background: var(--surface);
  font-weight: 600;
  color: var(--text);
}

td {
  color: var(--text-muted);
}

.caps {
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.effective-date {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 4px;
}

.nav-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 16px;
}

.nav-links a {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.nav-links a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* Legal page footer (inside .container) */
footer {
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ==========================================================================
   Landing Page — Navigation
   ========================================================================== */

.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.landing-nav-brand-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.landing-nav-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.3px;
}

.landing-nav-brand:hover {
  text-decoration: none;
  color: var(--accent-hover);
}

.landing-nav-parent {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.landing-nav-parent:hover {
  opacity: 1;
  text-decoration: none;
}

.landing-nav-links {
  display: flex;
  gap: 32px;
}

.landing-nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.landing-nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

/* ==========================================================================
   Landing Page — Hero
   ========================================================================== */

.hero {
  padding: 160px 24px 100px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, var(--accent-glow), transparent),
    var(--bg);
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 20px;
  padding: 6px 16px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--text);
}

.hero-tagline {
  font-size: 24px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Landing Page — Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   Landing Page — Sections (shared)
   ========================================================================== */

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
  margin: 0 0 12px;
  padding: 0;
  border: none;
  color: var(--text);
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 48px;
}

/* ==========================================================================
   Landing Page — Features
   ========================================================================== */

.features {
  padding: 100px 24px;
  background: var(--bg);
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 32px var(--accent-glow);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--text);
}

.feature-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   Landing Page — Download
   ========================================================================== */

.download {
  padding: 100px 24px;
  background: var(--surface);
  text-align: center;
}

.download-badges {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.download-badge:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
  text-decoration: none;
}

.download-badge svg {
  flex-shrink: 0;
}

.download-badge-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.download-badge-small {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.download-badge-big {
  font-size: 18px;
  font-weight: 600;
}

.download-web-note {
  font-size: 14px;
  color: var(--text-muted);
}

/* ==========================================================================
   Landing Page — Footer
   ========================================================================== */

.landing-footer {
  padding: 64px 24px 32px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  /* Reset legal footer overrides */
  text-align: left;
  margin-top: 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-links-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-group a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links-group a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   Responsive — Tablet
   ========================================================================== */

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-grid .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Responsive — Mobile
   ========================================================================== */

@media (max-width: 600px) {
  .landing-nav-links {
    gap: 20px;
  }

  .landing-nav-links a {
    font-size: 13px;
  }

  .hero {
    padding: 120px 20px 72px;
  }

  .hero-title {
    font-size: 40px;
    letter-spacing: -1px;
  }

  .hero-tagline {
    font-size: 20px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

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

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .features {
    padding: 64px 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 15px;
  }

  .download {
    padding: 64px 20px;
  }

  .download-badges {
    flex-direction: column;
    align-items: center;
  }

  .download-badge {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .landing-footer {
    padding: 48px 20px 24px;
  }
}
