:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-tint: #fbfbfd;
  --text: #1d1d1f;
  --text-soft: #6e6e73;
  --line: #d2d2d7;
  --accent: #0066cc;
  --accent-hover: #0a84ff;
  --sleep: #2e3b52;
  --twin: #e0452a;
  --feather: #1f7d53;
  --radius: 22px;
  --radius-lg: 28px;
  --pill: 980px;
  --header-h: 3.25rem;
  --maxw: 1120px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  background: var(--text);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding: 0.5rem clamp(1.25rem, 5vw, 3rem);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
}

.brand-logo {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.brand-text {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.9rem;
}

.site-nav a {
  color: var(--text-soft);
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--pill);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease,
    transform 160ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn-ghost::after {
  content: "›";
  font-size: 1.15em;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 160ms ease;
}

.btn-ghost:hover {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

.btn-ghost:hover::after {
  transform: translate(3px, -1px);
}

/* Hero */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1.25rem, 5vw, 3rem) clamp(3rem, 7vw, 5.5rem);
  text-align: center;
  background: radial-gradient(
    120% 90% at 50% -10%,
    var(--bg-tint) 0%,
    var(--bg) 60%
  );
}

.hero-logo {
  width: clamp(84px, 12vw, 112px);
  height: auto;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.eyebrow {
  margin: 1.75rem 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0.6rem auto 0;
  max-width: 16ch;
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.lede {
  max-width: 44rem;
  margin: 1.5rem auto 0;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.5;
}

.hero-actions {
  margin-top: 2.25rem;
}

/* Products */
.products {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3rem) clamp(3rem, 7vw, 5rem);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0.6rem 0 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(200px, 0.72fr) minmax(0, 1.6fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  margin-bottom: 1.75rem;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  scroll-margin-top: calc(var(--header-h) + 1rem);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.product-card:last-child {
  margin-bottom: 0;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.1);
}

.product-icon {
  display: grid;
  place-items: center;
  margin: 0 auto;
  width: 100%;
}

.product-icon img {
  width: clamp(96px, 60%, 132px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24%;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.product-content {
  min-width: 0;
}

.product-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.product-index {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.product-content h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-tagline {
  margin: 0.35rem 0 0.9rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--text);
}

.product-desc {
  margin: 0;
  max-width: 46rem;
  color: var(--text-soft);
  font-size: 1rem;
}

.facts {
  margin: 1.25rem 0 1.6rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.facts li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text);
  font-size: 0.98rem;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 1.05rem;
  height: 1.05rem;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E")
    center / 0.7rem no-repeat;
}

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1.5rem 2.5rem;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 5vw, 3rem) 3rem;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand .brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 11px;
}

.footer-name {
  margin: 0;
  font-weight: 600;
}

.footer-note {
  margin: 0.1rem 0 0;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.92rem;
}

.footer-links a {
  color: var(--text-soft);
}

.footer-links a:hover {
  color: var(--text);
}

.copyright {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

/* 404 */
.lost {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: calc(100vh - var(--header-h) - 9rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6vh clamp(1.25rem, 5vw, 3rem);
}

.lost .eyebrow {
  color: var(--accent);
  font-weight: 600;
}

.lost h1 {
  margin: 0.4rem 0 0.6rem;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lost .lede {
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 820px) {
  .product-card {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .product-icon {
    max-width: 168px;
  }

  .product-kicker {
    justify-content: center;
  }

  .facts {
    text-align: left;
    display: inline-grid;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-brand {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .site-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .btn-ghost::after,
  .product-card {
    transition: none;
  }

  .product-card:hover {
    transform: none;
  }
}
