/* ===== Tokens ===== */
:root{
  --bg: #0a0e17;
  --bg-alt: #0d1420;
  --surface: #121a29;
  --surface-2: #17222f;
  --line: #223047;
  --green: #ff4b4b;
  --green-dim: #b22222;
  --blue: #ff9b9b;
  --text: #eaf1fb;
  --text-muted: #8ba0b8;

  --font-display: "Rajdhani", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  --container: 1080px;
}

*{ box-sizing: border-box; margin:0; padding:0; }

html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }

h1,h2,h3{ font-family: var(--font-display); letter-spacing: 0.02em; }

:focus-visible{
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.tag{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

/* ===== Scanline ambient ===== */
.scanline{
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 50;
  background: linear-gradient(to bottom, transparent 0%, rgba(255,75,75,0.03) 50%, transparent 100%);
  background-size: 100% 6px;
  mix-blend-mode: overlay;
  opacity: 0.5;
}

/* ===== Nav ===== */
.nav{
  position: sticky; top:0; z-index: 40;
  display:flex; align-items:center; justify-content:space-between;
  padding: 1.1rem 6%;
  background: rgba(10,14,23,0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__mark{
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.3rem;
  color: var(--text);
}
.nav__mark .dot{ color: var(--green); }
.nav__links{
  display:flex; align-items:center; gap: 2rem;
  font-family: var(--font-mono); font-size: 0.85rem;
}
.nav__links a{ color: var(--text-muted); transition: color .2s; }
.nav__links a:hover{ color: var(--green); }
.nav__cta{
  border: 1px solid var(--green);
  color: var(--green) !important;
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
}
.nav__toggle{
  display:none; flex-direction: column; gap: 5px;
  background:none; border:none; cursor:pointer; padding: 0.4rem;
}
.nav__toggle span{ width: 22px; height: 2px; background: var(--text); display:block; }

/* ===== Hero ===== */
.hero{
  position: relative;
  min-height: 92vh;
  display:flex; flex-direction: column; justify-content: center;
  padding: 4rem 6% 2rem;
  overflow: hidden;
}
.hero__bg{ position:absolute; inset:0; z-index:0; }
.hero__circuit{
  position:absolute; top:-10%; right:-15%;
  width: 70%; height: auto; opacity: 0.35;
}
.hero__circuit path{
  fill:none; stroke: var(--blue); stroke-width: 1.5; opacity: .5;
}
.hero__circuit circle{ fill: var(--green); opacity: .8; }
.hero__pitch-arc{
  position:absolute; left: -20%; bottom: -30%;
  width: 60vw; height: 60vw;
  border: 1px solid rgba(255,75,75,0.15);
  border-radius: 50%;
}
.hero__pitch-arc::before{
  content:""; position:absolute; inset: 12%;
  border: 1px solid rgba(255,155,155,0.12);
  border-radius: 50%;
}

.hero__inner{
  position: relative; z-index: 1;
  display:grid; grid-template-columns: 1.2fr 1fr;
  gap: 3rem; align-items:center;
  max-width: var(--container); margin: 0 auto; width:100%;
}

.eyebrow{
  font-family: var(--font-mono); color: var(--blue);
  font-size: 0.85rem; letter-spacing: 0.08em; margin-bottom: 1rem;
}
.hero__name{
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700; line-height: 1.02;
  color: var(--text);
}
.hero__name span{ color: var(--green); }
.hero__motto{
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 1.2rem 0 1.5rem;
  border-left: 2px solid var(--green);
  padding-left: 0.9rem;
}

.badge-row{ display:flex; flex-wrap:wrap; gap: 0.6rem; margin-bottom: 2rem; }
.badge{
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em;
  padding: 0.35rem 0.7rem; border-radius: 2px; border: 1px solid var(--line);
}
.badge--green{ color: var(--green); border-color: var(--green-dim); }
.badge--blue{ color: var(--blue); border-color: rgba(255,155,155,0.4); }
.badge--white{ color: var(--text); border-color: var(--line); }

.hero__ctas{ display:flex; gap: 1rem; flex-wrap: wrap; }
.btn{
  font-family: var(--font-mono); font-size: 0.85rem;
  padding: 0.85rem 1.4rem; border-radius: 3px;
  display:inline-flex; align-items:center; gap: 0.4rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn--primary{
  background: var(--green); color: #05130b; font-weight: 600;
}
.btn--primary:hover{ transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,75,75,0.25); }
.btn--ghost{ border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover{ border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.hero__frame{ position: relative; display:flex; justify-content:center; }
.hex-frame{
  width: min(360px, 80vw); aspect-ratio: 1/1.05;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  position: relative;
  background: var(--surface);
  padding: 4px;
}
.hex-frame::before{
  content:"";
  position:absolute; inset:0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  padding: 3px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-glow 6s linear infinite;
}
@keyframes spin-glow{
  0%{ filter: hue-rotate(0deg); }
  100%{ filter: hue-rotate(20deg); }
}
.hex-frame img{
  width:100%; height:100%; object-fit: cover;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.chip{
  position:absolute;
  font-family: var(--font-mono); font-size: 0.75rem;
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 0.5rem 0.8rem; border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.chip--1{ top: 6%; left: -6%; color: var(--green); }
.chip--2{ bottom: 8%; right: -8%; color: var(--blue); }

.scroll-cue{
  position: relative; z-index: 1;
  margin: 3rem auto 0; text-align:center;
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-muted); letter-spacing: 0.15em;
}
.scroll-cue span{
  display:block; width: 1px; height: 24px; background: var(--text-muted);
  margin: 0 auto 0.5rem;
  animation: pulse-down 1.6s ease-in-out infinite;
}
@keyframes pulse-down{
  0%,100%{ opacity: 0.2; transform: translateY(0); }
  50%{ opacity: 1; transform: translateY(6px); }
}

/* ===== Sections ===== */
.section{
  padding: 6rem 6%;
  max-width: var(--container); margin: 0 auto;
}
.section--alt{ max-width: none; background: var(--bg-alt); }
.section--alt > *{ max-width: var(--container); margin-left:auto; margin-right:auto; }
.section--alt .cards{ margin-left:auto; margin-right:auto; }

h2{ font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.5rem; }

/* --- Tentang --- */
.split{ display:grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items:start; }
.split__text p{ color: var(--text-muted); margin-bottom: 1rem; max-width: 52ch; }
.stat-sheet{
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.5rem; font-family: var(--font-mono); font-size: 0.85rem;
}
.stat-sheet__row{
  display:flex; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 0; border-bottom: 1px dashed var(--line);
  color: var(--text-muted);
}
.stat-sheet__row:last-child{ border-bottom:none; }
.stat-sheet__row b{ color: var(--text); font-weight: 500; }
.status{ color: var(--green) !important; }

/* --- Skillset --- */
.cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card{
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.8rem; position: relative;
  transition: border-color .2s, transform .2s;
}
.card:hover{ border-color: var(--green-dim); transform: translateY(-4px); }
.card__icon{
  display:inline-flex; align-items:center; justify-content:center;
  width: 2.6rem; height: 2.6rem; border-radius: 4px;
  background: var(--surface-2); color: var(--green);
  font-family: var(--font-mono); margin-bottom: 1rem; font-size: 1.1rem;
}
.card h3{ margin-bottom: 0.6rem; font-size: 1.2rem; }
.card p{ color: var(--text-muted); font-size: 0.92rem; }

/* --- Timeline --- */
.timeline{ position: relative; margin-top: 2rem; }
.timeline::before{
  content:""; position:absolute; left: 7px; top: 6px; bottom: 6px;
  width: 1px; background: var(--line);
}
.tl-item{ position: relative; padding-left: 2.5rem; margin-bottom: 2.5rem; }
.tl-item:last-child{ margin-bottom:0; }
.tl-item__marker{
  position:absolute; left:0; top: 4px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--green);
}
.tl-item__tag{
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--blue);
  letter-spacing: 0.08em;
}
.tl-item__body h3{ margin: 0.4rem 0 0.5rem; font-size: 1.25rem; }
.tl-item__body p{ color: var(--text-muted); max-width: 60ch; margin-bottom: 1rem; }
.tl-item__img{
  width: 220px; border-radius: 6px; border: 1px solid var(--line);
}
.tl-item__img--logo{ background: #0d1420; padding: 0.6rem; width: 200px; }

/* --- Roadmap --- */
.roadmap-card{
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 2.5rem; max-width: var(--container); margin: 0 auto;
}
.roadmap-card p{ color: var(--text-muted); max-width: 65ch; margin-bottom: 2.5rem; }
.roadmap-track{ display:flex; align-items:center; flex-wrap: wrap; gap: 0.5rem; }
.roadmap-step{
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted);
  display:flex; align-items:center; gap: 0.5rem;
  padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: 4px;
}
.roadmap-step span{ color: var(--blue); }
.roadmap-step--active{ color: var(--green); border-color: var(--green-dim); }
.roadmap-step--active span{ color: var(--green); }
.roadmap-line{ flex:1; min-width: 20px; height: 1px; background: var(--line); }

/* --- Kontak --- */
.kontak__lead{ color: var(--text-muted); max-width: 55ch; margin-bottom: 2rem; }
.kontak__buttons{ display:flex; gap: 1rem; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer{
  text-align:center; padding: 2.5rem 6% 3rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted);
}
.footer__sub{ margin-top: 0.4rem; opacity: 0.6; font-size: 0.72rem; }

/* ===== Reveal on scroll ===== */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 860px){
  .nav__links{
    position: fixed; top: 64px; right: 0; left: 0;
    flex-direction: column; align-items: flex-start; gap: 1.2rem;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
    padding: 1.5rem 6%;
    transform: translateY(-120%); transition: transform .25s ease;
  }
  .nav__links.is-open{ transform: translateY(0); }
  .nav__toggle{ display:flex; }

  .hero__inner{ grid-template-columns: 1fr; }
  .hero__frame{ order: -1; margin-bottom: 1rem; }
  .chip{ display:none; }

  .split{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }

  .tl-item__img{ width: 100%; max-width: 280px; }
}

@media (max-width: 480px){
  .section{ padding: 4rem 6%; }
  .hero{ padding-top: 3rem; }
}
