/* ============================================================
   BAKARKHANIII — Design System
   Modelled on antigravity.google's exact palette & type scale
   ============================================================ */

/* ---------- PALETTE ---------- */
:root {
  --palette-grey-0:    #FFFFFF;
  --palette-grey-10:   #F8F9FC;
  --palette-grey-15:   #F0F1F5;
  --palette-grey-20:   #EFF2F7;
  --palette-grey-50:   #E6EAF0;
  --palette-grey-100:  #E1E6EC;
  --palette-grey-200:  #CDD4DC;
  --palette-grey-300:  #B2BBC5;
  --palette-grey-400:  #B7BFD9;
  --palette-grey-800:  #45474D;
  --palette-grey-900:  #2F3034;
  --palette-grey-1000: #212226;
  --palette-grey-1100: #18191D;
  --palette-grey-1200: #121317;
  --palette-blue-600:  #3279F9;
  --palette-blue-400:  #5C94FA;

  /* Semantic */
  --surface:           var(--palette-grey-0);
  --surface-container: var(--palette-grey-10);
  --surface-high:      var(--palette-grey-20);
  --on-surface:        var(--palette-grey-1200);
  --on-surface-var:    var(--palette-grey-800);
  --outline:           rgba(33,34,38,.08);
  --outline-strong:    rgba(33,34,38,.14);
  --primary:           var(--palette-grey-1200);
  --primary-text:      var(--palette-grey-0);
  --accent:            var(--palette-blue-600);

  /* Type scale (from antigravity.google/styles-NNWH23TG.css) */
  --6xl: 72px;   --6xl-lh: 72px;     --6xl-ls: -1.44px;
  --5xl: 54px;   --5xl-lh: 56.16px;  --5xl-ls: -.95px;
  --4xl: 42px;   --4xl-lh: 43.68px;  --4xl-ls: -.73px;
  --3xl: 32px;   --3xl-lh: 33.92px;  --3xl-ls: -.15px;
  --2xl: 28px;   --2xl-lh: 30.24px;  --2xl-ls: -.1px;
  --xl:  24px;   --xl-lh:  25.92px;  --xl-ls:  -.07px;
  --lg:  22px;   --lg-lh:  24.64px;  --lg-ls:  -.08px;
  --md:  20px;   --md-lh:  26px;     --md-ls:  -.05px;
  --base: 17.5px; --base-lh: 25.38px; --base-ls: .18px;
  --sm:  14.5px; --sm-lh: 21.02px;  --sm-ls: .16px;
  --xs:  12.5px; --xs-lh: 15.5px;   --xs-ls: .11px;

  /* Layout */
  --page-margin:  72px;
  --nav-height:   64px;
  --section-gap:  120px;

  /* Shape */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 9999px;

  /* Motion */
  --ease-out-expo:  cubic-bezier(.19,1,.22,1);
  --ease-out-quart: cubic-bezier(.165,.84,.44,1);
  --ease-standard:  cubic-bezier(.4,0,.2,1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: none; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
img, picture { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- BASE ---------- */
body {
  font-family: 'Inter', 'Google Sans', system-ui, sans-serif;
  font-weight: 400;
  background: var(--surface);
  color: var(--on-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.grid-container {
  width: 100%;
  max-width: calc(1440px + var(--page-margin) * 2);
  margin: 0 auto;
  padding: 0 var(--page-margin);
}

/* ---------- NAVIGATION ---------- */
.nav-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 200;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline);
  transition: box-shadow .2s;
}

.nav-bar.nav-scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.nav-inner {
  max-width: calc(1440px + var(--page-margin) * 2);
  margin: 0 auto;
  padding: 0 var(--page-margin);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.3px;
  color: var(--on-surface);
  flex-shrink: 0;
  margin-right: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 2px;
}

.nav-link {
  font-size: var(--sm);
  font-weight: 500;
  letter-spacing: var(--sm-ls);
  color: var(--on-surface-var);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  transition: background .15s, color .15s;
}

.nav-link:hover {
  background: var(--surface-container);
  color: var(--on-surface);
}

/* Nav dropdown button */
.nav-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--sm);
  font-weight: 500;
  letter-spacing: var(--sm-ls);
  color: var(--on-surface-var);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: none;
  background: transparent;
  transition: background .15s, color .15s;
}

.nav-btn .chevron {
  transition: transform .2s var(--ease-out-quart);
}

.nav-item.is-open .nav-btn {
  background: var(--surface-container);
  color: var(--on-surface);
}

.nav-item.is-open .chevron {
  transform: rotate(180deg);
}

.nav-btn:hover {
  background: var(--surface-container);
  color: var(--on-surface);
}

/* Dropdown panel */
.nav-item {
  position: relative;
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -20px;
  background: var(--surface);
  border: 1px solid var(--outline-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  padding: 24px 28px 28px;
  display: flex;
  gap: 48px;
  min-width: 460px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(.99);
  transform-origin: top left;
  transition: opacity .18s var(--ease-out-quart), transform .18s var(--ease-out-quart);
  /* Bridge gap: invisible padding so mouse can travel from button to panel */
  margin-top: -4px;
  padding-top: 28px;
}

.nav-item.is-open .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Left: promo statement */
.dropdown-promo {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 180px;
  max-width: 210px;
}

.dropdown-promo-title {
  font-size: var(--lg);
  line-height: 1.35;
  letter-spacing: var(--lg-ls);
  font-weight: 500;
  color: var(--on-surface);
  margin-bottom: 20px;
}

/* Outlined pill button: "See overview" */
.dropdown-see-all {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: var(--sm);
  font-weight: 500;
  letter-spacing: var(--sm-ls);
  color: var(--on-surface);
  border: 1px solid var(--outline-strong);
  padding: 7px 16px;
  border-radius: var(--r-pill);
  transition: background .15s, border-color .15s;
}

.dropdown-see-all:hover {
  background: var(--surface-container);
  border-color: var(--palette-grey-300);
}

/* Right: section label + items */
.dropdown-section {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.dropdown-section-label {
  font-size: var(--xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-surface-var);
  margin-bottom: 8px;
  padding: 0 10px;
}

.dropdown-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  transition: background .12s;
  min-width: 180px;
  color: var(--on-surface);
}

.dropdown-item:hover {
  background: var(--surface-container);
}

.di-name {
  font-size: var(--sm);
  font-weight: 400;
  color: var(--on-surface);
  line-height: 1;
}

.di-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.di-icon svg { width: 15px; height: 15px; }

.di-green   { background: #e6f4ea; color: #1a7338; }
.di-purple  { background: #f3e8ff; color: #7c3aed; }
.di-rose    { background: #ffe4e6; color: #be123c; }
.di-blue    { background: #dbeafe; color: #1d4ed8; }
.di-indigo  { background: #e0e7ff; color: #3730a3; }
.di-cyan    { background: #cffafe; color: #0e7490; }
.di-amber   { background: #fef3c7; color: #b45309; }
.di-orange  { background: #ffedd5; color: #c2410c; }
.di-teal    { background: #ccfbf1; color: #0f766e; }

/* GitHub nav icon */
.nav-github {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  color: var(--on-surface-var);
  margin-left: auto;
  transition: background .15s, color .15s;
}
.nav-github:hover {
  background: var(--surface-container);
  color: var(--on-surface);
}

/* Card actions row */
.card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.card-link-gh {
  color: var(--on-surface-var);
  font-size: var(--xs) !important;
  border: 1px solid var(--outline-strong);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  transition: background .15s, border-color .15s, color .15s;
}
.card-link-gh:hover {
  background: var(--surface-container);
  color: var(--on-surface);
  border-color: var(--palette-grey-300);
}

/* Download button */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: var(--primary-text);
  font-size: var(--sm);
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  transition: background .18s, transform .18s, box-shadow .18s;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.btn-download:hover {
  background: var(--palette-grey-900);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

/* Portal card visual */
.vc-portal {
  background: radial-gradient(circle at 50% 50%, #001524 0%, #0a0a1a 100%);
}
.portal-ring {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(100,200,255,.6);
  box-shadow: 0 0 30px rgba(100,200,255,.3), inset 0 0 30px rgba(100,200,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s var(--ease-out-expo), box-shadow .4s;
}
.product-card:hover .portal-ring {
  transform: scale(1.1);
  box-shadow: 0 0 50px rgba(100,200,255,.5), inset 0 0 30px rgba(100,200,255,.15);
}
.portal-inner {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(100,200,255,.25) 0%, transparent 70%);
  border: 1px solid rgba(100,200,255,.3);
}

/* Voxel card visual */
.vc-voxel {
  background: linear-gradient(135deg, #1a2e1a 0%, #0d1f0d 100%);
}
.voxel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 24px;
}
.voxel-grid span {
  display: block;
  width: 28px; height: 28px;
  border-radius: 4px;
  background: rgba(74,222,128,.15);
  border: 1px solid rgba(74,222,128,.25);
  transition: background .3s, border-color .3s;
}
.voxel-active { background: rgba(74,222,128,.5) !important; border-color: rgba(74,222,128,.7) !important; }
.product-card:hover .voxel-grid span { background: rgba(74,222,128,.25); }
.product-card:hover .voxel-active { background: rgba(74,222,128,.8) !important; box-shadow: 0 0 12px rgba(74,222,128,.4); }

/* Droste card visual */
.vc-droste {
  background: radial-gradient(circle at 50% 50%, #0a0118 0%, #120130 100%);
}
.droste-spiral {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 100px; height: 100px;
}
.ds-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(139,92,246,.5);
  transition: transform .6s var(--ease-out-expo);
}
.ds-ring-1 { width: 96px; height: 96px; }
.ds-ring-2 { width: 64px; height: 64px; border-color: rgba(139,92,246,.7); }
.ds-ring-3 { width: 32px; height: 32px; background: rgba(139,92,246,.2); border-color: rgba(139,92,246,.9); }
.product-card:hover .ds-ring-1 { transform: rotate(30deg) scale(1.05); }
.product-card:hover .ds-ring-2 { transform: rotate(-20deg) scale(1.1); }
.product-card:hover .ds-ring-3 { transform: scale(1.2); }

/* Word cloud card visual */
.vc-wordcloud {
  background: var(--surface-container);
}
.wc-words {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--on-surface);
}
.product-card:hover .wc-words span { color: var(--accent); }

/* Attic card visual */
.vc-attic-card { background: linear-gradient(135deg, #fff1f2 0%, #fce7f3 100%); }
.attic-card-visual { display: flex; align-items: center; justify-content: center; height: 100%; }
.vc-attic-card .attic-hearts { display: flex; gap: 8px; }
.vc-attic-card .attic-hearts span { font-size: 32px; opacity: .3; transition: opacity .3s, transform .3s; }
.product-card:hover .vc-attic-card .attic-hearts span { opacity: .8; }
.product-card:hover .vc-attic-card .attic-hearts span:nth-child(2) { transform: scale(1.3) translateY(-4px); }

/* Yard card visual */
.vc-yard-card { background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%); }
.yard-card-visual { display: flex; align-items: center; justify-content: center; height: 100%; }

/* Extension cards */
.ext-card .product-card-visual { background: var(--surface-container); }
.vc-ext-unfollow { background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%) !important; }
.vc-ext-aegis    { background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%) !important; }
.ext-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 100%;
}
.ext-badge {
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
}
.ext-platform {
  font-size: var(--xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-surface-var);
}

/* GitHub CTA section */
.github-section { background: var(--palette-grey-1100); }
.github-cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.github-cta-content {
  display: flex;
  align-items: center;
  gap: 24px;
}
.github-icon-wrap {
  width: 72px; height: 72px;
  border-radius: var(--r-lg);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--palette-grey-0);
  flex-shrink: 0;
  transition: background .2s;
}
.github-cta-block:hover .github-icon-wrap {
  background: rgba(255,255,255,.12);
}
.github-cta-heading {
  font-size: var(--2xl);
  font-weight: 500;
  color: var(--palette-grey-0);
  letter-spacing: var(--2xl-ls);
  margin-bottom: 6px;
}
.github-cta-body {
  font-size: var(--sm);
  color: var(--palette-grey-300);
  line-height: var(--sm-lh);
}
.github-section .btn-primary {
  background: var(--palette-grey-0);
  color: var(--palette-grey-1200);
  flex-shrink: 0;
}
.github-section .btn-primary:hover {
  background: var(--palette-grey-50);
}

/* Backdrop */
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}

.nav-backdrop.is-visible {
  pointer-events: auto;
  opacity: 1;
}

.nav-cta {
  font-size: var(--sm);
  font-weight: 500;
  background: var(--primary);
  color: var(--primary-text);
  padding: 8px 20px;
  border-radius: var(--r-pill);
  transition: background .15s, transform .15s, box-shadow .15s;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-cta:hover {
  background: var(--palette-grey-900);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 100px);
  padding-bottom: 100px;
  overflow: hidden;
}

.hero .grid-container { position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: var(--sm);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-surface-var);
  margin-bottom: 24px;
}

.hero-title {
  font-size: var(--6xl);
  line-height: var(--6xl-lh);
  letter-spacing: var(--6xl-ls);
  font-weight: 500;
  margin-bottom: 28px;
  max-width: 800px;
}

.hero-title-dim { color: var(--palette-grey-400); }

.hero-body {
  font-size: var(--md);
  line-height: var(--md-lh);
  letter-spacing: var(--md-ls);
  color: var(--on-surface-var);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- HERO VISUAL ---------- */
@media (min-width: 1025px) {
  .hero .grid-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
  }
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  margin-top: 48px;
}

@media (min-width: 1025px) {
  .hero-visual {
    margin-top: 0;
  }
}

.hero-logo-wrapper {
  position: relative;
  width: 320px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(50,121,249,0.3) 0%, rgba(217,70,239,0.15) 50%, transparent 70%);
  filter: blur(20px);
  z-index: 1;
  animation: rotateGlow 12s linear infinite;
}

.hero-logo-card {
  position: relative;
  width: 280px;
  max-width: 90%;
  height: 280px;
  max-height: 90%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 24px 60px rgba(33, 34, 38, 0.08), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s var(--ease-out-expo), border-color 0.6s;
  animation: floatLogo 6s ease-in-out infinite;
}

.hero-logo-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.12));
  transition: transform 0.6s var(--ease-out-expo);
}

/* Hover effects */
.hero-logo-card:hover {
  transform: translateY(-8px) scale(1.05) rotate(3deg);
  border-color: rgba(50, 121, 249, 0.4);
  box-shadow: 0 32px 80px rgba(50, 121, 249, 0.15), inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.hero-logo-card:hover .hero-logo-svg {
  transform: rotate(-3deg);
}

.hero-logo-card:hover ~ .hero-logo-glow {
  background: radial-gradient(circle, rgba(50,121,249,0.45) 0%, rgba(217,70,239,0.25) 50%, transparent 70%);
  filter: blur(15px);
}

/* Animations */
@keyframes floatLogo {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: var(--primary-text);
  font-size: var(--base);
  font-weight: 500;
  letter-spacing: var(--base-ls);
  padding: 12px 28px;
  border-radius: var(--r-pill);
  transition: background .18s var(--ease-out-quart), transform .18s var(--ease-out-quart), box-shadow .18s;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  border: none;
}

.btn-primary:hover {
  background: var(--palette-grey-900);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,.18);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--on-surface-var);
  font-size: var(--base);
  font-weight: 500;
  letter-spacing: var(--base-ls);
  padding: 12px 24px;
  border-radius: var(--r-pill);
  border: 1px solid var(--outline-strong);
  transition: background .18s, border-color .18s, color .18s, transform .18s var(--ease-out-quart);
}

.btn-ghost:hover {
  background: var(--surface-container);
  color: var(--on-surface);
  transform: translateY(-2px);
}

.btn-inverse {
  background: var(--palette-grey-0);
  color: var(--palette-grey-1200);
}
.btn-inverse:hover { background: var(--palette-grey-50); }

.btn-ghost-inverse {
  color: var(--palette-grey-300);
  border-color: rgba(255,255,255,.18);
}
.btn-ghost-inverse:hover {
  background: rgba(255,255,255,.06);
  color: var(--palette-grey-0);
}

.btn-yard {
  background: #1e40af;
}
.btn-yard:hover { background: #1d3a9e; }

.arrow {
  display: inline-block;
  transition: transform .2s var(--ease-out-expo);
}
a:hover .arrow { transform: translateX(4px); }

/* ---------- HERO BLOBS ---------- */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero-bg-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .28; }
.blob-1 { top: -120px; right: -80px; width: 600px; height: 600px; background: radial-gradient(circle, #c4d8fd 0%, transparent 70%); }
.blob-2 { top: 100px; left: 40%; width: 400px; height: 400px; background: radial-gradient(circle, #e8d5fd 0%, transparent 70%); opacity: .22; }
.blob-3 { bottom: -60px; left: -60px; width: 500px; height: 500px; background: radial-gradient(circle, #d4eafd 0%, transparent 70%); opacity: .15; }

/* ---------- SECTIONS ---------- */
.section { padding: var(--section-gap) 0; }
.section-alt { background: var(--surface-container); }

.section-label {
  font-size: var(--xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-surface-var);
  margin-bottom: 14px;
}

.section-heading {
  font-size: var(--4xl);
  line-height: var(--4xl-lh);
  letter-spacing: var(--4xl-ls);
  font-weight: 500;
  max-width: 600px;
  margin-bottom: 56px;
}

/* ---------- CARD GRID ---------- */
.card-grid { display: grid; gap: 20px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

.product-card {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform .35s var(--ease-out-expo), box-shadow .35s var(--ease-out-expo), border-color .2s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,.1);
  border-color: var(--outline-strong);
}

.product-card-visual {
  height: 200px;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--outline);
}

.product-card-lg .product-card-visual { height: 240px; }

/* Card visual types */
.vc-game { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%); }
.vc-dots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 24px; }
.vc-dots span { display: block; width: 16px; height: 16px; border-radius: 50%; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); transition: background .3s, border-color .3s; }
.product-card:hover .vc-dots span:nth-child(3),
.product-card:hover .vc-dots span:nth-child(7) { background: #3279F9; border-color: #3279F9; box-shadow: 0 0 12px rgba(50,121,249,.5); }

.vc-dashboard { background: var(--surface-container); }
.vc-bars { display: flex; align-items: flex-end; gap: 8px; height: 100px; padding: 0 24px; }
.vc-bars span { flex: 1; border-radius: 4px 4px 0 0; background: var(--palette-grey-200); transition: background .3s; }
.product-card:hover .vc-bars span { background: var(--accent); opacity: .7; }

.vc-editor { background: var(--palette-grey-1100); padding: 24px; }
.vc-code-lines { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.vc-code-lines span { height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); }
.vc-code-lines span:nth-child(1) { background: rgba(50,121,249,.6); }
.vc-code-lines span:nth-child(3) { background: rgba(160,210,100,.4); }

/* Trackxpense visual */
.vc-trackxpense { background: #f0fdf4; }
.tx-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; width: 100%; padding: 24px; }
.tx-number { font-size: 28px; font-weight: 600; color: #166534; letter-spacing: -0.5px; }
.tx-label { font-size: 12px; color: #15803d; font-weight: 500; }
.tx-bars { display: flex; align-items: flex-end; gap: 6px; height: 60px; margin-top: 8px; }
.tx-bars span { width: 18px; border-radius: 3px 3px 0 0; background: #4ade80; transition: background .3s; }
.product-card:hover .tx-bars span { background: #16a34a; }

/* Gupto visual */
.vc-gupto { background: #faf5ff; }
.gupto-visual { display: flex; align-items: center; justify-content: center; height: 100%; width: 100%; }
.gupto-lock svg { width: 80px; height: 93px; transition: transform .3s; }
.product-card:hover .gupto-lock svg { transform: scale(1.1); }

.product-card-body { padding: 28px 28px 32px; }
.product-tag { font-size: var(--xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-surface-var); margin-bottom: 8px; }
.product-card-body h3 { font-size: var(--xl); line-height: var(--xl-lh); letter-spacing: var(--xl-ls); font-weight: 500; margin-bottom: 10px; }
.product-card-body p { font-size: var(--sm); line-height: var(--sm-lh); letter-spacing: var(--sm-ls); color: var(--on-surface-var); margin-bottom: 20px; }

.card-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--sm); font-weight: 500; color: var(--on-surface);
  transition: color .15s;
}
.card-link:hover { color: var(--accent); }

/* ---------- SITES SECTION ---------- */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.site-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 48px;
  border: 1px solid var(--outline);
  transition: transform .35s var(--ease-out-expo), box-shadow .35s;
  position: relative;
}

.site-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,.1);
}

.site-card-attic { background: linear-gradient(135deg, #fff1f2 0%, #fce7f3 100%); border-color: #fecdd3; }
.site-card-yard  { background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%); border-color: #bfdbfe; }

.site-badge {
  font-size: var(--xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-surface-var); margin-bottom: 12px;
}

.site-card h3 {
  font-size: var(--3xl); line-height: var(--3xl-lh); letter-spacing: var(--3xl-ls);
  font-weight: 500; margin-bottom: 12px;
}

.site-card p {
  font-size: var(--sm); line-height: var(--sm-lh); color: var(--on-surface-var);
  margin-bottom: 24px; max-width: 340px;
}

.attic-visual { display: flex; align-items: center; justify-content: center; }
.attic-hearts { display: flex; gap: 8px; }
.attic-hearts span { font-size: 28px; opacity: .3; transition: opacity .3s, transform .3s; }
.site-card-attic:hover .attic-hearts span { opacity: .8; }
.site-card-attic:hover .attic-hearts span:nth-child(1) { transform: scale(1.2); }
.site-card-attic:hover .attic-hearts span:nth-child(2) { transform: scale(1.4) translateY(-4px); }
.site-card-attic:hover .attic-hearts span:nth-child(3) { transform: scale(1.2); }

.yard-visual { display: flex; align-items: center; justify-content: center; }
.yard-dots { display: flex; gap: 12px; }
.yard-dots span { display: block; width: 32px; height: 32px; border-radius: 50%; background: rgba(59,130,246,.2); border: 2px solid rgba(59,130,246,.4); transition: all .3s; }
.site-card-yard:hover .yard-dots span { background: rgba(59,130,246,.5); border-color: rgba(59,130,246,.8); }
.site-card-yard:hover .yard-dots span:nth-child(2) { transform: scale(1.2); }

/* ---------- CTA SECTION ---------- */
.section-cta { background: var(--palette-grey-1200); color: var(--palette-grey-0); }
.cta-block { max-width: 680px; }
.cta-heading {
  font-size: var(--5xl); line-height: var(--5xl-lh); letter-spacing: var(--5xl-ls);
  font-weight: 500; color: var(--palette-grey-0); margin-bottom: 20px;
}
.cta-body { font-size: var(--md); line-height: var(--md-lh); color: var(--palette-grey-300); margin-bottom: 40px; }
.cta-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- FOOTER ---------- */
.footer-new {
  border-top: 1px solid var(--outline);
  background: var(--surface);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 72px 0 60px;
  border-bottom: 1px solid var(--outline);
  gap: 80px;
}

.footer-tagline {
  font-size: var(--3xl);
  line-height: 1.2;
  letter-spacing: var(--3xl-ls);
  font-weight: 500;
  color: var(--on-surface);
  flex-shrink: 0;
  max-width: 260px;
}

.footer-columns {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
}

.footer-col { min-width: 120px; }

.footer-col-title {
  font-size: var(--xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-surface-var);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: var(--sm);
  line-height: 1;
  color: var(--on-surface-var);
  margin-bottom: 12px;
  transition: color .15s;
}

.footer-col a:hover { color: var(--on-surface); }

/* The big wordmark */
.footer-wordmark {
  font-size: clamp(72px, 11vw, 180px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: .9;
  color: var(--on-surface);
  padding: 40px 0;
  border-bottom: 1px solid var(--outline);
  overflow: hidden;
  white-space: nowrap;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.footer-bottom-brand {
  font-size: var(--sm);
  font-weight: 600;
  letter-spacing: -.02em;
}

.footer-bottom-links {
  display: flex;
  gap: 28px;
}

.footer-bottom-links a {
  font-size: var(--xs);
  color: var(--on-surface-var);
  transition: color .15s;
}

.footer-bottom-links a:hover { color: var(--on-surface); }

/* ---------- PRODUCT / SUB-PAGE HERO ---------- */
.page-hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 80px;
}

.page-hero .page-breadcrumb {
  font-size: var(--sm);
  color: var(--on-surface-var);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-hero .page-breadcrumb a { transition: color .15s; }
.page-hero .page-breadcrumb a:hover { color: var(--on-surface); }

.page-hero h1 {
  font-size: var(--5xl);
  line-height: var(--5xl-lh);
  letter-spacing: var(--5xl-ls);
  font-weight: 500;
  margin-bottom: 20px;
  max-width: 700px;
}

.page-hero .page-tagline {
  font-size: var(--md);
  line-height: var(--md-lh);
  color: var(--on-surface-var);
  max-width: 540px;
  margin-bottom: 36px;
}

/* Feature grid for product pages */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--outline);
  border: 1px solid var(--outline);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.feature-item {
  background: var(--surface);
  padding: 36px 32px;
  transition: background .15s;
}

.feature-item:hover { background: var(--surface-container); }

.feature-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-item h3 {
  font-size: var(--lg);
  line-height: var(--lg-lh);
  letter-spacing: var(--lg-ls);
  font-weight: 500;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: var(--sm);
  line-height: var(--sm-lh);
  color: var(--on-surface-var);
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  border: 1px solid var(--outline);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .3s var(--ease-out-expo), box-shadow .3s;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.09);
}

.blog-card-img {
  height: 180px;
  background: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border-bottom: 1px solid var(--outline);
}

.blog-card-img svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blog-card-body { padding: 24px; }
.blog-card-tag {
  font-size: var(--xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}

.blog-card-body h3 {
  font-size: var(--xl); line-height: var(--xl-lh); font-weight: 500;
  margin-bottom: 8px; letter-spacing: var(--xl-ls);
}

.blog-card-body p {
  font-size: var(--sm); line-height: var(--sm-lh); color: var(--on-surface-var);
  margin-bottom: 16px;
}

.blog-card-meta { font-size: var(--xs); color: var(--palette-grey-400); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  :root { --page-margin: 40px; --section-gap: 80px; }
  .hero-title { font-size: var(--4xl); line-height: var(--4xl-lh); }
  .section-heading { font-size: var(--3xl); line-height: var(--3xl-lh); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .sites-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction: column; gap: 48px; }
}

@media (max-width: 767px) {
  :root { --page-margin: 20px; --section-gap: 64px; --nav-height: 56px; }
  .nav-links { display: none; }
  .hero-title { font-size: var(--3xl); }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .site-card { grid-template-columns: 1fr; }
  .site-card-visual { display: none; }
  .cta-heading { font-size: var(--4xl); }
  .footer-columns { gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
