:root {
  color-scheme: dark;
  /* Warna jenama NWS: biru logo #1641BF dan putih. Tint lebih cerah untuk teks/aksen di atas latar gelap. */
  --brand: #1641bf;
  --brand-hi: #2f63ee;
  --brand-lo: #0e2a80;
  --accent: #7aa2ff;
  --accent-rgb: 122, 162, 255;
  --brand-rgb: 22, 65, 191;

  --bg: #040916;
  --bg-2: #07102a;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.07);
  --surface-solid: #0a1530;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #f4f7ff;
  --muted: #9fb0d0;
  --radius: 22px;
  --maxw: 1160px;
  --gutter: clamp(18px, 4vw, 36px);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 10px; font-weight: 700;
}
.skip:focus { left: 8px; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.grad {
  background: linear-gradient(95deg, #dbe6ff 0%, #a9c2ff 35%, #7aa2ff 70%, #5b8cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Floating nav */
.nav-pill {
  position: fixed; top: 14px; left: 50%; z-index: 100; transform: translateX(-50%);
  width: min(940px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 14px; border-radius: 999px;
  background: rgba(6, 12, 30, 0.66);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line-2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: 0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand .full { font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.1em; }
.brand .short { display: none; font-size: 0.95rem; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) { color: var(--muted); padding: 8px 14px; border-radius: 999px; font-size: 0.92rem; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--text); background: var(--surface-2); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  border: 1px solid var(--line-2); color: var(--text); background: var(--surface);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.28); text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  color: #fff; border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, var(--brand-hi), var(--brand));
  box-shadow: 0 8px 30px rgba(var(--brand-rgb), 0.55);
}
.btn-primary:hover { background: linear-gradient(135deg, #4a78ff, #1f4fd6); border-color: rgba(255, 255, 255, 0.3); box-shadow: 0 12px 38px rgba(var(--brand-rgb), 0.75); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(128px, 18vw, 188px) 0 clamp(64px, 9vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(75% 65% at 50% 25%, #000, transparent 75%);
  mask-image: radial-gradient(75% 65% at 50% 25%, #000, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; animation: drift 20s ease-in-out infinite alternate; }
.b1 { width: 560px; height: 560px; background: var(--brand); left: -140px; top: -120px; opacity: 0.6; }
.b2 { width: 440px; height: 440px; background: var(--brand-hi); right: -100px; top: 20px; opacity: 0.3; animation-delay: -7s; }
.b3 { width: 400px; height: 400px; background: var(--brand-lo); left: 38%; bottom: -220px; opacity: 0.6; animation-delay: -12s; }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }

.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: #d3e0ff; padding: 8px 16px 8px 12px; border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 999px; background: rgba(var(--brand-rgb), 0.22);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0); } }
.hero h1 { margin: 24px 0 20px; font-size: clamp(2.7rem, 7.4vw, 5.6rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; }
.hero .lede { margin: 0 0 34px; max-width: 52ch; color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Broadcast signal visual */
.signal { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.signal .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(var(--accent-rgb), 0.5); animation: ping 5s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.signal .ring:nth-child(2) { animation-delay: 1.66s; }
.signal .ring:nth-child(3) { animation-delay: 3.32s; }
@keyframes ping { 0% { transform: scale(0.28); opacity: 0.95; } 100% { transform: scale(1); opacity: 0; } }
.signal .static { position: absolute; inset: 14%; border-radius: 50%; border: 1px dashed var(--line-2); }
.signal .core {
  position: relative; width: 132px; height: 132px; border-radius: 34px; display: grid; place-items: center;
  background: linear-gradient(160deg, #0f2150, #081230); border: 1px solid var(--line-2);
  box-shadow: 0 0 90px rgba(var(--brand-rgb), 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.signal .core img { width: 92px; height: 92px; border-radius: 22px; }
.signal .chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; background: rgba(8, 16, 40, 0.82); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: float 7s ease-in-out infinite alternate;
}
.signal .chip i { color: var(--accent); }
.signal .c1 { top: 8%; right: 0; }
.signal .c2 { bottom: 14%; left: -4%; animation-delay: -3s; }
.signal .c3 { bottom: 2%; right: 8%; animation-delay: -5s; }
@keyframes float { to { transform: translateY(-10px); } }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); }
.marquee-track { display: flex; width: max-content; animation: scroll 46s linear infinite; }
.marquee-group { display: flex; flex-shrink: 0; }
.marquee span { padding: 18px 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee span::after { content: "◆"; margin: 0 40px; color: var(--accent); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Sections */
.block { padding: clamp(56px, 9vw, 104px) 0 0; }
.block:last-of-type { padding-bottom: clamp(56px, 9vw, 104px); }
.kicker { margin: 0 0 10px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.section-head { margin-bottom: clamp(24px, 4vw, 40px); max-width: 640px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 4.4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.section-head p { margin: 0; color: var(--muted); font-size: 1.04rem; }

/* Spotlight surface */
.spot { position: relative; overflow: hidden; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--glow, rgba(var(--accent-rgb), 0.18)), transparent 62%);
}
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; }

/* Reveal on scroll (only when JS is active) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Liputan Khas cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; border-radius: var(--radius); color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.25s ease;
}
.card:hover { border-color: rgba(var(--accent-rgb), 0.55); transform: translateY(-4px); text-decoration: none; }
.card .cover { position: relative; min-height: 170px; background-size: cover; background-position: center; }
.card .cover::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1.4px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 70%); mask-image: linear-gradient(160deg, #000, transparent 70%);
}
.card .cover.has-img::after { display: none; }
.card .tag {
  position: absolute; left: 18px; top: 18px; z-index: 1; padding: 5px 12px; border-radius: 999px;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(4, 9, 22, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid var(--line-2); color: #fff;
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.card h3 { margin: 0 0 8px; font-size: 1.28rem; line-height: 1.25; letter-spacing: -0.02em; }
.card p { margin: 0 0 18px; color: var(--muted); font-size: 0.96rem; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 0.84rem; }
.card-foot .go { color: var(--accent); font-weight: 700; transition: transform 0.2s ease; }
.card:hover .go { transform: translateX(4px); }
.card--feature { grid-column: 1 / -1; flex-direction: row; }
.card--feature .cover { flex: 0 0 44%; min-height: 280px; }
.card--feature h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.card--feature .card-body { justify-content: center; padding: clamp(24px, 4vw, 44px); }
.empty { padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }

/* Bento: saluran + X */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bento .xbox { grid-column: span 2; grid-row: span 3; }
.bento .discord { grid-column: 3 / span 2; }
.panel { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head strong { font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.panel-body { flex: 1; padding: 10px 14px 14px; min-height: 220px; }
.x-fallback { display: none; margin: 0; padding: 4px 22px 22px; color: var(--muted); font-size: 0.92rem; }
.x-fallback.show { display: block; }

.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 160px; padding: 20px 22px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text);
  transition: border-color 0.2s ease, transform 0.25s ease;
}
.tile:hover { border-color: rgba(var(--accent-rgb), 0.45); transform: translateY(-4px); text-decoration: none; }
.tile .top { display: flex; align-items: flex-start; justify-content: space-between; }
.tile .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; color: var(--accent); background: rgba(var(--brand-rgb), 0.28); border: 1px solid rgba(var(--accent-rgb), 0.22); }
.tile .arrow { color: var(--muted); font-size: 1.15rem; transition: transform 0.2s ease, color 0.2s ease; }
.tile:hover .arrow { color: var(--text); transform: translate(3px, -3px); }
.tile strong { display: block; font-size: 1.12rem; letter-spacing: -0.01em; }
.tile small { color: var(--muted); font-size: 0.86rem; }
.tile[data-brand="dc"] {
  --glow: rgba(var(--accent-rgb), 0.3);
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.7), rgba(var(--brand-rgb), 0.28)); border-color: rgba(var(--accent-rgb), 0.4);
}
.tile[data-brand="dc"] .ico { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.tile.discord { flex-direction: row; align-items: center; min-height: 0; }
.tile.discord .top { gap: 16px; align-items: center; justify-content: flex-start; }

/* Games */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.game { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color 0.2s ease, transform 0.25s ease; }
.game:hover { border-color: rgba(var(--accent-rgb), 0.55); transform: translateY(-4px); text-decoration: none; }
.game .ico { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--brand-hi), var(--brand)); box-shadow: 0 6px 20px rgba(var(--brand-rgb), 0.5); }
.game strong { display: block; font-size: 1.05rem; line-height: 1.3; }
.game small { color: var(--muted); }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 30px; padding: clamp(32px, 6vw, 72px); text-align: center;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(70% 130% at 0% 0%, rgba(var(--brand-rgb), 0.75), transparent 62%),
    radial-gradient(70% 130% at 100% 100%, rgba(var(--brand-rgb), 0.5), transparent 62%),
    var(--surface-solid);
}
.cta h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 4.6vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.cta p { margin: 0 auto 28px; max-width: 48ch; color: #bccaea; }
.cta .hero-actions { justify-content: center; }
.cta .btn-primary { background: #fff; color: var(--brand); border-color: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35); }
.cta .btn-primary:hover { background: #e8efff; border-color: #e8efff; }

/* Article */
.article { max-width: 740px; margin: 0 auto; padding: clamp(120px, 16vw, 160px) var(--gutter) 96px; }
.article .back { display: inline-block; margin-bottom: 28px; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.article h1 { margin: 16px 0 12px; font-size: clamp(2rem, 5.4vw, 3.2rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.article .meta { color: var(--muted); font-size: 0.92rem; margin: 0 0 36px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.article .body { font-size: 1.1rem; line-height: 1.85; }
.article .body h2 { margin: 2em 0 0.5em; font-size: 1.5rem; letter-spacing: -0.02em; }
.article .body blockquote:not(.twitter-tweet) { margin: 1.6em 0; padding: 6px 0 6px 20px; border-left: 3px solid var(--brand-hi); color: var(--muted); }
.article code { font-size: 0.88em; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); }
.notice { margin: 0 0 28px; padding: 14px 18px; border-radius: 14px; background: rgba(var(--brand-rgb), 0.22); border: 1px solid rgba(var(--accent-rgb), 0.35); font-size: 0.92rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 44px; color: var(--muted); font-size: 0.92rem; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 32px; margin-bottom: 36px; }
.footer-grid h4 { margin: 0 0 12px; color: var(--text); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--accent); text-decoration: none; }
.footer-brand p { margin: 12px 0 0; max-width: 34ch; }
.footer-base { padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .signal { display: none; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .xbox { grid-column: 1 / -1; grid-row: auto; }
  .bento .discord { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .card--feature { flex-direction: column; }
  .card--feature .cover { flex-basis: auto; min-height: 190px; }
}
@media (max-width: 520px) {
  .brand .full { display: none; }
  .brand .short { display: inline; }
}
@media (max-width: 440px) {
  .bento { grid-template-columns: 1fr; }
  .tile { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .signal .ring, .signal .chip, .marquee-track, .eyebrow .dot { animation: none; }
  .signal .ring:first-child { opacity: 0.4; transform: scale(0.8); }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .tile, .game, .spot::before { transition: none; }
  .btn:hover, .card:hover, .tile:hover, .game:hover { transform: none; }
}
