@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&family=EB+Garamond:wght@400;500;600;700;800&display=swap');

/* ============================================
   CSS 自定义属性
   ============================================ */
:root {
  --c-green: #87ff71;
  --c-blue: #01cdfe;
  --c-dark: #192617;
  --c-purple: #b967ff;
  --c-pink: #ff71ce;
  --c-dark-alt: #0d1a0b;
  --c-dark-mid: #1e3018;
  --c-text: #d4f5cc;
  --c-text-muted: #7ab870;
  --c-border: rgba(135,255,113,0.18);
  --c-glow-green: 0 0 12px rgba(135,255,113,0.55), 0 0 30px rgba(135,255,113,0.22);
  --c-glow-blue: 0 0 12px rgba(1,205,254,0.55), 0 0 30px rgba(1,205,254,0.22);
  --c-glow-purple: 0 0 12px rgba(185,103,255,0.55), 0 0 30px rgba(185,103,255,0.22);
  --font-serif: 'EB Garamond', 'Crimson Text', 'Noto Serif SC', Georgia, serif;
  --font-mono: 'Courier New', monospace;
  --radius-card: 28px;
  --header-h: 64px;
  --content-max: 1200px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   重置 & 基础
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-serif);
  background-color: var(--c-dark);
  color: var(--c-text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ============================================
   Synthwave 效果层
   ============================================ */
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  animation: scanline-drift 12s linear infinite;
}

@keyframes scanline-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 0 200px; }
}

.vhs-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: linear-gradient(
    180deg,
    rgba(185,103,255,0.04) 0%,
    transparent 30%,
    rgba(1,205,254,0.03) 70%,
    rgba(135,255,113,0.04) 100%
  );
}

/* ============================================
   排版
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  color: var(--c-green);
  text-shadow: var(--c-glow-green);
}

h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--c-blue);
  text-shadow: var(--c-glow-blue);
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--c-text);
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--c-blue);
  text-decoration: none;
  transition: color var(--transition), text-shadow var(--transition);
}
a:hover, a:focus-visible {
  color: var(--c-green);
  text-shadow: var(--c-glow-green);
  outline: none;
}
a:focus-visible {
  outline: 2px solid var(--c-green);
  outline-offset: 3px;
  border-radius: 2px;
}

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

time { font-style: italic; color: var(--c-text-muted); font-size: 0.88em; }

/* ============================================
   .subtitle / p.subtitle
   ============================================ */
.subtitle,
p.subtitle {
  color: var(--c-text-muted);
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1.2em;
  letter-spacing: 0.01em;
}

/* ============================================
   Eyebrow / 标签
   ============================================ */
.eyebrow-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-dark);
  background: linear-gradient(90deg, var(--c-green), var(--c-blue));
  padding: 3px 14px;
  border-radius: 4px;
  margin-bottom: 1rem;
  box-shadow: var(--c-glow-green);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  background: rgba(25, 38, 23, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
}

.brand-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  text-shadow: none;
}
.brand-mark:hover { border-color: var(--c-green); }
.brand-mark img { width: 36px; height: 36px; object-fit: contain; }

.brand-glyph {
  font-size: 1.5rem;
  font-family: var(--font-serif);
  color: var(--c-green);
  text-shadow: var(--c-glow-green);
  line-height: 1;
}

/* top-nav: hidden on mobile, partially on desktop (hamburger primary) */
.top-nav {
  flex: 1;
  overflow: hidden;
}
.top-nav p {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
  overflow: hidden;
}
.top-nav p a {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--c-text-muted);
  padding: 6px 10px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.top-nav p a:hover {
  color: var(--c-green);
  background: rgba(135,255,113,0.08);
  text-shadow: none;
}

/* Hamburger */
.hamburger {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition);
}
.hamburger:hover { border-color: var(--c-green); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-green);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  box-shadow: var(--c-glow-green);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================
   FULLSCREEN MENU
   ============================================ */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: linear-gradient(160deg, rgba(13,26,11,0.98) 0%, rgba(25,38,23,0.99) 50%, rgba(30,10,30,0.98) 100%);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.fullscreen-menu:not([aria-hidden="true"]),
.fullscreen-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.menu-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
  color: var(--c-green);
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition);
}
.menu-close:hover { border-color: var(--c-green); }

