@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0B1021;
  --secondary: #A800FF;
  --accent: #00F0FF;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --dark: #020617;
  --text: #1E293B;
  --muted: #64748B;
  --border: #E2E8F0;
  --gradient: linear-gradient(135deg, #0B1021, #4c0099);
  
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  --radius: 22px;
  --shadow-sm: 0 4px 12px -4px rgba(2, 6, 23, 0.05);
  --shadow-md: 0 12px 32px -8px rgba(2, 6, 23, 0.08);
  --shadow-lg: 0 24px 48px -12px rgba(2, 6, 23, 0.12);
  
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  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: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--secondary);
}

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

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  transition: var(--transition);
  padding: 1.5rem 0;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.brand-tld {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--dark);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: var(--font-heading);
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(11, 16, 33, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(11, 16, 33, 0.3);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--dark);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Home: Split Hero */
.hero-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 5rem;
}

.hero-content {
  padding-right: 4rem;
}

.hero-title {
  font-size: clamp(3rem, 5vw, 4.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-title span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-visual {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual svg {
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(2,6,23,0.1));
}

/* Home: Category Bar */
.category-bar {
  background: var(--surface);
  border-y: 1px solid var(--border);
  padding: 2rem 0;
}

.cat-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.cat-item:hover {
  background: var(--surface);
  border-color: var(--secondary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

/* Home: Dashboard Comparison */
.dashboard-section {
  padding: 8rem 0;
}

.section-header {
  margin-bottom: 4rem;
  max-width: 600px;
}

.section-title {
  font-size: 2.5rem;
  letter-spacing: -0.03em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  grid-auto-rows: minmax(300px, auto);
}

.dash-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.dash-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.dash-card.large {
  grid-row: span 2;
}

.card-badge {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: var(--accent);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Home: Interactive Table */
.table-section {
  padding: 6rem 0;
  background: var(--primary);
  color: var(--surface);
}

.table-section .section-title {
  color: var(--surface);
}

.custom-table-wrapper {
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1rem;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.custom-table th, .custom-table td {
  padding: 1.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.custom-table th {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.custom-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* Home: Timeline */
.timeline-section {
  padding: 8rem 0;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  width: 50%;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) {
  margin-left: auto;
  padding-right: 0;
  padding-left: 3rem;
}

.timeline-dot {
  position: absolute;
  top: 0;
  right: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 4px var(--bg);
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -10px;
  right: auto;
}

.timeline-content {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Home: Masonry Articles */
.masonry-section {
  padding: 6rem 0;
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  grid-auto-rows: 20px;
}

.masonry-item {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
  break-inside: avoid;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

/* FAQ */
.faq-section {
  padding: 8rem 0;
  background: var(--surface);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 2rem 0;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--muted);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: 2rem;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 6rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  position: relative;
  display: inline-block;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-links a:focus-visible {
  outline: 2px dashed var(--primary);
  outline-offset: 4px;
  border-radius: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .footer-bottom-info {
    max-width: 65%;
  }
  .footer-copyright {
    white-space: nowrap;
    text-align: right;
  }
}

/* Inner Page Layouts */
.page-header {
  padding: 10rem 0 4rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  max-width: 800px;
  margin: 0 auto 1rem;
  letter-spacing: -0.03em;
}

.page-subtitle {
  color: var(--muted);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Reviews Sidebar Layout */
.review-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  padding: 4rem 0;
}

.sidebar {
  position: sticky;
  top: 100px;
  height: max-content;
}

.toc-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.toc-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 1rem;
}

.toc-list a {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  display: block;
}

.toc-list a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.review-content h2 {
  font-size: 2rem;
  margin: 3rem 0 1.5rem;
}

.review-content p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.review-checklist {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin: 2rem 0;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.checklist-item svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  stroke: var(--primary);
}

/* Filters */
.filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: var(--dark);
  color: var(--surface);
  border-color: var(--dark);
}

/* Grid for cards */
.blocker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.blocker-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2.5rem;
  transition: var(--transition);
}

.blocker-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 8rem;
  }
  .hero-content {
    padding-right: 0;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .timeline::before {
    left: 0;
  }
  .timeline-item {
    width: 100%;
    padding-left: 3rem !important;
    padding-right: 0 !important;
  }
  .timeline-dot {
    left: -10px !important;
  }
  .review-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}