@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@700&display=swap');

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

:root {
  --c-black: #000000;
  --c-white: #ffffff;
  --c-accent: #ffffff;
  --c-border: #ffffff;
  --c-muted: #888888;
  --c-surface: #111111;
  --font-main: 'Space Grotesk', 'Arial Black', Arial, sans-serif;
  --nav-h: 100px;
}

html {
  font-size: 17px;
  line-height: 1.6;
  scroll-behavior: smooth;
  background: var(--c-black);
  color: var(--c-white);
}

body {
  font-family: var(--font-main);
  font-weight: 700;
  background: var(--c-black);
  color: var(--c-white);
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--c-white);
  text-decoration: none;
  transition: opacity 0.15s;
}
a:hover { opacity: 0.6; }
a:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: 2px;
}

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

ul, ol { list-style: none; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-black);
  border-bottom: 2px solid var(--c-white);
}

.header-announce {
  background: var(--c-white);
  color: var(--c-black);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-align: center;
  padding: 6px 1rem;
  font-weight: 700;
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid #222;
}

.brand-logo {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--c-white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.nav-toggle {
  background: none;
  border: 2px solid var(--c-white);
  color: var(--c-white);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-white);
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.header-nav {
  padding: 0 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.header-nav::-webkit-scrollbar { display: none; }

.header-nav p {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  white-space: nowrap;
}

.header-nav p a {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0.9rem 1rem;
  color: var(--c-white);
  border-right: 1px solid #222;
  min-height: 44px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.header-nav p a:last-child { border-right: none; }
.header-nav p a:hover { background: var(--c-white); color: var(--c-black); }

/* ===== FULLSCREEN NAV ===== */
.fullscreen-nav {
  position: fixed;
  inset: 0;
  background: var(--c-black);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 4rem 2rem;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
}

.fullscreen-nav.is-open {
  transform: translateX(0);
}

.nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: 2px solid var(--c-white);
  color: var(--c-white);
  font-size: 1.2rem;
  font-family: var(--font-main);
  font-weight: 700;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen-nav nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.fullscreen-nav nav ul li a {
  display: block;
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  padding: 1rem 0;
  border-bottom: 1px solid #222;
  color: var(--c-white);
  min-height: 56px;
  line-height: 1.3;
}
.fullscreen-nav nav ul li a:hover {
  color: var(--c-black);
  background: var(--c-white);
  padding-left: 1rem;
}

/* ===== HOME HERO ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: var(--c-black);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: hidden;
  padding: 6rem 4rem 8rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: grayscale(80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: right;
  max-width: 800px;
}

.hero-h1 {
  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--c-white);
  margin-bottom: 2rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: #ccc;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  line-height: 1.7;
  font-weight: 700;
}

.hero-cta {
  display: inline-block;
  background: var(--c-white);
  color: var(--c-black);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 1rem 2.5rem;
  min-height: 52px;
  line-height: 1.3;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--c-white);
  transition: background 0.15s, color 0.15s;
}
.hero-cta:hover {
  background: var(--c-black);
  color: var(--c-white);
  opacity: 1;
}

.hero-clip {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--c-black);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 3;
}

/* ===== SECTION COMMON ===== */
.section-title {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

/* ===== CONTENT SECTIONS with ASIDE LEFT ===== */
.content-section,
.review-header-section,
.review-body-section,
.compare-intro-section,
.compare-body-section,
.ranking-header-section,
.ranking-body-section,
.faq-title-section,
.faq-content-section,
.about-intro-section,
.about-body-section,
.privacy-title-section,
.privacy-body-section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border-bottom: 2px solid #222;
  padding: 4rem 0;
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.reviews-section,
.rankings-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
  border-bottom: 2px solid #222;
}

/* ===== ASIDE / SIDE NAV ===== */
.side-nav,
.side-meta {
  padding-right: 2rem;
  border-right: 1px solid #222;
  margin-right: 2rem;
  min-width: 0;
}

.aside-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--c-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #333;
}

.side-nav ul,
.side-meta .meta-tags {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.side-nav ul li a {
  display: block;
  font-size: 0.82rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #1a1a1a;
  color: #bbb;
  letter-spacing: 0.02em;
  line-height: 1.4;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.side-nav ul li a:hover { color: var(--c-white); opacity: 1; }

.meta-tags {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: 1rem;
}
.meta-tags a {
  font-size: 0.78rem;
  color: var(--c-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid #1a1a1a;
  min-height: 40px;
  display: flex;
  align-items: center;
}
.meta-tags a:hover { color: var(--c-white); opacity: 1; }

.article-dates {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--c-muted);
  margin-bottom: 1rem;
}

.ranking-date,
.compare-date,
.ranking-date {
  display: block;
  font-size: 0.78rem;
  color: var(--c-muted);
  margin-bottom: 1rem;
}

/* ===== FIGURE (content wrapper) ===== */
.content-figure,
.review-content-figure,
.compare-content-figure,
.ranking-content-figure,
.faq-content-figure,
.about-content-figure,
.privacy-content-figure,
.review-hero-figure,
.compare-intro-figure,
.ranking-hero-figure,
.faq-title-figure,
.about-intro-figure,
.privacy-title-figure {
  min-width: 0;
}

/* ===== HR ===== */
hr {
  border: none;
  border-top: 2px solid var(--c-white);
  margin: 1.5rem 0 2.5rem;
}

/* ===== PAGE H1s ===== */
.review-h1,
.compare-h1,
.ranking-h1,
.faq-h1,
.about-h1,
.privacy-h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
}

/* ===== EYEBROW ===== */
.review-eyebrow,
.compare-eyebrow,
.ranking-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--c-muted);
  text-transform: uppercase;
  margin-top: 1rem;
}

/* ===== HERO IMAGES (inner pages) ===== */
.review-hero-img,
.compare-hero-img,
.ranking-hero-img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  filter: grayscale(60%);
}

