:root {
  --bg: #07111f;
  --bg-2: #0a1b33;
  --card: rgba(13, 30, 52, 0.76);
  --card-2: rgba(9, 24, 45, 0.88);
  --text: #f7fbff;
  --muted: #9bb0c8;
  --muted-2: #6f829b;
  --blue: #168bff;
  --blue-2: #49a5ff;
  --line: rgba(105, 156, 215, 0.22);
  --white-soft: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(22, 139, 255, 0.18), transparent 30%),
    radial-gradient(circle at 82% 16%, rgba(22, 139, 255, 0.10), transparent 34%),
    linear-gradient(180deg, #050d19 0%, var(--bg) 42%, #050b15 100%);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.section-pad { padding: 92px 0; }
.skip-link {
  position: absolute; left: -999px; top: 12px; z-index: 999;
  background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 8px;
}
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 13, 25, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.nav-shell {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  height: 76px;
  line-height: 0;
}

.brand img {
  width: auto;
  height: auto;
  max-width: 168px;
  max-height: 56px;
  object-fit: contain;
}
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  transition: color .2s ease, background .2s ease;
}
.main-nav a:hover { color: var(--text); background: var(--white-soft); }
.main-nav .nav-cta { color: #fff; background: rgba(22, 139, 255, 0.18); border: 1px solid rgba(22, 139, 255, 0.45); }
.nav-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; margin: 5px; background: #fff; }

.hero { padding-top: 76px; overflow: hidden; position: relative; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 66%);
  pointer-events: none;
  opacity: .2;
}
.hero-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; position: relative; }
.eyebrow { color: var(--blue-2); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; margin: 0 0 12px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.035em; margin: 0; }
h1 { font-size: clamp(42px, 7vw, 74px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 21px; }
.hero-text { color: var(--muted); font-size: 18px; max-width: 660px; margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px; border-radius: 999px; font-weight: 800;
  border: 1px solid transparent; transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #168bff, #006ee6); box-shadow: 0 18px 38px rgba(22, 139, 255, .24); }
.btn-secondary { color: #fff; background: rgba(255, 255, 255, .09); border-color: rgba(255,255,255,.14); }
.btn-ghost { color: var(--blue-2); border-color: rgba(22, 139, 255, .35); background: rgba(22, 139, 255, .07); }
.hero-card {
  border: 1px solid rgba(22, 139, 255, .26);
  border-radius: var(--radius);
  padding: 10px;
  background: rgba(10, 27, 51, .44);
  box-shadow: var(--shadow);
}
.hero-card img { border-radius: calc(var(--radius) - 8px); width: 100%; }

.two-col { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.about-copy { color: var(--muted); font-size: 17px; }
.about-copy p:first-child { margin-top: 0; }
.section-heading { max-width: 740px; margin-bottom: 36px; }
.section-heading.center { text-align: center; margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); margin: 16px 0 0; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card, .project-card, .profile-card, .contact-card {
  background: linear-gradient(180deg, var(--card), var(--card-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 14px 50px rgba(0,0,0,.16);
}
.feature-card .icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: rgba(22,139,255,.12); margin-bottom: 20px; font-size: 26px; }
.feature-card p, .project-card p, .profile-card p { color: var(--muted); margin-bottom: 0; }

.open-section { background: rgba(255,255,255,.025); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.project-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tag { display: inline-flex; color: var(--blue-2); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.opensource-cta { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; background: rgba(22,139,255,.06); }
.opensource-cta p { margin: 0; color: var(--muted); }

.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.profile-card { display: block; transition: transform .2s ease, border-color .2s ease; }
.profile-card:hover { transform: translateY(-4px); border-color: rgba(22,139,255,.6); }
.profile-card span { color: var(--blue-2); font-size: 13px; font-weight: 900; }
.profile-card strong { display: block; font-size: 22px; margin-top: 8px; }

.contact-section { padding-top: 40px; }
.contact-card { display: grid; grid-template-columns: 140px 1fr; gap: 26px; align-items: center; }
.contact-card img { width: 140px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); }
.contact-card p { color: var(--muted); }

.site-footer { border-top: 1px solid var(--line); padding: 42px 0 28px; background: rgba(0,0,0,.18); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer-grid img { width: 150px; margin-bottom: 14px; }
.footer-grid p { color: var(--muted); max-width: 440px; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-links a { color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }
.footer-links a:hover { color: var(--text); border-color: rgba(22,139,255,.55); }
.copyright { color: var(--muted-2); font-size: 13px; margin-top: 28px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .cards-grid, .project-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1160px); }
  .section-pad { padding: 68px 0; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 14px; right: 14px; top: 76px;
    display: none; flex-direction: column; align-items: stretch;
    background: rgba(5,13,25,.98); border: 1px solid var(--line); border-radius: 18px; padding: 12px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { border-radius: 12px; }
  .cards-grid, .project-grid { grid-template-columns: 1fr; }
  .opensource-cta, .footer-grid { flex-direction: column; align-items: flex-start; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-card img { width: 110px; }
  h1 { font-size: 42px; }
}
