/* ===== HEROIKZRE — style terpadu (tema putih elegan) ===== */
:root {
  --bg: #ffffff;
  --bg-soft: #fbf7f4;
  --bg-dark: #0d1120;
  --text: #1a1d24;
  --text-soft: #5b616e;
  --accent: #e62429;        /* spidey red */
  --accent-2: #1c48d4;      /* spidey blue */
  --accent-soft: #fdecec;
  --accent-soft-2: #e9f0ff;
  --accent-hover: #c81e24;
  --border: #ece6e2;
  /* jaring laba-laba: pojok kiri-atas (mirip sudut web) */
  --web-tl: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300' fill='none' stroke='white' stroke-opacity='0.16'><g stroke-width='2'><path d='M0 0 H300 M0 0 L300 300 M0 0 L280 80 M0 0 L190 150 M0 0 L80 280'/></g><g stroke='white' stroke-opacity='0.1' stroke-width='1.4'><path d='M0 110 A110 110 0 0 1 110 0'/><path d='M0 180 A180 180 0 0 1 180 0'/><path d='M0 250 A250 250 0 0 1 250 0'/></g></svg>");
  --web-br: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300' fill='none' stroke='white' stroke-opacity='0.16'><g stroke-width='2'><path d='M300 300 H0 M300 300 L0 0 M300 300 L20 220 M300 300 L110 150 M300 300 L220 20'/></g><g stroke='white' stroke-opacity='0.1' stroke-width='1.4'><path d='M300 190 A110 110 0 0 0 190 300'/><path d='M300 120 A180 180 0 0 0 120 300'/><path d='M300 50 A250 250 0 0 0 50 300'/></g></svg>");
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Nunito', 'Trebuchet MS', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); }
img { max-width: 100%; }

/* Navbar (putih, garis tipis) */
header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav {
  max-width: 1100px; margin: 0 auto; padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
}
.logo {
  font-family: 'Titan One', cursive;
  font-size: 1.25rem; font-weight: 700;
  color: var(--text); text-decoration: none;
  letter-spacing: 0.5px;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; }
.nav-links a {
  color: var(--text-soft); text-decoration: none;
  font-weight: 500; font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); font-weight: 600; }

/* Hero (gelap spidey: merah-biru, teks putih) */
.hero {
  background: var(--bg-dark);
  color: #fff;
  padding: 6rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* jaring laba-laba di pojok */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--web-tl), var(--web-br);
  background-repeat: no-repeat;
  background-position: top left, bottom right;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 115%, rgba(230,36,41,0.28), transparent 55%),
    radial-gradient(ellipse at 85% 115%, rgba(28,72,212,0.30), transparent 55%);
  pointer-events: none;
}
.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 700; line-height: 1.15;
  color: #ffffff;
}
.hero .subtitle {
  margin-top: 1.25rem;
  color: rgba(255,255,255,0.65);
  font-size: 1.1rem;
  max-width: 640px; margin-left: auto; margin-right: auto;
}
/* teks "Heroikzre" highlight = merah spidey, miring dikit ala comic */
.hero .highlight {
  color: #ff4d52;
  font-style: italic;
  text-shadow: 2px 2px 0 rgba(28,72,212,0.65);
}

/* Layout */
main > .section, section.section {
  max-width: 1100px; margin: 0 auto;
  padding: 4rem 2rem;
}
.section-title {
  font-family: 'Titan One', cursive;
  font-size: 1.9rem; font-weight: 700;
  text-align: center; margin-bottom: 2.5rem;
  color: var(--text);
}
.section-title + .section-desc {
  text-align: center; color: var(--text-soft);
  max-width: 560px; margin: -1.5rem auto 2.5rem;
}

/* Card (putih, garis halus) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all 0.25s;
  text-decoration: none; color: inherit;
  display: block;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 5px 5px 0 rgba(230,36,41,0.22);
  transform: translate(-2px,-2px);
}
.card:nth-child(even):hover {
  border-color: var(--accent-2);
  box-shadow: 5px 5px 0 rgba(28,72,212,0.20);
}
.card-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
/* variasi: kartu genap = biru spidey */
.card:nth-child(even) .card-icon { background: var(--accent-soft-2); color: var(--accent-2); }
.card:nth-child(even) .card-icon svg { color: var(--accent-2) !important; }
.card:nth-child(even) .tag { color: var(--accent-2); background: var(--accent-soft-2); }
.card:nth-child(even) .url { color: var(--accent-2); }
.card h3 {
  font-family: 'Titan One', cursive;
  font-size: 1.1rem; margin-bottom: 0.4rem;
}
.card p { color: var(--text-soft); font-size: 0.95rem; }
.card .tag {
  display: inline-block;
  font-family: 'Bangers', cursive;
  font-size: 0.8rem; letter-spacing: 1px;
  color: var(--accent); background: var(--accent-soft);
  border-radius: 20px; padding: 2px 10px;
  margin-bottom: 0.6rem;
}
.card .url {
  font-family: monospace; font-size: 0.8rem;
  color: var(--accent); margin-top: 0.75rem; word-break: break-all;
  border-left: 3px dashed var(--accent-soft); padding-left: 0.6rem;
}
.status-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: #22c55e;
  margin-right: 6px; vertical-align: middle;
}

/* Tombol */
.cta-buttons {
  display: flex; gap: 0.75rem; justify-content: center;
  flex-wrap: wrap; margin-top: 2rem;
}
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.6rem; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; transition: all 0.25s;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.btn-light-ghost {
  background: var(--bg); color: var(--text);
  border-color: var(--border);
}
.btn-light-ghost:hover { border-color: var(--accent); }

/* Profil */
.profile-card {
  max-width: 560px; margin: 0 auto;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 16px; padding: 2.5rem;
}
.profile-img {
  width: 110px; height: 110px;
  border-radius: 50%; object-fit: cover;
  margin: 0 auto 1rem; display: block;
}

/* Kontak / form */
.contact-box {
  max-width: 560px; margin: 0 auto;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem; text-align: center;
  color: var(--text-soft); font-size: 0.85rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  nav { flex-direction: column; gap: 0.75rem; }
  .hero { padding: 4rem 1.25rem; }
  section.section { padding: 3rem 1.25rem; }
}
