/* =========================
   Portfolio pages (Home, About, Contact)
   Shop/checkout pages still use style.css
   ========================= */

:root {
  --bg: #0e1016;
  --surface: #161922;
  --surface-2: #1c2030;
  --text: #eceef4;
  --muted: #9ba2b4;
  --line: #262a37;
  --accent: #7457e8;
  --accent-text: #b4a2ff;
  --accent-soft: rgba(116, 87, 232, 0.16);
  --ok: #4cc38a;
  --radius: 12px;
  --max: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(116, 87, 232, 0.22), transparent 70%),
    radial-gradient(700px 400px at -10% 10%, rgba(64, 120, 220, 0.12), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); }
img { max-width: 100%; display: block; }

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

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 16, 22, 0.82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 18px;
  color: var(--text);
  cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--accent);
  cursor: pointer;
  font-family: inherit;
}
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--accent-text); border-color: var(--line); }
.btn-ghost:hover { background: var(--accent-soft); border-color: var(--accent); }

/* ===== Hero ===== */
.hero {
  padding: 80px 0 64px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero .lead { font-size: 19px; color: var(--muted); max-width: 560px; margin-bottom: 22px; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ok);
  background: rgba(76, 195, 138, 0.12);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

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

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

/* Swap the monogram for a photo: replace the .portrait div with
   <img class="portrait" src="headshot.jpg" alt="Nikko Kassa"> */
.portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 20px;
  object-fit: cover;
}

.facts { list-style: none; }
.facts li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { font-weight: 600; text-align: right; }

/* ===== Sections ===== */
section.block { padding: 56px 0; border-top: 1px solid var(--line); }