.fullscreen-menu nav p {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}
.fullscreen-menu nav p a {
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--c-text);
  padding: 0.6rem 1.5rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.03em;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition), text-shadow var(--transition);
}
.fullscreen-menu nav p a:hover {
  color: var(--c-green);
  border-bottom-color: var(--c-green);
  text-shadow: var(--c-glow-green);
}

/* ============================================
   HERO — home
   ============================================ */
.hero-section {
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}

.hero-aside {
  grid-column: 2;
  grid-row: 1;
  padding: 4rem 3rem 4rem 2rem;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  animation: slide-in-right 0.8s ease both;
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-figure {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  height: 70vh;
  overflow: hidden;
}
.hero-figure .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) hue-rotate(20deg);
}
.hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #0d1a0b 0%, #1e3018 40%, #1a0d2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg-text {
  position: absolute;
  bottom: -0.1em;
  right: -0.05em;
  font-size: clamp(6rem, 18vw, 16rem);
  font-family: var(--font-serif);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(135,255,113,0.12);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

.hero-aside .eyebrow-tag { margin-bottom: 1.2rem; }
.hero-aside h1 { margin-bottom: 1rem; }
.hero-aside .hero-desc { max-width: 36ch; }

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.65em 1.5em;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  min-height: 44px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(90deg, var(--c-green), var(--c-blue));
  color: var(--c-dark);
  font-weight: 700;
  box-shadow: var(--c-glow-green);
}
.btn-primary:hover {
  filter: brightness(1.15);
  color: var(--c-dark);
  text-shadow: none;
  box-shadow: var(--c-glow-blue);
}
.btn-secondary {
  background: transparent;
  color: var(--c-blue);
  border-color: var(--c-blue);
  box-shadow: var(--c-glow-blue);
}
.btn-secondary:hover {
  background: rgba(1,205,254,0.1);
  color: var(--c-blue);
  text-shadow: var(--c-glow-blue);
}

/* ============================================
   内容主体布局（aside 左侧 + content 右侧）
   ============================================ */
.content-section,
.ranking-body-section,
.compare-body-section,
.review-body-section,
.faq-body-section,
.about-body-section,
.privacy-body-section,
.default-body-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

.content-aside {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.aside-block {
  background: rgba(30, 48, 24, 0.6);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.aside-block h2 {
  font-size: 1rem;
  margin-bottom: 0.3em;
  color: var(--c-blue);
  text-shadow: none;
}
.aside-block .subtitle { font-size: 0.82rem; margin-bottom: 0.8em; }

.aside-block nav p {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.aside-block nav p a {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  padding: 6px 8px;
  border-radius: 4px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-left: 2px solid transparent;
  transition: all var(--transition);
}
.aside-block nav p a:hover {
  color: var(--c-green);
  border-left-color: var(--c-green);
  background: rgba(135,255,113,0.06);
  text-shadow: none;
}

/* ============================================
   正文内容
   ============================================ */
.content-body {
  min-width: 0;
}

.page-content-html h2 {
  margin-top: 2.5em;
  margin-bottom: 0.6em;
}
.page-content-html h3 {
  margin-top: 1.8em;
  margin-bottom: 0.5em;
}
.page-content-html p { margin-bottom: 1.1em; }
.page-content-html ul, .page-content-html ol {
  margin: 0.8em 0 1.2em 1.5em;
}
.page-content-html li { margin-bottom: 0.4em; line-height: 1.7; }
.page-content-html blockquote {
  border-left: 3px solid var(--c-green);
  padding: 0.5em 1.2em;
  margin: 1.5em 0;
  color: var(--c-text-muted);
  font-style: italic;
  background: rgba(135,255,113,0.05);
  border-radius: 0 8px 8px 0;
}
.page-content-html table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.92rem;
}
.page-content-html th {
  background: rgba(135,255,113,0.1);
  color: var(--c-green);
  border: 1px solid var(--c-border);
  padding: 0.6em 1em;
  text-align: left;
}
.page-content-html td {
  border: 1px solid var(--c-border);
  padding: 0.55em 1em;
}
.page-content-html a {
  color: var(--c-blue);
  text-decoration: underline;
  text-decoration-color: rgba(1,205,254,0.35);
}
.page-content-html a:hover { color: var(--c-green); }

/* ============================================
   卡片列表
   ============================================ */
.card-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-list li > article {
  background: rgba(20, 34, 18, 0.8);
  border: 1px solid var(--c-border);
  border-bottom: 3px solid var(--c-green);
  border-radius: var(--radius-card);
  padding: 1.4rem;
  transition: transform var(--transition), box-shadow var(--transition), border-bottom-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  animation: card-reveal 0.6s ease both;
}
.card-list li > article:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(135,255,113,0.12), var(--c-glow-green);
  border-bottom-color: var(--c-blue);
}

@keyframes card-reveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-list li:nth-child(2) article { animation-delay: 0.1s; }
.card-list li:nth-child(3) article { animation-delay: 0.2s; }
.card-list li:nth-child(4) article { animation-delay: 0.3s; }
.card-list li:nth-child(5) article { animation-delay: 0.4s; }
.card-list li:nth-child(6) article { animation-delay: 0.5s; }

.card-figure {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 0.3rem;
}
.card-figure .card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: saturate(0.75) hue-rotate(10deg);
  transition: filter var(--transition);
}
.card-list li > article:hover .card-img {
  filter: saturate(1) hue-rotate(0deg);
}

