:root {
  --bg: #070d18;
  --bg-elevated: #0c1524;
  --paper: #101a2c;
  --ink: #e8eef8;
  --muted: #9aabc4;
  --faint: #6f829c;
  --line: #1c2a40;
  --wash: #0e1828;
  --accent: #5b9dff;
  --accent-soft: #2a5f9e;
  --glow: rgba(91, 157, 255, 0.18);
  --max: 1080px;
  --wide: 1180px;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --header: 4.6rem;
  --sans: "Space Grotesk", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: #2a4f7a;
  color: var(--ink);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(53, 110, 190, 0.22), transparent 55%),
    radial-gradient(900px 600px at 90% 8%, rgba(40, 84, 150, 0.16), transparent 50%),
    linear-gradient(180deg, #08101c 0%, var(--bg) 40%, #060a12 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.62;
  font-weight: 400;
  letter-spacing: -0.015em;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.8rem;
  z-index: 100;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(var(--wide), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #f2f6fc;
}

.logo:hover {
  color: #ffffff;
}

.logo-mark {
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
  overflow: visible;
}

.logo-word {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  color: #f2f6fc;
  text-shadow: 0 0 18px rgba(183, 212, 255, 0.18);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.2rem;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  margin-inline: auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.site-nav > a {
  text-decoration: none;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.site-nav > a:hover {
  color: var(--ink);
}

.map-link {
  display: grid;
  place-items: center;
  color: var(--ink);
}

.map-link svg {
  width: 15px;
  height: 15px;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  min-width: 2.4rem;
}

.lang-btn:hover {
  color: var(--ink);
}

.lang-btn.is-active {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--ink);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--header));
  display: grid;
  align-items: center;
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 8vw, 5.5rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: 10% 15% auto;
  height: 55%;
  background:
    radial-gradient(ellipse at 50% 40%, var(--glow), transparent 65%);
  pointer-events: none;
  z-index: -1;
  animation: glow-pulse 8s ease-in-out infinite;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(91, 157, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 157, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 35%, black 20%, transparent 72%);
  pointer-events: none;
}

.hero-inner {
  text-align: center;
}

.brand-signal {
  margin: 0 0 1.25rem;
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 auto;
  max-width: 16ch;
  font-size: clamp(2rem, 4.4vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
  color: var(--ink);
}

.hero h1::after {
  content: "";
  display: inline-block;
  width: 0.08em;
  height: 0.72em;
  margin-left: 0.12em;
  background: var(--accent);
  vertical-align: -0.04em;
  opacity: 0.55;
  animation: caret 2.4s ease-in-out infinite;
}

@keyframes caret {
  0%, 45% { opacity: 0.55; }
  50%, 95% { opacity: 0.12; }
  100% { opacity: 0.55; }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

.tech-line {
  visibility: hidden;
  margin: 1.7rem auto 0;
  max-width: 42rem;
  min-height: 1.85em;
  font-family: var(--mono);
  font-size: clamp(0.74rem, 1.25vw, 0.88rem);
  line-height: 1.85;
  color: var(--faint);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.lede {
  max-width: 34rem;
  margin: 1.85rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  letter-spacing: -0.018em;
}

.hero-cta {
  margin: 2.25rem 0 0;
}

.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #06101f;
  text-decoration: none;
  border: 0;
  min-height: 2.85rem;
  padding: 0.65rem 1.35rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.btn:hover,
a.btn:hover {
  color: #04101c;
  background: #7eb6ff;
}

.btn-inline {
  width: auto;
  min-width: 10rem;
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.75rem) 0;
}

.kicker {
  margin: 0 0 0.5rem;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.kicker::before {
  content: "> ";
  color: var(--accent);
}

.section h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.14;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 4rem;
  align-items: start;
}

.intro-grid p {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 38rem;
}

.facts {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.facts li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.facts span {
  color: var(--faint);
}

.facts strong {
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: right;
}

.facts a {
  text-decoration: none;
}

.facts a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Contact */
.contact-panel {
  background: color-mix(in srgb, var(--wash) 88%, #122038);
  border-top: 1px solid var(--line);
}

.contact-simple {
  max-width: 38rem;
}

.contact-simple h2 {
  margin-bottom: 1.35rem;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.contact-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list span {
  color: var(--faint);
}

.contact-list strong {
  font-weight: 500;
  text-align: right;
}

.contact-list a {
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Footer */
.site-footer {
  padding: 2.35rem 1rem 2rem;
  text-align: center;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
}

.site-footer a {
  text-decoration: none;
}

.site-footer p {
  margin: 0;
  color: var(--faint);
  font-size: 0.78rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.5rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.site-footer .copy {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  color: #5d6f88;
}

@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset: var(--header) var(--pad) auto;
    background: var(--paper);
    border: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    gap: 0.9rem;
  }

  body.nav-open .site-nav {
    display: flex;
  }
}

@media (max-width: 560px) {
  .contact-list li,
  .facts li {
    flex-direction: column;
    gap: 0.25rem;
  }

  .contact-list strong,
  .facts strong {
    text-align: left;
  }

  .logo-word {
    letter-spacing: 0.1em;
    font-size: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1::after,
  .hero-glow {
    animation: none;
  }

  .tech-line {
    visibility: visible;
  }
}

.tech-line.typed {
  visibility: visible;
}
