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

:root {
  --primary: #2F4858;
  --secondary: #F2C14E;
  --accent: #E07A5F;
  --bg: #FFFDF7;
  --surface: #FFFFFF;
  --dark: #1D2D35;
  --text: #27343A;
  --muted: #7A858C;
  --border: #E8E4DA;
  --highlight: #F7E7B4;
  --gradient: linear-gradient(135deg, #2F4858, #E07A5F);
  --radius: 24px;
  --shadow-sm: 0 4px 12px rgba(47, 72, 88, 0.05);
  --shadow-md: 0 12px 32px rgba(47, 72, 88, 0.08);
  --shadow-glass: 0 8px 32px rgba(47, 72, 88, 0.1);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sora', sans-serif;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

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

ul, ol {
  list-style: none;
}

/* Typography Utilities */
.text-huge { font-size: clamp(3rem, 5vw, 5rem); letter-spacing: -0.02em; }
.text-h1 { font-size: clamp(2.5rem, 4vw, 4rem); letter-spacing: -0.01em; }
.text-h2 { font-size: clamp(2rem, 3vw, 3rem); }
.text-h3 { font-size: clamp(1.5rem, 2vw, 2rem); }
.text-lead { font-size: 1.25rem; color: var(--muted); line-height: 1.8; }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }

/* Layout & Containers */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 8rem 0; }
.spacer-sm { height: 2rem; }
.spacer-md { height: 4rem; }
.spacer-lg { height: 8rem; }

/* Navigation */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 253, 247, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
  padding: 1.5rem 0;
}
.site-header.scrolled {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.3s ease;
}
.brand-logo:hover {
  opacity: 0.85;
}
.header-logo {
  height: 44px;
  width: auto;
  display: block;
}
.footer-logo {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 1rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}
.nav-link {
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-link:hover::after { width: 100%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: 'Sora', sans-serif;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: var(--surface);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(47, 72, 88, 0.15);
}
.btn-accent {
  background: var(--accent);
  color: var(--surface);
}
.btn-accent:hover {
  background: #c9684f;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-glass {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--dark);
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Specific Section: Index Hero */
.hero-index {
  padding-top: 12rem;
  padding-bottom: 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-index-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-index-content { max-width: 600px; }
.hero-index-visual {
  position: relative;
  height: 600px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-glass);
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-blob {
  position: absolute;
  width: 40vw; height: 40vw;
  background: var(--highlight);
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  top: -10%; right: -10%;
  opacity: 0.6;
}

/* Quick Compare Bar */
.quick-compare {
  background: var(--dark);
  color: var(--surface);
  padding: 2rem 0;
  border-radius: var(--radius);
  margin-top: -4rem;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-md);
}
.qc-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}
.qc-item { text-align: center; }
.qc-item span { display: block; font-size: 0.875rem; color: var(--muted); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.qc-item strong { font-family: 'Sora'; font-size: 1.25rem; color: var(--secondary); }

/* Editorial Section */
.editorial-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 6rem;
  align-items: start;
}
.editorial-title { position: sticky; top: 120px; }
.editorial-body p { margin-bottom: 1.5rem; font-size: 1.125rem; }

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 300px;
  gap: 1.5rem;
}
.bento-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bento-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}
.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }
.bento-icon { width: 48px; height: 48px; margin-bottom: 1.5rem; }
.bento-item h3 { margin-bottom: 1rem; z-index: 2; }
.bento-item p { color: var(--muted); z-index: 2; }
.bento-bg-img {
  position: absolute;
  bottom: -20%; right: -10%;
  width: 60%;
  opacity: 0.05;
  transition: var(--transition);
}
.bento-item:hover .bento-bg-img { transform: scale(1.1) rotate(-5deg); opacity: 0.1; }

/* Interactive Table */
.interactive-table-wrapper {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.table-header-tabs {
  display: flex;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.table-tab {
  padding: 1.5rem 2rem;
  font-family: 'Sora';
  font-weight: 600;
  cursor: pointer;
  border-right: 1px solid var(--border);
  color: var(--muted);
  transition: var(--transition);
}
.table-tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: inset 0 3px 0 var(--accent);
}
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th, .data-table td {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}
.data-table th { font-family: 'Sora'; font-weight: 500; color: var(--muted); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.status-gambling .status-dot { background: var(--accent); }
.status-productivity .status-dot { background: var(--secondary); }

/* Timeline (Process) */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 4rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 2px;
  background: var(--border);
  transform: translateY(-50%);
  z-index: 1;
}
.timeline-step {
  position: relative;
  z-index: 2;
  background: var(--bg);
  padding: 0 1rem;
  text-align: center;
  width: 200px;
}
.step-number {
  width: 64px; height: 64px;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora';
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Offset Reviews */
.offset-reviews { display: flex; flex-direction: column; gap: 4rem; }
.offset-card {
  display: flex;
  gap: 4rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 3rem;
  align-items: center;
}
.offset-card:nth-child(even) { flex-direction: row-reverse; }
.offset-img { flex: 1; border-radius: calc(var(--radius) - 8px); overflow: hidden; }
.offset-content { flex: 1; }

/* Carousel */
.carousel-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  scrollbar-width: none;
}
.carousel-container::-webkit-scrollbar { display: none; }
.carousel-card {
  min-width: 350px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: var(--transition);
}
.carousel-card:hover { border-color: var(--primary); }

/* FAQ Accordion */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-question {
  padding: 1.5rem 2rem;
  font-family: 'Sora';
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--dark);
}
.faq-icon {
  width: 24px; height: 24px;
  transition: transform 0.3s ease;
}
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--muted);
}
.faq-item.active .faq-answer { padding: 0 2rem 1.5rem; max-height: 500px; }

