/* NMC — Keyboard Mekanik Landing Page
   Dark charcoal base with dual accent (kuning/merah) mapped to the two SKUs. */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600&display=swap');

:root{
  --bg: #121013;
  --surface: #1b181b;
  --surface-2: #221e22;
  --text: #f3efe9;
  --muted: #a39d9a;
  --yellow: #f2b705;
  --red: #d62828;
  --line: rgba(243,239,233,0.12);
  --maxw: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3{
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p{ margin: 0 0 1em; }
a{ color: inherit; }

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

/* ---------- Header ---------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18,16,19,0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand .dot-y{ color: var(--yellow); }
.brand .dot-r{ color: var(--red); }

nav.main-nav{
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.main-nav a{
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color .15s ease;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"]{ color: var(--text); }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.btn-primary{
  background: var(--text);
  color: var(--bg);
}
.btn-primary:hover{ background: #ffffff; }
.btn-outline{
  border-color: var(--line);
  color: var(--text);
}
.btn-outline:hover{ border-color: var(--text); }
.btn-yellow{ background: var(--yellow); color: #201a00; }
.btn-red{ background: var(--red); color: #ffffff; }

.menu-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  color: var(--text);
  font-size: 1.1rem;
}

/* ---------- Hero ---------- */
.hero{
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}
.hero .wrap{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero h1{
  font-size: clamp(2.1rem, 4vw, 3rem);
  max-width: 12ch;
}
.hero .lede{
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 44ch;
}
.hero .cta-row{
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-art{
  position: relative;
  min-height: 320px;
}
.hero-art img{
  border-radius: 14px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.hero-art .img-red{
  width: 78%;
  position: relative;
  z-index: 2;
}
.hero-art .img-yellow{
  width: 62%;
  position: absolute;
  right: -6%;
  bottom: -14%;
  z-index: 1;
  opacity: 0.92;
}

/* ---------- Section shell ---------- */
section{ padding: 64px 0; }
section + section{ border-top: 1px solid var(--line); }
.section-head{ max-width: 60ch; margin-bottom: 40px; }
.section-head h2{ font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p{ color: var(--muted); }

/* ---------- Product split ---------- */
.products{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.product-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-card .swatch{
  height: 6px;
  width: 100%;
}
.product-card.is-yellow .swatch{ background: var(--yellow); }
.product-card.is-red .swatch{ background: var(--red); }
.product-card .photo{
  padding: 28px 28px 0;
}
.product-card .photo img{ border-radius: 10px; }
.product-card .body{
  padding: 24px 28px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card h3{ font-size: 1.35rem; margin-bottom: 6px; }
.product-card .price{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 4px 0 16px;
}
.product-card ul{
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.94rem;
}
.product-card li{
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.product-card li:first-child{ border-top: none; }
.product-card .body > .btn{ margin-top: auto; justify-content: center; }

/* ---------- Specs table ---------- */
.spec-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96rem;
}
.spec-table th, .spec-table td{
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.spec-table th{
  color: var(--muted);
  font-weight: 500;
  width: 34%;
}
.spec-table thead th{
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

/* ---------- Reasons row ---------- */
.reasons{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.reason h3{ font-size: 1.05rem; margin-bottom: 8px; }
.reason p{ color: var(--muted); font-size: 0.94rem; margin: 0; }
.reason .mark{
  width: 34px; height: 34px;
  border-radius: 9px;
  margin-bottom: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

/* ---------- CTA banner ---------- */
.cta-banner{
  background: var(--surface);
  border-radius: 20px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2{ margin-bottom: 6px; font-size: 1.6rem; }
.cta-banner p{ color: var(--muted); margin: 0; }

/* ---------- Simple content pages (policy/terms/contact) ---------- */
.page-hero{
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--line);
}
.page-hero h1{ font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.page-hero p{ color: var(--muted); max-width: 60ch; }

.doc{
  max-width: 74ch;
}
.doc h2{
  font-size: 1.2rem;
  margin-top: 2em;
}
.doc p, .doc li{ color: var(--muted); }
.doc ul{ padding-left: 1.2em; }
.doc .updated{
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2.5em;
}

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-card{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
}
.contact-card h3{ font-size: 1rem; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.contact-card .value{ font-family: 'Space Grotesk', sans-serif; font-size: 1.15rem; }

/* ---------- Footer ---------- */
footer{
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
}
footer .wrap{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
footer h4{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  margin: 0 0 14px;
}
footer p{ color: var(--muted); font-size: 0.92rem; max-width: 34ch; }
footer ul{ list-style: none; padding: 0; margin: 0; }
footer li{ margin-bottom: 10px; }
footer a{ color: var(--muted); text-decoration: none; font-size: 0.92rem; }
footer a:hover{ color: var(--text); }
.footer-bottom{
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px){
  .hero .wrap{ grid-template-columns: 1fr; }
  .hero-art{ order: -1; min-height: 260px; }
  .products{ grid-template-columns: 1fr; }
  .reasons{ grid-template-columns: 1fr 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  footer .wrap{ grid-template-columns: 1fr; }
}

@media (max-width: 620px){
  .menu-toggle{ display: block; }
  nav.main-nav{
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  nav.main-nav.is-open{ display: flex; }
  .reasons{ grid-template-columns: 1fr; }
  .cta-banner{ padding: 32px; }
}

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