.card-list h3 { font-size: 1rem; line-height: 1.35; }
.card-list h3 a { color: var(--c-text); }
.card-list h3 a:hover { color: var(--c-green); }
.card-list p { font-size: 0.88rem; color: var(--c-text-muted); }
.card-date { font-size: 0.8rem !important; }

/* ============================================
   Hero — 子页面（page-hero, ranking-hero, compare-hero, review-hero）
   ============================================ */
.page-hero,
.ranking-hero,
.compare-hero,
.review-hero {
  min-height: 70vh;
  padding-top: var(--header-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.page-hero-figure,
.compare-hero-figure,
.review-hero-figure {
  position: relative;
  height: 70vh;
  overflow: hidden;
}
.page-hero-figure .hero-img,
.compare-hero-figure .hero-img,
.review-hero-figure .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.65) hue-rotate(15deg);
}

.page-hero-aside,
.compare-hero-aside,
.review-hero-aside {
  padding: 3.5rem 3rem 3.5rem 2rem;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.review-meta,
.compare-meta,
.privacy-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 0.8rem;
  font-size: 0.84rem;
  color: var(--c-text-muted);
  font-style: italic;
}
.meta-item { color: var(--c-text-muted); }

/* ============================================
   Featured / Related sections
   ============================================ */
.featured-section,
.related-section,
.faq-links-section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.featured-section h2,
.related-section h2,
.faq-links-section h2 {
  margin-bottom: 0.4em;
}
.featured-section .subtitle,
.related-section .subtitle,
.faq-links-section .subtitle {
  margin-bottom: 2rem;
}

/* ============================================
   Ranking list
   ============================================ */
.rank-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.rank-list li > article {
  display: grid;
  grid-template-columns: 3rem auto 1fr;
  gap: 1.2rem;
  align-items: center;
  background: rgba(20, 34, 18, 0.8);
  border: 1px solid var(--c-border);
  border-bottom: 3px solid var(--c-green);
  border-radius: var(--radius-card);
  padding: 1.2rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: card-reveal 0.5s ease both;
}
.rank-list li > article:hover {
  transform: translateX(6px);
  box-shadow: -4px 0 20px rgba(135,255,113,0.15);
  border-bottom-color: var(--c-blue);
}

.rank-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--c-green);
  line-height: 1;
  text-shadow: var(--c-glow-green);
  min-width: 3rem;
  text-align: center;
}

