:root {
  --bg: #0f1218;
  --bg-soft: #171b24;
  --bg-card: #1e2430;
  --text: #eef2f8;
  --muted: #a9b3c4;
  --accent: #72a7ff;
  --accent-soft: rgba(114, 167, 255, 0.14);
  --border: rgba(255, 255, 255, 0.09);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(114, 167, 255, 0.15), transparent 34rem),
    radial-gradient(circle at top right, rgba(93, 255, 176, 0.08), transparent 32rem),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  color: var(--muted);
  margin: 0 0 1rem;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0 0 1rem;
}

h1 {
  max-width: 980px;
  font-size: clamp(2.5rem, 8vw, 6.8rem);
  letter-spacing: -0.07em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(15, 18, 24, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.section {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 6rem 0;
}

.narrow {
  max-width: 780px;
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero-content {
  width: 100%;
}

.hero-text {
  max-width: 760px;
  font-size: 1.18rem;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 750;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #07101f;
  background: var(--accent);
  border-color: var(--accent);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.card,
.project-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 1.35rem;
}

.project-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.project-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem;
}

.project-card p {
  max-width: 760px;
}

.tag {
  align-self: flex-start;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(114, 167, 255, 0.24);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-section {
  text-align: center;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 10px);
  padding: 4rem 2rem;
  margin-bottom: 5rem;
  box-shadow: var(--shadow);
}

.footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}

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

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .section {
    padding: 4rem 0;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    flex-direction: column;
  }

  .contact-section {
    padding: 3rem 1.25rem;
  }
}
