:root {
  --bg-deep: #05080f;
  --bg-panel: rgba(12, 18, 32, 0.72);
  --border: rgba(94, 234, 255, 0.12);
  --text: #e8f0ff;
  --text-muted: rgba(200, 214, 235, 0.65);
  --accent: #5eeaff;
  --accent-2: #a78bfa;
  --gradient: linear-gradient(120deg, #5eeaff 0%, #a78bfa 50%, #f472b6 100%);
  --font-sans: "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 14px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.6;
}

#grid-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(5, 8, 15, 0.92) 0%, rgba(5, 8, 15, 0.4) 100%);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(145deg, rgba(94, 234, 255, 0.2), rgba(167, 139, 250, 0.15));
  border: 1px solid var(--border);
  color: var(--accent);
}

.logo-mark.sm {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

main {
  position: relative;
  z-index: 2;
  padding-top: var(--header-h);
}

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) 4rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 90vw);
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(94, 234, 255, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  color: #041018;
  background: var(--gradient);
  box-shadow: 0 0 28px rgba(94, 234, 255, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(94, 234, 255, 0.35);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(94, 234, 255, 0.35);
  background: rgba(94, 234, 255, 0.06);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--border);
}

.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.hero-stats dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.section {
  padding: clamp(4rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
  position: relative;
  z-index: 2;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.75rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 1120px;
  margin: 0 auto;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  transition: border-color 0.25s, transform 0.25s;
}

.card:hover {
  border-color: rgba(94, 234, 255, 0.28);
  transform: translateY(-4px);
}

.card-icon {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-2);
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
}

.card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.65rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1120px;
  margin: 0 auto;
  align-items: start;
}

.about-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.1rem);
  margin: 0 0 1rem;
}

.about-copy p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.about-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
}

.about-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  font-size: 0.9rem;
}

.panel-row {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.panel-row:first-child {
  padding-top: 0;
}

.panel-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mono-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.contact {
  padding-bottom: 2rem;
}

.contact-box {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3rem);
}

.contact-box h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.contact-lead {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.contact-address {
  font-style: normal;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 1rem;
}

.contact-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  background: rgba(5, 8, 15, 0.85);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-meta a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-meta a:hover {
  color: var(--accent);
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(5, 8, 15, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav.is-open {
    max-height: 220px;
  }

  .nav a {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
  }

  .nav-toggle {
    display: flex;
  }
}
