/* ==========================================================================
   Consumer Tech Handbook & Digital Guide Design System
   ========================================================================== */

:root {
  --bg-main: #070a12;
  --bg-elevated: #0e1422;
  --bg-card: #121a2d;
  --bg-card-hover: #17223b;
  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-accent: rgba(56, 189, 248, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-cyan: #60a5fa;
  --accent-indigo: #3b82f6;
  --accent-violet: #a855f7;
  --accent-emerald: #10b981;
  --gradient-brand: linear-gradient(135deg, #60a5fa 0%, #3b82f6 55%, #a855f7 100%);
  --gradient-glow: radial-gradient(circle at 20% 15%, rgba(56, 189, 248, 0.16), transparent 45%),
                   radial-gradient(circle at 80% 10%, rgba(99, 102, 241, 0.16), transparent 45%);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 20px 50px rgba(2, 6, 23, 0.55);
  --max-w: 1220px;
}

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

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
}

body {
  background: var(--bg-main);
  background-image: var(--gradient-glow);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Top Navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 10, 18, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand-link img {
  width: 36px;
  height: 36px;
}

.brand-accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.34rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  background: var(--gradient-brand);
  color: #fff;
}

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 1.1rem;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.25rem 1.5rem 1.6rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer.open {
  display: flex;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.78rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.btn-sm {
  padding: 0.52rem 1.05rem;
  font-size: 0.86rem;
}

/* ---- Hero Section ---- */
.hero {
  padding: 5rem 0 3.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.85rem;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.hero-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-showcase {
  background: linear-gradient(160deg, rgba(18, 26, 45, 0.95), rgba(10, 15, 28, 0.95));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-soft);
}

.showcase-screen {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(145deg, #0b192e 0%, #172554 52%, #1e1b4b 100%);
  padding: 1.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ebook-3d {
  width: 142px;
  min-width: 142px;
  height: 198px;
  border-radius: 6px 14px 14px 6px;
  background: linear-gradient(155deg, #0ea5e9 0%, #4f46e5 55%, #7e22ce 100%);
  box-shadow: -8px 10px 24px rgba(0, 0, 0, 0.55), inset 5px 0 10px rgba(255, 255, 255, 0.25);
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 5px solid #bae6fd;
  transform: perspective(700px) rotateY(-12deg);
  transition: transform 0.25s ease;
  cursor: pointer;
}

.ebook-3d:hover {
  transform: perspective(700px) rotateY(-4deg) translateY(-3px);
}

.ebook-3d-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(7, 10, 18, 0.45);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  align-self: flex-start;
  color: #e0f2fe;
}

.ebook-3d-title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.ebook-3d-foot {
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 0.4rem;
}

.live-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.showcase-play-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.showcase-play-btn:hover {
  transform: scale(1.08);
  background: rgba(56, 189, 248, 0.35);
}

.showcase-meta h3 {
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.showcase-meta p {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.showcase-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.stat-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
}

.stat-tile strong {
  display: block;
  font-size: 1.2rem;
  color: #fff;
}

.stat-tile span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- Sections ---- */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: rgba(14, 20, 34, 0.65);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.75rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.55rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.02rem;
}

/* ---- Filter Tabs & Media Grid ---- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab.active,
.filter-tab:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--accent-cyan);
  color: #fff;
}

.search-input-wrap {
  max-width: 460px;
  margin: 0 auto 1.75rem;
}

.search-input {
  width: 100%;
  padding: 0.82rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
}

.search-input:focus {
  border-color: var(--accent-cyan);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.35rem;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.media-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.media-Poster {
  aspect-ratio: 16 / 10;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.media-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(7, 10, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.media-play-mini {
  align-self: flex-end;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.media-body {
  padding: 1.05rem 1.15rem 1.2rem;
}

.media-body h3 {
  font-size: 1.02rem;
  margin-bottom: 0.3rem;
}

.media-body p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.media-tags {
  display: flex;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ---- Feature Cards ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.35rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.65rem;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}

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

/* ---- Comparison Table ---- */
.comp-table-wrap {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
}

.comp-table th,
.comp-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.94rem;
}

.comp-table th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
}

.comp-highlight {
  color: var(--accent-cyan);
  font-weight: 700;
}

/* ---- Pricing Grid ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-card.featured {
  border-color: var(--accent-cyan);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.09) 0%, var(--bg-card) 45%);
  box-shadow: 0 20px 55px rgba(56, 189, 248, 0.14);
}

.plan-badge {
  position: absolute;
  top: -13px;
  right: 22px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
}

.plan-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.plan-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}

.plan-price {
  font-size: 2.55rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.plan-price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-billing {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 1.8rem;
  flex: 1;
}

.plan-features li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.42rem 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.plan-features li::before {
  content: "✓";
  color: var(--accent-emerald);
  font-weight: 800;
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  padding: 1.15rem 1.35rem;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-a {
  display: none;
  padding: 0 1.35rem 1.2rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.faq-item.open .faq-a {
  display: block;
}

/* ---- Forms & Legal ---- */
.card-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.78rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
}

.legal-doc h2 {
  font-size: 1.45rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent-cyan);
}

.legal-doc h2:first-child {
  margin-top: 0;
}

.legal-doc p,
.legal-doc li {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: 0.75rem;
}

.legal-doc ul {
  padding-left: 1.3rem;
}

/* ---- Footer ---- */
.site-footer {
  margin-top: auto;
  background: #05070d;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  margin-bottom: 0.9rem;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

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

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---- Modals & Cookie Banner ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(8px);
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
}

.player-stage {
  border-radius: var(--radius-md);
  background: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-accent);
  margin: 1rem 0;
  padding: 1.5rem;
  text-align: center;
}

.cookie-bar {
  position: fixed;
  bottom: 18px;
  left: 18px;
  right: 18px;
  max-width: 920px;
  margin: 0 auto;
  background: rgba(14, 20, 34, 0.97);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.cookie-bar.show {
  display: flex;
}

.cookie-bar p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cookie-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
