/* VenoTV Website - Shared styles */
/* Multi-language: EN, AR, MS, ID. RTL via [dir="rtl"] */

/* ========== Design tokens ========== */
:root {
  --bg-deep: #06080c;
  --bg-primary: #0a0c10;
  --bg-secondary: #12151c;
  --bg-card: #161a22;
  --bg-elevated: #1c2129;
  --text-primary: #f2f4f8;
  --text-secondary: #94a0b4;
  --text-muted: #5c6577;
  --accent: #22d3ee;
  --accent-hover: #06b6d4;
  --accent-muted: rgba(34, 211, 238, 0.12);
  --accent-glow: rgba(34, 211, 238, 0.35);
  --magenta: #e879f9;
  --magenta-muted: rgba(232, 121, 249, 0.2);
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --glass: rgba(22, 26, 34, 0.72);
  --radius: 14px;
  --radius-lg: 24px;
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --header-h: 4rem;
  --focus-ring: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--accent);
}

/* ========== Reset & base ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -40%, rgba(34, 211, 238, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 20%, rgba(232, 121, 249, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(34, 211, 238, 0.05) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body {
  text-align: right;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: var(--focus-ring);
}

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

/* ========== Layout shell ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-h);
  background: linear-gradient(
    180deg,
    rgba(10, 12, 16, 0.94) 0%,
    rgba(10, 12, 16, 0.82) 100%
  );
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(34, 211, 238, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  min-height: calc(var(--header-h) - 2px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  color: var(--text-primary);
  border-radius: 10px;
}

.logo:focus-visible {
  box-shadow: var(--focus-ring);
}

.logo img {
  height: 38px;
  width: auto;
  display: block;
  border-radius: 8px;
}

.footer-brand .logo img {
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links > a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.35rem 0;
  border-radius: 6px;
}

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

.nav-links > a:focus-visible {
  box-shadow: var(--focus-ring);
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
}

.lang-switcher a {
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lang-switcher a:hover,
.lang-switcher a.active {
  color: var(--accent);
  background: var(--accent-muted);
}

.lang-switcher a:focus-visible {
  box-shadow: var(--focus-ring);
}

/* Main: inner pages */
main:not(.home) {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  position: relative;
}

main:not(.home)::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(100%, 900px);
  height: 200px;
  background: radial-gradient(
    ellipse 70% 80% at 50% 0%,
    rgba(34, 211, 238, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

main:not(.home) > * {
  position: relative;
  z-index: 1;
}

/* Homepage main */
main.home {
  padding: 0 1.5rem 5rem;
  max-width: 1140px;
  margin: 0 auto;
}

/* ========== Homepage Hero (split) ========== */
.hero {
  position: relative;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 70% 15%, var(--accent-glow) 0%, transparent 52%),
    radial-gradient(ellipse 70% 45% at 15% 60%, var(--magenta-muted) 0%, transparent 48%),
    radial-gradient(ellipse 50% 35% at 50% 100%, var(--accent-muted) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: auto, auto, auto, 80px 80px, 80px 80px;
  opacity: 0.95;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-bg {
    animation: hero-bg-shift 22s ease-in-out infinite alternate;
  }
}

@keyframes hero-bg-shift {
  0% {
    filter: hue-rotate(0deg);
    opacity: 0.92;
  }
  100% {
    filter: hue-rotate(10deg);
    opacity: 1;
  }
}

.hero-split {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem 3rem;
}

.hero-copy {
  flex: 1 1 min(100%, 420px);
  text-align: start;
  max-width: 520px;
}

[dir="rtl"] .hero-copy {
  text-align: right;
}

.hero-visual {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}

[dir="rtl"] .hero-split {
  flex-direction: row-reverse;
}

@media (max-width: 900px) {
  [dir="rtl"] .hero-split {
    flex-direction: column;
  }

  .hero-copy {
    text-align: center;
    max-width: none;
  }

  [dir="rtl"] .hero-copy {
    text-align: center;
  }

  .hero-visual {
    min-height: 320px;
  }
}

.hero-badge {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.hero-brand-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-brand-row {
    justify-content: center;
  }
}

.hero-logo-wrap {
  padding: 0.35rem;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  box-shadow:
    0 0 0 1px var(--border),
    0 16px 40px -12px rgba(0, 0, 0, 0.45),
    0 0 60px -24px var(--accent-glow);
}

.hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: block;
}

.hero-app-name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--text-primary) 40%,
    var(--accent) 72%,
    var(--magenta) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.hero-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 42ch;
}

