@font-face {
  font-family: "Space Grotesk";
  src: url("/SpaceGrotesk.woff2/SpaceGrotesk[wght].woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-base: #0d1117;
  --text-primary: #f5f7fa;
  --text-secondary: rgba(235, 240, 247, 0.78);
  --text-muted: rgba(220, 228, 238, 0.58);
  --glass-bg: rgba(13, 17, 23, 0.56);
  --glass-bg-hover: rgba(20, 26, 35, 0.68);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-strong: rgba(255, 255, 255, 0.24);
  --accent: #7dd3fc;
  --accent-bg: rgba(125, 211, 252, 0.14);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --max-width: 960px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Full-bleed photography backdrop */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--bg-base);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
}

.bg-layer.is-loaded {
  opacity: 1;
}

.bg-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(10, 14, 20, 0.22) 0%, rgba(10, 14, 20, 0.68) 100%),
    linear-gradient(180deg, rgba(10, 14, 20, 0.52) 0%, rgba(10, 14, 20, 0.28) 45%, rgba(10, 14, 20, 0.62) 100%);
  opacity: 1;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* Page layout shell */
.site-shell {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.35s ease;
}

/* Full-photo view when clicking the background */
body.photo-view .bg-scrim,
body.photo-view .site-shell {
  opacity: 0;
  pointer-events: none;
}

/* Header */
.site-header {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(125, 211, 252, 0.7);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.site-nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.site-nav a[aria-current="page"] {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.11);
  border-color: var(--glass-border);
}

/* Main */
.site-main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Frosted glass card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.glass-card--narrow {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.6vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

h2 {
  margin: 0 0 0.6rem;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.lead {
  margin: 0;
  font-size: 1.06rem;
  color: var(--text-secondary);
  max-width: 56ch;
}

p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

p:last-child {
  margin-bottom: 0;
}

.divider {
  border: 0;
  border-top: 1px solid var(--glass-border);
  margin: 2rem 0;
}

/* Featured product row on home */
.product-spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.product-spotlight:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border-strong);
}

.product-spotlight h2 {
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
}

.product-spotlight p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.feature-item {
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-item h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-item p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Buttons & links */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--text-primary);
  color: #0d1117;
  border: 1px solid var(--text-primary);
}

.btn-primary:hover {
  background: #e2e8f0;
  border-color: #e2e8f0;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-primary);
  border: 1px solid var(--glass-border-strong);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  margin-top: 0.75rem;
  padding: 0;
  list-style: none;
}

.link-list a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.93rem;
}

.link-list a:hover {
  text-decoration: underline;
}

.disclaimer {
  margin-top: 1.75rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

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

/* Discreet background photo switcher */
.bg-cycle-btn {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(13, 17, 23, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.bg-cycle-btn:hover {
  color: var(--text-primary);
  background: rgba(20, 26, 35, 0.78);
  border-color: var(--glass-border-strong);
}

.bg-cycle-btn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 720px) {
  .site-header {
    padding: 1.15rem 1rem 0.75rem;
  }

  .site-main {
    padding: 1.25rem 1rem 2.25rem;
  }

  .glass-card {
    padding: 1.65rem 1.35rem;
  }

  .product-spotlight {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding: 0.75rem 1rem 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-layer,
  .bg-scrim,
  .site-shell,
  .btn,
  .site-nav a,
  .bg-cycle-btn {
    transition: none;
  }
}
