/* =============================================
   INOVATOR SEJATI — Digital Extension
   Design: OPSI 12 — Split Brain Cover Theme
   Colors: Dark Navy + Electric Blue + Amber Spark
   ============================================= */

/* ---------- CSS Variables ---------- */
:root {
  --bg-primary: #0d1117;
  --bg-card: #111920;
  --bg-card-hover: #161f2b;
  --bg-input: #1a2332;
  --bg-gate: rgba(13, 17, 23, 0.97);
  --accent: #3a8fd4;
  --accent-light: #5db0f0;
  --accent-dark: #2a6fa8;
  --spark: #e8a838;
  --spark-light: #f0c060;
  --accent-green: #34d399;
  --accent-red: #f87171;
  --text-primary: #e8ecf0;
  --text-secondary: #8b9ab5;
  --text-muted: #5a6a80;
  --border: rgba(58, 143, 212, 0.08);
  --border-accent: rgba(58, 143, 212, 0.25);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 0 40px rgba(58, 143, 212, 0.12);
  --shadow-spark: 0 0 30px rgba(232, 168, 56, 0.1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Inter', -apple-system, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--spark); }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Background Effects ---------- */
.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(180px);
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}
.glow-top { top: -200px; right: -100px; background: rgba(58, 143, 212, 0.18); }
.glow-bottom { bottom: -200px; left: -100px; background: rgba(232, 168, 56, 0.08); }

/* ---------- Container ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--text-primary);
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--spark); }

/* ---------- Hero ---------- */
.hero {
  padding: 140px 0 80px;
  text-align: center;
}
.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(58, 143, 212, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-light);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--spark), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
  color: #fff;
}
.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--accent-light);
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid var(--border-accent);
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline:hover {
  background: rgba(58, 143, 212, 0.1);
  border-color: var(--accent);
}

/* ---------- Pilar Grid (Landing) ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 48px 0;
}
.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent), var(--spark));
  opacity: 0;
  transition: var(--transition);
}
.pillar-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.pillar-card:hover::before { opacity: 1; }
.pillar-number {
  font-size: 48px;
  font-weight: 800;
  color: rgba(58, 143, 212, 0.15);
  line-height: 1;
  margin-bottom: 8px;
}
.pillar-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.pillar-identity {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--spark);
  font-size: 14px;
  margin-bottom: 12px;
}
.pillar-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.6;
}
.pillar-contents {
  list-style: none;
  margin-bottom: 20px;
}
.pillar-contents li {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pillar-contents li::before {
  content: '▸';
  color: var(--accent);
  font-size: 12px;
}

/* ---------- Gate Overlay ---------- */
.gate-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-gate);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-accent);
  animation: fadeUp 0.5s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.gate-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.gate-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.gate-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}
.gate-form { text-align: left; }
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: var(--font-primary);
  transition: var(--transition);
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(58, 143, 212, 0.1);
}
.form-group input::placeholder { color: var(--text-muted); }
.gate-error {
  color: var(--accent-red);
  font-size: 13px;
  margin-top: 8px;
  display: none;
}
.gate-error.show { display: block; }
.gate-submit {
  width: 100%;
  margin-top: 8px;
}

/* ---------- Content Section (Pilar Page) ---------- */
.content-section {
  padding: 100px 0 60px;
}
.pilar-header {
  text-align: center;
  padding: 120px 0 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.pilar-header .pillar-number {
  font-size: 72px;
  color: rgba(58, 143, 212, 0.2);
}
.pilar-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 8px;
}
.pilar-header .pillar-identity {
  font-size: 18px;
  margin-bottom: 16px;
}
.pilar-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Content blocks */
.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 32px;
  transition: var(--transition);
}
.content-block:hover {
  border-color: var(--border-accent);
}
.content-block h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.content-block h2 .icon { font-size: 24px; }
.content-block .subtitle {
  font-size: 14px;
  color: var(--spark);
  font-family: var(--font-serif);
  font-style: italic;
  margin-bottom: 16px;
}
.content-block p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0;
  background: var(--bg-input);
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  gap: 12px;
}
.video-placeholder .play-icon {
  font-size: 48px;
  color: var(--accent);
  opacity: 0.6;
}

/* Template download */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(58, 143, 212, 0.1);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  color: var(--accent-light);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.download-btn:hover {
  background: rgba(58, 143, 212, 0.2);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
footer {
  padding: 48px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
footer .footer-logo {
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 8px;
}
footer p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Success State ---------- */
.success-msg {
  text-align: center;
  padding: 20px;
  animation: fadeUp 0.5s ease;
}
.success-msg .checkmark { font-size: 48px; margin-bottom: 12px; }
.success-msg h3 { color: var(--accent-green); margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .gate-card { padding: 32px 24px; }
  .content-block { padding: 24px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 13px; }
}
@media (max-width: 480px) {
  .hero { padding: 120px 0 60px; }
  .hero-subtitle { font-size: 16px; }
  .pilar-header { padding: 100px 0 32px; }
}
