/* ===== CSS Variables ===== */
:root {
  --primary: #0F2B46;
  --primary-mid: #1B4F72;
  --primary-light: #3498DB;
  --primary-glow: #5DADE2;
  --accent: #00D68F;
  --accent-hover: #00B377;
  --bg: #F8F9FB;
  --bg-alt: #F0F2F5;
  --bg-card: #FFFFFF;
  --text: #1E293B;
  --text-light: #64748B;
  --text-muted: #94A3B8;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --border-card: #E2E8F0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-xl: 0 8px 24px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --max-width: 1140px;
  --header-height: 64px;
  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: 80px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-mid); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; color: var(--primary); font-weight: 700; }

/* ===== Container ===== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}
.header.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
}
.logo-text span { color: var(--primary-light); }

/* Nav */
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-light);
  transition: all var(--transition);
  position: relative;
}
.nav a:hover {
  color: var(--primary);
  background: var(--bg-alt);
}
.nav a.active {
  color: var(--primary);
  font-weight: 600;
}
.nav a.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--primary-light);
  border-radius: 1px;
}
.nav-github {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 7px 16px !important;
  border-radius: 6px !important;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition) !important;
  margin-left: 8px;
}
.nav-github:hover {
  background: var(--primary-mid) !important;
  color: var(--white) !important;
}
.nav-github svg { width: 16px; height: 16px; fill: currentColor; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  background: var(--primary);
  color: var(--white);
  padding: 80px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero .container { position: relative; z-index: 2; }
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
}
.hero-label .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.hero h1 .gradient-text {
  color: var(--white);
  -webkit-text-fill-color: unset;
  background: none;
}
.hero p {
  font-size: 1.125rem;
  max-width: 640px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  font-weight: 400;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  letter-spacing: 0.01em;
}
.badge-green {
  background: rgba(0,214,143,0.15);
  border-color: rgba(0,214,143,0.3);
  color: #6FFFCC;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 36px;
}
.tech-tag {
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.tech-tag:hover {
  color: rgba(255,255,255,0.85);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.btn-primary {
  background: var(--accent);
  color: #0A1628;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #0A1628;
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-secondary {
  background: var(--primary);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--primary-mid);
  color: var(--white);
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
  position: relative;
}
.section-alt {
  background: var(--white);
}
.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1rem;
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bg-alt);
  color: var(--primary-light);
  margin-bottom: 14px;
}

/* ===== Screenshot ===== */
.section-screenshot {
  padding: 0 0 48px;
  margin-top: -40px;
  position: relative;
  z-index: 3;
}
.screenshot-wrapper {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.screenshot {
  border-radius: 8px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  width: 100%;
  height: auto;
}
.screenshot-caption {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Feature Cards ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ===== Advantages (numbered) ===== */
.advantages-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  counter-reset: advantage;
}
.advantage-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 24px 24px 24px 72px;
  position: relative;
  counter-increment: advantage;
  transition: box-shadow var(--transition);
}
.advantage-item:hover {
  box-shadow: var(--shadow-lg);
}
.advantage-item::before {
  content: counter(advantage);
  position: absolute;
  left: 20px;
  top: 24px;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}
.advantage-item h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.advantage-item p {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===== Comparison Tables ===== */
.comparison-block { margin-bottom: 56px; }
.comparison-block h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.comparison-note {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--primary-light);
  line-height: 1.6;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.comparison-table thead {
  display: table-header-group;
}
.comparison-table tbody {
  display: table-row-group;
}
.comparison-table tr {
  display: table-row;
}
.comparison-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
  background: var(--white);
}
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.comparison-table tbody tr:hover td {
  background: var(--bg);
}
.comparison-table td:first-child {
  font-weight: 600;
  color: var(--primary);
  white-space: normal;
  background: var(--bg);
}
.comparison-table tbody tr:hover td:first-child {
  background: var(--bg-alt);
}
.comparison-table .col-ts {
  background: rgba(0,214,143,0.06);
}
.comparison-table tbody tr:hover .col-ts {
  background: rgba(0,214,143,0.1);
}
.comparison-table .highlight {
  color: var(--accent-hover);
  font-weight: 700;
}
.comparison-table thead .col-ts {
  background: rgba(0,214,143,0.08);
}

/* ===== Clients Grid ===== */
.clients-category {
  margin-bottom: 40px;
}
.clients-category h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  display: inline-block;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.client-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: box-shadow var(--transition);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
}
.client-item:hover {
  box-shadow: var(--shadow);
}
.client-logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px;
}
.client-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.client-logo-mark {
  width: 100%;
  height: 100%;
  display: block;
}
.client-name {
  min-width: 0;
  line-height: 1.35;
}

