/* =========================================================
   BOS01 - Pusat Publikasi Ilmiah, Riset & Inovasi Teknologi
   Main stylesheet
   ========================================================= */

:root {
  --bg: #070b17;
  --bg-soft: #0c1222;
  --bg-card: #10182b;
  --bg-card-2: #121d32;

  --text: #f4f7fb;
  --text-soft: #c5cede;
  --muted: #8995aa;

  --accent: #4cc9f0;
  --accent-2: #7c5cff;
  --accent-soft: rgba(76, 201, 240, .12);

  --border: rgba(255, 255, 255, .09);
  --border-light: rgba(255, 255, 255, .14);

  --success: #4ade80;

  --shadow:
    0 18px 55px rgba(0, 0, 0, .28);

  --radius: 18px;
  --radius-sm: 12px;

  --max-width: 1180px;

  --font:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}


/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(
      circle at 80% 5%,
      rgba(76, 201, 240, .08),
      transparent 28%
    ),
    radial-gradient(
      circle at 10% 35%,
      rgba(124, 92, 255, .07),
      transparent 30%
    ),
    var(--bg);

  color: var(--text);
  font-family: var(--font);

  line-height: 1.7;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


/* =========================================================
   BASIC ELEMENTS
   ========================================================= */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

p {
  margin-top: 0;
  margin-bottom: 1.1rem;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.2;
  letter-spacing: -.025em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4.35rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: .7rem;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.wrap {
  width: min(
    calc(100% - 40px),
    var(--max-width)
  );

  margin-inline: auto;
}

.narrow {
  max-width: 820px;
  margin-inline: auto;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.025),
      rgba(255,255,255,.01)
    );

  border-top: 1px solid rgba(255,255,255,.035);
  border-bottom: 1px solid rgba(255,255,255,.035);
}


/* =========================================================
   SKIP LINK
   ========================================================= */

.skip-link {
  position: fixed;

  left: 16px;
  top: -100px;

  z-index: 9999;

  padding: 10px 15px;

  border-radius: 8px;

  background: var(--accent);
  color: #031018;

  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background:
    rgba(7, 11, 23, .88);

  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 78px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.logo {
  display: inline-flex;
  align-items: center;

  flex-shrink: 0;
}

.logo img {
  width: auto;
  height: 46px;

  object-fit: contain;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav-list {
  list-style: none;

  display: flex;
  align-items: center;

  gap: 7px;

  padding: 0;
  margin: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;

  min-height: 42px;

  padding: 8px 13px;

  border-radius: 10px;

  color: var(--text-soft);

  font-size: .92rem;
  font-weight: 650;

  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease;
}

.nav-list a:hover {
  color: var(--text);
  background: rgba(255,255,255,.06);
}

.nav-list .nav-cta {
  border: 1px solid var(--border-light);
}

.nav-list .nav-cta-primary {
  background: var(--accent);
  color: #041018;

  border-color: transparent;

  font-weight: 800;
}

.nav-list .nav-cta-primary:hover {
  background: #76d9f6;
  color: #041018;

  transform: translateY(-1px);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;

  padding: 88px 0 82px;

  background:
    radial-gradient(
      circle at 85% 35%,
      rgba(76, 201, 240, .11),
      transparent 32%
    ),
    radial-gradient(
      circle at 60% 100%,
      rgba(124, 92, 255, .09),
      transparent 35%
    );
}

.hero::before {
  content: "";

  position: absolute;

  width: 420px;
  height: 420px;

  right: -180px;
  top: -180px;

  border-radius: 50%;

  border: 1px solid rgba(76,201,240,.08);

  pointer-events: none;
}

.hero-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(0, .95fr);

  align-items: center;

  gap: 65px;
}

.eyebrow {
  display: inline-flex;

  align-items: center;

  margin-bottom: 14px;

  color: var(--accent);

  font-size: .78rem;
  font-weight: 850;

  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";

  width: 7px;
  height: 7px;

  margin-right: 9px;

  border-radius: 50%;

  background: var(--accent);

  box-shadow:
    0 0 14px rgba(76,201,240,.8);
}

.hero h1 {
  max-width: 850px;
}

.hero .lead {
  max-width: 720px;

  color: var(--text-soft);

  font-size: 1.08rem;
  line-height: 1.85;
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

.hero-media {
  position: relative;

  margin: 0;

  overflow: hidden;

  border-radius: 24px;

  border: 1px solid var(--border-light);

  background: var(--bg-card);

  box-shadow: var(--shadow);
}

.hero-media::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      135deg,
      rgba(76,201,240,.09),
      transparent 45%,
      rgba(124,92,255,.08)
    );

  pointer-events: none;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;

  object-fit: cover;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.actions {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;

  margin: 25px 0;
}

.btn {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding: 11px 20px;

  border-radius: 11px;

  border: 1px solid transparent;

  font-size: .93rem;
  font-weight: 800;

  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #041018;
}

.btn-primary:hover {
  background: #79dcf7;
}

.btn-secondary {
  background: rgba(255,255,255,.035);

  border-color: var(--border-light);

  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(255,255,255,.075);
}


/* =========================================================
   TRUST ROW
   ========================================================= */

.trust-row {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  list-style: none;

  padding: 0;
  margin: 0;
}

.chip {
  display: inline-flex;
  align-items: center;

  padding: 7px 11px;

  border-radius: 999px;

  background: rgba(255,255,255,.035);

  border: 1px solid var(--border);

  color: var(--muted);

  font-size: .78rem;
  font-weight: 650;
}


/* =========================================================
   SECTION HEAD
   ========================================================= */

.section-head {
  max-width: 800px;

  margin: 0 auto 38px;

  text-align: center;
}

.section-head p {
  color: var(--text-soft);

  max-width: 720px;

  margin-inline: auto;
}


/* =========================================================
   CARDS
   ========================================================= */

.grid-2 {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;
}

.card {
  position: relative;

  padding: 28px;

  min-height: 280px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.018)
    );

  border: 1px solid var(--border);

  border-radius: var(--radius);

  box-shadow:
    0 12px 35px rgba(0,0,0,.15);

  transition:
    transform .25s ease,
    border-color .25s ease,
    background .25s ease;
}

