/* ============================================================
   DramaSlayer — Shared Stylesheet
   RTL Arabic design system
   ============================================================ */
:root {
  --purple-darkest: #2B0A38;
  --purple-dark:    #4A1259;
  --purple:         #8F23AA;
  --purple-mid:     #6E1B85;
  --purple-light:   #A83FC4;
  --magenta:        #C0399E;
  --gold:           #F3A623;
  --gold-dark:      #D98E14;
  --white:          #FFFFFF;
  --off-white:      #FBF5FC;
  --muted:          #745B7E;
  --border:         #E4CFEA;
  --card-bg:        #FFFFFF;
  --text-dark:      #241129;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(43,10,56,.08), 0 1px 2px rgba(43,10,56,.05);
  --shadow: 0 4px 16px rgba(43,10,56,.12);
  --shadow-lg: 0 10px 40px rgba(43,10,56,.16);
  --shadow-xl: 0 20px 60px rgba(43,10,56,.22);
  --font: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', sans-serif;
  --transition: 0.25s ease;
}

/* ============================================================ RESET ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text-dark); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }

/* ============================================================ UTILITIES ============================================================ */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 72px 0; }

.label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0;
  color: var(--gold-dark); background: rgba(243,166,35,.12);
  padding: 5px 12px; border-radius: 100px; margin-bottom: 14px;
}
.label-purple { color: var(--purple); background: rgba(143,35,170,.1); }
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800; color: var(--purple-darkest); line-height: 1.35; margin-bottom: 16px;
}
.section-title-white { color: var(--white); }
.section-subtitle { font-size: 1.02rem; color: var(--muted); max-width: 640px; line-height: 1.85; }
.section-subtitle-white { color: rgba(255,255,255,.72); }
.section-header { margin-bottom: 56px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 700;
  transition: all var(--transition); white-space: nowrap; min-height: 48px;
}
.btn-primary { background: var(--gold); color: var(--purple-darkest); box-shadow: 0 4px 20px rgba(243,166,35,.35); }
.btn-primary:hover { background: var(--gold-dark); box-shadow: 0 6px 28px rgba(243,166,35,.45); transform: translateY(-2px); }
.hero-actions .btn-primary {
  background: linear-gradient(135deg, #FFCE6E, var(--gold));
  box-shadow: 0 6px 20px rgba(243,166,35,.4), 0 10px 34px rgba(192,57,158,.22);
}
.hero-actions .btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 8px 26px rgba(243,166,35,.5), 0 12px 40px rgba(192,57,158,.28);
  transform: translateY(-2px) scale(1.02);
}
.btn-purple { background: var(--purple-light); color: var(--white); border: 1px solid rgba(255,255,255,.18); box-shadow: 0 4px 20px rgba(143,35,170,.35); }
.btn-purple:hover { background: var(--purple); transform: translateY(-2px); box-shadow: 0 6px 28px rgba(143,35,170,.45); }
.btn-outline { background: transparent; color: var(--purple-darkest); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.35); }
.btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; min-height: 38px; }
.btn-block { width: 100%; }

/* ============================================================ BREADCRUMBS ============================================================ */
.breadcrumb-bar { background: var(--off-white); border-bottom: 1px solid var(--border); padding: 14px 0; }
.breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 0.83rem; color: var(--muted); }
.breadcrumb-list a { color: var(--purple); font-weight: 600; }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-list .sep { color: var(--border); }
.breadcrumb-list .current { color: var(--text-dark); font-weight: 600; }

