@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* TEMA GELAP (DEFAULT) */
:root {
  --blue-deep: #0a0e1a;
  --blue-dark: #0d1530;
  --blue-mid: #1a2a6c;
  --blue-bright: #2563eb;
  --blue-electric: #3b82f6;
  --blue-light: #60a5fa;
  --blue-glow: #93c5fd;
  --cyan: #22d3ee;
  --white: #ffffff; /* Putih bersih di mode gelap */
  --text-title: #f0f4ff;
  --gray: #8899bb;
  --border: rgba(59,130,246,0.25);
  --glass: rgba(13,21,48,0.7);
  --glass2: rgba(26,42,108,0.3);
  --glass-sidebar: rgba(10,16,32,0.95);
}

/* TEMA TERANG */
:root.light-theme {
  --blue-deep: #f4f7fb;     
  --blue-dark: #e2e8f0;     
  --blue-mid: #cbd5e1;
  --blue-bright: #2563eb;   
  --blue-electric: #2563eb; 
  --blue-light: #3b82f6;
  --blue-glow: #1d4ed8;
  --cyan: #0284c7;          
  --white: #000000;         /* Hitam gelap murni di mode terang */
  --text-title: #0f172a;
  --gray: #475569;          
  --border: rgba(37, 99, 235, 0.3);
  --glass: rgba(255, 255, 255, 0.85); 
  --glass2: rgba(255, 255, 255, 0.5);
  --glass-sidebar: rgba(255, 255, 255, 0.95);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--blue-deep);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
  transition: background 0.4s ease, color 0.4s ease;
}

/* CUSTOM CURSOR */
.cursor {
  width: 12px; height: 12px;
  background: var(--blue-electric);
  border-radius: 50%;
  position: fixed; top:0; left:0;
  pointer-events: none; z-index:9999;
  transition: transform 0.1s ease;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--blue-light);
  border-radius: 50%;
  position: fixed; top:0; left:0;
  pointer-events: none; z-index:9998;
  transition: transform 0.15s ease, opacity 0.2s;
  opacity: 0.6;
}
:root.light-theme .cursor { background: var(--blue-bright); }
:root.light-theme .cursor-ring { border-color: var(--blue-bright); }

/* CANVAS BG */
#canvas-bg { position: fixed; top:0; left:0; width:100%; height:100%; z-index:0; pointer-events:none; }
.grid-bg {
  position: fixed; top:0; left:0; right:0; bottom:0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none; z-index:0; opacity: 0.3;
}

/* NAV */
nav {
  position: fixed; top:0; left:0; right:0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 4rem; height: 72px;
  background: var(--glass); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s, border-color 0.4s;
}

.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-svg { width: 42px; height: 42px; flex-shrink: 0; object-fit: contain; border-radius: 6px; }
.logo-text { font-family: 'Orbitron', sans-serif; font-size: 1.2rem; font-weight: 700; letter-spacing: 0.12em; color: var(--text-title); }
.logo-text span { color: var(--blue-electric); }

/* MENU TOGGLE BTN */
.menu-toggle {
  background: transparent; border: none; color: var(--text-title);
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  font-family: 'Rajdhani', sans-serif; text-transform: uppercase;
  font-size: 0.95rem; font-weight: 700; letter-spacing: 0.1em;
  transition: color 0.2s;
}
.menu-toggle:hover { color: var(--cyan); }

