:root {
  --bg: #05070a;
  --panel: #0d1117;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.5);
  --secondary: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --glass: rgba(13, 17, 23, 0.7);
  --radius: 16px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

/* Background Effects */
.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
  opacity: 0.2;
}
.bg-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  filter: blur(80px);
  opacity: 0.15;
  border-radius: 50%;
}
.bg-blob--1 { top: -10%; left: -10%; background: var(--accent); }
.bg-blob--2 { bottom: -10%; right: -10%; background: var(--secondary); }

/* Navigation */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.top-nav__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.logo__icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  border-radius: 8px;
}
.logo__name { display: block; font-weight: 800; font-size: 1.1rem; line-height: 1; }
.logo__sub { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.9rem; transition: 0.2s; }
.nav-links a:hover { color: var(--text-main); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}
.btn--primary { background: var(--text-main); color: var(--bg); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255,255,255,0.1); }
.btn--outline { border: 1px solid var(--border); color: var(--text-main); }
.btn--outline:hover { background: var(--border); }
.btn--small { padding: 8px 16px; font-size: 0.85rem; }
.btn--full { width: 100%; justify-content: center; }

/* Hero */
.hero { padding: 80px 0; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin: 20px 0; letter-spacing: -2px; }
.text-gradient {
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__lead { font-size: 1.2rem; color: var(--text-muted); max-width: 500px; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 16px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}
.badge__dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); }

/* Glass Card */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.status-pill { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; }
.pulse { width: 8px; height: 8px; background: var(--secondary); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.bento-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: var(--radius);
  transition: 0.3s;
}
.bento-card:hover { border-color: var(--accent); background: rgba(59, 130, 246, 0.03); }
.bento-card--featured { grid-column: span 2; background: linear-gradient(135deg, #0d1117, #161b22); display: flex; align-items: center; }

/* Contact & Form */
.contact-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  background: var(--panel);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.contact-info { padding: 40px; background: rgba(255,255,255,0.02); }
.quote-form { padding: 40px; display: flex; flex-direction: column; gap: 16px; }
input, select, textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 10px;
  color: white;
  font-family: inherit;
}
input:focus { outline: none; border-color: var(--accent); }

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Code Window */
.code-window { background: #010409; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.code-window__top { padding: 10px 16px; background: #161b22; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 8px; height: 8px; border-radius: 50%; background: #30363d; }
.code-block { padding: 20px; margin: 0; font-family: monospace; color: #79c0ff; }

/* Responsive */
@media (max-width: 850px) {
  .hero__grid, .contact-card, .bento-grid { grid-template-columns: 1fr; }
  .bento-card--featured { grid-column: span 1; }
  .nav-links { display: none; } /* Add JS toggle for mobile */
}