/* ============================================================ HEADER ============================================================ */
#header {
  position: fixed; top: 0; inset-inline: 0; z-index: 1000;
  background: rgba(43,10,56,.96);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: all var(--transition);
}
#header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; }
.logo-name { font-size: 1.25rem; font-weight: 900; color: var(--white); letter-spacing: 0; }
.logo-name span { color: var(--purple-light); }
nav { display: flex; align-items: center; gap: 4px; }
.nav-link { color: rgba(255,255,255,.75); font-size: 0.875rem; font-weight: 600; padding: 8px 12px; border-radius: var(--radius-sm); transition: all var(--transition); }
.nav-link:hover { color: var(--white); background: rgba(255,255,255,.08); }
.header-cta { margin-inline-start: 12px; }
.hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; width: 40px; height: 40px; gap: 5px; background: rgba(255,255,255,.08); border-radius: var(--radius-sm); transition: background var(--transition); }
.hamburger:hover { background: rgba(255,255,255,.15); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; background: var(--purple-mid); border-top: 1px solid rgba(255,255,255,.07); padding: 12px 20px 20px; gap: 4px; }
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link { padding: 10px 14px; }
.mobile-nav .btn { margin-top: 8px; width: 100%; justify-content: center; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.nav-dropdown-menu { display: none; position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--purple-darkest); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); padding: 8px; min-width: 210px; box-shadow: 0 12px 40px rgba(0,0,0,.45); z-index: 200; flex-direction: column; gap: 2px; }
.nav-dropdown:hover .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a { display: flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 8px; font-size: .83rem; font-weight: 600; color: rgba(255,255,255,.8); transition: all .2s ease; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.nav-dropdown-menu a i { width: 14px; color: var(--gold); }
.dropdown-arrow { font-size: .6rem; opacity: .7; transition: transform .2s; }
.nav-dropdown:hover .dropdown-arrow { transform: rotate(180deg); }
.mobile-nav-label { font-size: .72rem; font-weight: 800; color: rgba(255,255,255,.35); padding: 10px 14px 3px; }

/* ============================================================ HERO ============================================================ */
#hero { padding: 140px 0 100px; background: var(--purple-darkest); position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-bg::before { content: ''; position: absolute; top: -200px; inset-inline-end: -200px; width: 700px; height: 700px; background: radial-gradient(circle, rgba(243,166,35,.16) 0%, transparent 70%); border-radius: 50%; }
.hero-bg::after { content: ''; position: absolute; bottom: -150px; inset-inline-start: -150px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(168,63,196,.18) 0%, transparent 70%); border-radius: 50%; }
.hero-wave { position: absolute; bottom: -2px; inset-inline: 0; line-height: 0; }
.hero-wave svg { display: block; width: 100%; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.hero-title { font-size: clamp(1.9rem, 4.5vw, 2.9rem); font-weight: 900; color: var(--white); line-height: 1.35; margin-bottom: 20px; }
.hero-title .highlight { background: linear-gradient(135deg, var(--gold), var(--magenta)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.72); margin-bottom: 14px; line-height: 1.85; }
.hero-trust { font-size: 0.875rem; color: rgba(255,255,255,.5); margin-top: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-trust-dot { width: 4px; height: 4px; background: rgba(255,255,255,.3); border-radius: 50%; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 7px 14px; border-radius: 100px; font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,.85); animation: float 3s ease-in-out infinite; }
.hero-badge:nth-child(2) { animation-delay: .5s; }
.hero-badge:nth-child(3) { animation-delay: 1s; }
.hero-badge i { color: var(--gold); font-size: 0.8rem; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.hero-visual { position: relative; }
.hero-app-card { background: rgba(255,255,255,.06); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.hero-app-img { width: 90px; height: 90px; border-radius: 22px; object-fit: cover; margin: 0 auto 16px; box-shadow: 0 8px 32px rgba(0,0,0,.4); }
.hero-app-name { font-size: 1.4rem; font-weight: 900; color: var(--white); margin-bottom: 4px; }
.hero-app-tag { font-size: 0.85rem; color: rgba(255,255,255,.55); margin-bottom: 20px; }
.hero-screen-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xl); }
.hero-screen-img img { width: 100%; border-radius: var(--radius); }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.hero-stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.hero-stat-num { font-size: 1.2rem; font-weight: 900; color: var(--gold); }
.hero-stat-label { font-size: 0.72rem; color: rgba(255,255,255,.55); margin-top: 2px; }

/* Hero downloader code mini-widget */
.hero-code-widget { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 12px 16px; margin-top: 24px; max-width: 380px; }
.hero-code-widget img { width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0; }
.hero-code-widget-text { flex: 1; }
.hero-code-widget-label { font-size: 0.7rem; color: rgba(255,255,255,.5); font-weight: 700; }
.hero-code-widget-num { font-size: 1.15rem; font-weight: 900; color: var(--white); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.hero-code-widget-num span { color: var(--gold); }
.hero-code-widget button { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--gold); color: var(--purple-darkest); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all var(--transition); }
.hero-code-widget button:hover { background: var(--gold-dark); }
.hero-code-widget button.copied { background: #22C55E; color: var(--white); }

/* ============================================================ OVERVIEW ============================================================ */
#overview { background: var(--off-white); }
.overview-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.overview-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.overview-img img { width: 100%; }
.feature-list { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; }
.feature-icon { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, var(--purple), var(--magenta)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-icon i { color: var(--white); font-size: 0.85rem; }
.feature-text strong { display: block; font-size: 0.92rem; font-weight: 700; color: var(--purple-darkest); margin-bottom: 2px; }
.feature-text span { font-size: 0.85rem; color: var(--muted); }
.device-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.device-card { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); transition: all var(--transition); }
.device-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--purple); }
.device-card i { font-size: 1.3rem; color: var(--purple); }
.device-card span { font-size: 0.88rem; font-weight: 700; color: var(--purple-darkest); }