/* SIDEBAR RIGHT */
.sidebar-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.sidebar-overlay.active { opacity: 1; pointer-events: all; }
.right-sidebar { position: fixed; top: 0; right: -320px; width: 320px; height: 100vh; max-width: 100vw; background: var(--glass-sidebar); backdrop-filter: blur(20px); border-left: 1px solid var(--border); z-index: 1000; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s; display: flex; flex-direction: column; padding: 2rem; box-shadow: -10px 0 30px rgba(0,0,0,0.5); }
.right-sidebar.active { right: 0; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.sidebar-title { font-family: 'Orbitron', sans-serif; font-size: 1.1rem; color: var(--text-title); font-weight: 700;}
.close-btn { background: transparent; border: none; color: var(--gray); font-size: 1.5rem; cursor: pointer; transition: color 0.2s; }
.close-btn:hover { color: var(--cyan); }
.sidebar-nav { display: flex; flex-direction: column; gap: 0.6rem; overflow-y: auto; flex: 1; margin-bottom: 1rem; padding-right: 5px;}
.snav-item { font-family: 'Space Mono', monospace; font-size: 0.8rem; letter-spacing: 0.05em; color: var(--gray); text-decoration: none; text-transform: uppercase; padding: 0.8rem 1rem; border-radius: 6px; border: 1px solid transparent; transition: all 0.2s; }
.snav-item:hover { color: var(--cyan); background: rgba(34,211,238,0.08); border-color: rgba(34,211,238,0.3); }

/* SIDEBAR FOOTER (THEME TOGGLE) */
.sidebar-footer { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; flex-direction: column; gap: 10px; }
.btn-theme-toggle { display: flex; align-items: center; justify-content: center; width: 100%; padding: 12px; background: rgba(59,130,246,0.1); border: 1px solid var(--blue-electric); color: var(--blue-electric); border-radius: 6px; cursor: pointer; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; transition: all 0.2s; }
.btn-theme-toggle:hover { background: var(--blue-electric); color: #fff; }
:root.light-theme .btn-theme-toggle:hover { color: #fff; }

/* HERO */
.hero { position: relative; z-index:1; min-height: 100vh; display: flex; align-items: center; padding: 100px clamp(2rem, 5vw, 4rem) 40px; overflow: hidden; }
.hero-content { max-width: 660px; animation: fadeUp 0.9s ease forwards; opacity:0; transform: translateY(30px); animation-delay: 0.3s; }
@keyframes fadeUp { to { opacity:1; transform:translateY(0); } }

.hero-tag { display: inline-flex; align-items: center; gap: 8px; font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--cyan); letter-spacing: 0.2em; text-transform: uppercase; border: 1px solid var(--border); padding: 6px 16px; border-radius: 2px; margin-bottom: 2rem; }
.hero-tag::before { content:''; width:6px; height:6px; background: var(--cyan); border-radius:50%; animation: blink 1.4s infinite; }

.hero h1 { font-family: 'Orbitron', sans-serif; font-size: clamp(2.8rem, 5.5vw, 4.2rem); font-weight: 900; line-height: 1.08; margin-bottom: 1.6rem; color: var(--text-title); }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, var(--blue-electric) 0%, var(--cyan) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero-sub { font-family: 'Montserrat', sans-serif; font-size: 1.05rem; font-weight: 400; color: var(--white); line-height: 1.7; margin-bottom: 2.8rem; max-width: 520px; transition: color 0.4s; }

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary { font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--blue-bright), var(--cyan)); padding: 14px 36px; border-radius: 4px; text-decoration: none; display: inline-flex; align-items: center; gap:10px; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 0 30px rgba(59,130,246,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 40px rgba(59,130,246,0.55); }
.btn-outline { font-family: 'Rajdhani', sans-serif; font-size: 1rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-electric); background: transparent; border: 1px solid var(--border); padding: 14px 36px; border-radius: 4px; text-decoration: none; display: inline-flex; align-items: center; gap:10px; transition: border-color 0.2s, background 0.2s; }
.btn-outline:hover { border-color: var(--blue-electric); background: rgba(59,130,246,0.1); }

/* HERO VISUAL */
.hero-visual { position: absolute; right: -100px; top: 50%; transform: translateY(-50%); width: clamp(400px, 45vw, 680px); height: clamp(400px, 45vw, 680px); opacity: 0.12; pointer-events: none; animation: rotSlow 25s linear infinite; transition: opacity 0.4s; }
:root.light-theme .hero-visual { opacity: 0.08; }
@keyframes rotSlow { to { transform: translateY(-50%) rotate(360deg); } }

.hero-stats { display: flex; gap: 3rem; margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--border); animation: fadeUp 0.9s ease forwards; opacity:0; animation-delay: 0.7s; }
.stat-num { font-family: 'Orbitron', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--blue-electric); display: block; }
.stat-label { font-size: 0.8rem; font-weight: 500; color: var(--cyan); letter-spacing: 0.12em; text-transform: uppercase; }

/* SECTIONS */
section { position: relative; z-index:1; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: clamp(4rem, 10vh, 7rem) clamp(2rem, 5vw, 4rem); }
.section-label { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--blue-electric); letter-spacing: 0.25em; text-transform: uppercase; margin-bottom: 1rem; display: flex; align-items: center; gap: 12px; }
.section-label::before { content:''; width: 32px; height:1px; background: var(--blue-electric); }
.section-title { font-family: 'Orbitron', sans-serif; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; line-height: 1.2; color: var(--text-title); }
.section-desc { font-family: 'Montserrat', sans-serif; font-size: 0.95rem; color: var(--white); line-height: 1.7; max-width: 560px; margin-bottom: 4rem; transition: color 0.4s;}

