@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Red+Hat+Display:wght@500;600;700&display=swap');

:root {
  color-scheme: light;
  --navy: #0a2a66;
  --navy-deep: #071f4b;
  --blue: #2e74b5;
  --sky: #deeaf6;
  --sky-soft: #f0f4f8;
  --ink: #1c304c;
  --muted: #4c6178;
  --paper: #f8f8f4;
  --card: #fff;
  --line: #c5d1df;
  --display: "Red Hat Display", system-ui, sans-serif;
  --body: Manrope, system-ui, sans-serif;
  --header-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 20px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; text-wrap: balance; }
h1, h2 { letter-spacing: -.055em; line-height: 1; }
h3 { letter-spacing: -.04em; line-height: 1.06; }

.site-container { width: min(1280px, calc(100% - 2 * clamp(18px, 5vw, 76px))); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 5; min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; padding: .5rem clamp(18px, 5vw, 76px); border-bottom: 1px solid var(--line); background: var(--paper); color: var(--navy); }
.brand { display: inline-flex; align-items: center; gap: .65rem; flex-shrink: 0; text-decoration: none; font: 700 1.25rem var(--display); }
.brand-mark { width: 32px; height: 26px; }
.eyebrow { font-weight: 700; font-size: .875rem; letter-spacing: .075em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.7vw, 35px); }
.site-nav a { padding-block: 4px; border-bottom: 2px solid transparent; font-size: .9375rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { border-color: var(--blue); }
.site-footer { display: flex; justify-content: space-between; gap: 12px; padding-block: 24px; font-size: .9375rem; color: var(--navy); }
.site-footer a { text-underline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 6; padding: .65rem 1rem; background: var(--card); color: var(--navy); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

.site-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .7rem 1.3rem; border-radius: 4px; font-weight: 700; text-decoration: none; }
.site-button-light { background: var(--paper); color: var(--navy); }
.site-button-light:hover { background: var(--sky); }

.demo-hero { border-bottom: 1px solid var(--line); }
.demo-hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 5vw, 76px); padding-block: clamp(38px, 6vw, 90px); }
.demo-hero h1, .about-hero h1 { margin: 14px 0 20px; color: var(--navy-deep); font-size: clamp(2.9rem, 6vw, 6.25rem); }
.demo-hero-copy, .about-hero-inner > p:not(.eyebrow) { max-width: 38rem; color: var(--muted); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.65; }
.demo-hero-photo { width: 100%; height: auto; max-height: 360px; aspect-ratio: 1.55; object-fit: cover; object-position: 54% 64%; border-radius: 9px; }

