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

:root {
  --bg:        #080b0f;
  --bg-alt:    #0d1117;
  --bg-card:   #0f1520;
  --border:    #1e2a38;
  --border-hl: #2a3f55;
  --accent:    #00d4ff;
  --accent-dim:#0099bb;
  --accent-glow: rgba(0, 212, 255, 0.12);
  --text:      #c9d1d9;
  --text-muted:#6e7e8f;
  --text-dim:  #3d4f61;
  --mono:      'IBM Plex Mono', monospace;
  --sans:      'IBM Plex Sans', sans-serif;
  --radius:    4px;
  --max-w:     1100px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Buttons ──────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: #fff;
  color: var(--bg);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: 1px solid var(--border-hl);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Nav ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(8, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent);
}

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

.nav-links a {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.btn-nav {
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--accent-dim);
  color: var(--accent) !important;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s !important;
}
.btn-nav:hover {
  background: var(--accent);
  color: var(--bg) !important;
}

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.hero-name {
  font-family: var(--mono);
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-family: var(--mono);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.hero-sub {
  max-width: 520px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* background grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 50%, black 30%, transparent 100%);
}

/* ─── Section headers ──────────────────────────────────── */
.section-header {
  margin-bottom: 3rem;
}

.section-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
  opacity: 0.8;
}

.section-header h2 {
  font-family: var(--mono);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.01em;
}

/* ─── Services ─────────────────────────────────────────── */
.services {
  padding: 7rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

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

.service-card:hover {
  border-color: var(--accent-dim);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.06);
}

.service-icon {
  display: block;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-family: var(--mono);
}

.service-card h3 {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── Contact ──────────────────────────────────────────── */
.contact {
  padding: 7rem 0;
}

.contact-inner {
  max-width: 560px;
}

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

.contact-email {
  display: inline-block;
  font-family: var(--mono);
  font-size: 1.25rem;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 2px;
  margin-bottom: 1rem;
  transition: color 0.2s, border-color 0.2s;
}
.contact-email:hover {
  color: #fff;
  border-color: #fff;
}

.contact-note {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ─── Footer ───────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}

.footer .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.footer-motto {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.footer-copy {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 640px) {
  .nav { padding: 1rem 1.5rem; }
  .nav-links { gap: 1.25rem; }
  .hero-inner { padding: 0 1.5rem; }
  .container { padding: 0 1.5rem; }
  .services { padding: 4rem 0; }
  .contact { padding: 4rem 0; }
  .services-grid { grid-template-columns: 1fr; }
}
