/* Continent Solution System — global styles */
:root {
  --bg: #fafaf7;
  --bg-2: #f1efe8;
  --bg-dark: #0e1116;
  --ink: #0e1116;
  --ink-2: #4a4d54;
  --ink-3: #8a8c92;
  --line: #e3e2dc;
  --line-2: #d6d4cb;
  --accent: oklch(0.74 0.16 65);
  --accent-ink: oklch(0.42 0.13 55);
  --deep: oklch(0.32 0.04 250);
  --ok: oklch(0.62 0.13 150);
  --warn: oklch(0.68 0.17 35);

  --maxw: 1440px;
  --pad: clamp(20px, 4vw, 56px);

  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }
input, select { font: inherit; color: inherit; }

.mono { font-family: var(--font-mono); font-feature-settings: "ss01", "cv01"; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Top utility bar ---------- */
.utility {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-size: 12px;
  color: var(--ink-2);
}
.utility .row {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px var(--pad);
  display: flex;
  align-items: center;
  gap: 28px;
}
.utility .spacer { flex: 1; }
.utility a:hover { color: var(--ink); }
.utility .pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--bg-2);
  padding: 4px 8px;
  border-radius: 2px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .row {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand .mark {
  width: 30px;
  height: 30px;
  position: relative;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}
.brand .mark::after {
  content: "";
  position: absolute;
  inset: -3px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  opacity: 0.5;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text .sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav a {
  position: relative;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.nav a.active { color: var(--ink); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
}

.header-actions { display: flex; gap: 6px; align-items: center; }
.iconbtn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  color: var(--ink-2);
  transition: background 0.15s;
}
.iconbtn:hover { background: var(--bg-2); color: var(--ink); }
.iconbtn svg { width: 18px; height: 18px; stroke-width: 1.5; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  border-radius: 3px;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { background: #1f2229; transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn.ghost:hover { background: var(--bg-2); }
.btn.accent { background: var(--accent); color: var(--ink); }
.btn.accent:hover { background: oklch(0.78 0.17 65); }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Container & section ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
  line-height: 1.05;
  max-width: 760px;
  text-wrap: balance;
}
.section-head .right { color: var(--ink-2); max-width: 380px; font-size: 14px; }
.section-head .link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  font-weight: 500;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: #cfd0d4;
  padding: 72px 0 28px;
  font-size: 13.5px;
}
.site-footer .grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 48px;
}
.site-footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8e8f95;
  font-weight: 500;
  margin: 0 0 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #cfd0d4; }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand .mark { background: var(--accent); color: var(--ink); }
.site-footer .brand .mark::after { border-color: rgba(255,255,255,0.2); }
.site-footer .brand-text .sub { color: #8e8f95; }
.site-footer .blurb { color: #9b9da3; margin: 18px 0 24px; max-width: 320px; line-height: 1.55; }
.site-footer .contacts { display: grid; gap: 8px; color: #cfd0d4; }
.site-footer .contacts .lbl { color: #8e8f95; font-size: 11px; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.legal {
  max-width: var(--maxw);
  margin: 60px auto 0;
  padding: 24px var(--pad) 0;
  border-top: 1px solid #22262d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6f7177;
  gap: 24px;
  flex-wrap: wrap;
}

/* ---------- Cards (catalog) ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg-2);
  overflow: hidden;
}
.card .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  padding: 4px 7px;
  border-radius: 2px;
}
.card .tag.accent { background: var(--accent); color: var(--ink); }
.card .body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card .sku {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.card .title {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.card .specs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-2);
}
.card .specs span b { color: var(--ink); font-weight: 600; }
.card .price { font-size: 15px; font-weight: 700; margin-top: 4px; }
.card .price small { font-weight: 400; color: var(--ink-3); font-size: 11px; font-family: var(--font-mono); }

/* ---------- Placeholder imagery ---------- */
.ph {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      transparent 0 14px,
      rgba(14,17,22,0.04) 14px 15px);
  background-color: var(--bg-2);
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ph::before {
  content: attr(data-label);
  background: rgba(255,255,255,0.7);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.ph.dark {
  background-color: #14171c;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgba(255,255,255,0.04) 14px 15px);
  color: #6c6f76;
}
.ph.dark::before {
  background: rgba(20,23,28,0.8);
  color: #9c9ea4;
  border-color: #2a2d34;
}

/* Lighting product placeholder: a soft glowing bulb-ish shape */
.bulb-ph {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 55%, oklch(0.95 0.06 75) 0%, oklch(0.88 0.09 70) 20%, transparent 55%),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(14,17,22,0.04) 14px 15px),
    var(--bg-2);
}
.bulb-ph::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38%;
  height: 38%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, oklch(0.96 0.10 75) 0%, oklch(0.78 0.16 65) 60%, oklch(0.55 0.14 55) 100%);
  border-radius: 50%;
  box-shadow: 0 0 60px oklch(0.78 0.16 65 / 0.6), 0 0 120px oklch(0.78 0.16 65 / 0.3);
}

/* ---------- Page hero (non-home) ---------- */
.page-hero {
  border-bottom: 1px solid var(--line);
  padding: 72px 0 56px;
}
.page-hero .crumbs {
  display: flex;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}
.page-hero .crumbs a:hover { color: var(--ink); }
.page-hero h1 {
  font-size: clamp(40px, 5.5vw, 76px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}
.page-hero .lede {
  margin-top: 24px;
  max-width: 640px;
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); }
.kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 2px 5px;
  background: #fff;
  color: var(--ink-2);
}

/* Responsive nav: hide on small */
@media (max-width: 980px) {
  .nav { display: none; }
}
