/* MiniBuild — global styles */

:root {
  --bg: #1a171c;
  --bg-raised: #241f27;
  --bg-card: #2b2530;
  --line: rgba(242, 242, 242, 0.1);
  --text: #f2f2f2;
  --text-muted: rgba(242, 242, 242, 0.62);
  --accent: #c43bff;
  --radius: 14px;
  --radius-sm: 8px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

main { flex: 1; }

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

a { color: inherit; }

h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -0.02em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 14px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-light { background: var(--text); color: var(--bg); }


.btn-text { background: transparent; color: var(--text-muted); }
.btn-text:hover { color: var(--text); }

.btn svg { width: 14px; height: 14px; }

/* ---------- Nav bar ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 23, 28, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.nav-logo { justify-self: center; }
.nav-logo img { height: 22px; width: auto; }

.nav-right { justify-self: end; display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 760px) {
  .nav { grid-template-columns: auto 1fr auto; }
  .nav-logo { justify-self: start; grid-column: 1; grid-row: 1; }
  .nav-right { grid-column: 3; grid-row: 1; }
  .nav-right .btn { display: none; }
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav-links a { display: block; padding: 12px 0; font-size: 16px; }

  .site-header.open .nav-links { display: flex; }
  .site-header.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero (home) ---------- */

.hero {
  text-align: center;
  padding: clamp(32px, 5vw, 60px) 0 0;
  overflow: hidden;
}

.hero h1 {
  margin: 18px auto 30px;
  max-width: 900px;
  font-size: clamp(34px, 6.4vw, 68px);
}

.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.hero-strip {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 48px);
  padding: 0 var(--gutter);
  --card-h: clamp(170px, 24vw, 250px);
  --card-grow: clamp(24px, 3vw, 40px);
  min-height: calc(var(--card-h) + var(--card-grow));
}

.hero-strip a {
  flex: 1 1 0;
  max-width: 240px;
  min-width: 0;
  height: var(--card-h);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  background: var(--bg-card);
  transition: height 0.3s ease;
}

.hero-strip a:hover,
.hero-strip a:focus-visible { height: calc(var(--card-h) + var(--card-grow)); }

.hero-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 600px) {
  .hero-strip a:nth-child(n + 4) { display: none; }
}

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

.section { padding: clamp(32px, 5vw, 56px) 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.section-head h2 { font-size: clamp(26px, 4vw, 40px); margin-top: 8px; }

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

/* ---------- Latest release ---------- */

.release {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(16px, 2vw, 24px);
  border-radius: calc(var(--radius) + 6px);
  background: var(--bg-raised);
  border: 1px solid var(--line);
}

.release-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
}

.release-media img { width: 100%; height: 100%; object-fit: cover; }

.release-body { padding: 8px clamp(0px, 2vw, 24px) 8px 0; }

.release-body h3 { font-size: clamp(24px, 3.2vw, 34px); margin: 12px 0 14px; }

.release-body p { color: var(--text-muted); margin: 0 0 26px; }

.release-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 800px) {
  .release { grid-template-columns: 1fr; }
  .release-body { padding: 0 4px 8px; }
}

/* ---------- Page header ---------- */

.page-head { padding: clamp(48px, 8vw, 88px) 0 clamp(28px, 4vw, 40px); text-align: center; }
.page-head h1 { font-size: clamp(32px, 5.4vw, 56px); margin-top: 14px; }
.page-head p { max-width: 560px; margin: 16px auto 0; color: var(--text-muted); }

/* ---------- Catalogue ---------- */

.tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 auto 40px;
  padding: 5px;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
}

.tab {
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: 500 14px/1 var(--font);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--text); color: var(--bg); }

.tab .count { opacity: 0.6; margin-left: 4px; font-size: 12px; }

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

.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raised);
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover { transform: translateY(-3px); border-color: rgba(242, 242, 242, 0.28); }
.product-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.product-card .thumb { aspect-ratio: 1 / 1; background: var(--bg-card); overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .thumb img { transform: scale(1.04); }

.product-card .info { padding: 14px 16px 18px; }
.product-card .cat { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.product-card h3 { font-size: 16px; font-weight: 500; margin-top: 6px; letter-spacing: 0; }

.empty { text-align: center; color: var(--text-muted); padding: 60px 0; }

/* ---------- Product pop-up ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 8, 12, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal.open { display: flex; }

.modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  width: 100%;
  max-width: 1000px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-raised);
  border: 1px solid var(--line);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(26, 23, 28, 0.8);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.gallery { padding: 16px; }

.gallery-main {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}

.gallery-thumbs button {
  flex: 0 0 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  opacity: 0.6;
}

.gallery-thumbs button[aria-current="true"] { border-color: var(--text); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.modal-body { padding: 36px 32px 32px 16px; display: flex; flex-direction: column; }
.modal-body .tag { align-self: flex-start; }
.modal-body h2 { font-size: clamp(22px, 3vw, 30px); margin: 12px 0 14px; }
.modal-body .desc { color: var(--text-muted); white-space: pre-line; margin: 0 0 28px; }
.modal-links { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.modal-links .btn { justify-content: center; }

@media (max-width: 760px) {
  .modal { padding: 0; align-items: flex-end; }
  .modal-panel { grid-template-columns: 1fr; max-height: 92vh; border-radius: 18px 18px 0 0; }
  .modal-body { padding: 4px 20px 28px; }
}

/* ---------- About ---------- */

.about-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.about-row + .about-row { margin-top: clamp(56px, 9vw, 110px); }

/* Alternate sides so each image sits beside its own text */
.about-row--flip .about-photo { order: -1; }

.about-text h2 { font-size: clamp(22px, 3vw, 30px); margin: 10px 0 16px; }
.about-text p { color: var(--text-muted); margin: 0 0 14px; max-width: 520px; }

.about-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 13px;
  border: 1px dashed var(--line);
}

@media (max-width: 760px) {
  .about-row { grid-template-columns: 1fr; }
  .about-row .about-photo { order: -1; }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: clamp(24px, 4vw, 48px);
  border-top: 1px solid var(--line);
  background: #151217;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 48px 0 36px;
}

.footer-brand img { height: 24px; width: auto; margin-bottom: 14px; }
.footer-brand p { margin: 0; color: var(--text-muted); font-size: 14px; max-width: 300px; }

.site-footer h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { color: var(--text-muted); }

.footer-bottom {
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-muted);
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
