/* ============================================================
   6F RONIN — Cyber Defense Landing
   palet: deep-black + cyan neon + abu-hijau terminal
   ============================================================ */
:root {
  --bg-deep: #04080d;
  --panel: #0a121c;
  --cy: #38e1ff;
  --cy-dim: rgba(56, 225, 255, 0.55);
  --cy-faint: rgba(56, 225, 255, 0.12);
  --ink: #d7e6ee;
  --ink-dim: rgba(215, 230, 238, 0.6);
  --grid-line: rgba(56, 225, 255, 0.06);
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, "SF Mono", Menlo, monospace;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --radius: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.6rem; }
body {
  font-family: var(--sans);
  background: var(--bg-deep);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.accent { color: var(--cy); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #3dffa0; box-shadow: 0 0 10px #3dffa0; animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.cursor { color: var(--cy); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ============ NAVBAR ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(to bottom, rgba(4, 8, 13, 0.8), transparent);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
  background: rgba(4, 8, 13, 0.85);
  border-bottom-color: var(--cy-faint);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-logo { width: 40px; height: 40px; object-fit: contain;
  filter: drop-shadow(0 0 6px var(--cy-dim)); }
.brand-name { font-family: var(--mono); font-weight: 700; font-size: 1.02rem;
  letter-spacing: 0.2em; }
.brand-sub { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  color: var(--cy-dim); border: 1px solid var(--cy-faint); border-radius: 4px;
  padding: 0.15rem 0.45rem; }
.nav-links { display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav-links a { font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.08em;
  color: var(--ink-dim); transition: color 0.2s ease; }
.nav-links a:hover { color: var(--cy); text-shadow: 0 0 12px var(--cy-dim); }
.link-idx { color: var(--cy); margin-right: 0.25rem; opacity: 0.7; }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100svh; display: flex;
  align-items: center; justify-content: center; overflow: hidden; }

.hero-bg, .hero-scrim, .grid-overlay, .scanline { position: absolute; inset: 0; }
.hero-bg { background: url("/assets/background.jpg") center / cover no-repeat;
  transform: scale(1.02); }
.hero-scrim { background:
  radial-gradient(ellipse 62% 58% at 50% 47%, rgba(4, 8, 13, 0.82) 0%,
    rgba(4, 8, 13, 0.5) 55%, rgba(4, 8, 13, 0.88) 100%),
  linear-gradient(to bottom, rgba(4, 8, 13, 0.35), rgba(4, 8, 13, 0.6)); }

/* grid teknikal samar */
.grid-overlay {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 30%, transparent 75%);
}

/* scanline bergerak pelan */
.scanline {
  background: linear-gradient(to bottom, transparent 0%, rgba(56, 225, 255, 0.05) 50%, transparent 100%);
  background-size: 100% 220px; background-repeat: no-repeat;
  animation: scan 9s linear infinite; pointer-events: none;
}
@keyframes scan { 0% { background-position: 0 -240px; } 100% { background-position: 0 110vh; } }

.hero-content { position: relative; z-index: 2; width: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 6.5rem 1rem 4.2rem; opacity: 0; transform: translateY(14px);
  transition: opacity 0.9s ease, transform 0.9s ease; }
.hero-content.in { opacity: 1; transform: none; }

.kicker { font-family: var(--mono); font-size: clamp(0.72rem, 1.3vw, 0.9rem);
  letter-spacing: 0.22em; color: var(--cy-dim); margin-bottom: 1.4rem;
  text-shadow: 0 0 14px rgba(56, 225, 255, 0.35); }

/* stage logo + frame sudut HUD */
.hero-stage { position: relative; padding: clamp(1.2rem, 3vw, 2.2rem); }
.corner { position: absolute; width: 30px; height: 30px; border: 2px solid var(--cy-dim); }
.corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.hero-logo { width: auto; height: auto; max-width: min(74vw, 640px);
  max-height: 44svh; object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(56, 225, 255, 0.18))
          drop-shadow(0 18px 45px rgba(0, 0, 0, 0.6)); }

.sys-line { margin-top: 1.1rem; font-family: var(--mono);
  font-size: clamp(0.72rem, 1.4vw, 0.92rem); letter-spacing: 0.1em;
  color: var(--ink-dim); min-height: 1.5em; display: flex; gap: 0.6rem;
  align-items: center; justify-content: center; }
.sys-line .dot { background: var(--cy); box-shadow: 0 0 10px var(--cy); }

/* ============ CTA ============ */
.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.1em;
  padding: 0.78rem 1.9rem; border-radius: 6px; font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
              border-color 0.18s ease, color 0.18s ease; }