/* Contact Form */
.contact-glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4rem;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-glass);
}
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-family: 'Sora'; font-size: 0.875rem; font-weight: 600; }
.form-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  font-family: 'Outfit';
  font-size: 1rem;
  transition: var(--transition);
}
.form-input:focus { outline: none; border-color: var(--primary); background: var(--surface); }

/* Footer */
.site-footer {
  background: var(--dark);
  color: var(--surface);
  padding: 6rem 0 2rem;
  border-top-left-radius: 48px;
  border-top-right-radius: 48px;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}
.footer-brand h2 { color: var(--surface); }
.footer-brand p { color: var(--muted); margin-top: 1rem; max-width: 400px; line-height: 1.6; }
.footer-title { font-family: 'Sora'; font-size: 1.125rem; margin-bottom: 1.5rem; color: var(--secondary); }
.footer-links li { margin-bottom: 1rem; }
.footer-links a { 
  color: var(--surface); 
  opacity: 0.7; 
  position: relative; 
  display: inline-block; 
  transition: var(--transition); 
}
.footer-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--secondary);
  transition: var(--transition);
}
.footer-links a:hover { 
  opacity: 1; 
  color: var(--secondary); 
  transform: translateX(5px); 
}
.footer-links a:hover::after {
  width: 100%;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}
.footer-bottom .disclaimer {
  font-size: 0.75rem;
  opacity: 0.6;
  max-width: 100%;
  margin: 0 auto;
}

/* Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-up.active { opacity: 1; transform: translateY(0); }
.fade-in {
  opacity: 0;
  transition: opacity 1s ease;
}
.fade-in.active { opacity: 1; }

/* Subpages - General */
.page-header {
  padding: 10rem 0 4rem;
  background: var(--bg);
  text-align: center;
  position: relative;
}

/* Review Page Layout */
.review-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}
.sticky-sidebar {
  position: sticky;
  top: 120px;
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.toc-list li { margin-bottom: 0.75rem; }
.toc-list a { color: var(--muted); font-size: 0.95rem; }
.toc-list a:hover, .toc-list a.active { color: var(--primary); font-weight: 500; }
.review-content h2 { margin: 3rem 0 1.5rem; }
.review-content p { margin-bottom: 1.5rem; font-size: 1.125rem; }
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}
.pros-box, .cons-box {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.pros-box h3 { color: var(--primary); }
.cons-box h3 { color: var(--accent); }
.pros-box ul li, .cons-box ul li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
}
.pros-box ul li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); }
.cons-box ul li::before { content: '−'; position: absolute; left: 0; color: var(--accent); }

/* Best Blockers Horizontal Blocks */
.list-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 200px 1fr 250px;
  gap: 3rem;
  align-items: center;
  transition: var(--transition);
}
.list-block:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.list-logo {
  width: 120px; height: 120px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.list-meta { text-align: right; border-left: 1px solid var(--border); padding-left: 3rem; }

/* Masonry for Reviews Hub */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}
.masonry-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.masonry-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* Matrix Compare */
.matrix-wrapper { overflow-x: auto; padding-bottom: 2rem; }
.matrix-table { min-width: 1000px; width: 100%; border-collapse: separate; border-spacing: 0; }
.matrix-table th, .matrix-table td {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.matrix-table th { font-family: 'Sora'; position: sticky; top: 0; background: var(--bg); z-index: 10; }
.matrix-table td:first-child, .matrix-table th:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); z-index: 20; border-right: 1px solid var(--border); }
.matrix-table th:first-child { background: var(--bg); z-index: 30; }

/* Responsible Use */
.oversized-section { min-height: 80vh; display: flex; align-items: center; padding: 4rem 0; }
.oversized-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.oversized-text h2 { font-size: 3.5rem; margin-bottom: 2rem; }
.checklist-large { font-size: 1.25rem; }
.checklist-large li { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; gap: 1rem; align-items: center; }

/* Responsive */
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    align-items: center;
  }
  .footer-bottom p:first-child {
    white-space: nowrap;
  }
  .footer-bottom .disclaimer {
    text-align: right;
    margin: 0;
    max-width: 60%;
  }
}
@media (max-width: 1024px) {
  .hero-index-grid, .editorial-section, .oversized-grid, .review-layout, .footer-grid { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .timeline { flex-direction: column; gap: 2rem; padding: 2rem 0; align-items: flex-start; }
  .timeline::before { top: 0; bottom: 0; left: 32px; width: 2px; height: 100%; transform: none; }
  .timeline-step { width: 100%; display: flex; align-items: center; gap: 2rem; text-align: left; padding: 0; }
  .step-number { margin: 0; }
  .list-block { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .list-meta { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 2rem; text-align: center; }
  .nav-links { display: none; }
}
@media (max-width: 768px) {
  .bento-large, .bento-wide, .bento-tall { grid-column: span 1; grid-row: auto; }
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .offset-card, .offset-card:nth-child(even) { flex-direction: column; }
  .text-h1 { font-size: 2.5rem; }
}