@media (max-width: 900px) {
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

.cta-group {
  display: flex;
  gap: 0.875rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .cta-group {
    justify-content: center;
  }
}

/* CSS phone mockup */
.phone-mockup {
  position: relative;
  width: 260px;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 40px rgba(34, 211, 238, 0.12));
}

.phone-frame {
  position: relative;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(
    145deg,
    #2a3038 0%,
    #12151c 40%,
    #0e1116 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 0 1px rgba(0, 0, 0, 0.4);
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 26px;
  background: #0a0c10;
  border-radius: 0 0 16px 16px;
  z-index: 2;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.phone-screen {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9 / 19;
  background: linear-gradient(
    165deg,
    #1a2332 0%,
    #0d1520 45%,
    #121a28 100%
  );
  display: flex;
  flex-direction: column;
}

.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(34, 211, 238, 0.07) 0%,
    transparent 40%
  );
  pointer-events: none;
}

.phone-status {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(242, 244, 248, 0.85);
  letter-spacing: 0.02em;
}

.phone-status-dots {
  display: flex;
  gap: 4px;
}

.phone-status-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(242, 244, 248, 0.35);
}

.phone-content {
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
}

.phone-hero-bar {
  height: 96px;
  border-radius: 12px;
  background: linear-gradient(
    125deg,
    rgba(34, 211, 238, 0.35) 0%,
    rgba(232, 121, 249, 0.2) 100%
  );
  position: relative;
  overflow: hidden;
}

.phone-hero-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  animation: phone-shine 4s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .phone-hero-bar::before {
    animation: none;
  }
}

@keyframes phone-shine {
  0%,
  100% {
    opacity: 0.3;
    transform: translateX(-20%);
  }
  50% {
    opacity: 0.6;
    transform: translateX(20%);
  }
}

.phone-row {
  height: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.phone-row--short {
  width: 72%;
}

.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.phone-tile {
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-nav {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 4px;
}

.phone-nav span {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
}

.phone-nav span:first-child {
  background: var(--accent);
  opacity: 0.8;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9375rem 1.625rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.btn-icon {
  display: inline-flex;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 32px -4px var(--accent-glow);
}

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

.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  background: var(--bg-card);
}

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

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--text-muted);
}

/* Highlights */
.highlights {
  position: relative;
  margin-bottom: 2.5rem;
  z-index: 2;
}

.highlights-inner {
  max-width: 52rem;
  margin: 0 auto;
}

.highlights-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  padding: 0;
}

.highlights-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem 0.55rem 0.65rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: 0 8px 32px -12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.highlights-list .hl-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent-muted);
  color: var(--accent);
  flex-shrink: 0;
}

.highlights-list .hl-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

/* How it works */
.how-it-works {
  padding: 2.5rem 0 1rem;
}

.steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 0;
  margin: 0;
}

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

