:root {
  --color-bg: #0b1220;
  --color-bg-alt: #0f1b2d;
  --color-surface: #141f33;
  --color-border: #22304a;
  --color-text: #e7ecf3;
  --color-text-muted: #9fb0c9;
  --color-accent: #4f8cff;
  --color-accent-hover: #6ea0ff;
  --max-width: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

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

a:hover {
  color: var(--color-accent-hover);
}

h1, h2, h3 {
  line-height: 1.25;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Header / Nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 18, 32, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  position: relative;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
}

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

.nav-links a {
  color: var(--color-text-muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-cta {
  color: var(--color-text) !important;
  background: var(--color-accent);
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.nav-cta:hover {
  background: var(--color-accent-hover);
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.nav-toggle-label span,
.nav-toggle-label::before,
.nav-toggle-label::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

/* Hero */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 6rem 1.5rem 5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.tagline {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.btn-primary {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
}

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

/* Services */

.services {
  background: var(--color-bg-alt);
  padding: 5rem 1.5rem;
}

.service-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.75rem;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

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

/* About */

.about {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}

.about p {
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* Contact */

.contact {
  background: var(--color-bg-alt);
  padding: 5rem 1.5rem;
  text-align: center;
}

.contact p {
  color: var(--color-text-muted);
}

.contact-detail {
  margin-top: 0.75rem;
  font-size: 1.1rem;
}

.contact-detail a {
  font-weight: 600;
}

/* Footer */

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--color-border);
}

/* Responsive nav */

@media (max-width: 720px) {
  .nav-toggle-label {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    width: 100%;
  }

  .nav-cta {
    display: inline-block;
    margin: 0.5rem 1.5rem;
  }

  .nav-toggle:checked ~ .nav-links {
    max-height: 300px;
  }

  .hero h1 {
    font-size: 2.1rem;
  }
}
