/* ==========================================================================
   tegasFX Reviews — tegasfx-reviews.com
   Light editorial system: Newsreader (display) + Inter (text)
   ========================================================================== */

:root {
  --paper: #fbfaf7;
  --card: #ffffff;
  --ink: #1c1b18;
  --body: #3d3a33;
  --muted: #6f6a5f;
  --faint: #98928a;
  --hairline: #e8e5dd;
  --hairline-2: #efece5;
  --accent: #2a5674;
  --accent-dark: #1e405a;
  --star: #e9a13b;
  --tp: #00b67a;
  --mfb: #4f77c2;
  --good: #2f7d4f;
  --radius: 12px;
  --radius-sm: 9px;
  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Inter", -apple-system, sans-serif;
  --shadow-card: 0 1px 2px rgba(28, 27, 24, 0.05), 0 4px 16px rgba(28, 27, 24, 0.04);
  --z-nav: 50;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(42, 86, 116, 0.16); }

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-serif); color: var(--ink); line-height: 1.14; font-weight: 500; letter-spacing: -0.01em; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.wordmark {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.wordmark:hover { text-decoration: none; }
.wordmark .tld { color: var(--faint); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  border: 1px solid var(--hairline);
  color: var(--ink) !important;
  background: var(--card);
  padding: 8px 16px;
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-cta:hover { border-color: var(--accent); }

/* --------------------------------------------------------------------------
   Cinematic article header (canvas backdrop + optional video layer)
   -------------------------------------------------------------------------- */
.hero-cine {
  position: relative;
  overflow: hidden;
  background: #0e1420;
  padding: 88px 0 64px;
}
#hero-canvas,
#hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#hero-video {
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
#hero-video.live { opacity: 0.55; }
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}
.hero-cine::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(14, 20, 32, 0), rgba(10, 14, 22, 0.55));
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--star);
  margin-bottom: 26px;
}
.hero-kicker::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--star);
}
.hero-cine h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.1rem);
  font-weight: 500;
  color: #f7f5ef;
  margin-bottom: 22px;
  text-shadow: 0 2px 30px rgba(8, 12, 20, 0.55);
}
.hero-cine h1 em {
  font-style: italic;
  font-weight: 500;
  color: #eebd6b;
}
.standfirst {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.55;
  color: rgba(247, 245, 239, 0.82);
  max-width: 640px;
  margin-bottom: 30px;
}
.standfirst strong { color: #fdfcf9; font-weight: 500; }
.u-mark {
  background-image: linear-gradient(transparent 64%, rgba(233, 161, 59, 0.45) 64%, rgba(233, 161, 59, 0.45) 92%, transparent 92%);
  padding: 0 2px;
}

/* Byline (on dark) */
.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(247, 245, 239, 0.16);
  border-bottom: 1px solid rgba(247, 245, 239, 0.16);
  margin-bottom: 36px;
}
.byline .b-meta { font-size: 0.83rem; color: rgba(247, 245, 239, 0.6); }
.byline .b-disclosure {
  margin-left: auto;
  font-size: 0.83rem;
  color: rgba(247, 245, 239, 0.68);
  max-width: 400px;
}
.byline .b-disclosure b { color: rgba(247, 245, 239, 0.92); }
.byline .b-disclosure a { color: #eebd6b; font-weight: 500; }

/* Plain rating line — no cards, no counts, just a citation-style line */
.rating-line {
  font-size: 0.92rem;
  color: rgba(247, 245, 239, 0.62);
}
.rating-line a { color: #eebd6b; font-weight: 600; }
.rating-line a:hover { color: #f7f5ef; }

/* --------------------------------------------------------------------------
   Review slider — mixed-rating cards drifting sideways
   -------------------------------------------------------------------------- */
.slider {
  border-bottom: 1px solid var(--hairline);
  background: #f4f2ec;
  overflow: hidden;
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.slider-track {
  display: inline-flex;
  align-items: stretch;
  gap: 16px;
  animation: slider-scroll 70s linear infinite;
  will-change: transform;
}
.slider:hover .slider-track { animation-play-state: paused; }
.slide-card {
  flex-shrink: 0;
  width: 268px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  white-space: normal;
}
.slide-card .card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.slide-card .stars svg { width: 12px; height: 12px; }
.slide-card .s-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--body);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.slide-card .s-author {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
}
.slide-card .s-meta { font-size: 0.72rem; color: var(--faint); font-weight: 500; }
@keyframes slider-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Shared icon chip + arrow, used by Sources section links */
.rb-logo {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.rb-logo.tp { background: rgba(0, 182, 122, 0.1); }
.rb-logo.mfb { background: rgba(79, 119, 194, 0.1); }
.rb-logo.gg { background: var(--hairline-2); }
.rb-open { margin-left: auto; color: var(--faint); transition: color 0.2s ease, transform 0.2s ease; }
.source-item:hover .rb-open { color: var(--accent); transform: translate(2px, -2px); }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: 74px 0 0; }
.section-head { max-width: 640px; margin-bottom: 38px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(1.65rem, 3.2vw, 2.3rem); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1rem; }

/* --------------------------------------------------------------------------
   Themes (editorial synthesis)
   -------------------------------------------------------------------------- */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.theme {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 22px 22px 20px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.theme:hover { transform: translateY(-2px); border-color: rgba(233, 161, 59, 0.5); }
.theme .t-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--star);
  margin-bottom: 10px;
}
.theme h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; margin-bottom: 7px; }
.theme p { font-size: 0.87rem; color: var(--muted); line-height: 1.55; }

/* --------------------------------------------------------------------------
   Highlights (pull quotes)
   -------------------------------------------------------------------------- */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.highlight-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px 32px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.highlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 6px rgba(28, 27, 24, 0.06), 0 14px 34px rgba(28, 27, 24, 0.08);
}
.highlight-card::before {
  content: "“";
  position: absolute;
  top: 14px;
  right: 26px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 4.6rem;
  line-height: 1;
  color: rgba(233, 161, 59, 0.28);
  pointer-events: none;
}
.highlight-card h3 {
  font-size: 1.35rem;
  font-weight: 500;
  margin: 12px 0 12px;
  padding-right: 48px;
}
.highlight-card .quote {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  line-height: 1.62;
  color: var(--body);
  white-space: pre-line;
  flex: 1;
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--hairline-2);
  border-radius: 999px;
  padding: 4px 11px;
}
.platform-chip svg { width: 11px; height: 11px; }