/* ============================================================ FEATURES GRID ============================================================ */
#features { background: var(--white); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.feat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: all var(--transition); }
.feat-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: rgba(143,35,170,.3); }
.feat-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--purple), var(--magenta)); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feat-icon i { color: var(--white); font-size: 1.1rem; }
.feat-title { font-size: 1rem; font-weight: 800; color: var(--purple-darkest); margin-bottom: 8px; }
.feat-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.75; }

/* ============================================================ LIBRARY SHOWCASE (screenshots gallery) ============================================================ */
#library { background: var(--purple-darkest); }
.library-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.library-card { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); transition: all var(--transition); }
.library-card:hover { transform: translateY(-5px); border-color: rgba(243,166,35,.4); }
.library-card img { width: 100%; display: block; }
.library-card-cap { padding: 12px 14px; font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,.75); }
.category-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.category-tag { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.75); font-size: 0.8rem; font-weight: 600; padding: 5px 14px; border-radius: 100px; }

/* ============================================================ DOWNLOADER CODE ============================================================ */
#downloader-code { background: var(--purple-mid); }
.code-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.code-display { text-align: center; }
.downloader-logo { width: 70px; height: 70px; border-radius: 16px; margin: 0 auto 20px; object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.code-box { background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.15); border-radius: var(--radius-lg); padding: 32px 24px; margin-bottom: 20px; }
.code-label-sm { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 8px; }
.code-number { font-size: 3.2rem; font-weight: 900; letter-spacing: .1em; color: var(--white); text-shadow: 0 0 40px rgba(243,166,35,.4); font-variant-numeric: tabular-nums; }
.code-number span { color: var(--gold); }
.copy-btn { background: var(--gold); color: var(--purple-darkest); border-radius: var(--radius); padding: 11px 24px; font-size: 0.9rem; font-weight: 700; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all var(--transition); }
.copy-btn:hover { background: var(--gold-dark); transform: translateY(-2px); }
.copy-btn.copied { background: #22C55E; color: var(--white); }
.code-steps { display: flex; flex-direction: column; gap: 20px; }
.code-step { display: flex; align-items: flex-start; gap: 16px; }
.step-num { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: rgba(243,166,35,.18); border: 2px solid rgba(243,166,35,.4); display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; color: var(--gold); }
.step-text strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.step-text span { font-size: 0.85rem; color: rgba(255,255,255,.6); }

/* ============================================================ INSTALL TABS / STEPS ============================================================ */
#install { background: var(--white); }
.install-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.tab-btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; border-radius: var(--radius); font-size: 0.88rem; font-weight: 700; background: var(--off-white); color: var(--muted); border: 2px solid var(--border); transition: all var(--transition); }
.tab-btn.active { background: var(--purple-darkest); color: var(--white); border-color: var(--purple-darkest); }
.tab-btn:hover:not(.active) { border-color: var(--purple); color: var(--purple); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.install-steps { display: flex; flex-direction: column; gap: 18px; }
.install-step { display: flex; align-items: flex-start; gap: 18px; background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; transition: all var(--transition); }
.install-step:hover { box-shadow: var(--shadow); border-color: rgba(143,35,170,.3); }
.step-badge { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--magenta)); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 900; color: var(--white); }
.install-step-title { font-size: 1rem; font-weight: 800; color: var(--purple-darkest); margin-bottom: 4px; }
.install-step-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.75; }
.install-step-desc a { color: var(--purple); text-decoration: underline; }
.install-step-img { margin-top: 14px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); max-width: 420px; }
.install-tip { background: rgba(243,166,35,.08); border: 1px solid rgba(243,166,35,.28); border-radius: var(--radius); padding: 16px 20px; margin-top: 20px; display: flex; align-items: flex-start; gap: 12px; }
.install-tip i { color: var(--gold-dark); margin-top: 2px; flex-shrink: 0; }
.install-tip p { font-size: 0.875rem; color: var(--purple-darkest); line-height: 1.75; }
.install-tip.warn { background: rgba(192,57,158,.08); border-color: rgba(192,57,158,.28); }
.install-tip.warn i { color: var(--magenta); }

