:root {
  --bg: #07090f;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #f5f7ff;
  --muted: #b5bfd5;
  --primary: #6ee7ff;
  --accent: #b794ff;
  --border: rgba(255, 255, 255, 0.15);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(circle at 20% 10%, #111a2d, #07090f 45%), var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.bg-orb {
  position: fixed;
  filter: blur(70px);
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: rgba(110, 231, 255, 0.15);
  top: -60px;
  left: -80px;
}

.orb-2 {
  width: 380px;
  height: 380px;
  background: rgba(183, 148, 255, 0.14);
  right: -120px;
  bottom: 80px;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: linear-gradient(
    180deg,
    rgba(7, 9, 15, 0.86) 0%,
    rgba(7, 9, 15, 0.58) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 0;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: 0.4px;
  line-height: 1;
  background: linear-gradient(120deg, #ffffff 0%, #b9c4ff 42%, #6ee7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

nav {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.46rem 0.72rem;
  border-radius: 10px;
  transition: 0.2s ease;
}

nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.hero {
  padding: 6rem 0 3rem;
}

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
}

.hero-copy {
  margin-top: 1.3rem;
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 0.9rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0.72rem 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--primary), #8bd5ff);
  color: #0a1020;
}

.btn.primary:hover {
  transform: translateY(-1px);
}

.btn.ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn.ghost:hover {
  border-color: var(--surface-strong);
  background: rgba(255, 255, 255, 0.06);
}

.section {
  padding: 2rem 0 1rem;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

h2 {
  margin: 0;
  font-size: 1.5rem;
}

.glass,
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.glass {
  padding: 1.2rem;
}

.glass p {
  margin: 0.4rem 0;
  color: var(--muted);
  line-height: 1.7;
}

.project-grid,
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  padding: 1.1rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.04rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.post-card a {
  text-decoration: none;
  color: var(--text);
}

.post-meta {
  margin-top: 0.7rem;
  font-size: 0.84rem;
  color: #8f9bb6;
}

.loading {
  grid-column: span 3;
  text-align: center;
  color: var(--muted);
}

.sub-link {
  color: var(--primary);
  text-decoration: none;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-links {
  display: flex;
  gap: 0.7rem;
}

.site-footer {
  padding: 2rem 0 3rem;
  color: #7d89a3;
  font-size: 0.9rem;
}

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

  .loading {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  nav {
    display: none;
  }

  .hero {
    padding-top: 4rem;
  }

  .project-grid,
  .post-grid {
    grid-template-columns: 1fr;
  }

  .loading {
    grid-column: span 1;
  }
}
