/* ============================================================
   CSIRT.KRES.CO.ID — Stylesheet utama
   Tema: Dark cyber / cyan-teal & navy
   ============================================================ */

:root {
  /* Palet warna */
  --bg:          #060b14;
  --bg-2:        #0a1422;
  --surface:     #0f1d30;
  --surface-2:   #132840;
  --border:      #1c3354;
  --border-soft: #15273f;

  --cyan:        #22d3ee;
  --cyan-bright: #5eeaff;
  --teal:        #14b8a6;
  --blue:        #2f6fed;

  --text:        #e6f1ff;
  --text-dim:    #9fb3cc;
  --text-mut:    #65809e;

  --danger:      #ff5d6c;
  --warning:     #ffb020;
  --success:     #34d399;

  --glow: 0 0 24px rgba(34, 211, 238, 0.35);
  --radius: 14px;
  --maxw: 1140px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cyan-bright); }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }

/* Ambient background grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(34,211,238,.10), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(47,111,237,.10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(34,211,238,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--cyan); display: inline-block; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 18px; }
.lead { color: var(--text-dim); font-size: 1.08rem; max-width: 62ch; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 11, 20, .72);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; filter: drop-shadow(0 0 10px rgba(34,211,238,.5)); }
.brand-name { font-weight: 800; letter-spacing: .02em; font-size: 1.02rem; }
.brand-name b { color: var(--cyan); }
.brand-sub { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .22em; color: var(--text-mut); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block;
  padding: 9px 14px;
  color: var(--text-dim);
  font-size: .94rem;
  font-weight: 500;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--cyan); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px; height: 42px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--teal));
  color: #02131a;
  box-shadow: var(--glow);
}
.btn-primary:hover { color: #02131a; box-shadow: 0 0 32px rgba(34,211,238,.5); }
.btn-danger {
  background: linear-gradient(135deg, var(--danger), #d63a55);
  color: #fff;
  box-shadow: 0 0 22px rgba(255,93,108,.35);
}
.btn-danger:hover { color: #fff; box-shadow: 0 0 30px rgba(255,93,108,.5); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(34,211,238,.06); }
.btn-sm { padding: 9px 16px; font-size: .88rem; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); margin: 18px 0 20px; }
.hero h1 .hl {
  background: linear-gradient(120deg, var(--cyan-bright), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: 1.12rem; color: var(--text-dim); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.status-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: .8rem;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(52,211,153,.08);
  border: 1px solid rgba(52,211,153,.3);
  color: var(--success);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Hero visual / shield card */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 380px;
  margin-inline: auto;
}
.hero-visual img { width: 78%; filter: drop-shadow(0 14px 50px rgba(34,211,238,.4)); animation: float 6s ease-in-out infinite; }
.hero-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(34,211,238,.25); animation: spin 40s linear infinite; }
.hero-ring.r2 { inset: 12%; border-color: rgba(47,111,237,.25); animation-duration: 28s; animation-direction: reverse; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: 0 14px 40px rgba(0,0,0,.4); }
.card-icon {
  width: 48px; height: 48px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(34,211,238,.1);
  border: 1px solid rgba(34,211,238,.25);
  color: var(--cyan);
  margin-bottom: 16px;
  font-size: 1.35rem;
}
.card h3 { font-size: 1.12rem; margin: 0 0 9px; }
.card p { color: var(--text-dim); margin: 0; font-size: .96rem; }
.card-tag { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-mut); }

/* Stat cards */
.stat { text-align: center; padding: 28px 18px; }
.stat .num { font-size: 2.4rem; font-weight: 800; font-family: var(--font-mono); color: var(--cyan); }
.stat .lbl { color: var(--text-dim); font-size: .9rem; margin-top: 4px; }