/* Steps simple (download page) */
.steps-simple { display: flex; flex-direction: column; gap: 16px; }
.step-simple { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num-s { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--magenta)); display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 900; color: var(--white); }
.step-simple-text strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--purple-darkest); margin-bottom: 2px; }
.step-simple-text span { font-size: 0.82rem; color: var(--muted); }

/* ============================================================ REQUIRED PLAYER / VPN-STYLE CALLOUT ============================================================ */
#player-callout { background: var(--off-white); }
.callout-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.callout-card { background: linear-gradient(145deg, var(--purple-darkest), var(--purple-mid)); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-xl); }
.callout-icon { width: 60px; height: 60px; border-radius: var(--radius); background: rgba(243,166,35,.18); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.callout-icon i { font-size: 1.5rem; color: var(--gold); }
.callout-title { font-size: 1.3rem; font-weight: 900; color: var(--white); margin-bottom: 12px; }
.callout-desc { font-size: 0.9rem; color: rgba(255,255,255,.7); line-height: 1.8; margin-bottom: 20px; }
.callout-reasons { display: flex; flex-direction: column; gap: 10px; }
.callout-reason { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: rgba(255,255,255,.8); }
.callout-reason i { color: var(--gold); width: 16px; }

/* ============================================================ WHY US ============================================================ */
#why { background: var(--white); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.why-card { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all var(--transition); }
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); background: var(--white); }
.why-icon { font-size: 1.6rem; margin-bottom: 14px; }
.why-title { font-size: 1rem; font-weight: 800; color: var(--purple-darkest); margin-bottom: 8px; }
.why-desc { font-size: 0.875rem; color: var(--muted); line-height: 1.75; }

/* ============================================================ FAQ ============================================================ */
#faq { background: var(--off-white); }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q { width: 100%; text-align: start; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.97rem; font-weight: 700; color: var(--purple-darkest); line-height: 1.5; }
.faq-q:hover { background: var(--off-white); }
.faq-q i { color: var(--muted); transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); color: var(--gold-dark); }
.faq-item.open .faq-q { color: var(--purple); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding: 0 22px 20px; font-size: 0.9rem; color: var(--muted); line-height: 1.8; }
.faq-a a { color: var(--purple); text-decoration: underline; }