.step-card {
  position: relative;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.step-card:hover {
  border-color: rgba(34, 211, 238, 0.22);
  box-shadow: 0 16px 48px -20px rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-muted);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step-icon svg {
  width: 22px;
  height: 22px;
}

/* Section headings */
.section-head {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.section-lede {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 0.75rem;
}

.features-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 0;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* Features bento */
main.home .features {
  margin-top: 0;
  padding: 2.5rem 0 3rem;
}

.features-inner {
  max-width: 100%;
}

.feature-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 700px) {
  .feature-bento {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(34, 211, 238, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px -16px rgba(0, 0, 0, 0.45);
}

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

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

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.feature-bento .reveal:nth-child(1) {
  transition-delay: 0s;
}

.feature-bento .reveal:nth-child(2) {
  transition-delay: 0.06s;
}

.feature-bento .reveal:nth-child(3) {
  transition-delay: 0.12s;
}

.feature-bento .reveal:nth-child(4) {
  transition-delay: 0.18s;
}

.steps-grid .reveal:nth-child(1) {
  transition-delay: 0s;
}

.steps-grid .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.steps-grid .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

/* Pre-footer CTA */
.cta-prefooter {
  margin-top: 0.5rem;
  padding: 2.5rem 0 0;
}

.cta-prefooter-inner {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 2.75rem);
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.2);
  background: linear-gradient(
    135deg,
    rgba(28, 33, 41, 0.98) 0%,
    rgba(16, 19, 26, 0.98) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 28px 72px -28px rgba(0, 0, 0, 0.6),
    0 0 90px -35px var(--accent-glow);
}

.cta-prefooter-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, var(--magenta-muted) 0%, transparent 45%),
    radial-gradient(ellipse 50% 60% at 0% 100%, var(--accent-muted) 0%, transparent 40%);
  pointer-events: none;
}

.cta-prefooter-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-prefooter-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.cta-prefooter-text p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  max-width: 36ch;
  line-height: 1.55;
}

.cta-prefooter .btn-primary {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .cta-prefooter-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cta-prefooter-text p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-bg {
    animation: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 2.5rem 0 3rem;
  }

  main.home .features {
    padding: 2rem 0 2.5rem;
  }
}

/* ========== Footer ========== */
.site-footer {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, #0e1118 100%);
  border-top: 1px solid var(--border);
  margin-top: 0;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 211, 238, 0.25),
    transparent
  );
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 2.5rem 3rem;
  align-items: start;
}

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

.footer-brand .logo {
  margin-bottom: 0.65rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 32ch;
  line-height: 1.55;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
}

.footer-links section {
  min-width: 150px;
}

.footer-links h4 {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.footer-links a:focus-visible {
  border-radius: 4px;
}

.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ========== Inner pages ========== */
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(22, 26, 34, 0.35) 0%,
    transparent 100%
  );
  margin-left: -0.25rem;
  margin-right: -0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.55;
  max-width: 52ch;
}

.content-prose {
  max-width: 720px;
}

.content-prose h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.content-prose h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-top: 1.65rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.content-prose p {
  margin-bottom: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.content-prose ul,
.content-prose ol {
  margin: 0 0 1.1rem 1.35rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

[dir="rtl"] .content-prose ul,
[dir="rtl"] .content-prose ol {
  margin-left: 1.35rem;
  margin-right: 1.35rem;
}

.content-prose li {
  margin-bottom: 0.4rem;
}

.content-prose strong {
  color: var(--text-primary);
}

.content-prose blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(34, 211, 238, 0.06);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

[dir="rtl"] .content-prose blockquote {
  border-left: none;
  border-right: 3px solid var(--accent);
  border-radius: var(--radius) 0 0 var(--radius);
}

.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Support cards */
.support-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.75rem 1.75rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.support-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent),
    rgba(232, 121, 249, 0.6)
  );
  opacity: 0.85;
}

.support-card:hover {
  border-color: rgba(34, 211, 238, 0.18);
  box-shadow: 0 12px 40px -20px rgba(0, 0, 0, 0.35);
}

.support-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
}

.support-card p {
  margin-bottom: 0.65rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.support-card ul {
  margin: 0 0 0.5rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.support-card small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.support-card a[href^="mailto"] {
  font-weight: 600;
}

.support-card a:focus-visible {
  border-radius: 4px;
}

/* DMCA steps */
.dmca-steps {
  counter-reset: step;
}

.dmca-steps h3 {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.dmca-steps h3:first-of-type {
  margin-top: 0.5rem;
}

.dmca-steps h3::before {
  content: counter(step);
  width: 2rem;
  height: 2rem;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    var(--accent-muted) 0%,
    rgba(232, 121, 249, 0.12) 100%
  );
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

/* 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: 0;
}