/* ===== Contact ===== */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.contact-card h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.contact-card .role {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}
.contact-card .support-note {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  line-height: 1.65;
  border-left: 3px solid var(--primary-light);
  color: var(--text-light);
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--transition);
  border: 1px solid transparent;
}
.contact-link:hover {
  background: var(--bg-alt);
  color: var(--text);
}
.contact-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===== Quick Start ===== */
.quickstart {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 720px;
  margin: 0 auto;
}
.quickstart h3 {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.quickstart pre {
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.08);
}
.quickstart code { color: #A3D9A5; }
.quickstart .comment { color: #546E7A; }
.quickstart .info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.875rem;
  opacity: 0.8;
}
.quickstart .info span { display: flex; align-items: center; gap: 8px; }

/* ===== Timeline ===== */
.timeline {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline-item {
  display: flex;
  gap: 20px;
  align-items: stretch;
}
.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 20px;
  flex-shrink: 0;
}
.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-light);
  flex-shrink: 0;
  margin-top: 20px;
}
.timeline-item:last-child .timeline-dot {
  background: var(--accent);
}
.timeline-line {
  width: 2px;
  flex: 1;
  background: var(--border);
}
.timeline-item:last-child .timeline-line {
  display: none;
}
.timeline-content {
  flex: 1;
  padding: 14px 20px;
  margin-bottom: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}
.timeline-content:hover {
  box-shadow: var(--shadow);
}
.timeline-item:last-child .timeline-content {
  margin-bottom: 0;
}
.timeline-year {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.875rem;
  margin-bottom: 2px;
}
.timeline-text {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ===== Use Cases ===== */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}
.usecase-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}
.usecase-item:hover {
  box-shadow: var(--shadow);
}
.usecase-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.usecase-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.usecase-item p {
  font-size: 0.825rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* ===== Architecture block ===== */
.arch-block {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 36px;
  border-left: 4px solid var(--primary-light);
}
.arch-block h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.arch-block p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ===== Footer ===== */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand {
  max-width: 300px;
}
.footer-brand .logo {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.footer-brand .logo .logo-icon {
  background: rgba(255,255,255,0.15);
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  padding: 3px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom-links {
  display: flex;
  gap: 20px;
}
.footer-bottom-links a {
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* Legacy footer support */
.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer a { color: rgba(255,255,255,0.7); transition: color var(--transition); }
.footer a:hover { color: var(--white); }
.footer-links { display: flex; gap: 24px; font-size: 0.85rem; }
.footer-copy { font-size: 0.8rem; opacity: 0.7; }

/* ===== Page Hero (inner pages) ===== */
.page-hero {
  background: var(--primary);
  color: var(--white);
  padding: 52px 0;
  text-align: center;
}
.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.page-hero p {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Stats bar ===== */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 56px;
}
.stat-item {
  text-align: center;
}
.stat-number {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.825rem;
  color: var(--text-light);
  font-weight: 500;
  margin-top: 3px;
}

/* ===== Trusted By (client logos on home) ===== */
.trusted-section {
  padding: 48px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.trusted-title {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 32px 48px;
}
.trusted-logo {
  height: 36px;
  width: auto;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: opacity var(--transition), filter var(--transition);
  object-fit: contain;
}
.trusted-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}
.trusted-more {
  display: block;
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    gap: 2px;
  }
  .nav.open { display: flex; }
  .nav a.active::after { display: none; }
  .nav a.active { background: var(--bg-alt); }
  .burger { display: flex; }

  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  .page-hero h1 { font-size: 1.6rem; }
  .page-hero { padding: 40px 0; }

  .section { padding: 48px 0; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { margin-bottom: 36px; }

  .features-grid { grid-template-columns: 1fr; }
  .advantages-list { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: 1fr; }

  .comparison-table {
    font-size: 0.8rem;
  }
  .comparison-table thead { display: none; }
  .comparison-table tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .comparison-table td {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
  }
  .comparison-table td:last-child {
    border-bottom: none;
  }
  .comparison-table td:first-child {
    font-size: 0.85rem;
  }
  .comparison-table td:nth-child(2)::before,
  .comparison-table td:nth-child(3)::before {
    display: block;
    margin-bottom: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
  }
  .comparison-table td:nth-child(2)::before { content: "TrackStudio"; }
  .comparison-table td:nth-child(3)::before { content: "Альтернатива"; }

  .clients-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

  .quickstart { padding: 24px; }
  .contact-card { padding: 28px; }

  .footer .container { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .section-screenshot {
    margin-top: -24px;
    padding-top: 0;
  }

  .stats-grid { gap: 24px; flex-wrap: wrap; }
  .trusted-logos { gap: 20px 32px; }
  .trusted-logo { height: 22px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.9rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
  .hero-badges { flex-direction: column; align-items: center; }

  .section { padding: 36px 0; }
  .section-title { font-size: 1.3rem; }

  .stats-grid { gap: 16px; }
  .stat-number { font-size: 1.4rem; }
}
