/* ==========================================
   EVOLUSI WEB — Style
   Web1 (amber) | Web2 (biru) | Web3 (ungu)
   ========================================== */

:root {
  --bg: #0a0a12;
  --bg-alt: #0f0f1c;
  --surface: #14142a;
  --surface-2: #1a1a35;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e8f0;
  --text-muted: #9a9ab0;

  --web1: #f5a623;
  --web1-soft: rgba(245, 166, 35, 0.15);
  --web2: #3b82f6;
  --web2-soft: rgba(59, 130, 246, 0.15);
  --web3: #a855f7;
  --web3-soft: rgba(168, 85, 247, 0.15);

  --gradient: linear-gradient(135deg, #f5a623 0%, #3b82f6 50%, #a855f7 100%);
  --radius: 16px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; }

.mono { font-family: 'JetBrains Mono', monospace; }

.container { max-width: 1150px; margin: 0 auto; padding: 0 24px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(10, 10, 18, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-container {
  max-width: 1150px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--text); text-decoration: none;
}
.logo-icon { color: var(--web3); }
.logo-accent { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
  transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  width: 24px; height: 2px; background: var(--text);
  border-radius: 2px; transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  padding: 120px 24px 80px;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.35;
  animation: float 12s ease-in-out infinite;
}
.orb-1 { width: 420px; height: 420px; background: var(--web1); top: -120px; left: -100px; }
.orb-2 { width: 380px; height: 380px; background: var(--web2); top: 30%; right: -120px; animation-delay: -4s; }
.orb-3 { width: 400px; height: 400px; background: var(--web3); bottom: -140px; left: 35%; animation-delay: -8s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.08); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.hero-content { position: relative; z-index: 1; max-width: 860px; }
.hero-tag {
  color: var(--web3); font-size: 0.85rem;
  letter-spacing: 2px; margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700; line-height: 1.12;
  margin-bottom: 24px; letter-spacing: -1px;
}
.grad-web1 { color: var(--web1); }
.grad-web2 { color: var(--web2); }
.grad-web3 {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--text-muted);
  max-width: 640px; margin: 0 auto 36px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 64px; }

.btn {
  display: inline-block; padding: 14px 30px;
  border-radius: 12px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer;
  transition: var(--transition); border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  color: #fff;
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(168, 85, 247, 0.5); }
.btn-outline {
  border: 1px solid var(--border); color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.09); transform: translateY(-3px); }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

.hero-stats {
  display: flex; gap: 56px; justify-content: center; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-number, .stat-plus {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem; font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  display: inline;
}
.stat-plus { font-size: 1.6rem; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-tag { color: var(--web3); font-size: 0.82rem; letter-spacing: 2px; margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin-bottom: 16px; letter-spacing: -0.5px; }
.section-desc { color: var(--text-muted); font-size: 1.02rem; }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ===== ERA CARDS ===== */
.era-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.era-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: var(--transition);
  overflow: hidden;
}
.era-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.16); }
.era-card-glow {
  position: absolute; top: -60px; right: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  filter: blur(60px); opacity: 0; transition: opacity 0.4s;
}
.era-card:hover .era-card-glow { opacity: 0.5; }
.web1-glow { background: var(--web1); }
.web2-glow { background: var(--web2); }
.web3-glow { background: var(--web3); }

.era-card.featured { border-color: rgba(59, 130, 246, 0.35); }

.era-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  padding: 5px 12px; border-radius: 100px; margin-bottom: 20px;
}
.era-badge.web1 { background: var(--web1-soft); color: var(--web1); }
.era-badge.web2 { background: var(--web2-soft); color: var(--web2); }
.era-badge.web3 { background: var(--web3-soft); color: var(--web3); }

.era-icon { font-size: 2.6rem; margin-bottom: 16px; }
.era-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.era-slogan { font-size: 0.85rem; margin-bottom: 16px; }
.era-card[data-era="web1"] .era-slogan { color: var(--web1); }
.era-card[data-era="web2"] .era-slogan { color: var(--web2); }
.era-card[data-era="web3"] .era-slogan { color: var(--web3); }
.era-desc { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 20px; }
.era-desc strong { color: var(--text); }

.era-features { list-style: none; }
.era-features li {
  font-size: 0.88rem; color: var(--text-muted);
  padding: 7px 0 7px 24px; position: relative;
  border-bottom: 1px dashed var(--border);
}
.era-features li:last-child { border-bottom: none; }
.era-features li::before {
  content: '▸'; position: absolute; left: 4px;
}
.era-card[data-era="web1"] .era-features li::before { color: var(--web1); }
.era-card[data-era="web2"] .era-features li::before { color: var(--web2); }
.era-card[data-era="web3"] .era-features li::before { color: var(--web3); }

