:root {
  --psni-black: #0a0a0a;
  --psni-ink: #121418;
  --psni-panel: #15181e;
  --psni-blue: #1e4fc4;
  --psni-blue-bright: #2f6bff;
  --psni-red: #e10600;
  --psni-red-deep: #b80000;
  --psni-muted: #8b93a7;
  --psni-line: #2a3140;
  --psni-white: #f4f6fa;
  --psni-font: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --psni-mono: "IBM Plex Mono", ui-monospace, monospace;
  --hero-h: 512px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--psni-font);
  color: var(--psni-white);
  background:
    linear-gradient(180deg, #0c0e12 0%, #11151c 40%, #0a0c10 100%);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}

body.psni-popup-open { overflow: hidden; }

a { color: var(--psni-blue-bright); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

/* ===== Floating menu ===== */
.site-header {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px));
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(42, 49, 64, 0.95);
  border-radius: 10px;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  background: rgba(8, 8, 10, 0.96);
  border-color: rgba(47, 107, 255, 0.35);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 8px 4px 4px;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #d8dce3 100%);
  border: 1px solid rgba(216, 220, 227, 0.9);
}
.brand img { height: 42px; width: auto; display: block; border-radius: 4px; }

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: block;
  padding: 8px 12px;
  color: #d7dce8;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: #fff;
  background: rgba(30, 79, 196, 0.28);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--psni-line);
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}

/* ===== Hero 512px ===== */
.hero-technical {
  position: relative;
  height: var(--hero-h);
  min-height: 512px;
  max-height: 512px;
  overflow: hidden;
  display: grid;
  align-items: end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 8, 12, 0.14) 0%, rgba(6, 8, 12, 0.04) 42%, transparent 72%, rgba(6, 8, 12, 0.03) 100%),
    linear-gradient(180deg, rgba(6, 8, 12, 0.06) 0%, transparent 45%, rgba(6, 8, 12, 0.08) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 96px 0 40px;
}

.hero-title {
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 16ch;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-sub {
  margin-top: 12px;
  max-width: 42ch;
  color: #f0f3f8;
  font-size: 1rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  background: var(--psni-red);
  color: #fff;
  border-color: var(--psni-red);
}

.btn-primary:hover { background: var(--psni-red-deep); }

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ===== Sections ===== */
.site-main { padding-bottom: 40px; }

.section {
  padding: 56px 0;
}

.section-alt {
  background: rgba(21, 24, 30, 0.7);
  border-block: 1px solid var(--psni-line);
}

.section-kicker {
  font-family: var(--psni-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--psni-blue-bright);
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--psni-muted);
  max-width: 56ch;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.tech-item {
  border: 1px solid var(--psni-line);
  background: rgba(10, 12, 16, 0.65);
  padding: 20px 18px;
  border-radius: 8px;
}

.tech-code {
  font-family: var(--psni-mono);
  color: var(--psni-red);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.tech-item h3 {
  margin: 8px 0 6px;
  font-size: 1.05rem;
}

.tech-item p { color: var(--psni-muted); font-size: 0.94rem; }

.prose { margin-top: 18px; color: #c7cedo; }
.prose p { margin-bottom: 12px; }
.prose h1 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 14px; }
.prose a { color: #8eb4ff; }
.prose a:hover { color: #fff; }

.prose .office-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 28px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.prose .office-brand img {
  max-width: 220px;
  height: auto;
  background: linear-gradient(180deg, #ffffff 0%, #d8dce3 100%);
  border-radius: 8px;
  padding: 6px;
}

.prose .office-marketing {
  border: 1px solid var(--psni-line);
  border-left: 3px solid var(--psni-red);
  padding: 14px 18px;
  max-width: 32rem;
  color: #d7dce8;
  line-height: 1.55;
  background: rgba(10, 12, 16, 0.55);
  border-radius: 0 8px 8px 0;
}

.prose .office-marketing strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 1.05rem;
}

.prose .office-hours {
  margin: 16px 0 22px;
  color: #c7cedo;
  line-height: 1.6;
}

.prose .office-hours strong {
  color: #fff;
  display: block;
  margin-bottom: 6px;
}

.prose .office-map {
  margin: 18px 0;
  border: 1px solid var(--psni-line);
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  background: #0a0c10;
}

.prose .office-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

/* ===== Produk page (4-col grid, 3 segments) ===== */
.produk-page-head {
  padding-bottom: 24px;
}

.produk-page-head h1 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin-bottom: 10px;
}

.produk-lead,
.produk-intro {
  color: var(--psni-muted);
  max-width: 52ch;
}

.produk-segment.section {
  padding-top: 40px;
  padding-bottom: 48px;
}

.produk-segment:nth-child(even) {
  background: rgba(21, 24, 30, 0.7);
  border-block: 1px solid var(--psni-line);
}

.produk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.produk-card {
  border: 1px solid var(--psni-line);
  background: rgba(10, 12, 16, 0.65);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.produk-card-media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0c10;
}

.produk-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.produk-card-title {
  font-size: 0.98rem;
  margin: 12px 12px 6px;
  color: #fff;
  line-height: 1.3;
}

.produk-card-desc {
  margin: 0 12px 14px;
  font-size: 0.86rem;
  color: var(--psni-muted);
  line-height: 1.45;
  flex: 1;
}

.produk-empty {
  margin-top: 16px;
  color: var(--psni-muted);
}

/* ===== Home produk preview ===== */
.home-produk-preview {
  padding-top: 40px;
  padding-bottom: 48px;
}

.home-produk-cta {
  margin-top: 28px;
  text-align: center;
}

@media (max-width: 960px) {
  .produk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .produk-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--psni-line);
  background: #07080b;
  padding: 40px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.footer-logo { height: 48px; width: auto; margin-bottom: 12px; }

.site-footer h3 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
}

.site-footer p { color: var(--psni-muted); font-size: 0.92rem; }
.site-footer a { color: #d7dce8; }
.site-footer a:hover { color: var(--psni-blue-bright); }

.footer-copy {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--psni-line);
  color: #6d7588;
  font-size: 0.82rem;
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  z-index: 900;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ===== Popup 300x300 ===== */
.psni-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.62);
  display: grid;
  place-items: center;
  padding: 16px;
}

.psni-popup-overlay[hidden] { display: none !important; }

.psni-popup {
  position: relative;
  width: 300px;
  height: 300px;
  background: #fff;
  color: #111;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.psni-popup-close {
  position: absolute;
  top: 6px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #111;
  padding: 4px 6px;
}

.psni-popup-body {
  height: 100%;
  padding: 28px 18px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.psni-popup-line1 {
  font-size: 0.78rem;
  color: #222;
}

.psni-popup-brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--psni-red);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.psni-popup-line2 {
  font-size: 0.82rem;
  color: #222;
  margin-top: 4px;
}

.psni-popup-phone {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--psni-red);
  letter-spacing: 0.02em;
}

.psni-popup-line3,
.psni-popup-line4 {
  font-size: 0.8rem;
  color: #111;
}

.psni-popup-line4 { margin-top: 2px; }

.psni-popup-countdown {
  margin-top: 10px;
  font-size: 0.72rem;
  color: #444;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .tech-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: inline-flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(8, 8, 10, 0.98);
    border: 1px solid var(--psni-line);
    border-radius: 10px;
    padding: 8px;
  }

  .nav-menu.is-open { display: flex; }

  .hero-inner { padding: 88px 0 28px; }
}

@media (max-width: 520px) {
  :root { --hero-h: 512px; }
  .brand img { height: 34px; }
  .hero-title { max-width: 100%; }
}