/* ---------- Feature row / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; color: var(--text-dim); }
.checklist li::before {
  content: "✓"; flex: none;
  width: 24px; height: 24px; border-radius: 6px;
  display: grid; place-items: center;
  background: rgba(34,211,238,.12); color: var(--cyan);
  font-weight: 700; font-size: .85rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% -40%, rgba(34,211,238,.2), transparent 70%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 12px; }
.cta-banner p { color: var(--text-dim); max-width: 54ch; margin: 0 auto 24px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--border-soft); }
.breadcrumb { font-family: var(--font-mono); font-size: .78rem; color: var(--text-mut); margin-bottom: 14px; }
.breadcrumb a { color: var(--text-dim); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 14px; }

/* ---------- Prose / RFC document ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin: 44px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); }
.prose h3 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--cyan-bright); }
.prose p, .prose li { color: var(--text-dim); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 7px 0; }
.prose code { font-family: var(--font-mono); background: var(--surface); border: 1px solid var(--border-soft); padding: 2px 7px; border-radius: 6px; font-size: .88em; color: var(--cyan-bright); }
.prose strong { color: var(--text); }

.toc {
  position: sticky; top: 96px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 20px;
}
.toc h4 { margin: 0 0 12px; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--text-mut); }
.toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; }
.toc li { counter-increment: toc; margin: 2px 0; }
.toc a { display: block; padding: 6px 8px; border-radius: 7px; color: var(--text-dim); font-size: .9rem; }
.toc a:hover { background: var(--bg-2); color: var(--cyan); }
.toc a::before { content: counter(toc) ". "; color: var(--text-mut); font-family: var(--font-mono); }

.doc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }

/* Data table (RFC) */
.kv {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden;
}
.kv th, .kv td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.kv th { width: 240px; color: var(--text); background: var(--surface); font-weight: 600; }
.kv td { color: var(--text-dim); font-family: var(--font-mono); font-size: .9rem; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: none; }

/* ---------- Severity / classification ---------- */
.sev-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.sev { padding: 20px; border-radius: 12px; border: 1px solid var(--border-soft); background: var(--surface); }
.sev .badge { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; display: inline-block; margin-bottom: 12px; }
.sev.crit .badge { background: rgba(255,93,108,.14); color: var(--danger); border: 1px solid rgba(255,93,108,.35); }
.sev.high .badge { background: rgba(255,176,32,.14); color: var(--warning); border: 1px solid rgba(255,176,32,.35); }
.sev.med  .badge { background: rgba(34,211,238,.14); color: var(--cyan); border: 1px solid rgba(34,211,238,.35); }
.sev.low  .badge { background: rgba(52,211,153,.14); color: var(--success); border: 1px solid rgba(52,211,153,.35); }
.sev h4 { margin: 0 0 6px; font-size: 1rem; }
.sev p { margin: 0; color: var(--text-dim); font-size: .88rem; }

/* ---------- Form ---------- */
.form-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 7px; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  font-family: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .82rem; color: var(--text-mut); margin-top: 4px; }

/* Contact tiles */
.contact-tile { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--surface); }
.contact-tile .ic { width: 44px; height: 44px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(34,211,238,.1); color: var(--cyan); font-size: 1.2rem; }
.contact-tile h4 { margin: 0 0 4px; font-size: .98rem; }
.contact-tile p { margin: 0; color: var(--text-dim); font-size: .92rem; font-family: var(--font-mono); }

/* ---------- Alert / callout ---------- */
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 20px; border-radius: 12px;
  background: rgba(255,176,32,.07); border: 1px solid rgba(255,176,32,.3);
}
.callout.info { background: rgba(34,211,238,.07); border-color: rgba(34,211,238,.3); }
.callout .ic { font-size: 1.3rem; flex: none; }
.callout p { margin: 0; color: var(--text-dim); font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); background: var(--bg-2); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { color: var(--text-mut); font-size: .9rem; max-width: 34ch; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-mut); margin: 0 0 14px; font-family: var(--font-mono); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--text-dim); font-size: .92rem; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border-soft);
  color: var(--text-mut); font-size: .85rem;
}
.footer-bottom .mono { font-family: var(--font-mono); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; }
.divider { height: 1px; background: var(--border-soft); border: 0; margin: 0; }
.badge-mono { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); border: 1px solid var(--border); padding: 4px 12px; border-radius: 999px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 280px; }
  .split, .doc-layout, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .sev-grid { grid-template-columns: repeat(2,1fr); }
  .toc { position: static; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 12px 24px; gap: 2px;
  }
  .nav-cta .btn { display: none; }
  .grid-2, .grid-3, .grid-4, .field-row { grid-template-columns: 1fr; }
  .sev-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta-banner { padding: 32px 22px; }
  .kv th { width: auto; }
}
