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

:root {
  --bg:         #0a0c10;
  --bg-card:    #0f1117;
  --bg-input:   #13151d;
  --border:     #1e2330;
  --accent:     #00e5ff;
  --accent-dim: #00b3cc;
  --text:       #e2e8f0;
  --text-muted: #7a8499;
  --red:        #ff5f57;
  --amber:      #febc2e;
  --green:      #28c840;
  --font-mono:  'Courier New', Courier, monospace;
  --radius:     8px;
  --nav-h:      64px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dim); }

strong { color: var(--accent); font-weight: 600; }

/* ── Nav ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: calc(var(--nav-h) + 3rem) 1.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  flex-wrap: wrap;
}

.hero-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  flex: 1;
  min-width: 280px;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 2rem;
}

/* ── Button ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-dim);
  color: #000;
  box-shadow: 0 0 20px rgba(0,229,255,0.35);
}

/* ── Terminal ── */
.hero-terminal {
  flex: 0 0 440px;
  max-width: 100%;
  background: #0d0f14;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0,229,255,0.08);
  position: relative;
  z-index: 1;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 1rem;
  background: #13151d;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
}
.dot.red   { background: var(--red); }
.dot.amber { background: var(--amber); }
.dot.green { background: var(--green); }

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

.terminal-body {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: #7fffb0;
  padding: 1rem 1.25rem;
  height: 340px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-all;
  scrollbar-width: none;
}

.terminal-body::-webkit-scrollbar { display: none; }

/* ── Sections ── */
.section {
  padding: 6rem 1.5rem;
  position: relative;
  z-index: 1;
}

.section:nth-child(even) {
  background: rgba(15, 17, 23, 0.6);
}

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

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* ── Services ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(0,229,255,0.35);
  box-shadow: 0 0 24px rgba(0,229,255,0.07);
  transform: translateY(-3px);
}

.card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--accent);
  stroke-width: 1.5;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text);
}

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

/* ── Team ── */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.team-card:hover {
  border-color: rgba(0,229,255,0.35);
  box-shadow: 0 0 24px rgba(0,229,255,0.07);
}

.team-avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
}

.team-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.team-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.team-bio {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.team-certs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.team-certs li {
  padding: 0.25rem 0.7rem;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--accent);
  font-family: var(--font-mono);
}

/* ── Contact ── */
.contact-inner {
  max-width: 600px;
}

.contact-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.12);
}

.form-status {
  font-size: 0.875rem;
  min-height: 1.4rem;
  color: var(--accent);
}

.form-status.error { color: var(--red); }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  position: relative;
  z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero { flex-direction: column; gap: 2.5rem; text-align: center; }
  .hero-sub { margin: 0 auto 2rem; }
  .hero-terminal { flex: unset; width: 100%; }
  .nav-links { gap: 1.25rem; }
  .team-card { flex-direction: column; gap: 1.25rem; }
}
