:root {
  --bg-dark: #020617; /* Slate 950 */
  --bg-card: #0f172a; /* Slate 900 */
  --bg-hover: #1e293b; /* Slate 800 */
  
  --text-main: #f8fafc; /* Slate 50 */
  --text-muted: #94a3b8; /* Slate 400 */
  
  --brand-primary: #38bdf8; /* Light Blue 400 */
  --brand-glow: rgba(56, 189, 248, 0.4);
  --brand-secondary: #818cf8; /* Indigo 400 */
  
  --border: #1e293b;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'Inter', system-ui, sans-serif;
  
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.5);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.5);
}

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

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

::selection {
  background: var(--brand-primary);
  color: #000;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 500;
  font-size: 14px;
}
.nav-links a:not(.btn) {
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav-links a:not(.btn):hover {
  color: var(--text-main);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--text-main);
  color: var(--bg-dark);
}
.btn-primary:hover {
  background: var(--brand-primary);
  box-shadow: 0 0 20px var(--brand-glow);
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--bg-hover);
  color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: #27354f;
  border-color: #3b4c6b;
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--text-muted);
  background: rgba(255,255,255,0.05);
}

/* HERO SECTION */
.hero {
  position: relative;
  padding: 80px 0 100px;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.grid-bg {
  position: absolute;
  inset: 0;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
  mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
  z-index: -1;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  z-index: -2;
  border-radius: 50%;
  filter: blur(60px);
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--brand-primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.gradient-text {
  background: linear-gradient(to right, var(--text-main), var(--text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* TERMINAL WINDOW MOCKUP */
.terminal-window {
  background: #090e17;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
}
.terminal-header {
  background: var(--bg-card);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }
.terminal-title {
  margin-left: 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
}
.terminal-body {
  padding: 24px;
  color: #cdd6f4;
  line-height: 1.8;
}
.terminal-body p { margin-bottom: 4px; }
.sys { color: #89b4fa; }
.success { color: #a6e3a1; }
.highlight { color: #f9e2af; }
.mt { margin-top: 16px; }
.cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* SECTION GLOBAL */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.section-title {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: -0.03em;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 56px;
}
.bg-slate {
  background: #060b14;
}

/* FEATURE CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.8);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 24px;
}
.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
}

/* TECH STACK */
.tech-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.tech-item {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.tech-name {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 8px;
  font-size: 16px;
}
.tech-desc {
  color: var(--text-muted);
  font-size: 15px;
}

/* FOOTER */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: #02040a;
}
.foot-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}
.foot-logo {
  font-weight: 800;
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--text-muted);
}
.foot-copy {
  color: var(--text-muted);
  font-size: 13px;
}
.foot-links a {
  color: var(--text-muted);
  font-size: 14px;
}
.foot-links a:hover {
  color: var(--text-main);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero::before {
    top: 0; right: 50%; transform: translateX(50%);
  }
  .hero .lead {
    margin: 0 auto 40px;
  }
  .hero-actions {
    justify-content: center;
  }
  .tech-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none; /* simple mobile hide for now */
  }
  .hero {
    padding: 40px 0 60px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .foot-content {
    flex-direction: column;
    text-align: center;
  }
  .foot-brand {
    flex-direction: column;
  }
}
