/* ==========================================================================
   Cubixx — product landing page
   Static, self-contained: no build step, no external requests, no fonts CDN.
   The logo asset is a black wordmark, so it is inverted to sit on the dark UI.
   ========================================================================== */

:root {
  --bg:            #08090c;
  --bg-alt:        #0b0d12;
  --surface:       #101319;
  --surface-2:     #151922;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text:    #f2f4f7;
  --muted:   #98a2b3;
  --dim:     #6b7484;

  --accent:      #5b9dff;
  --accent-soft: rgba(91, 157, 255, 0.14);
  --warm:        #f2b45c;
  --warm-soft:   rgba(242, 180, 92, 0.14);

  --shell: 1120px;
  --radius: 14px;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
          Arial, 'Noto Sans', sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

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

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #04070d;
  padding: 10px 16px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ── Brand mark ───────────────────────────────────────────────────────── */

.brand { display: inline-flex; align-items: center; }
.brand img {
  height: 24px;
  width: auto;
  /* Source asset is black-on-transparent; invert for the dark surface. */
  filter: invert(1);
}
.brand-sm img { height: 20px; opacity: 0.75; }

/* ── Header ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 9, 12, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 62px;
}

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14.5px;
}
.nav a {
  color: var(--muted);
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--text); text-decoration: none; }

.header-cta { margin-left: 4px; }

@media (max-width: 720px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
              transform 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-sm { padding: 8px 15px; font-size: 14px; border-radius: 8px; }

.btn-primary {
  background: var(--accent);
  color: #04070d;
}
.btn-primary:hover { background: #74adff; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ── Shared section furniture ─────────────────────────────────────────── */

.eyebrow {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-warm { color: var(--warm); }

.section { padding: 96px 0; }

.section-head {
  max-width: 660px;
  margin: 0 0 52px;
}
.section-head h2 { margin: 0 0 18px; }

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.15; }

h1 {
  margin: 0 0 22px;
  /* Capped lower than a full-bleed hero would allow — it shares the row
     with the product shot from 900px up. */
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  font-weight: 700;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 3.4vw, 2.4rem);
  font-weight: 700;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.075rem;
  font-weight: 650;
}

.lede, .section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.68;
}
.lede { max-width: 620px; font-size: 1.15rem; }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 108px 0 96px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
}

/* Soft off-centre glow. Purely decorative. */
.hero-glow {
  position: absolute;
  top: -280px;
  left: 50%;
  width: 900px;
  height: 640px;
  transform: translateX(-58%);
  background: radial-gradient(
    closest-side,
    rgba(91, 157, 255, 0.17),
    rgba(91, 157, 255, 0.05) 55%,
    transparent 78%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
}

.hero-media picture { display: block; }
.hero-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.cta-row-center { justify-content: center; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: var(--dim);
}
.hero-points li { display: flex; align-items: center; gap: 9px; }
.hero-points li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ── Card grids ───────────────────────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.grid-eco { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  padding: 26px 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.945rem;
  line-height: 1.66;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card-icon svg { width: 20px; height: 20px; }

.tag {
  margin: 0 0 10px !important;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim) !important;
}

/* ── Product shots ────────────────────────────────────────────────────── */

.shots {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
}
@media (max-width: 860px) {
  .shots { grid-template-columns: 1fr; gap: 24px; }
}

.shot { margin: 0; }
.shot picture { display: block; }

.shot img {
  width: 100%;
  /* height:auto is required — the width/height HTML attributes land as UA
     presentation hints, and aspect-ratio is ignored unless height is auto. */
  height: auto;
  /* Both renders are 1.792; the fixed box costs under 1% of crop but keeps
     the pair aligned if one is ever swapped for a different ratio. */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.shot figcaption {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--dim);
}

/* ── Shabbat band ─────────────────────────────────────────────────────── */

.band {
  padding: 88px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(1000px 420px at 15% 0%, rgba(242, 180, 92, 0.08), transparent 70%),
    var(--bg-alt);
}

.band-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .band-inner { grid-template-columns: 1fr; gap: 36px; }
}

.band-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.68;
  max-width: 560px;
}
.band-copy p:last-child { margin-bottom: 0; }

.band-visual { display: grid; gap: 12px; }

.band-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.band-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}
.band-card em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--dim);
}

.band-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
  background: var(--warm);
  box-shadow: 0 0 0 5px var(--warm-soft);
}
.band-dot-alt {
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

/* ── Contact ──────────────────────────────────────────────────────────── */

.section-contact { padding-bottom: 104px; }

.contact-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 40px 60px;
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(91, 157, 255, 0.10), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.contact-card .section-sub { margin: 0 auto; }

@media (max-width: 560px) {
  .contact-card { padding: 44px 22px 48px; }
}

/* ── Footer ───────────────────────────────────────────────────────────── */

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.footer-note {
  margin: 0;
  font-size: 14px;
  color: var(--dim);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); text-decoration: none; }

@media (max-width: 640px) {
  .footer-links { margin-left: 0; }
}

/* ── Density trim on small screens ────────────────────────────────────── */

@media (max-width: 720px) {
  .hero { padding: 76px 0 68px; }
  .section { padding: 72px 0; }
  .band { padding: 68px 0; }
  .section-head { margin-bottom: 38px; }
  /* Stack the call-to-action buttons full width — but never the header one. */
  .cta-row .btn { width: 100%; }
}