/* FEATURES */
#features { background: linear-gradient(180deg, transparent 0%, var(--glass2) 50%, transparent 100%); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.feature-card { background: var(--glass); padding: 2.5rem 2rem; transition: background 0.25s; position: relative; overflow: hidden; }
.feature-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background: linear-gradient(90deg, transparent, var(--blue-electric), transparent); opacity:0; transition: opacity 0.3s; }
.feature-card:hover { background: var(--glass2); }
.feature-card:hover::before { opacity:1; }
.feature-icon { width: 48px; height: 48px; background: rgba(37,99,235,0.15); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.4rem; font-size: 1.4rem; }
.feature-title { font-family: 'Orbitron', sans-serif; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 0.7rem; color: var(--text-title); }
.feature-desc { font-family: 'Montserrat', sans-serif; font-size: 0.88rem; color: var(--white); line-height: 1.65; transition: color 0.4s; }

/* SIMULATIONS */
#simulations { background: linear-gradient(180deg, transparent 0%, var(--glass) 100%); }
.sim-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.sim-card { background: var(--glass); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; text-decoration: none; color: inherit; display: block; }
.sim-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(59,130,246,0.2); border-color: var(--blue-electric); }
.sim-preview { height: 180px; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid)); display: flex; align-items: center; justify-content: center; }
.sim-preview canvas { width: 100%; height: 100%; }
.sim-badge { position: absolute; top:12px; right:12px; font-family: 'Space Mono', monospace; font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 4px 10px; border-radius: 2px; border: 1px solid; }
.badge-available { color: var(--cyan); border-color: rgba(103,232,249,0.4); background: rgba(103,232,249,0.08); }
.badge-soon { color: var(--gray); border-color: var(--border); background: rgba(136,153,187,0.08); }
.sim-body { padding: 1.5rem; }
.sim-category { font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--blue-electric); margin-bottom: 0.5rem; }
.sim-name { font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 600; color: var(--text-title); margin-bottom: 0.5rem; }
.sim-desc { font-family: 'Montserrat', sans-serif; font-size: 0.85rem; color: var(--white); line-height: 1.6; margin-bottom: 1.2rem; transition: color 0.4s;}
.sim-link { font-family: 'Rajdhani', sans-serif; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-electric); display: inline-flex; align-items: center; gap: 6px; }
.sim-link svg { transition: transform 0.2s; }
.sim-card:hover .sim-link svg { transform: translateX(4px); }

/* HOW IT WORKS */
#how { background: var(--glass2); }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; position: relative; }
.steps::before { content:''; position:absolute; top: 28px; left: calc(12.5% + 28px); right: calc(12.5% + 28px); height: 1px; background: linear-gradient(90deg, transparent, var(--border), var(--blue-electric), var(--border), transparent); z-index:0; }
.step { text-align: center; position: relative; z-index:1; }
.step-num { width: 56px; height: 56px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.4rem; font-family: 'Orbitron', sans-serif; font-size: 1rem; font-weight: 700; color: var(--blue-electric); background: var(--blue-dark); transition: border-color 0.3s, background 0.3s; }
.step:hover .step-num { border-color: var(--blue-electric); background: rgba(37,99,235,0.15); }
.step-title { font-family: 'Orbitron', sans-serif; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; margin-bottom: 0.6rem; color: var(--text-title); }
.step-desc { font-family: 'Montserrat', sans-serif; font-size: 0.85rem; color: var(--white); line-height: 1.6; transition: color 0.4s;}

/* CTA */
#cta { text-align: center; position: relative; overflow: hidden; }
#cta .section-inner { padding: 8rem 4rem; }
.cta-glow { position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; }
#cta h2 { font-family: 'Orbitron', sans-serif; font-size: clamp(2rem,4vw,3rem); font-weight: 900; margin-bottom: 1.2rem; line-height: 1.15; color: var(--text-title);}
#cta h2 em { font-style: normal; background: linear-gradient(135deg, var(--blue-electric), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
#cta p { font-family: 'Montserrat', sans-serif; color: var(--white); font-size: 1rem; max-width: 480px; margin: 0 auto 2.5rem; line-height: 1.7; transition: color 0.4s;}

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 2.5rem 4rem; display: flex; align-items: center; justify-content: space-between; position: relative; z-index:1; background: var(--glass); }
.footer-left { display: flex; align-items: center; gap: 14px; }
.footer-copy { font-size: 0.82rem; color: var(--gray); font-family: 'Space Mono', monospace; }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-size: 0.85rem; color: var(--gray); text-decoration: none; letter-spacing: 0.08em; transition: color 0.2s; }
.footer-links a:hover { color: var(--blue-light); }

/* SCROLL REVEAL */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* MEDIA QUERY HP */
@media (max-width: 900px) {
  nav { padding: 0 2rem; }
  .hero { padding: 100px 2rem 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; }
}

@media (max-height: 750px) {
  .hero { min-height: auto; padding-top: 120px; padding-bottom: 60px; }
  .hero h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); margin-bottom: 1rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 1.5rem; }
  .hero-stats { margin-top: 2rem; padding-top: 1.5rem; }
  .hero-visual { opacity: 0.06; }
}