.rank-figure {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.rank-figure .rank-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info h3 { font-size: 1rem; margin-bottom: 0.3em; }
.rank-info h3 a { color: var(--c-text); }
.rank-info h3 a:hover { color: var(--c-green); }
.rank-info p { font-size: 0.88rem; color: var(--c-text-muted); margin-bottom: 0.3em; }
.rank-date { font-size: 0.8rem !important; }

/* ============================================
   Compare visual
   ============================================ */
.compare-visual {
  margin-bottom: 2rem;
}
.compare-columns {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  border: 1px solid var(--c-border);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
}
.compare-col {
  padding: 2rem 1rem;
  font-size: 3rem;
  font-family: var(--font-serif);
  font-weight: 800;
}
.col-a {
  background: linear-gradient(135deg, rgba(135,255,113,0.1), rgba(135,255,113,0.03));
  color: var(--c-green);
  text-shadow: var(--c-glow-green);
}
.col-b {
  background: linear-gradient(225deg, rgba(1,205,254,0.1), rgba(1,205,254,0.03));
  color: var(--c-blue);
  text-shadow: var(--c-glow-blue);
}
.compare-vs {
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--c-text-muted);
  border-left: 1px solid var(--c-border);
  border-right: 1px solid var(--c-border);
  letter-spacing: 0.2em;
}

/* ============================================
   FAQ
   ============================================ */