/* ============================================================ CTA ============================================================ */
#cta { background: linear-gradient(145deg, var(--purple-darkest), var(--purple-mid)); }
.cta-inner { text-align: center; }
.cta-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 900; color: var(--white); margin-bottom: 16px; }
.cta-sub { font-size: 1.05rem; color: rgba(255,255,255,.7); max-width: 560px; margin: 0 auto 32px; line-height: 1.8; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ============================================================ RELATED GUIDES / TOPIC CLUSTER LINKS ============================================================ */
#related { background: var(--off-white); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.related-card { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; transition: all var(--transition); }
.related-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--purple); }
.related-card i { font-size: 1.4rem; color: var(--purple); flex-shrink: 0; }
.related-card strong { display: block; font-size: 0.92rem; font-weight: 800; color: var(--purple-darkest); }
.related-card span { font-size: 0.8rem; color: var(--muted); }

/* ============================================================ DOWNLOAD GRID (download.html) ============================================================ */
.download-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.download-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-sm); transition: all var(--transition); position: relative; overflow: hidden; }
.download-card::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--magenta)); transform: scaleX(0); transition: transform var(--transition); }
.download-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.download-card:hover::before { transform: scaleX(1); }
.download-card.featured { background: linear-gradient(145deg, var(--purple-darkest), var(--purple-mid)); border-color: transparent; }
.download-card.featured .card-icon i { color: var(--gold); }
.download-card.featured .card-device { color: rgba(255,255,255,.6); }
.download-card.featured .card-name { color: var(--white); }
.download-card.featured .card-desc { color: rgba(255,255,255,.68); }
.card-icon { width: 56px; height: 56px; border-radius: var(--radius); background: rgba(143,35,170,.1); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card-icon i { font-size: 1.4rem; color: var(--purple); }
.card-device { font-size: .78rem; font-weight: 700; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.card-name { font-size: 1.1rem; font-weight: 800; color: var(--purple-darkest); margin-bottom: 8px; }
.card-desc { font-size: .875rem; color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
.card-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.card-tag { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; background: rgba(243,166,35,.14); color: var(--gold-dark); }
.card-tag.tag-purple { background: rgba(143,35,170,.1); color: var(--purple); }
.card-tag.tag-required { background: rgba(192,57,158,.14); color: var(--magenta); }

/* Code Box Highlight (download page) */
.code-highlight { background: linear-gradient(145deg, var(--purple-darkest), var(--purple-mid)); border-radius: var(--radius-lg); padding: 40px; text-align: center; box-shadow: var(--shadow-xl); }
.code-big { font-size: 2.8rem; font-weight: 900; letter-spacing: .12em; color: var(--white); text-shadow: 0 0 40px rgba(243,166,35,.4); }
.code-big span { color: var(--gold); }
.copy-btn2 { background: var(--gold); color: var(--purple-darkest); border-radius: var(--radius); padding: 12px 28px; font-size: .9rem; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; transition: all var(--transition); margin-top: 16px; }
.copy-btn2:hover { background: var(--gold-dark); transform: translateY(-2px); }
.copy-btn2.copied { background: #22C55E; color: var(--white); }

/* ============================================================ ARTICLE / PROSE (guides + legal pages) ============================================================ */
.page-hero { padding: 120px 0 72px; background: var(--purple-darkest); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -200px; inset-inline-end: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(243,166,35,.16) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.page-hero-wave { position: absolute; bottom: -2px; inset-inline: 0; line-height: 0; }
.page-hero-wave svg { display: block; width: 100%; }
.page-hero-inner { position: relative; z-index: 1; text-align: center; }
.page-hero-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; color: var(--white); margin-bottom: 14px; }
.page-hero-title span { color: var(--gold); }
.page-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.72); max-width: 620px; margin: 0 auto 28px; line-height: 1.85; }
.page-hero-meta { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: rgba(255,255,255,.5); }

.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; font-weight: 800; color: var(--purple-darkest); margin: 40px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; font-weight: 800; color: var(--purple-darkest); margin: 28px 0 12px; }
.prose p { font-size: 0.98rem; color: var(--muted); line-height: 1.9; margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-inline-start: 22px; }
.prose li { font-size: 0.98rem; color: var(--muted); line-height: 1.9; margin-bottom: 8px; }
.prose a { color: var(--purple); text-decoration: underline; }
.prose strong { color: var(--purple-darkest); }
.prose .toc { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 32px; }
.prose .toc-title { font-size: 0.85rem; font-weight: 800; color: var(--purple-darkest); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .02em; }
.prose .toc ol { padding-inline-start: 20px; margin-bottom: 0; }
.prose .toc li { margin-bottom: 6px; }
.prose .toc a { text-decoration: none; font-weight: 600; }
.prose .toc a:hover { text-decoration: underline; }
.contact-card { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.contact-card i { font-size: 1.8rem; color: var(--purple); flex-shrink: 0; }
.contact-card strong { display: block; font-size: 1rem; color: var(--purple-darkest); margin-bottom: 4px; }
.contact-card span, .contact-card a { font-size: 0.9rem; color: var(--muted); }
.contact-card a { color: var(--purple); text-decoration: underline; }

/* Troubleshooting accordion reuse */
.trouble-list { display: flex; flex-direction: column; gap: 16px; }
.trouble-item { background: var(--off-white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; }
.trouble-item h3 { font-size: 1.02rem; font-weight: 800; color: var(--purple-darkest); margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.trouble-item h3 i { color: var(--magenta); }
.trouble-item p { font-size: 0.92rem; color: var(--muted); line-height: 1.85; margin: 0; }
.trouble-item p + p { margin-top: 8px; }

/* ============================================================ FOOTER ============================================================ */
#footer { background: var(--purple-darkest); border-top: 1px solid rgba(255,255,255,.07); }
.footer-inner { padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,.55); line-height: 1.8; margin-top: 14px; max-width: 300px; }
.footer-code-box { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 16px; display: inline-block; }
.footer-code-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: rgba(255,255,255,.4); }
.footer-code-num { font-size: 1.15rem; font-weight: 900; color: var(--gold); letter-spacing: .08em; }
.footer-heading { font-size: 0.82rem; font-weight: 800; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { padding-top: 28px; border-top: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-disclaimer { font-size: 0.78rem; color: rgba(255,255,255,.35); max-width: 720px; line-height: 1.7; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { font-size: 0.8rem; color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-legal a:hover { color: var(--white); }

/* ============================================================ SCROLL TOP ============================================================ */
#scrollTop { position: fixed; bottom: 28px; inset-inline-start: 28px; z-index: 900; width: 46px; height: 46px; border-radius: 50%; background: var(--gold); color: var(--purple-darkest); display: flex; align-items: center; justify-content: center; font-size: 1rem; box-shadow: 0 4px 16px rgba(243,166,35,.4); opacity: 0; pointer-events: none; transition: all var(--transition); }
#scrollTop.show { opacity: 1; pointer-events: auto; }
#scrollTop:hover { background: var(--gold-dark); transform: translateY(-3px); }

/* ============================================================ RESPONSIVE ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; max-width: 480px; margin: 0 auto; }
  .overview-inner, .code-inner, .callout-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .section-pad { padding: 64px 0; }
  .section-pad-sm { padding: 48px 0; }
  .section-header { margin-bottom: 40px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .library-grid { grid-template-columns: repeat(2, 1fr); }
  .device-cards { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .download-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .library-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .code-number { font-size: 2.4rem; }
  .code-big { font-size: 2rem; }
  .install-tabs { flex-direction: column; }
  .tab-btn { width: 100%; justify-content: center; }
  .hero-code-widget { flex-wrap: wrap; }
}
