/* ─── Design tokens ─────────────────────────────────────── */
:root {
  --bg: #071021;
  --surface: rgba(255, 255, 255, 0.02);
  --border: rgba(255, 255, 255, 0.06);
  --muted: #8a97aa;
  --accent: #6ee7b7;
  --accent-2: #60a5fa;
  --text: #e6eef8;
  --radius: 14px;
  --max-width: 1100px;
  --transition: 0.18s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(170deg, #060e1c 0%, #071826 55%, #060f22 100%);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Skip link ─────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 14px;
  background: var(--accent);
  color: #041025;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

/* ─── Layout ────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── Header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(6, 14, 28, 0.75), rgba(6, 14, 28, 0.4));
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

/* ─── Brand ─────────────────────────────────────────────── */
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand span,
.footer-brand span { color: var(--accent); }

/* ─── Nav ───────────────────────────────────────────────── */
.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 24px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav a:hover { color: var(--text); }

/* ─── Hamburger toggle ──────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 110px 0 90px;
  overflow: hidden;
}

/* Decorative glow orbs */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.07) 0%, transparent 70%);
  top: -120px;
  right: -60px;
}
.hero::after {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.06) 0%, transparent 70%);
  bottom: -80px;
  left: 40px;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 760px;
}

.eyebrow {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #e6eef8 10%, #8dd9c0 55%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Sections ──────────────────────────────────────────── */
.section {
  padding: 72px 0;
}

.section h2 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section h2::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section-lead {
  margin: 20px 0 0;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.7;
}

/* ─── Cards grid ────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.card {
  background: linear-gradient(160deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(110, 231, 183, 0.2);
  box-shadow: 0 12px 40px rgba(110, 231, 183, 0.07);
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(110, 231, 183, 0.08);
  color: var(--accent);
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition), background var(--transition), border-color var(--transition);
}

.btn.primary {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #041025;
}
.btn.primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(110, 231, 183, 0.28);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

/* ─── Contact form ──────────────────────────────────────── */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 760px;
  margin-top: 32px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.contact-form label span {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(138, 151, 170, 0.5); }

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(110, 231, 183, 0.45);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.1);
}

.contact-form textarea { resize: vertical; }

.contact-form .full-width { grid-column: 1 / -1; }
.form-actions { grid-column: 1 / -1; }

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
}

.muted {
  color: var(--muted);
  margin: 0;
  font-size: 0.85rem;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .full-width,
  .form-actions { grid-column: 1; }
}

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

  .nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(6, 14, 28, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0 16px;
    z-index: 99;
  }

  .nav.open { display: flex; }

  .nav a {
    margin: 0;
    padding: 12px 28px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
  }

  .nav a:last-child { border-bottom: none; }

  .hero { padding: 72px 0 60px; }
}