/* ===== COMPARISON TABLE ===== */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.comparison-table {
  width: 100%; border-collapse: collapse;
  min-width: 720px;
}
.comparison-table th, .comparison-table td {
  padding: 16px 20px; text-align: left;
  font-size: 0.92rem;
}
.comparison-table thead th {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  background: var(--surface-2);
  border-bottom: 2px solid var(--border);
}
.th-web1 { color: var(--web1); }
.th-web2 { color: var(--web2); }
.th-web3 { color: var(--web3); }
.comparison-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.2s; }
.comparison-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.comparison-table tbody tr:last-child { border-bottom: none; }
.comparison-table td { color: var(--text-muted); }
.comparison-table td.aspect {
  color: var(--text); font-weight: 600;
  font-family: 'Space Grotesk', sans-serif;
}
.comparison-table td.highlight {
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.06);
}

/* ===== TECH GRID ===== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.tech-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: var(--transition);
}
.tech-card:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.12);
}
.tech-icon { font-size: 2.2rem; margin-bottom: 16px; }
.tech-card h4 { font-size: 1.15rem; margin-bottom: 10px; }
.tech-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== TIMELINE ===== */
.timeline {
  position: relative; max-width: 900px; margin: 0 auto;
}
.timeline::before {
  content: ''; position: absolute;
  left: 50%; transform: translateX(-50%);
  top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--web1), var(--web2), var(--web3));
}
.timeline-item {
  position: relative; width: 50%;
  padding: 16px 48px;
  margin-bottom: 24px;
}
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; text-align: left; }
.timeline-item::before {
  content: ''; position: absolute; top: 32px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--web2);
  z-index: 1;
}
.timeline-item.left::before { right: -8px; }
.timeline-item.right::before { left: -8px; }
.timeline-item:nth-child(1)::before, .timeline-item:nth-child(2)::before { border-color: var(--web1); }
.timeline-item:nth-child(3)::before, .timeline-item:nth-child(4)::before { border-color: var(--web2); }
.timeline-item:nth-child(5)::before, .timeline-item:nth-child(6)::before, .timeline-item:nth-child(7)::before { border-color: var(--web3); }

.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--web2);
  border-radius: 12px;
  padding: 24px;
  transition: var(--transition);
  display: inline-block;
}
.timeline-item.left .timeline-content { border-left: 1px solid var(--border); border-right: 4px solid var(--web2); }
.timeline-item.left .timeline-content.web1-border { border-right-color: var(--web1); }
.timeline-item.left .timeline-content.web3-border { border-right-color: var(--web3); }
.timeline-item.right .timeline-content.web1-border { border-left-color: var(--web1); }
.timeline-item.right .timeline-content.web3-border { border-left-color: var(--web3); }
.timeline-content:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.35); }
.timeline-year { font-size: 0.8rem; font-weight: 600; color: var(--web3); letter-spacing: 1px; }
.timeline-content h4 { font-size: 1.1rem; margin: 8px 0; }
.timeline-content p { font-size: 0.88rem; color: var(--text-muted); }

/* ===== CTA ===== */
.cta-section {
  padding: 110px 0; text-align: center;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(245,166,35,0.08), transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(168,85,247,0.12), transparent 50%),
    var(--bg);
}
.cta-container h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); margin-bottom: 20px; letter-spacing: -0.5px; }
.cta-container p {
  color: var(--text-muted); max-width: 560px;
  margin: 0 auto 36px; font-size: 1.05rem;
}

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-container {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 32px; flex-wrap: wrap; padding: 48px 24px 32px;
}
.footer-brand { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; }
.footer-brand p {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: 0.88rem; color: var(--text-muted);
  margin-top: 10px; max-width: 320px;
}
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem; transition: color 0.25s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px; text-align: center;
  font-size: 0.85rem; color: var(--text-muted);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; left: 0 !important; text-align: left !important; padding: 12px 0 12px 52px; }
  .timeline-item::before { left: 13px !important; right: auto !important; }
  .timeline-item.left .timeline-content { border-left: 4px solid var(--web2); border-right: 1px solid var(--border); }
  .timeline-item.left .timeline-content.web1-border { border-left-color: var(--web1); }
  .timeline-item.left .timeline-content.web3-border { border-left-color: var(--web3); }
}

@media (max-width: 720px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: min(300px, 80vw); height: 100vh;
    flex-direction: column; gap: 8px;
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    padding: 100px 32px;
    transition: right 0.4s ease;
  }
  .nav-links.open { right: 0; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .hero-stats { gap: 32px; }
  .section { padding: 72px 0; }
  .footer-container { flex-direction: column; }
}

/* ===== SELECTION & SCROLLBAR ===== */
::selection { background: rgba(168, 85, 247, 0.4); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a45; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a5c; }