.faq-header-section,
.privacy-header-section {
  min-height: 40vh;
  padding-top: var(--header-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  gap: 2rem;
}

.faq-deco,
.privacy-deco {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.faq-deco .bg-text,
.privacy-deco .bg-text {
  font-size: clamp(6rem, 15vw, 12rem);
  font-family: var(--font-serif);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(1,205,254,0.18);
  line-height: 1;
}

.faq-header-aside,
.privacy-header-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.faq-content .page-content-html details {
  border: 1px solid var(--c-border);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-content .page-content-html details summary {
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--c-blue);
  background: rgba(1,205,254,0.05);
  list-style: none;
  transition: background var(--transition);
}
.faq-content .page-content-html details summary:hover { background: rgba(1,205,254,0.1); }
.faq-content .page-content-html details[open] summary { border-bottom: 1px solid var(--c-border); }
.faq-content .page-content-html details > *:not(summary) { padding: 1rem 1.5rem; }

/* ============================================
   About
   ============================================ */
.about-intro-section {
  min-height: 50vh;
  padding-top: var(--header-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  gap: 2rem;
  overflow: hidden;
}

.about-figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.about-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-figure .hero-bg-text {
  position: absolute;
  bottom: 0;
  right: 0;
  font-size: clamp(5rem, 14vw, 11rem);
  font-family: var(--font-serif);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(1,205,254,0.15);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.about-logo { border-radius: 50%; }

.about-intro-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

/* ============================================
   Inline figure
   ============================================ */
.inline-figure {
  margin-bottom: 2rem;
  border-radius: 16px;
  overflow: hidden;
}
.inline-figure .content-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  filter: saturate(0.7) hue-rotate(10deg);
}

/* ============================================
   Default/Privacy hero sections (hero-placeholder .bg-text)
   ============================================ */
.default-header-section {
  min-height: 35vh;
  padding-top: var(--header-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  gap: 2rem;
}
.default-deco {
  display: flex;
  align-items: center;
  justify-content: center;
}
.default-deco .bg-text,
.faq-deco .bg-text,
.privacy-deco .bg-text {
  font-size: clamp(5rem, 14vw, 11rem);
  font-family: var(--font-serif);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(1,205,254,0.15);
}
.default-header-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.bg-text {
  font-size: clamp(5rem, 16vw, 13rem);
  font-family: var(--font-serif);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(135,255,113,0.1);
  line-height: 1;
  user-select: none;
}
.hero-placeholder .bg-text { -webkit-text-stroke: 1px rgba(135,255,113,0.2); }

/* ============================================
   Page date
   ============================================ */
.page-date {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  font-style: italic;
  margin-top: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: linear-gradient(180deg, var(--c-dark) 0%, var(--c-dark-alt) 100%);
  border-top: 1px solid var(--c-border);
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-green);
  text-shadow: var(--c-glow-green);
  margin-bottom: 0.6em;
}
.footer-desc {
  font-size: 0.88rem;
  color: var(--c-text-muted);
}

.footer-nav p {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.footer-nav p a {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  padding: 5px 0;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.footer-nav p a:hover {
  color: var(--c-blue);
  border-bottom-color: var(--c-blue);
  text-shadow: none;
}

.footer-form-block {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.5rem;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.form-label {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  font-style: italic;
  margin-bottom: 0;
  white-space: nowrap;
}
.subscribe-form {
  display: flex;
  gap: 0.6rem;
  flex: 1;
  min-width: 260px;
}
.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.55em 1em;
  background: rgba(30,48,24,0.8);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  color: var(--c-text);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  min-height: 44px;
  outline: none;
  transition: border-color var(--transition);
}
.subscribe-form input[type="email"]:focus {
  border-color: var(--c-green);
}
.subscribe-form button {
  padding: 0.55em 1.4em;
  background: linear-gradient(90deg, var(--c-green), var(--c-blue));
  color: var(--c-dark);
  border: none;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  min-height: 44px;
  transition: filter var(--transition);
}
.subscribe-form button:hover { filter: brightness(1.12); }

.footer-bottom {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--c-text-muted);
}
.footer-bottom a {
  color: var(--c-text-muted);
}
.footer-bottom a:hover {
  color: var(--c-green);
  text-shadow: none;
}

/* ============================================
   Glitch animation (decorative headings)
   ============================================ */
@keyframes glitch-1 {
  0%, 90%, 100% { clip-path: none; transform: none; }
  92% { clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%); transform: translateX(-4px); }
  94% { clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%); transform: translateX(4px); }
  96% { clip-path: polygon(0 10%, 100% 10%, 100% 25%, 0 25%); transform: translateX(-2px); }
}
h1 { animation: glitch-1 8s ease-in-out infinite; }

/* ============================================
   Scroll reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Retro grid (home page background)
   ============================================ */
.page-home main::before {
  content: '';
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35vh;
  z-index: -1;
  background:
    linear-gradient(transparent 0%, rgba(135,255,113,0.04) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(135,255,113,0.07) 0px,
      rgba(135,255,113,0.07) 1px,
      transparent 1px,
      transparent 60px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(135,255,113,0.07) 0px,
      rgba(135,255,113,0.07) 1px,
      transparent 1px,
      transparent 40px
    );
  transform: perspective(400px) rotateX(30deg);
  transform-origin: bottom center;
  pointer-events: none;
}

/* ============================================
   Responsive — 768px
   ============================================ */
@media (max-width: 768px) {
  :root { --header-h: 56px; }

  .top-nav { display: none; }

  .hero-section,
  .page-hero,
  .ranking-hero,
  .compare-hero,
  .review-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-figure,
  .page-hero-figure,
  .compare-hero-figure,
  .review-hero-figure {
    height: 40vw;
    min-height: 200px;
    grid-row: 1;
    grid-column: 1;
  }

  .hero-aside,
  .page-hero-aside,
  .compare-hero-aside,
  .review-hero-aside {
    grid-row: 2;
    grid-column: 1;
    padding: 2rem 1.2rem;
    text-align: left;
    align-items: flex-start;
  }

  .hero-actions { justify-content: flex-start; }
  .review-meta, .compare-meta, .privacy-meta { justify-content: flex-start; }

  .content-section,
  .ranking-body-section,
  .compare-body-section,
  .review-body-section,
  .faq-body-section,
  .about-body-section,
  .privacy-body-section,
  .default-body-section {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .content-aside { position: static; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1rem 1rem;
  }

  .faq-header-section,
  .privacy-header-section,
  .about-intro-section,
  .default-header-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--header-h) + 1.5rem);
  }
  .faq-deco, .privacy-deco, .about-figure, .default-deco { display: none; }
  .faq-header-aside, .privacy-header-aside, .about-intro-aside, .default-header-aside {
    align-items: flex-start;
    text-align: left;
  }

  .rank-list li > article {
    grid-template-columns: 2.5rem 1fr;
    gap: 0.8rem;
  }
  .rank-figure { display: none; }

  .card-list { grid-template-columns: 1fr; }

  .footer-form-block { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .subscribe-form { min-width: 0; width: 100%; }
}

/* ============================================
   Responsive — 480px
   ============================================ */
@media (max-width: 480px) {
  html { font-size: 16px; }
  .site-header { padding: 0 1rem; }
  .hero-aside, .page-hero-aside, .compare-hero-aside, .review-hero-aside { padding: 1.5rem 1rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .featured-section, .related-section, .faq-links-section { padding: 1.5rem 1rem; }
}

/* ============================================
   prefers-reduced-motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scanlines { display: none; }
  .reveal { opacity: 1; transform: none; }
}