.block h2 {
  font-size: 28px;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.block .sub { color: var(--muted); margin-bottom: 32px; max-width: 640px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p, .card li { color: var(--muted); font-size: 15px; }
.card ul { padding-left: 18px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags span {
  font-size: 13px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-text);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ===== Experience ===== */
.job {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.job:first-of-type { border-top: none; padding-top: 0; }
.job .when { color: var(--muted); font-size: 15px; font-weight: 600; }
.job h3 { font-size: 19px; }
.job .org { color: var(--muted); margin-bottom: 10px; }
.job ul { padding-left: 18px; }
.job li { margin-bottom: 6px; }

/* ===== Prose (About) ===== */
.page-head { padding: 64px 0 32px; }
.page-head h1 { font-size: clamp(32px, 4.5vw, 44px); letter-spacing: -1px; margin-bottom: 12px; }
.page-head p { color: var(--muted); font-size: 19px; max-width: 640px; }

.prose { max-width: 680px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul { padding-left: 20px; margin-bottom: 16px; }
.prose li { margin-bottom: 6px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; padding-bottom: 64px; }

form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
form .field { margin-bottom: 16px; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form input, form select, form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}
form input:focus, form select:focus, form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}
#inquiry-status { margin-top: 12px; font-weight: 600; }

/* ===== CTA + footer ===== */
.cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta h2 { margin-bottom: 4px; }
.cta p { color: var(--muted); }

footer { border-top: 1px solid var(--line); margin-top: 56px; }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.footer-inner a { color: var(--muted); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  body.nav-open .nav-menu { display: block; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 16px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .site-nav, .footer-inner { padding-left: 16px; padding-right: 16px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; gap: 4px; }
  form .row { grid-template-columns: 1fr; gap: 0; }
  .cta { padding: 24px; }
}

/* ===== Business additions ===== */
.brand small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.brand-text { line-height: 1.2; }

.nav-links a.nav-cta {
  color: #fff;
  background: var(--accent);
  padding: 8px 16px;
  border-radius: 8px;
}
.nav-links a.nav-cta:hover { color: #fff; filter: brightness(1.1); }

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.trust div { font-size: 14px; color: var(--muted); }
.trust strong { display: block; font-size: 20px; color: var(--text); }

.steps { counter-reset: step; }
.steps .card h3::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 14px;
}

.service-list .card { display: flex; flex-direction: column; }
.price {
  margin-top: auto;
  padding-top: 14px;
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
}
.price span { font-weight: 500; color: var(--muted); }

.faq details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { color: var(--muted); margin-top: 8px; max-width: 680px; }

.owner {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: start;
}
.owner .portrait { margin-bottom: 0; }

@media (max-width: 900px) {
  .trust { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links a.nav-cta { display: inline-block; margin-top: 8px; padding: 10px 16px; }
}
@media (max-width: 640px) {
  .owner { grid-template-columns: 1fr; }
  .brand small { display: none; }
}

/* ===== Dark theme polish ===== */
.card, .profile-card, .cta {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(116, 87, 232, 0.5); }
.cta {
  background:
    radial-gradient(500px 200px at 100% 0%, rgba(116, 87, 232, 0.25), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: rgba(116, 87, 232, 0.35);
}
.hero h1 .hl { color: var(--accent-text); }
.brand-mark { background: linear-gradient(135deg, #8a6cff, #5b3fd6); }
.btn-solid { background: linear-gradient(135deg, #8065f0, #6447dc); border-color: transparent; }
.nav-links a.nav-cta { background: linear-gradient(135deg, #8065f0, #6447dc); }
.nav-menu { background: transparent; }
@media (max-width: 820px) {
  .nav-menu { background: var(--bg); }
}
form input, form select, form textarea { background: var(--bg); }
form select option { background: var(--surface); }
::selection { background: rgba(116, 87, 232, 0.45); }
img.portrait { border: 2px solid rgba(116, 87, 232, 0.6); }
.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(116, 87, 232, 0.7);
}

/* =========================
   Shop, cart, checkout
   ========================= */
.nav-cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
}
.nav-cart:hover { border-color: var(--accent); }
.cart-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  display: inline-grid;
  place-items: center;
  transition: transform 0.2s;
}
.cart-badge.bump { transform: scale(1.3); }
.nav-right { display: flex; align-items: center; gap: 10px; }

.shop-tabs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 24px; }
.shop-tabs .cat-link {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}
.shop-tabs .cat-link:hover { color: var(--text); border-color: var(--accent); }
.shop-tabs .cat-link.active { background: var(--accent-soft); color: var(--accent-text); border-color: var(--accent); }

.note-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

#product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  padding-bottom: 24px;
}
.product-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s;
}
.product-card:hover { border-color: rgba(116, 87, 232, 0.5); }
.product-media { aspect-ratio: 16 / 10; background: var(--bg); overflow: hidden; }
.product-img { width: 100%; height: 100%; object-fit: cover; }
.product-info { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-title { font-size: 16px; }
.product-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; }
.product-price { font-weight: 700; font-size: 17px; }

/* Buttons rendered by script.js */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #8065f0, #6447dc);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover { filter: brightness(1.1); }

/* Product modal */
.product-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 300;
}
.product-modal.active { display: flex; }
.modal-content {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.close-modal, .close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}
.close-modal:hover, .close-btn:hover { color: var(--text); }
.modal-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.modal-img { width: 100%; border-radius: 8px; aspect-ratio: 16 / 10; object-fit: cover; }
.modal-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-text);
  margin-bottom: 6px;
}
.modal-info h2 { font-size: 22px; margin-bottom: 6px; }
.modal-price { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.modal-desc { color: var(--muted); margin-bottom: 16px; }
.modal-game { margin-bottom: 14px; }
.modal-game label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.modal-game input {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}
.modal-game-error { color: #ff8a8a; font-size: 14px; margin-top: 6px; }

/* Cart sidebar */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 200;
}
.cart-overlay.show { opacity: 1; pointer-events: auto; }
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(400px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 210;
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open { transform: translateX(0); }
.cart-header { position: relative; padding: 20px; border-bottom: 1px solid var(--line); }
.cart-header h3 { font-size: 18px; }
.cart-items-container { flex: 1; overflow: auto; padding: 8px 20px; }
.empty-msg { color: var(--muted); padding: 16px 0; }
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item-img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.cart-item-name { font-weight: 700; font-size: 15px; }
.cart-item-price { color: var(--muted); font-size: 14px; }
.cart-item-lineTotal { font-weight: 700; }
.qty-controls { display: flex; align-items: center; gap: 6px; margin: 8px 0 4px; }
.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.qty-input {
  width: 44px;
  height: 28px;
  text-align: center;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.remove-item { background: none; border: none; color: var(--muted); font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline; }
.remove-item:hover { color: var(--text); }
.cart-footer { padding: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 17px; }
.cart-link-btn { background: none; border: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; justify-self: start; text-decoration: underline; padding: 0; }
.cart-note { color: var(--muted); font-size: 13px; }
.checkout-btn { width: 100%; padding: 12px; font-size: 15px; }

/* Checkout */
.checkout-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.checkout-sub { color: var(--muted); font-size: 14px; }
.checkout-right { font-weight: 700; }
.checkout-total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; padding: 16px 0 4px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; padding-bottom: 64px; align-items: start; }

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .modal-layout { grid-template-columns: 1fr; }
  .nav-cart .cart-label { display: none; }
}

/* ===== Custom build form ===== */
.build-form { display: grid; gap: 16px; max-width: 820px; padding-bottom: 64px; }
.build-form legend { float: left; width: 100%; font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.build-form legend + * { clear: both; }
.build-form .q { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.build-form .field:last-child { margin-bottom: 0; }
.req { color: var(--accent-text); }
.hint { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 4px; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; margin: 0; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.chip:hover span { border-color: var(--accent); color: var(--text); }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.faq-group { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent-text); margin: 28px 0 4px; }

/* ===== Build photos ===== */
.build-gallery { max-width: 820px; margin-bottom: 32px; }
.build-gallery h2 { font-size: 22px; margin-bottom: 16px; }
.build-gallery figure { margin: 0; }
.build-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.build-gallery figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* ===== Services jump links ===== */
.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 32px; }
.jump-links a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.jump-links a:hover { color: var(--text); border-color: var(--accent); }
section[id] { scroll-margin-top: 84px; }
.card .contact-big { font-size: 20px; font-weight: 700; }
.contact-big a { text-decoration: none; }
