/* BrickMerge product page. Plain CSS, no frameworks, no external fonts or scripts. */

:root {
  --bg: #ffffff;
  --bg-soft: #f4f6fb;
  --text: #1b2333;
  --muted: #5a6478;
  --line: #dde2ec;
  --accent: #2f6fe4;
  --accent-text: #ffffff;
  --orange: #f27a2c;
  --blue: #2f7be5;
  --yellow: #f6b73c;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(20, 34, 70, 0.16);
  --hero-from: #101a33;
  --hero-to: #1d2f5c;
  --radius: 14px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1420;
    --bg-soft: #151c2b;
    --text: #e7ebf3;
    --muted: #9aa5ba;
    --line: #263049;
    --accent: #5b93f0;
    --accent-text: #0b1220;
    --card: #171f31;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    --hero-from: #0a1020;
    --hero-to: #14224a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img { max-width: 100%; height: auto; }

code, kbd {
  font-family: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.1em 0.4em;
}

.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }

/* ---- Header ------------------------------------------------------------------------------------------------ */

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  padding: 18px 0;
}

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }

.site-header nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-header nav a { color: #cdd6ea; text-decoration: none; font-size: 0.95rem; }
.site-header nav a:hover { color: #fff; }

/* ---- Hero -------------------------------------------------------------------------------------------------- */

.hero {
  color: #fff;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(242, 122, 44, 0.22), transparent 70%),
    radial-gradient(900px 480px at 10% 0%, rgba(47, 123, 229, 0.30), transparent 70%),
    linear-gradient(180deg, var(--hero-from), var(--hero-to));
  padding: 140px 0 0;
  overflow: hidden;
}

.hero-text { max-width: 760px; }

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd29a;
  margin-bottom: 14px;
}

.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 1.2rem; color: #cdd6ea; margin: 0 0 28px; }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }

.button {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.button.primary { background: #fff; color: #10204a; }
.button.primary:hover { background: #e8eefc; }
.button.secondary { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.button.secondary:hover { background: rgba(255, 255, 255, 0.1); }

.badges { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #aab6d3; font-size: 0.92rem; padding: 0; margin: 0 0 44px; list-style: none; }
.badges li::before { content: "•"; color: var(--orange); margin-right: 8px; }

.hero-shot { margin: 0 auto; transform: translateY(1px); }
.hero-shot img {
  display: block;
  width: 100%;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -10px 70px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
}

/* ---- Sections ---------------------------------------------------------------------------------------------- */

section { padding: 84px 0; }
section.soft { background: var(--bg-soft); }

.section-head { max-width: 720px; margin: 0 0 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.1rem; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 { margin: 12px 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--blue));
}

.icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Showcases (text next to a screenshot) ----------------------------------------------------------------- */

.showcase { display: grid; gap: 44px; align-items: center; grid-template-columns: 1fr 2fr; }
.showcase.reverse { grid-template-columns: 2fr 1fr; }
.showcase.reverse .showcase-text { order: 2; }
.showcase + .showcase { margin-top: 90px; }
.showcase.wide { grid-template-columns: 1fr; }
.showcase.wide .showcase-text { max-width: 720px; }

.showcase-text h3 { font-size: 1.6rem; line-height: 1.25; margin: 0 0 14px; }
.showcase-text p { color: var(--muted); margin: 0 0 14px; }
.showcase-text ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.showcase-text li { margin-bottom: 6px; }

.shot { margin: 0; }
.shot a { display: block; line-height: 0; }
.shot img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.shot figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--muted); line-height: 1.4; }

.two-shots { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }

/* ---- Facts + footer ---------------------------------------------------------------------------------------- */

.facts { display: grid; gap: 14px 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 0; }
.facts div { border-top: 1px solid var(--line); padding-top: 12px; }
.facts dt { font-weight: 600; }
.facts dd { margin: 4px 0 0; color: var(--muted); font-size: 0.97rem; }

footer { border-top: 1px solid var(--line); padding: 38px 0 56px; color: var(--muted); font-size: 0.93rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---- Small screens ----------------------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .showcase, .showcase.reverse { grid-template-columns: 1fr; gap: 26px; }
  .showcase.reverse .showcase-text { order: 0; }
  .two-shots { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .site-header nav { display: none; }
  .hero { padding-top: 110px; }
}

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