:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --primary: #111827;
  --primary-2: #1f2937;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, 92vw); margin: 0 auto; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .6rem 0;
  font-size: .85rem;
}
.topbar-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.nav-wrap { border-top: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { font-weight: 800; letter-spacing: .2px; }
.main-nav { display: flex; align-items: center; gap: 1rem; }
.main-nav a { font-weight: 500; color: var(--muted); }
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--text); font-weight: 700; }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: .5rem; padding: .35rem .6rem; }
.cart-btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: .5rem .75rem;
  border-radius: .55rem;
  cursor: pointer;
}

.hero { position: relative; overflow: hidden; }
.hero-track { position: relative; height: min(76vh, 740px); }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .7s ease, transform .9s ease;
  display: grid;
  align-items: center;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-content { color: #fff; max-width: 680px; }
.hero h1, .hero h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin: .3rem 0 .7rem; line-height: 1.1; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: #4f46e5; }
.hero .eyebrow { color: #bfdbfe; }
.hero p { max-width: 60ch; }

.hero-dots { display: flex; gap: .5rem; justify-content: center; margin-top: 1rem; }
.hero-dots button {
  width: 11px; height: 11px; border-radius: 100%; border: 0; background: #d1d5db; cursor: pointer;
}
.hero-dots button.active { background: #111827; }
.hero .hero-dots { position: absolute; bottom: 1.2rem; left: 0; right: 0; }

.section { padding: 4.5rem 0; }
.section-alt { background: #fff; }
.section-head h2 { margin: .4rem 0 .7rem; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.section-head.centered { text-align: center; max-width: 760px; margin: 0 auto 1.2rem; }
.lead { color: var(--muted); max-width: 75ch; }

.btn {
  display: inline-block;
  border-radius: .7rem;
  background: var(--primary);
  color: #fff;
  padding: .75rem 1.15rem;
  font-weight: 600;
  margin-top: .9rem;
}
.btn:hover { background: var(--primary-2); }

.category-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}

.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .5rem .9rem;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: var(--muted);
  font-weight: 600;
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.explore-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.2rem;
  align-items: start;
}

.filter-sidebar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .9rem;
  padding: 1rem;
  position: sticky;
  top: 92px;
}

.filter-sidebar h3 { margin-top: 0; margin-bottom: .8rem; }

.filter-vertical {
  flex-direction: column;
  align-items: stretch;
}

.filter-vertical .filter-btn {
  width: 100%;
  text-align: left;
}

.explore-main { min-width: 0; }

.explore-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .9rem;
  padding: 1rem;
  margin-bottom: 1rem;
}

.category-points {
  margin: .5rem 0 .8rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.category-points li { margin: .2rem 0; }

.is-hidden { display: none !important; }
.card { background: #fff; border-radius: .9rem; overflow: hidden; border: 1px solid var(--line); }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card h3 { margin: .9rem .9rem .2rem; }
.card a { display: inline-block; margin: 0 .9rem 1rem; font-weight: 600; color: #2563eb; }

.logo-strip { overflow: hidden; border: 1px solid var(--line); border-radius: .9rem; background: #fff; margin-top: 1rem; }
.logo-track {
  display: flex;
  gap: 2.2rem;
  padding: 1rem 0;
  width: max-content;
  animation: scroll 22s linear infinite;
}
.logo-track span { font-weight: 600; color: #374151; padding: 0 1rem; white-space: nowrap; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.logo-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.logo-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .9rem;
  padding: 1rem;
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  max-width: 100%;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; }
.split.reverse { grid-template-columns: 1fr 1.1fr; }
.feature-image { border-radius: .9rem; border: 1px solid var(--line); min-height: 360px; object-fit: cover; }
.video-thumb {
  border: 0;
  padding: 0;
  border-radius: .9rem;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.video-thumb img { width: 100%; min-height: 320px; object-fit: cover; }
.video-thumb span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  background: rgba(17,24,39,.84);
  color: #fff;
  padding: .45rem .75rem;
  border-radius: .5rem;
  font-weight: 600;
}

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.steps article { background: #fff; border: 1px solid var(--line); border-radius: .9rem; padding: 1rem; }
.steps span { font-size: 1.4rem; font-weight: 800; color: #2563eb; }

.timeline { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.timeline article { background: #fff; border: 1px solid var(--line); border-radius: .85rem; padding: 1rem; }
.timeline h3 { margin: 0 0 .3rem; font-size: 1.2rem; }

.testimonial-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .9rem;
  padding: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.testimonial-box blockquote { margin: 0; font-size: 1.15rem; font-weight: 600; }

.subscribe { background: #fff; border: 1px solid var(--line); border-radius: .9rem; padding: 1.5rem; text-align: center; }
#subscribeForm { display: flex; justify-content: center; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; }
#subscribeForm input {
  width: min(390px, 80vw);
  border: 1px solid var(--line);
  border-radius: .6rem;
  padding: .72rem .8rem;
}
#subscribeMessage { min-height: 1.2rem; color: #065f46; }

.cta-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .9rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.product-grid .content-card h3 {
  margin: 0 0 .6rem;
  font-size: 1.05rem;
}

.product-card {
  padding: 0;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform .22s ease, box-shadow .22s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.product-card img {
  width: 100%;
  aspect-ratio: 5/4;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.product-card-body {
  padding: 1rem 1rem 1.1rem;
}

.product-card-body h3 {
  font-size: 1rem;
  line-height: 1.35;
  min-height: 2.7em;
}

.product-card .btn {
  width: 100%;
  text-align: center;
}

.pagination-controls {
  margin-top: .9rem;
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}

.page-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: .5rem;
  padding: .42rem .7rem;
  cursor: pointer;
  font: inherit;
}

.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.page-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.site-footer { background: #0f172a; color: #e5e7eb; margin-top: 3.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr;
  gap: 1.2rem;
  padding: 2.2rem 0;
}
.footer-grid h4, .footer-grid h3 { margin: 0 0 .55rem; }
.footer-grid a { display: block; color: #d1d5db; margin: .25rem 0; }
.footer-grid a:hover { color: #fff; }
.copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  padding: .9rem 4vw;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: .9rem;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: min(360px, 92vw);
  height: 100dvh;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 30px rgba(0,0,0,.08);
  z-index: 100;
  transition: right .3s ease;
  padding: 1rem;
}
.cart-drawer.open { right: 0; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer-head button { border: 0; background: transparent; font-size: 1.2rem; cursor: pointer; }

.video-modal {
  width: min(900px, 92vw);
  border: 0;
  padding: 0;
  border-radius: .8rem;
  overflow: hidden;
}
.video-modal::backdrop { background: rgba(2,6,23,.72); }
.video-close-wrap { display: flex; justify-content: flex-end; background: #0f172a; }
.video-close-wrap button { background: transparent; border: 0; color: #fff; padding: .7rem 1rem; cursor: pointer; }
.video-modal iframe { width: 100%; height: min(72vh, 520px); border: 0; display: block; }

.page-hero {
  padding: 5rem 0 3rem;
  color: #fff;
  background-size: cover;
  background-position: center;
}

.page-hero h1 { margin: .3rem 0 .75rem; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; }
.page-hero .eyebrow { color: #bfdbfe; }
.page-hero .lead,
.page-hero p { color: #e5e7eb; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .9rem;
  padding: 1.1rem;
}

.content-card h3 { margin-top: 0; }

.founder-story-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: center;
}

.founder-profile {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: .8rem;
  border: 1px solid var(--line);
}

.inline-form {
  display: grid;
  gap: .7rem;
}

.inline-form input,
.inline-form select,
.inline-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: .6rem;
  padding: .72rem .8rem;
  font: inherit;
}

.inline-form textarea { min-height: 140px; resize: vertical; }

.contact-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1rem;
}

.info-list {
  display: grid;
  gap: .75rem;
}

.info-list p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .category-grid, .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split.reverse, .footer-grid, .content-grid, .contact-wrap, .explore-layout { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-sidebar { position: static; }
  .filter-vertical { flex-direction: row; }
  .filter-vertical .filter-btn { width: auto; }
}

@media (max-width: 760px) {
  .topbar { display: none; }
  .menu-btn { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    right: 4vw;
    left: 4vw;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .8rem;
    padding: .8rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .main-nav.show { display: flex; }
  .hero-track { height: 64vh; }
  .category-grid, .timeline, .logo-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .founder-story-card { grid-template-columns: 1fr; }
  .founder-profile { width: 100%; max-width: 220px; height: auto; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
  .copyright { flex-direction: column; align-items: flex-start; }
}
