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

:root {
  --bg: #fafaf9;
  --bg-subtle: #f5f5f4;
  --bg-card: #ffffff;
  --text: #1c1917;
  --text-muted: #57534e;
  --brand-primary: #4338ca;
  --brand-secondary: #d97706;
  --border: #e7e5e4;
  --ok: #059669;
  --no: #dc2626;
  --partial: #d97706;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius: 16px;
  --header-height: 80px;
}

[data-theme="dark"] {
  --bg: #0c0a09;
  --bg-subtle: #1c1917;
  --bg-card: #1c1917;
  --text: #fafaf9;
  --text-muted: #a8a29e;
  --border: #292524;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.5);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 100% 0%, rgba(67, 56, 202, 0.05) 0%, transparent 25%),
    radial-gradient(circle at 0% 100%, rgba(217, 119, 6, 0.05) 0%, transparent 25%);
}

h1, h2, h3, .brand strong {
  font-family: 'Syne', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.site-shell {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Header & Nav */
.topbar {
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(var(--bg), 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.topbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand div strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.brand div span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 99px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text);
}

.nav-links a:hover {
  background: var(--bg-subtle);
}

.nav-links a.download-link {
  background: var(--brand-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(67, 56, 202, 0.3);
}

.nav-links a.download-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(67, 56, 202, 0.4);
}

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

.kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--brand-secondary);
  margin-bottom: 16px;
  display: inline-block;
  background: rgba(217, 119, 6, 0.1);
  padding: 4px 12px;
  border-radius: 6px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 24px;
  color: var(--text);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn.primary {
  background: var(--brand-primary);
  color: white;
}

.btn.secondary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Logo Strip */
.logo-strip {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.logo-card {
  background: var(--bg-card);
  padding: 32px 24px;
  border-radius: 24px;
  border: 1px solid var(--border);
  width: 280px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

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

.logo-card small {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  font-weight: 700;
  margin-bottom: 20px;
  opacity: 0.8;
}

.logo-card img.icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.logo-card img.word {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 28px;
  margin-top: 8px;
}

.logo-subtext {
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* Card Grid */
.section {
  padding: 80px 0;
}

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.compare-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
  opacity: 0;
  transition: opacity 0.3s;
}

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

.compare-card:hover::before {
  opacity: 1;
}

.compare-card h3 {
  font-size: 1.5rem;
}

.compare-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.compare-card .meta {
  font-size: 0.8rem;
  color: var(--brand-primary);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: auto;
}

/* Table Design */
.filters {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow);
}

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

th, td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

thead th {
  background: var(--bg-subtle);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  position: sticky;
  top: 0;
  z-index: 10;
}

.group-row td {
  background: var(--bg-subtle);
  font-weight: 800;
  font-size: 13px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.vyom-col {
  background: rgba(67, 56, 202, 0.03);
  font-weight: 600;
}

.status {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
}

.status.yes { background: rgba(5, 150, 105, 0.1); color: var(--ok); }
.status.no { background: rgba(220, 38, 38, 0.1); color: var(--no); }
.status.partial { background: rgba(217, 119, 6, 0.1); color: var(--partial); }

/* Note Box */
.note-box {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-subtle);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
}

/* Reset / Util */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* Animations */
@keyframes reveal {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

main > * {
  animation: reveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

main > *:nth-child(2) { animation-delay: 0.1s; }
main > *:nth-child(3) { animation-delay: 0.2s; }

/* Mobile Optimizations */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .hero h1 { font-size: 2.5rem; }
  .hero { padding: 40px 0; }
  
  .nav-links a:not(.download-link) {
    display: none;
  }
  
  .section h2 { font-size: 2rem; }
  
  .table-wrap {
    margin-left: -4%;
    margin-right: -4%;
    width: 108%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  
  /* Mobile Table: Sticky First Column */
  table {
    min-width: unset;
  }
  
  td, th {
    padding: 12px 16px;
    font-size: 13px;
  }
  
  /* Feature column stays sticky on mobile */
  td:first-child, th:first-child {
    position: sticky;
    left: 0;
    background: var(--bg-card);
    z-index: 5;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
    min-width: 120px;
  }
  
  thead th:first-child {
    z-index: 15;
    background: var(--bg-subtle);
  }
  
  .group-row td:first-child {
    background: var(--bg-subtle);
  }
}

footer {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}

.small-links {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.small-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}