.review-footer {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline-2);
}
.review-footer .avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--hairline-2);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.review-author { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.review-meta { font-size: 0.77rem; color: var(--faint); margin-top: 1px; }
.source-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.source-link:hover { color: var(--accent); text-decoration: none; }
.source-link svg { width: 13px; height: 13px; }

/* Stars */
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; }
.stars.lg svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Review wall
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: 36px;
}
.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  min-height: 40px;
}
.filter-btn:hover { color: var(--ink); border-color: var(--faint); }
.filter-btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.filter-btn.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.filter-btn .count { opacity: 0.6; font-size: 0.78rem; margin-left: 4px; }

.review-grid { columns: 3 300px; column-gap: 18px; }
.review-card {
  break-inside: avoid;
  margin-bottom: 18px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 22px 22px 18px;
  transition: border-color 0.25s ease;
}
.review-card:hover { border-color: var(--faint); }
.review-card .card-top { margin-bottom: 11px; }
.review-card h3 { font-family: var(--font-sans); font-size: 0.99rem; font-weight: 600; margin-bottom: 7px; }
.review-card .quote {
  color: var(--body);
  font-size: 0.92rem;
  white-space: pre-line;
}
.review-card .review-footer { margin-top: 15px; padding-top: 13px; }
.review-card .avatar { width: 33px; height: 33px; font-size: 0.78rem; }

.wall-note { text-align: center; color: var(--faint); font-size: 0.8rem; margin-top: 24px; }

/* Entrance animation — pure CSS, always ends visible even without JS */
@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.reveal { animation: rise 0.5s ease both; }
.reveal:nth-child(2) { animation-delay: 0.07s; }
.reveal:nth-child(3) { animation-delay: 0.14s; }
.reveal:nth-child(4) { animation-delay: 0.21s; }

/* --------------------------------------------------------------------------
   Sources / CTA
   -------------------------------------------------------------------------- */
.sources-box {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 46px 42px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}
.sources-box h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 13px; }
.sources-box > div > p { color: var(--muted); font-size: 0.97rem; }
.cta-row { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.93rem;
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  min-height: 44px;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border: 1px solid var(--hairline); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.source-list { display: flex; flex-direction: column; gap: 11px; }
.source-item {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 13px 17px;
  transition: border-color 0.2s ease;
}
.source-item:hover { border-color: var(--accent); text-decoration: none; }
.si-name { font-weight: 600; font-size: 0.93rem; color: var(--ink); }
.si-sub { font-size: 0.78rem; color: var(--muted); margin-top: 1px; }

/* --------------------------------------------------------------------------
   Author box
   -------------------------------------------------------------------------- */
.author-box {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 30px 32px;
}
.author-box h3 { font-size: 1.25rem; margin-bottom: 12px; }
.author-box p { font-size: 0.93rem; color: var(--body); }
.author-box .a-disclosure {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
}
.author-box .a-disclosure b { color: var(--ink); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  margin-top: 90px;
  border-top: 1px solid var(--hairline);
  background: #f4f2ec;
  padding: 50px 0 36px;
}
.risk {
  background: #fdf6ee;
  border: 1px solid #ecd9c0;
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 36px;
}
.risk p { color: #7a5c33; font-size: 0.8rem; }
.risk b { color: #5f451f; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.footer p { font-size: 0.85rem; color: var(--muted); }
.footer .disclosure { color: var(--body); }
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--faint);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .highlight-grid, .sources-box, .footer-grid { grid-template-columns: 1fr; }
  .themes-grid { grid-template-columns: repeat(2, 1fr); }
  .sources-box { padding: 34px 26px; }
  .section { padding-top: 60px; }
  .byline .b-disclosure { margin-left: 0; max-width: none; }
}
@media (max-width: 560px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-cine { padding: 52px 0 40px; }
  .hero-cine h1 br { display: none; }
  .themes-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .slider-track { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
