/* ═════════════════════════════════════════════════════════════════════
   SATRIAKOD.MY — CODE WARRIOR & KNIGHT OF CODE THEME
   ═════════════════════════════════════════════════════════════════════ */

:root {
  --bg-dark: #070b14;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(24, 35, 62, 0.85);
  --primary-cyan: #00f0ff;
  --primary-amber: #ffaa00;
  --primary-purple: #a855f7;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-glow: rgba(0, 240, 255, 0.3);
  --border-amber: rgba(255, 170, 0, 0.3);
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

/* Background Grid & Matrix Particles */
.bg-grid {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(to right, rgba(0, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

#matrix-canvas {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 2;
  opacity: 0.15;
}

/* Header Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.brand-icon {
  font-size: 1.5rem;
}

.brand .highlight {
  color: var(--primary-cyan);
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.5);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary-cyan);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-cyan), #00a8ff);
  color: #070b14;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-cyan);
}

/* Main Content Layout */
.main-content {
  position: relative;
  z-index: 10;
  padding-bottom: 5rem;
}

/* Hero Section */
.hero-section {
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}

.hero-container {
  max-width: 850px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-glow);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary-cyan);
  margin-bottom: 1.5rem;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-cyan);
  box-shadow: 0 0 10px var(--primary-cyan);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero Image Boxed Centered Frame */
.hero-image-wrapper {
  margin-top: 3.5rem;
  padding: 0 1rem;
}

.hero-image-frame {
  position: relative;
  width: min(1024px, calc(100% - 1rem));
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.2);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

.image-overlay-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(7, 11, 20, 0.4) 100%);
  pointer-events: none;
}

/* Section Common Container */
.section-container {
  max-width: 1024px;
  margin: 5rem auto 0;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--primary-cyan);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
}

/* Code Arena Terminal */
.terminal-card {
  background: #0d1322;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.terminal-header {
  background: #090d17;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
  display: flex;
  gap: 0.4rem;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 1rem;
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #38bdf8;
  overflow-x: auto;
  background: #050810;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Pipeline Stage Card (Hard-Won Standards) */
.stage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-amber);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 0 35px rgba(255, 170, 0, 0.15);
}

.slide-preview {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hard-won constraint: .slide-icon 128x128px, icon glyph 86px */
.slide-icon {
  width: 128px;
  height: 128px;
  flex-shrink: 0;
  border-radius: 20px;
  background: rgba(255, 170, 0, 0.1);
  border: 1px solid var(--border-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 86px;
  color: var(--primary-amber);
}

.slide-details h3 {
  font-size: 1.4rem;
  color: var(--primary-amber);
  margin-bottom: 0.4rem;
}

.slide-details p {
  color: var(--text-muted);
  font-size: 1rem;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pipeline-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pipeline-step.active {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--primary-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary-cyan);
  margin-bottom: 0.25rem;
}

.step-label {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Contact Card CTA */
.contact-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(0, 240, 255, 0.08));
  border: 1px solid var(--border-glow);
  border-radius: 28px;
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: 0 0 40px rgba(0, 240, 255, 0.15);
}

.contact-card h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 2rem;
}

.contact-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .slide-preview { flex-direction: column; text-align: center; }
}