/* ===== PAGE CONTENT ===== */
.page-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #ddd;
  font-weight: 700;
}

.page-content h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--c-white);
}

.page-content h3 {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 0.4rem;
  color: var(--c-white);
}

.page-content p {
  margin-bottom: 1.2rem;
}

.page-content ul,
.page-content ol {
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
}

.page-content ul li { list-style: disc; }
.page-content ol li { list-style: decimal; }

.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.page-content a {
  color: var(--c-white);
  border-bottom: 1px solid var(--c-white);
}
.page-content a:hover { opacity: 0.6; }

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}
.page-content th,
.page-content td {
  border: 1px solid #333;
  padding: 0.7rem 1rem;
  text-align: left;
}
.page-content th {
  background: var(--c-white);
  color: var(--c-black);
}

.page-content blockquote {
  border-left: 4px solid var(--c-white);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  color: #aaa;
}

/* ===== CARD GRID ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  margin-top: 2rem;
}

.card-grid li {
  border: 1px solid #222;
  border-bottom: 3px solid var(--c-white);
}

.card-grid li section {
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: background 0.15s;
}
.card-grid li:hover section {
  background: var(--c-surface);
}

.card-grid li section h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.card-grid li section h3 a {
  color: var(--c-white);
}
.card-grid li section h3 a:hover { opacity: 0.7; }

.card-grid li section p {
  font-size: 0.85rem;
  color: #aaa;
  line-height: 1.55;
  flex: 1;
}

.card-grid li section time {
  font-size: 0.72rem;
  color: var(--c-muted);
  letter-spacing: 0.05em;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--c-black);
  border-top: 2px solid var(--c-white);
  padding: 0;
}

.footer-brand-block {
  padding: 4rem 2rem 2rem;
  border-bottom: 1px solid #111;
}

.footer-brand-big {
  display: block;
  font-size: clamp(2.5rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--c-white);
  word-break: break-all;
}

.footer-nav {
  padding: 0 2rem;
  border-bottom: 1px solid #111;
}

.footer-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.footer-nav p a {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  padding: 0.85rem 1rem;
  color: #aaa;
  border-right: 1px solid #1a1a1a;
  min-height: 44px;
  letter-spacing: 0.03em;
}
.footer-nav p a:last-child { border-right: none; }
.footer-nav p a:hover { color: var(--c-white); opacity: 1; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--c-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--c-muted);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover { color: var(--c-white); opacity: 1; }

/* ===== FAQ DESC & ABOUT DESC ===== */
.faq-desc,
.about-desc,
.privacy-desc {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.7;
  margin-top: 1rem;
}

/* ===== PARALLAX HINT ===== */
@media (prefers-reduced-motion: no-preference) {
  .hero-media {
    will-change: transform;
  }
  .card-grid li section {
    transition: background 0.2s, transform 0.2s;
  }
  .card-grid li:hover section {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-section {
    padding: 4rem 1.5rem 6rem;
    align-items: flex-end;
    justify-content: flex-start;
  }
  .hero-content {
    text-align: left;
  }
  .hero-sub {
    margin-left: 0;
  }

  .content-section,
  .review-header-section,
  .review-body-section,
  .compare-intro-section,
  .compare-body-section,
  .ranking-header-section,
  .ranking-body-section,
  .faq-title-section,
  .faq-content-section,
  .about-intro-section,
  .about-body-section,
  .privacy-title-section,
  .privacy-body-section {
    grid-template-columns: 1fr;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .side-nav,
  .side-meta {
    border-right: none;
    margin-right: 0;
    padding-right: 0;
    border-bottom: 1px solid #222;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .side-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .side-nav ul li a {
    border-bottom: 1px solid #333;
    padding: 0.5rem 0.75rem;
    font-size: 0.78rem;
    min-height: 40px;
  }

  .footer-brand-big {
    font-size: clamp(2rem, 12vw, 4rem);
  }

  .footer-nav p {
    flex-direction: column;
  }
  .footer-nav p a {
    border-right: none;
    border-bottom: 1px solid #1a1a1a;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .header-nav {
    padding: 0 1.25rem;
  }
  .header-brand-row {
    padding: 0.75rem 1.25rem;
  }

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

  .reviews-section,
  .rankings-section {
    padding: 2.5rem 1.25rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: clamp(2.5rem, 14vw, 5rem);
  }
  .review-h1,
  .compare-h1,
  .ranking-h1,
  .faq-h1,
  .about-h1,
  .privacy-h1 {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }
  .fullscreen-nav nav ul li a {
    font-size: 1.1rem;
    padding: 0.85rem 0;
  }
}