.catalog-shell,.recommendation-shell,.detail-shell { padding:clamp(36px,5vw,72px) max(clamp(18px,5vw,76px), calc((100% - 1280px)/2)); }
.filters { display:grid; grid-template-columns:1fr minmax(220px,320px) auto; gap:12px; padding:18px; background:var(--sky-soft); border:1px solid var(--line); border-radius:9px; }
.filters input,.filters select,.filters button { width:100%; min-height:52px; border:1px solid transparent; border-radius:4px; padding:0 16px; background:var(--card); color:var(--ink); font:inherit; }
.filters input:focus,.filters select:focus { outline:2px solid var(--blue); outline-offset:1px; }
.filters button { width:auto; padding:0 28px; cursor:pointer; color:white; background:var(--navy); font-weight:600; transition:background .2s,transform .2s; }
.filters button:hover { background:var(--blue); transform:translateY(-1px); }
.section-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin:58px 0 28px; }
.section-heading h2 { margin:5px 0 0; color:var(--navy-deep); font:600 42px "Red Hat Display",sans-serif; letter-spacing:-.025em; }
.section-heading > span { color:var(--muted); font-size:13px; }
.product-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:32px 20px; }
.product-card { display:block; min-width:0; border-radius:6px; text-decoration:none; transition:transform .25s ease; }
.product-card:hover { transform:translateY(-2px); }
.image-wrap { overflow:hidden; aspect-ratio:1/1; background:var(--card); border:1px solid rgba(10,42,102,.06); border-radius:6px; }
.image-wrap img { width:100%; height:100%; object-fit:contain; padding:18px; transition:transform .3s ease; mix-blend-mode:multiply; }
.product-card:hover img { transform:scale(1.04); }
.card-copy { padding:16px 4px 0; }
.category { color:var(--navy); text-transform:uppercase; letter-spacing:.1em; font-size:10px; font-weight:600; }
.card-copy h3 { margin:8px 0 14px; min-height:44px; overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; font-size:15px; line-height:1.45; font-weight:500; }
.view-link { color:var(--muted); font-size:12px; }
.product-card:hover .view-link { color:var(--blue); }
.pagination { display:flex; justify-content:space-between; margin-top:48px; border-top:1px solid var(--line); padding-top:24px; }
.pagination a,.back-link { text-decoration:none; font-weight:600; }
.empty-state { margin:50px 0; padding:70px 24px; text-align:center; background:var(--sky-soft); }
.detail-shell { padding-top:38px; }
.back-link { display:inline-block; margin-bottom:36px; color:var(--muted); font-size:13px; }
.product-hero { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(340px,.9fr); gap:clamp(40px,7vw,110px); align-items:center; }
.detail-image { aspect-ratio:1/1; display:grid; place-items:center; background:var(--card); border:1px solid var(--line); border-radius:9px; }
.detail-image img { width:100%; height:100%; object-fit:contain; padding:8%; mix-blend-mode:multiply; }
.detail-copy h1 { margin:10px 0 24px; color:var(--navy-deep); font-size:clamp(48px,5.4vw,78px); line-height:.96; }
.description { color:var(--muted); line-height:1.7; display:-webkit-box; -webkit-line-clamp:6; -webkit-box-orient:vertical; overflow:hidden; }
dl { margin-top:34px; border-top:1px solid var(--line); }
dl div { display:grid; grid-template-columns:110px 1fr; gap:16px; padding:14px 0; border-bottom:1px solid var(--line); font-size:12px; }
dt { color:var(--muted); } dd { margin:0; }
.recommendation-shell { background:var(--sky-soft); border-top:1px solid var(--line); }
.recommendation-group > .section-heading { margin-top:0; }
.stacked-group { margin-top:78px; padding-top:18px; border-top:1px solid var(--line); }
.stacked-group > .section-heading { margin-top:42px; }
.carousel { position:relative; }
.carousel-controls { display:flex; justify-content:flex-end; gap:8px; margin:-68px 0 26px; }
.carousel-controls button { display:grid; place-items:center; width:44px; height:44px; border:1px solid rgba(10,42,102,.22); border-radius:50%; background:var(--paper); color:var(--navy); font:600 17px "Manrope",sans-serif; cursor:pointer; transition:background .2s,color .2s,opacity .2s; }
.carousel-controls button:hover:not(:disabled) { background:var(--navy); color:var(--paper); }
.carousel-controls button:disabled { cursor:default; opacity:.32; }
.carousel-track { display:flex; gap:20px; overflow-x:auto; scroll-behavior:smooth; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-inline:contain; }
.carousel-track::-webkit-scrollbar { display:none; }
.carousel-track .product-card { flex:0 0 calc((100% - 80px)/5); scroll-snap-align:start; }
.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:1000px) { .product-grid{grid-template-columns:repeat(3,1fr)} .carousel-track .product-card{flex-basis:calc((100% - 40px)/3)} }
@media (max-width:720px) { .filters{grid-template-columns:1fr}.filters button{width:100%}.product-grid{grid-template-columns:repeat(2,1fr);gap:26px 12px}.product-hero{grid-template-columns:1fr}.catalog-shell,.recommendation-shell,.detail-shell{padding-left:18px;padding-right:18px}.section-heading{align-items:start}.section-heading h2{font-size:34px}.detail-copy h1{font-size:clamp(2rem,8vw,3rem)}.carousel-controls{margin:-12px 0 18px}.carousel-track{gap:12px}.carousel-track .product-card{flex-basis:calc((100% - 12px)/2.15)}.stacked-group{margin-top:58px} }
@media (max-width:430px) { .product-grid{grid-template-columns:1fr 1fr}.card-copy h3{font-size:13px}.image-wrap img{padding:10px} }

.about-hero { border-bottom: 1px solid var(--line); }
.about-hero-inner { padding-block: clamp(58px, 9vw, 134px); }
.about-hero h1 { max-width: 16ch; }
.about-founders { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 18px 48px; padding-block: clamp(44px, 7vw, 96px); }
.about-founders h2, .about-contact h2 { font-size: clamp(2.3rem, 4.9vw, 4.2rem); }
.about-founders h2 { color: var(--navy-deep); }
.about-founders p { margin-top: 12px; color: var(--muted); }
.about-founders .founder-names { margin: 0; color: var(--navy); font: 700 1.5rem/1.3 var(--display); }
.about-contact { background: var(--navy-deep); color: white; }
.about-contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 42px; padding-block: clamp(42px, 7vw, 96px); }
.about-contact p { max-width: 39rem; margin-top: 16px; color: var(--sky); }
.about-contact .site-button { flex-shrink: 0; }

@media (max-width: 720px) {
  :root { --header-height: 58px; }
  .brand { font-size: 1.05rem; }
  .brand-mark { width: 25px; height: auto; }
  .site-nav a { font-size: .875rem; }
  .demo-hero-inner, .about-founders { grid-template-columns: 1fr; }
  .demo-hero-photo { aspect-ratio: 1.75; max-height: 240px; }
  .about-contact-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 380px) {
  .site-header { padding-inline: 12px; gap: 8px; }
  .brand { gap: 6px; }
  .site-nav { gap: 10px; }
  .site-nav a { font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
  .carousel-track { scroll-behavior: auto; }
  .product-card, .image-wrap img, .filters button, .carousel-controls button { transition: none; }
}
