/* ============================================================
   Ciwa-Core IT — Lembar gaya utama
   Palet mengikuti blueprint: navy gelap, cyan, indigo
   ============================================================ */

:root {
  --bg:            #060b16;
  --bg-soft:       #0b1424;
  --card:          #0e1a2d;
  --card-hover:    #122036;
  --border:        #1b2c45;
  --border-soft:   #16253a;
  --text:          #e6eef9;
  --text-dim:      #93a7c0;
  --text-faint:    #64778f;
  --cyan:          #22d3ee;
  --cyan-deep:     #0891b2;
  --indigo:        #6366f1;
  --green:         #22d3a6;
  --amber:         #f5b544;
  --radius:        14px;
  --radius-sm:     9px;
  --maxw:          1180px;
  --font:          "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:          ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --shadow:        0 1px 2px rgba(0,0,0,.4), 0 8px 28px rgba(0,0,0,.28);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 480px at 15% -10%, rgba(34,211,238,.10), transparent 70%),
    radial-gradient(760px 420px at 88% 4%, rgba(99,102,241,.10), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

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

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: #04121a;
  padding: 10px 18px;
  font-weight: 700;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,11,22,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -.01em;
  color: var(--text);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span b { color: var(--cyan); font-weight: 800; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-dim);
  font-size: .9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .16s, background .16s;
}
.nav a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--cyan); background: rgba(34,211,238,.08); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------------- Hero ---------------- */

.hero {
  padding: 78px 0 62px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34,211,238,.08);
  border: 1px solid rgba(34,211,238,.22);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  line-height: 1.13;
  letter-spacing: -.028em;
  font-weight: 800;
  margin: 0 0 20px;
}
h1 .grad {
  background: linear-gradient(100deg, var(--cyan) 8%, var(--indigo) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 1.06rem;
  color: var(--text-dim);
  max-width: 54ch;
  margin: 0 0 30px;
}

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 650;
  font-size: .94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .14s, box-shadow .14s, background .14s, border-color .14s;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(100deg, var(--cyan), var(--cyan-deep));
  color: #04121a;
  box-shadow: 0 6px 22px rgba(34,211,238,.24);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(34,211,238,.34); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--card); border-color: var(--cyan); }

/* ---------------- ROI Card ---------------- */

.roi-card {
  background: linear-gradient(165deg, var(--card), var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.roi-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.roi-head h2 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-faint);
  margin: 0;
  font-weight: 700;
}
.roi-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--green);
  font-family: var(--mono);
  letter-spacing: -.02em;
}
.roi-sub { font-size: .78rem; color: var(--text-faint); margin: 0 0 18px; }

.roi-chart { width: 100%; height: 130px; margin-bottom: 18px; }

.roi-form { display: grid; gap: 12px; }
.roi-field { display: grid; gap: 5px; }
.roi-field label { font-size: .78rem; color: var(--text-dim); font-weight: 600; }
.roi-field input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: .9rem;
  width: 100%;
}
.roi-field input:focus { border-color: var(--cyan); outline: none; }

.roi-out {
  margin-top: 4px;
  padding: 12px 14px;
  background: rgba(34,211,238,.06);
  border: 1px solid rgba(34,211,238,.2);
  border-radius: var(--radius-sm);
  font-size: .84rem;
  color: var(--text-dim);
}
.roi-out strong { color: var(--green); font-family: var(--mono); font-size: 1.05rem; }

/* ---------------- Sections ---------------- */

section { padding: 72px 0; position: relative; }

.section-head { max-width: 660px; margin-bottom: 42px; }
.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  letter-spacing: -.022em;
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 800;
}
.section-head p { color: var(--text-dim); margin: 0; font-size: 1rem; }

/* ---------------- Bento Grid ---------------- */

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

.bento-item {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .18s, background .18s, transform .18s;
}
.bento-item:hover {
  border-color: rgba(34,211,238,.4);
  background: var(--card-hover);
  transform: translateY(-2px);
}
.bento-item.wide { grid-column: span 2; }

.bento-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(34,211,238,.1);
  border: 1px solid rgba(34,211,238,.2);
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  font-size: 1.15rem;
}
.bento-item h3 {
  font-size: 1.02rem;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.bento-item p { margin: 0; font-size: .88rem; color: var(--text-dim); line-height: 1.65; }

.bento-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px;
}
.tag {
  font-size: .7rem;
  font-family: var(--mono);
  color: var(--text-faint);
  background: var(--bg);
  border: 1px solid var(--border-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

/* ---------------- Demo AI ---------------- */

.demo-shell {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.demo-panel { display: flex; flex-direction: column; gap: 10px; }
.demo-panel h3 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-faint);
  margin: 0;
  font-weight: 700;
}

.demo-panel textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 14px;
  font-family: inherit;
  font-size: .9rem;
  line-height: 1.6;
  resize: vertical;
  min-height: 150px;
  width: 100%;
}
.demo-panel textarea:focus { border-color: var(--cyan); outline: none; }