.btn-primary { background: transparent; color: var(--cy); border: 1px solid var(--cy);
  box-shadow: inset 0 0 0 1px transparent, 0 0 0 transparent; }
.btn-primary:hover { background: var(--cy); color: #03131a; transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(56, 225, 255, 0.55); }
.btn-arrow { font-size: 1rem; }
.btn-ghost { background: rgba(215, 230, 238, 0.04); border: 1px solid rgba(215, 230, 238, 0.18);
  color: var(--ink); }
.btn-ghost:hover { border-color: var(--cy-dim); color: var(--cy); transform: translateY(-2px); }

.hero-coord { position: absolute; right: clamp(1rem, 3vw, 2rem); bottom: 3.6rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em;
  color: rgba(215, 230, 238, 0.4); text-align: right; }

/* ============ FOOTER HERO ============ */
.hero-footer { position: absolute; inset: auto 0 0 0; z-index: 3;
  padding: 0.7rem clamp(1rem, 4vw, 2.5rem) 0.9rem;
  background: linear-gradient(to top, rgba(4, 8, 13, 0.9), transparent); }
.hero-footer-inner { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  align-items: center; justify-content: space-between;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  color: var(--ink-dim); }
.hero-status { display: inline-flex; align-items: center; gap: 0.45rem; color: #3dffa0; }

/* ============ SECTION (kemampuan) ============ */
.section { padding: clamp(4rem, 10vw, 7rem) 1.5rem; }
.kemampuan { text-align: center; background: radial-gradient(ellipse 70% 80% at 50% 0%,
  rgba(56, 225, 255, 0.05), transparent 65%); }
.section-label { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.2em;
  color: var(--cy-dim); margin-bottom: 0.7rem; }
.section-title { font-family: var(--mono); font-size: clamp(1.7rem, 4vw, 2.7rem);
  letter-spacing: 0.16em; margin-bottom: 2.6rem; text-transform: uppercase; }

.chip-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
  max-width: 980px; margin: 0 auto; }
.chip { flex: 1 1 260px; max-width: 300px; display: flex; align-items: center; gap: 0.9rem;
  text-align: left; font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.1em;
  color: var(--ink); background: rgba(56, 225, 255, 0.04);
  border: 1px solid rgba(56, 225, 255, 0.16); border-radius: 8px;
  padding: 1rem 1.15rem; transition: border-color 0.2s ease, box-shadow 0.2s ease,
  transform 0.2s ease; }
.chip:hover { border-color: var(--cy); box-shadow: 0 0 18px rgba(56, 225, 255, 0.2),
  inset 0 0 18px rgba(56, 225, 255, 0.04); transform: translateY(-2px); }
.chip-num { color: var(--cy); font-size: 0.72rem; opacity: 0.8; }

/* ============ KONTAK (terminal) ============ */
.kontak { display: flex; justify-content: center;
  background: radial-gradient(ellipse 60% 90% at 50% 110%, rgba(56, 225, 255, 0.06), transparent 70%); }
.term { width: min(680px, 100%); border: 1px solid rgba(56, 225, 255, 0.22);
  border-radius: 10px; overflow: hidden; background: rgba(6, 12, 18, 0.92);
  box-shadow: 0 0 40px rgba(56, 225, 255, 0.07), 0 24px 50px rgba(0, 0, 0, 0.5); }
.term-bar { display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem; background: #0d1824;
  border-bottom: 1px solid rgba(56, 225, 255, 0.12); }
.tbtn { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.tbtn:nth-child(1) { background: #ff5f57; } .tbtn:nth-child(2) { background: #febc2e; }
.tbtn:nth-child(3) { background: #28c840; }
.term-title { margin-left: auto; margin-right: auto; font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-dim); }
.term-body { padding: 1.2rem 1.4rem 1.4rem; font-family: var(--mono);
  font-size: 0.86rem; line-height: 1.9; text-align: left; }
.t-prompt { color: #3dffa0; margin-right: 0.6rem; }
.t-out { color: var(--ink-dim); padding-left: 1.6rem; }
.t-out a { color: var(--cy); border-bottom: 1px dashed rgba(56, 225, 255, 0.4); }
.t-out a:hover { text-shadow: 0 0 10px var(--cy-dim); }
.t-blink { padding-left: 0; }

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  .brand-name { letter-spacing: 0.12em; }
  .brand-sub { display: none; }
  .hero-coord { display: none; }
  .nav-links a { font-size: 0.76rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .hero-content { opacity: 1; transform: none; }
  .hero-bg { transform: none; }
}
