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

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #69ff69;
  --cyan: #00ffff;
  --dark: #172617;
  --dark2: #1e301e;
  --dark3: #0e1a0e;
  --chrome1: #c8ffc8;
  --chrome2: #a0e0a0;
  --glow-green: 0 0 8px #69ff69, 0 0 24px #69ff6988;
  --glow-cyan: 0 0 8px #00ffff, 0 0 24px #00ffff88;
  --nav-w: 220px;
  --radius: 0px;
  --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Lato', system-ui, -apple-system, sans-serif;
  --transition: 0.22s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--dark3);
  color: #d4f0d4;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ============================================================
   LAYOUT SHELL
   ============================================================ */
.site-shell {
  display: flex;
  min-height: 100vh;
}

.page-body {
  flex: 1;
  min-width: 0;
  margin-left: var(--nav-w);
  display: flex;
  flex-direction: column;
}

/* ============================================================
   SIDEBAR NAV
   ============================================================ */
.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--nav-w);
  height: 100vh;
  background: linear-gradient(180deg, #0e1a0e 0%, #172617 60%, #0a120a 100%);
  border-right: 1px solid #69ff6933;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 12px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  gap: 8px;
}

.nav-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #69ff69 0%, #00ffff 100%);
  margin-bottom: 16px;
  flex-shrink: 0;
  text-decoration: none;
  box-shadow: var(--glow-green);
  transition: box-shadow var(--transition);
}
.nav-brand:hover {
  box-shadow: var(--glow-cyan);
}

.nav-icon-text {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
}

.sidebar-nav ol {
  list-style: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav ol li a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  color: #a8e8a8;
  text-decoration: none;
  line-height: 1.35;
  background: transparent;
  border: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
  min-height: 40px;
  display: flex;
  align-items: center;
}