.card:hover {
  transform: translateY(-5px);

  border-color:
    rgba(76,201,240,.28);

  background:
    linear-gradient(
      145deg,
      rgba(76,201,240,.07),
      rgba(255,255,255,.018)
    );
}

.card-icon {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;

  margin-bottom: 20px;

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      rgba(76,201,240,.15),
      rgba(124,92,255,.14)
    );

  border: 1px solid
    rgba(76,201,240,.18);

  color: var(--accent);

  font-size: .72rem;
  font-weight: 900;

  letter-spacing: .05em;
}

.card p {
  color: var(--text-soft);

  font-size: .94rem;

  line-height: 1.75;
}

.card-link {
  display: inline-flex;

  margin-top: 7px;

  color: var(--accent);

  font-size: .9rem;
  font-weight: 800;
}

.card-link:hover {
  text-decoration: underline;
}


/* =========================================================
   ARTICLE LAYOUT
   ========================================================= */

.article-layout {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    270px;

  gap: 55px;

  align-items: start;
}

.prose {
  min-width: 0;

  color: var(--text-soft);

  font-size: 1rem;
}

.prose h2 {
  color: var(--text);

  margin-top: 42px;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose p {
  max-width: 820px;

  line-height: 1.9;
}

.prose strong {
  color: var(--text);
}

.prose a {
  color: var(--accent);
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: .5rem;
}


/* =========================================================
   CALLOUT
   ========================================================= */

.callout {
  margin: 30px 0;

  padding: 22px 24px;

  border-left: 4px solid var(--accent);

  border-radius: 0 14px 14px 0;

  background:
    linear-gradient(
      90deg,
      rgba(76,201,240,.09),
      rgba(76,201,240,.025)
    );

  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.callout strong {
  display: block;

  margin-bottom: 5px;

  color: var(--accent);
}

.callout p {
  margin-bottom: 0;
}


/* =========================================================
   TABLE OF CONTENTS
   ========================================================= */

.toc {
  position: sticky;

  top: 105px;

  padding: 22px;

  background:
    rgba(255,255,255,.025);

  border: 1px solid var(--border);

  border-radius: 15px;
}

.toc strong {
  display: block;

  margin-bottom: 12px;

  color: var(--text);

  font-size: .95rem;
}

.toc ol {
  margin: 0;

  padding-left: 20px;
}

.toc li {
  margin-bottom: 8px;

  color: var(--muted);

  font-size: .86rem;
}

.toc a {
  color: var(--text-soft);

  transition: color .2s ease;
}

.toc a:hover {
  color: var(--accent);
}


/* =========================================================
   FAQ
   ========================================================= */

.faq .narrow {
  max-width: 850px;
}

.faq .eyebrow {
  display: flex;
  justify-content: center;
}

.faq h2 {
  text-align: center;

  margin-bottom: 35px;
}

details {
  border: 1px solid var(--border);

  border-radius: 13px;

  margin-bottom: 10px;

  background:
    rgba(255,255,255,.025);

  overflow: hidden;
}

summary {
  position: relative;

  cursor: pointer;

  padding: 18px 48px 18px 20px;

  color: var(--text);

  font-weight: 750;

  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";

  position: absolute;

  right: 19px;
  top: 50%;

  transform: translateY(-50%);

  color: var(--accent);

  font-size: 1.3rem;
  font-weight: 400;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin: 0;

  padding: 0 20px 20px;

  color: var(--text-soft);

  line-height: 1.75;
}


/* =========================================================
   CTA
   ========================================================= */

.cta-box {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 35px;

  padding: 42px;

  border-radius: 22px;

  background:
    radial-gradient(
      circle at 90% 20%,
      rgba(76,201,240,.12),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      rgba(255,255,255,.045),
      rgba(255,255,255,.018)
    );

  border: 1px solid var(--border-light);

  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin-bottom: 10px;
}

.cta-box .muted {
  max-width: 700px;

  margin-bottom: 0;

  color: var(--muted);
}

.cta-box .actions {
  margin: 0;

  flex-shrink: 0;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 55px 0 25px;

  border-top: 1px solid var(--border);

  background:
    rgba(0,0,0,.16);
}

.footer-grid {
  display: grid;

  grid-template-columns:
    1fr
    auto;

  gap: 40px;

  align-items: start;
}

.footer-logo {
  width: auto;
  height: 45px;

  object-fit: contain;

  margin-bottom: 13px;
}

.small {
  max-width: 550px;

  margin-bottom: 0;

  color: var(--muted);

  font-size: .86rem;
}

.footer-links {
  display: flex;

  flex-wrap: wrap;

  justify-content: flex-end;

  gap: 10px 18px;
}

.footer-links a {
  color: var(--text-soft);

  font-size: .86rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.disclaimer {
  margin-top: 35px;
  padding-top: 20px;

  border-top: 1px solid var(--border);

  color: var(--muted);

  font-size: .76rem;

  text-align: center;
}


/* =========================================================
   SELECTION
   ========================================================= */

::selection {
  background: rgba(76,201,240,.3);
  color: var(--text);
}


/* =========================================================
   FOCUS
   ========================================================= */

:focus-visible {
  outline: 2px solid var(--accent);

  outline-offset: 3px;
}


/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 1000px) {

  .header-inner {
    gap: 15px;
  }

  .nav-list {
    gap: 2px;
  }

  .nav-list a {
    padding-inline: 9px;

    font-size: .82rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;

    gap: 35px;
  }

  .hero-media {
    max-width: 800px;

    margin-inline: auto;
  }

  .grid-2 {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .grid-2 .card:last-child {
    grid-column: 1 / -1;

    max-width: 50%;

    margin-inline: auto;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;

    order: -1;
  }

  .toc ol {
    columns: 2;
  }

  .cta-box {
    align-items: flex-start;

    flex-direction: column;
  }

}


/* =========================================================
   RESPONSIVE - MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .wrap {
    width: min(
      calc(100% - 28px),
      var(--max-width)
    );
  }

  .section {
    padding: 58px 0;
  }


  /* Header */

  .site-header {
    position: relative;
  }

  .header-inner {
    min-height: auto;

    padding: 15px 0;

    flex-direction: column;

    align-items: stretch;
  }

  .logo {
    justify-content: center;
  }

  .logo img {
    height: 42px;
  }

  .nav-list {
    justify-content: center;

    flex-wrap: wrap;

    gap: 5px;
  }

  .nav-list a {
    min-height: 38px;

    padding: 7px 9px;

    font-size: .76rem;
  }


  /* Hero */

  .hero {
    padding: 58px 0 55px;
  }

  h1 {
    font-size: clamp(
      2rem,
      10vw,
      3rem
    );
  }

  .hero .lead {
    font-size: .98rem;

    line-height: 1.75;
  }

  .actions {
    flex-direction: column;

    align-items: stretch;
  }

  .actions .btn {
    width: 100%;
  }

  .trust-row {
    justify-content: center;
  }

  .chip {
    font-size: .7rem;
  }


  /* Cards */

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .grid-2 .card:last-child {
    grid-column: auto;

    max-width: none;
  }

  .card {
    min-height: auto;

    padding: 23px;
  }


  /* Article */

  .article-layout {
    gap: 30px;
  }

  .prose {
    font-size: .95rem;
  }

  .prose p {
    line-height: 1.8;
  }

  .prose h2 {
    margin-top: 35px;

    font-size: 1.55rem;
  }


  /* TOC */

  .toc {
    padding: 18px;
  }

  .toc ol {
    columns: 1;
  }


  /* CTA */

  .cta-box {
    padding: 28px 22px;

    border-radius: 17px;
  }


  /* Footer */

  .footer-grid {
    grid-template-columns: 1fr;

    gap: 25px;
  }

  .footer-links {
    justify-content: flex-start;

    flex-direction: column;

    gap: 10px;
  }

  .disclaimer {
    text-align: left;
  }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

}