.demo-out {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  min-height: 150px;
  font-size: .88rem;
  color: var(--text-dim);
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.demo-out .placeholder { color: var(--text-faint); font-style: italic; }

.demo-note {
  font-size: .76rem;
  color: var(--text-faint);
  margin-top: 12px;
  padding: 10px 13px;
  background: rgba(245,181,68,.06);
  border-left: 2px solid var(--amber);
  border-radius: 0 6px 6px 0;
}

/* ---------------- Artikel / Kartu ---------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color .18s, transform .18s;
}
.card:hover { border-color: rgba(34,211,238,.4); transform: translateY(-2px); }
.card h3 { font-size: 1.02rem; margin: 0 0 9px; line-height: 1.4; font-weight: 700; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--cyan); text-decoration: none; }
.card p { margin: 0 0 14px; font-size: .87rem; color: var(--text-dim); flex: 1; }

.card-meta {
  font-size: .74rem;
  color: var(--text-faint);
  font-family: var(--mono);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.card-meta .dot { color: var(--border); }

/* ---------------- Artikel penuh ---------------- */

.article {
  max-width: 760px;
  margin-inline: auto;
  padding: 56px 0 80px;
}

.breadcrumb {
  font-size: .8rem;
  color: var(--text-faint);
  margin-bottom: 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb span { color: var(--border); }

.article h1 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--text-faint);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 32px;
}

.article-body { font-size: 1.02rem; color: #d3e0ef; }
.article-body h2 {
  font-size: 1.42rem;
  margin: 40px 0 14px;
  letter-spacing: -.015em;
  font-weight: 750;
}
.article-body h3 {
  font-size: 1.13rem;
  margin: 28px 0 10px;
  font-weight: 700;
}
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 24px; }
.article-body li { margin-bottom: 8px; }
.article-body code {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  padding: 2px 6px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: .87em;
  color: var(--cyan);
}
.article-body pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  margin: 0 0 20px;
  font-size: .85rem;
  line-height: 1.6;
}
.article-body pre code { background: none; border: none; padding: 0; color: #cfe3f5; }
.article-body blockquote {
  margin: 0 0 20px;
  padding: 14px 20px;
  border-left: 3px solid var(--cyan);
  background: rgba(34,211,238,.05);
  border-radius: 0 8px 8px 0;
  color: var(--text-dim);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px;
  font-size: .9rem;
}
.article-body th, .article-body td {
  border: 1px solid var(--border-soft);
  padding: 10px 13px;
  text-align: left;
}
.article-body th { background: var(--bg-soft); font-weight: 700; }

.callout {
  background: rgba(99,102,241,.07);
  border: 1px solid rgba(99,102,241,.24);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 0 0 20px;
  font-size: .92rem;
  color: var(--text-dim);
}
.callout strong { color: var(--text); }

/* ---------------- Gambar artikel ---------------- */

.artikel-gambar {
  margin: 0 0 30px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.artikel-gambar img {
  width: 100%;
  height: auto;
  display: block;
}
.artikel-gambar figcaption {
  padding: 12px 18px;
  font-size: .82rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
  line-height: 1.55;
}

/* ---------------- Halaman statis ---------------- */

.page {
  max-width: 800px;
  margin-inline: auto;
  padding: 56px 0 80px;
}
.page h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 14px; }
.page h2 { font-size: 1.3rem; margin: 34px 0 12px; font-weight: 750; }
.page h3 { font-size: 1.06rem; margin: 24px 0 9px; font-weight: 700; }
.page p, .page li { color: #cfdcec; }
.page ul, .page ol { padding-left: 24px; margin-bottom: 18px; }
.page li { margin-bottom: 8px; }
.page a { text-decoration: underline; }

/* ---------------- CTA band ---------------- */

.cta-band {
  background: linear-gradient(120deg, rgba(34,211,238,.09), rgba(99,102,241,.09));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 12px; font-weight: 800; letter-spacing: -.02em; }
.cta-band p { color: var(--text-dim); margin: 0 0 26px; }

/* ---------------- Footer ---------------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 52px 0 30px;
  margin-top: 40px;
  background: var(--bg-soft);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);
  gap: 36px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: .87rem;
  margin: 14px 0 0;
  max-width: 34ch;
  line-height: 1.65;
}

.footer-col h4 {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-faint);
  margin: 0 0 14px;
  font-weight: 700;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--text-dim); font-size: .87rem; }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--text-faint);
}

/* ---------------- Responsif ---------------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .bento { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bento-item.wide { grid-column: span 2; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; }
  .demo-shell { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 66px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 12px 22px 18px;
    gap: 2px;
  }
  .nav.open a { padding: 11px 12px; }
  .nav-toggle { display: block; }
  .hero { padding: 48px 0 40px; }
  section { padding: 52px 0; }
  .bento, .grid-3 { grid-template-columns: minmax(0,1fr); }
  .bento-item.wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: minmax(0,1fr); }
  .cta-band { padding: 30px 22px; }
  .article, .page { padding: 36px 0 56px; }
}

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