.sidebar-nav ol li a:hover,
.sidebar-nav ol li a.nav-active {
  background: linear-gradient(90deg, #69ff6922 0%, #00ffff11 100%);
  border-color: #69ff6966;
  color: var(--green);
  box-shadow: 0 0 6px #69ff6944;
}

.sidebar-nav ol li a.nav-active {
  border-color: var(--green);
  color: var(--green);
  font-weight: 700;
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */

/* HOME HERO */
.hero-section {
  position: relative;
  min-height: 70vh;
  background: linear-gradient(135deg, #0a120a 0%, #172617 40%, #001a1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 32px;
}

.hero-bg-text {
  position: absolute;
  font-family: var(--font-serif);
  font-size: clamp(100px, 20vw, 220px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px #69ff6920;
  text-shadow: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 960px;
  width: 100%;
}

.hero-media {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  height: 340px;
}

.hero-img-a,
.hero-img-b {
  position: absolute;
  border-radius: 4px;
  object-fit: cover;
}
.hero-img-a {
  width: 200px;
  height: 240px;
  top: 0;
  left: 0;
  box-shadow: 0 0 20px #69ff6966;
  z-index: 2;
}
.hero-img-b {
  width: 180px;
  height: 220px;
  bottom: 0;
  right: 0;
  box-shadow: 0 0 20px #00ffff66;
  z-index: 1;
  filter: saturate(1.3);
}

.hero-copy {
  flex: 1;
  text-align: center;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 12px;
}

.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--green);
  text-shadow: var(--glow-green);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1rem;
  color: #b8ddb8;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* PAGE HERO (non-home) */
.page-hero {
  position: relative;
  min-height: 32vh;
  background: linear-gradient(135deg, #0a120a 0%, #172617 50%, #001a1a 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 48px 40px;
}

.page-hero--ranking { border-bottom: 1px solid #69ff6944; }
.page-hero--compare { border-bottom: 1px solid #00ffff44; }
.page-hero--review  { border-bottom: 1px solid #69ff6944; }
.page-hero--about   { border-bottom: 1px solid #00ffff44; }
.page-hero--privacy { border-bottom: 1px solid #69ff6922; }
.page-hero--data    { border-bottom: 1px solid #00ffff22; }

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 900px;
  width: 100%;
}

.page-hero-copy {
  flex: 1;
}

.page-hero-copy h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--green);
  text-shadow: var(--glow-green);
  line-height: 1.25;
  margin-bottom: 10px;
}

.page-hero-copy .hero-lead {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.review-hero-media img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 18px #69ff6966;
}

.rank-hero-img {
  width: 160px;
  height: 120px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 18px #00ffff66;
}

.hero-date {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--cyan);
}

/* ============================================================
   MAIN / WRAP / CONTENT
   ============================================================ */
main {
  flex: 1;
  padding: 40px 0;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Content with aside layout */
.content-with-aside {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* aside on the LEFT per spec */
.content-aside {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 24px;
  background: linear-gradient(180deg, #172617 0%, #0e1a0e 100%);
  border: 1px solid #69ff6933;
  padding: 20px 16px;
}

.content-aside h3 {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #00ffff33;
}

.aside-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 20px;
}

.aside-links li a {
  display: block;
  padding: 6px 8px;
  font-size: 0.82rem;
  color: #9acc9a;
  text-decoration: none;
  border-radius: 2px;
  transition: color var(--transition), background var(--transition);
  line-height: 1.4;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.aside-links li a:hover {
  color: var(--green);
  background: #69ff6911;
}

.content-main {
  flex: 1;
  min-width: 0;
}

/* article inside main>div.wrap>section>article */
article {
  background: linear-gradient(135deg, #172617 0%, #1a2a1a 100%);
  border: 1px solid #69ff6922;
  padding: 32px;
  margin-bottom: 32px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
}

h2 {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 6px;
  text-shadow: 0 0 12px #69ff6966;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 8px;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--chrome1);
  margin-bottom: 6px;
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.7;
}

p.subtitle,
p.subhead,
p.desc,
p.lead {
  font-size: 0.92rem;
  color: var(--cyan);
  margin-bottom: 20px;
  font-style: italic;
}

a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition), text-shadow var(--transition);
}

a:hover {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

time.pub-date,
time.mod-date {
  display: inline-block;
  font-size: 0.78rem;
  color: #6aaa6a;
  margin-right: 16px;
  margin-bottom: 16px;
  font-family: var(--font-sans);
}

/* ============================================================
   ENTRY CONTENT
   ============================================================ */
.entry-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #c8e8c8;
}

.entry-content h2 { margin-top: 2em; margin-bottom: 0.5em; }
.entry-content h3 { margin-top: 1.5em; margin-bottom: 0.4em; }
.entry-content p { margin-bottom: 1em; }
.entry-content ul, .entry-content ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
}
.entry-content li { margin-bottom: 0.3em; }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5em;
  font-size: 0.92rem;
}
.entry-content th {
  background: #69ff6922;
  color: var(--green);
  padding: 8px 12px;
  text-align: left;
  border: 1px solid #69ff6933;
}
.entry-content td {
  padding: 8px 12px;
  border: 1px solid #69ff6922;
  color: #b8d8b8;
}
.entry-content tr:nth-child(even) td {
  background: #172617;
}
.entry-content blockquote {
  border-left: 3px solid var(--cyan);
  padding: 12px 16px;
  margin: 1.5em 0;
  background: #001a1a44;
  color: #9adada;
  font-style: italic;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-chrome {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, #69ff69 0%, #a0ffa0 40%, #00ffff 100%);
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 2px 12px #69ff6966, inset 0 1px 0 rgba(255,255,255,0.4);
  transition: box-shadow var(--transition), transform var(--transition), filter var(--transition);
  letter-spacing: 0.04em;
  min-height: 44px;
  align-items: center;
}
.btn-chrome:hover {
  box-shadow: 0 4px 24px #69ff69aa, inset 0 1px 0 rgba(255,255,255,0.5);
  transform: translateY(-1px);
  filter: brightness(1.1);
  color: var(--dark);
  text-shadow: none;
}

.btn-pill {
  display: inline-block;
  padding: 7px 18px;
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  transition: background var(--transition), box-shadow var(--transition), color var(--transition);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.btn-pill:hover {
  background: #69ff6922;
  box-shadow: var(--glow-green);
  color: var(--green);
  text-shadow: none;
}

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.neon-card {
  background: linear-gradient(135deg, #172617 0%, #1a2a1a 100%);
  border: 1px solid #69ff6933;
  padding: 24px 20px;
  position: relative;
  box-shadow: 0 4px 18px #00000066, 0 0 0 0 #69ff6900;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.neon-card:hover {
  box-shadow: 0 6px 28px #00000088, 0 0 12px #69ff6944;
  border-color: #69ff6966;
  transform: translateY(-2px);
}

.card-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #69ff6933;
  line-height: 1;
  display: block;
}

.neon-card h3 {
  font-size: 1rem;
  margin-bottom: 0;
}
.neon-card h3 a {
  color: var(--green);
  text-decoration: none;
}
.neon-card h3 a:hover {
  color: var(--cyan);
}
.neon-card p {
  font-size: 0.85rem;
  color: #8ab88a;
  line-height: 1.55;
  margin-bottom: 0;
  flex: 1;
}

/* DL card list */
.card-dl {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.card-dl dt {
  background: #172617;
  border: 1px solid #69ff6933;
  border-bottom: none;
  padding: 12px 20px;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
}
.card-dl dt a {
  color: var(--cyan);
  text-decoration: none;
}
.card-dl dt a:hover {
  color: var(--green);
  text-shadow: var(--glow-green);
}
.card-dl dd {
  background: #0e1a0e;
  border: 1px solid #69ff6922;
  border-bottom: none;
  padding: 10px 20px 14px;
  font-size: 0.88rem;
  color: #8ab88a;
  line-height: 1.6;
  margin-left: 0;
}
.card-dl > dd:last-child {
  border-bottom: 1px solid #69ff6922;
}
.card-dl > dt:last-of-type + dd {
  border-bottom: 1px solid #69ff6922;
}

/* ============================================================
   HOME SPECIFIC
   ============================================================ */
.home-content-section {
  margin-bottom: 48px;
}
.home-content-section > article {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-top: 16px;
}
.home-entry {
  flex: 1;
}
.home-aside {
  width: 180px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #172617 0%, #0e1a0e 100%);
  border: 1px solid #69ff6933;
  padding: 18px 14px;
}
.home-aside h3 {
  font-size: 0.85rem;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #69ff6933;
}

.home-block {
  margin-bottom: 56px;
}

/* sub-pages section */
.sub-pages {
  margin-top: 32px;
}

/* review meta */
.review-meta {
  margin-bottom: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: linear-gradient(180deg, #0e1a0e 0%, #060d06 100%);
  border-top: 1px solid #69ff6933;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

footer > section {
  padding: 32px 24px;
  border-right: 1px solid #69ff6922;
}
footer > section:last-child {
  border-right: none;
}

footer h4 {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #00ffff22;
}

footer p {
  font-size: 0.82rem;
  color: #6a906a;
  line-height: 1.6;
  margin-bottom: 8px;
}
footer a {
  color: #6ab86a;
  font-size: 0.82rem;
  text-decoration: none;
}
footer a:hover {
  color: var(--green);
}

footer ol, footer nav ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
footer ol li a {
  display: block;
  padding: 4px 0;
  font-size: 0.8rem;
  color: #6a906a;
  text-decoration: none;
  transition: color var(--transition);
  min-height: 32px;
  display: flex;
  align-items: center;
}
footer ol li a:hover {
  color: var(--green);
}

.footer-copy {
  font-size: 0.75rem;
  color: #4a704a;
  margin-top: 12px;
}

/* ============================================================
   STAGGER ANIMATIONS
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .stagger-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .stagger-item.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .scroll-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  .scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Glow pulse on hero h1 */
@media (prefers-reduced-motion: no-preference) {
  @keyframes glow-pulse {
    0%, 100% { text-shadow: 0 0 8px #69ff69, 0 0 24px #69ff6988; }
    50% { text-shadow: 0 0 16px #69ff69, 0 0 40px #69ff69aa, 0 0 60px #69ff6966; }
  }
  .hero-h1,
  .page-hero-copy h1 {
    animation: glow-pulse 3s ease-in-out infinite;
  }
}

/* Sparkle pseudo-element on neon cards */
.neon-card::before {
  content: '✦';
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 0.7rem;
  color: #69ff6966;
  pointer-events: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root {
    --nav-w: 0px;
  }

  .sidebar-nav {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid #69ff6933;
    gap: 6px;
    overflow: visible;
  }

  .sidebar-nav ol {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }

  .sidebar-nav ol li a {
    font-size: 0.78rem;
    padding: 8px 12px;
  }

  .nav-brand {
    margin-bottom: 0;
    margin-right: 8px;
  }

  .page-body {
    margin-left: 0;
  }

  .site-shell {
    flex-direction: column;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-media {
    width: 220px;
    height: 260px;
    margin: 0 auto;
  }

  .content-with-aside {
    flex-direction: column;
  }
  .content-aside {
    width: 100%;
    position: static;
  }

  footer {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-content-section > article {
    flex-direction: column;
  }
  .home-aside {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }

  article {
    padding: 20px 16px;
  }

  .page-hero {
    padding: 32px 20px;
    min-height: auto;
  }

  .hero-section {
    padding: 40px 20px;
    min-height: 70vh;
  }

  .hero-bg-text {
    font-size: clamp(60px, 20vw, 120px);
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }
  footer > section {
    padding: 20px 16px;
  }

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

  .page-hero-inner {
    flex-direction: column;
  }

  .sidebar-nav ol li a {
    padding: 8px 10px;
    font-size: 0.76rem;
    min-height: 40px;
  }
}

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