*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0e17;
  --surface: #111827;
  --border: #1e293b;
  --green: #00ff88;
  --green-dim: #00cc6a;
  --cyan: #00d4ff;
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

.scanline {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,255,136,0.015) 2px, rgba(0,255,136,0.015) 4px);
  pointer-events: none;
  z-index: 9999;
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(0,255,136,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0,255,136,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3rem;
  background: rgba(10,14,23,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green);
}

.logo-bracket { color: var(--cyan); }

.nav { display: flex; gap: 2rem; }
.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-family: var(--mono);
  transition: color 0.3s;
}
.nav a:hover { color: var(--green); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--green);
  font-size: 1.2rem;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 3rem 4rem;
  position: relative;
  z-index: 1;
}

.hero-terminal {
  max-width: 800px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,255,136,0.08);
}

.terminal-bar {
  background: var(--surface);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.terminal-title { margin-left: 1rem; font-family: var(--mono); font-size: 0.75rem; color: var(--text-dim); }

.terminal-body {
  background: #0d1117;
  padding: 2rem;
  font-family: var(--mono);
  font-size: 0.95rem;
}

.prompt { color: var(--green); }
.output { color: var(--text-dim); margin: 0.5rem 0 1rem 1.5rem; }
.cursor { animation: blink 1s step-end infinite; color: var(--green); }

@keyframes blink { 50% { opacity: 0; } }

.hero-stats {
  display: flex;
  gap: 4rem;
  margin-top: 4rem;
}

.stat-num {
  display: block;
  font-family: var(--mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--green);
}

.stat-label { font-size: 0.85rem; color: var(--text-dim); }

.section {
  padding: 6rem 3rem;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--green);
  display: block;
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 3rem;
  line-height: 1.2;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p { margin-bottom: 1.2rem; color: var(--text-dim); }

.code-block {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.code-block pre {
  padding: 1.5rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.8;
  overflow-x: auto;
}

.kw { color: #ff79c6; }
.cls { color: var(--cyan); }
.str { color: #f1fa8c; }
.num { color: #bd93f9; }
.fn { color: var(--green); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
}

.service-icon {
  font-family: var(--mono);
  font-size: 2rem;
  color: var(--green);
  opacity: 0.4;
  margin-bottom: 1rem;
}

.service-card h3 { font-size: 1.1rem; margin-bottom: 0.8rem; }
.service-card p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1rem; }
.service-card ul { list-style: none; }
.service-card li {
  font-size: 0.8rem;
  color: var(--text-dim);
  padding: 0.3rem 0;
  padding-left: 1rem;
  position: relative;
}
.service-card li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--green);
  font-family: var(--mono);
}

.stack-categories { display: grid; gap: 2rem; }

.stack-cat h4 {
  font-family: var(--mono);
  color: var(--cyan);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.tags span {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: all 0.3s;
}

.tags span:hover {
  border-color: var(--green);
  color: var(--green);
}

.timeline { position: relative; padding-left: 3rem; }

.timeline::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-marker {
  position: absolute;
  left: -3rem;
  width: 2.2rem;
  height: 2.2rem;
  background: var(--bg);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--green);
}

.timeline-content h3 { margin-bottom: 0.5rem; }
.timeline-content p { color: var(--text-dim); font-size: 0.95rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.team-avatar {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  margin: 0 auto 1rem;
  color: var(--bg);
}

.team-card h4 { margin-bottom: 0.3rem; }
.role { font-size: 0.8rem; color: var(--green); font-family: var(--mono); display: block; margin-bottom: 0.8rem; }
.team-card p { font-size: 0.85rem; color: var(--text-dim); }

.testimonials-slider { position: relative; min-height: 150px; }

.testimonial {
  display: none;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.testimonial.active { display: block; animation: fadeIn 0.5s; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.testimonial p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.testimonial cite { font-family: var(--mono); font-size: 0.85rem; color: var(--green); font-style: normal; }

.slider-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--green);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.slider-dots .dot.active { background: var(--green); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-item { margin-bottom: 2rem; }

.contact-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.contact-item p { color: var(--text-dim); }
.contact-item a { color: var(--cyan); text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.9rem 1rem;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
}

.contact-form button {
  background: var(--green);
  color: var(--bg);
  border: none;
  padding: 1rem;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover { background: var(--green-dim); }

.footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--bg);
    padding: 1rem 3rem;
    border-bottom: 1px solid var(--border);
  }
  .menu-toggle { display: block; }
  .hero-stats { flex-direction: column; gap: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 4rem 1.5rem; }
  .header { padding: 1rem 1.5rem; }
  .hero { padding: 6rem 1.5rem 3rem; }
}
