:root {
  --bg-0: #07111a;
  --bg-1: #0a1622;
  --bg-2: #102235;
  --panel: rgba(16, 34, 53, 0.58);
  --text-0: #e6f0f7;
  --text-1: #9fb3c8;
  --text-2: #6f859c;
  --line: rgba(131, 180, 214, 0.18);
  --line-strong: rgba(131, 180, 214, 0.32);
  --accent-0: #53f2e3;
  --accent-1: #7fdbff;
  --shadow-soft: 0 20px 70px rgba(0, 0, 0, 0.24);
  --radius: 18px;
  --container: min(1200px, calc(100vw - 48px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", sans-serif;
  color: var(--text-0);
  background:
    radial-gradient(circle at top right, rgba(127, 219, 255, 0.14), transparent 32%),
    radial-gradient(circle at 20% 20%, rgba(83, 242, 227, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 38%, #050c14 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(131, 180, 214, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131, 180, 214, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 78%);
  pointer-events: none;
}

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

button {
  font: inherit;
}

.site-shell {
  position: relative;
  overflow: clip;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(7, 17, 26, 0.4);
  border-bottom: 1px solid rgba(131, 180, 214, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-mark__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent-0) 0%, var(--accent-1) 65%, transparent 80%);
  box-shadow: 0 0 18px rgba(83, 242, 227, 0.55);
}

.brand-mark__text {
  font-size: 1.1rem;
}

.main-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a,
.footer-links a {
  color: var(--text-1);
  font-size: 0.92rem;
  transition: color 180ms ease;
}

.main-nav a:hover,
.footer-links a:hover {
  color: var(--text-0);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: rgba(16, 34, 53, 0.65);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.lang-toggle__button {
  border: 0;
  color: var(--text-1);
  background: transparent;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 180ms ease;
}

.lang-toggle__button.is-active {
  color: var(--text-0);
  background: linear-gradient(135deg, rgba(83, 242, 227, 0.14), rgba(127, 219, 255, 0.18));
  box-shadow: inset 0 0 0 1px rgba(127, 219, 255, 0.2);
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease;
}

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

.button--primary {
  color: #07111a;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-0), var(--accent-1));
  box-shadow: 0 12px 40px rgba(83, 242, 227, 0.24);
}

.button--secondary,
.button--ghost {
  color: var(--text-0);
  border-color: var(--line-strong);
  background: rgba(16, 34, 53, 0.35);
}

.button--secondary:hover,
.button--ghost:hover {
  background: rgba(127, 219, 255, 0.08);
  border-color: rgba(127, 219, 255, 0.34);
}

.hero {
  position: relative;
  padding: 84px 0 36px;
}

.hero__mesh,
.hero__aurora {
  position: absolute;
  pointer-events: none;
}

.hero__mesh {
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(131, 180, 214, 0.06) 50%, transparent 100%),
    linear-gradient(180deg, transparent 0%, rgba(131, 180, 214, 0.03) 50%, transparent 100%);
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.82), transparent 78%);
}

.hero__aurora--one {
  width: 460px;
  height: 460px;
  right: -100px;
  top: 20px;
  background: radial-gradient(circle, rgba(83, 242, 227, 0.26), transparent 68%);
  filter: blur(20px);
}

.hero__aurora--two {
  width: 320px;
  height: 320px;
  left: -80px;
  top: 40px;
  background: radial-gradient(circle, rgba(127, 219, 255, 0.12), transparent 70%);
  filter: blur(14px);
}

.hero__inner,
.why-edge__inner,
.cta-band__inner,
.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--accent-1);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
strong {
  font-family: "Space Grotesk", "Inter", "Noto Sans SC", sans-serif;
}

h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

h3 {
  margin: 0 0 14px;
  font-size: 1.35rem;
}

p {
  margin: 0;
  color: var(--text-1);
  font-size: 1rem;
  line-height: 1.76;
}

.hero__lede {
  max-width: 40rem;
  margin-top: 22px;
  font-size: 1.1rem;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
}

.hero__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.hero__signals li,
.project-card__tags span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-1);
  background: rgba(16, 34, 53, 0.42);
  font-size: 0.82rem;
}

.hero__visual {
  position: relative;
  min-height: 560px;
}

.signal-sphere {
  position: absolute;
  inset: 12% 6% auto auto;
  width: min(520px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(83, 242, 227, 0.12), transparent 46%),
    radial-gradient(circle at 58% 42%, rgba(127, 219, 255, 0.16), transparent 28%);
  filter: drop-shadow(0 0 45px rgba(83, 242, 227, 0.18));
}

.signal-sphere__ring,
.signal-sphere__orbit,
.signal-sphere__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.signal-sphere__ring {
  border: 1px solid rgba(127, 219, 255, 0.18);
}

.signal-sphere__ring--outer {
  transform: rotate(16deg);
}

.signal-sphere__ring--middle {
  inset: 14%;
  transform: rotate(-24deg);
}

.signal-sphere__ring--inner {
  inset: 28%;
  border-color: rgba(83, 242, 227, 0.2);
}

.signal-sphere__orbit {
  border-top: 1px solid rgba(83, 242, 227, 0.3);
  border-bottom: 1px solid transparent;
}

.signal-sphere__orbit--one {
  transform: rotate(32deg) scaleY(0.56);
  animation: drift 12s linear infinite;
}

.signal-sphere__orbit--two {
  transform: rotate(-26deg) scaleY(0.72);
  animation: driftReverse 15s linear infinite;
}

.signal-sphere__pulse {
  inset: 8%;
  box-shadow: inset 0 0 50px rgba(83, 242, 227, 0.08);
  animation: pulse 6s ease-in-out infinite;
}

.signal-sphere__node {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle, #d8feff 0%, var(--accent-0) 48%, transparent 78%);
  box-shadow: 0 0 18px rgba(83, 242, 227, 0.7);
  animation: blink 4.6s ease-in-out infinite;
}

.signal-sphere__node--1 { top: 16%; left: 28%; }
.signal-sphere__node--2 { top: 26%; right: 18%; animation-delay: -1.2s; }
.signal-sphere__node--3 { top: 48%; left: 14%; animation-delay: -2.1s; }
.signal-sphere__node--4 { bottom: 24%; left: 26%; animation-delay: -0.8s; }
.signal-sphere__node--5 { bottom: 18%; right: 24%; animation-delay: -2.8s; }
.signal-sphere__node--6 { top: 58%; right: 12%; animation-delay: -3.1s; }

.hero-stats {
  position: absolute;
  left: 0;
  bottom: 12%;
  display: grid;
  gap: 16px;
}

.hero-stats__card,
.card,
.project-card,
.insight-panel,
.cta-band__inner {
  background: linear-gradient(180deg, rgba(19, 40, 61, 0.72), rgba(16, 34, 53, 0.42));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.hero-stats__card {
  min-width: 220px;
  padding: 18px 20px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.hero-stats__label {
  display: block;
  color: var(--text-2);
  font-size: 0.8rem;
  margin-bottom: 8px;
}

.hero-stats__card strong {
  font-size: 1.1rem;
}

.section {
  padding: 104px 0;
}

.section-head {
  max-width: 760px;
}

.section-head--center {
  margin: 0 auto 48px;
  text-align: center;
}

.split-section {
  gap: 96px;
}

.section-copy p {
  font-size: 1.08rem;
}

.card-grid {
  display: grid;
  gap: 24px;
}

.card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 28px;
  border-radius: var(--radius);
  transition: transform 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.card:hover,
.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 219, 255, 0.34);
}

.card::before,
.project-card::before,
.insight-panel::before,
.cta-band__inner::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(83, 242, 227, 0.55), transparent 82%);
}

.card__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(83, 242, 227, 0.2), rgba(127, 219, 255, 0.1)), rgba(16, 34, 53, 0.6);
  border: 1px solid rgba(127, 219, 255, 0.22);
  box-shadow: inset 0 0 14px rgba(83, 242, 227, 0.12);
}

.card--compact {
  min-height: auto;
}

.why-edge {
  padding-top: 60px;
}

.insight-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 18px;
  padding: 32px;
  border-radius: 28px;
}

.insight-panel__core {
  position: absolute;
  inset: -16% 10% auto auto;
  width: 280px;
  height: 280px;
  background:
    radial-gradient(circle, rgba(83, 242, 227, 0.18), transparent 54%),
    radial-gradient(circle at 45% 55%, rgba(127, 219, 255, 0.18), transparent 42%);
  border-radius: 50%;
  filter: blur(14px);
}

.insight-panel__metric {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(7, 17, 26, 0.34);
  border: 1px solid rgba(131, 180, 214, 0.12);
}

.insight-panel__metric span {
  color: var(--accent-1);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.insight-panel__metric small {
  color: var(--text-1);
  font-size: 0.92rem;
  line-height: 1.6;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.project-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 28px;
  border-radius: 22px;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.cta-band {
  padding-bottom: 120px;
}

.cta-band__inner {
  position: relative;
  gap: 32px;
  padding: 38px;
  border-radius: 28px;
}

.cta-band__actions {
  display: grid;
  justify-items: start;
  gap: 22px;
}

.site-footer {
  padding: 0 0 36px;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(131, 180, 214, 0.08);
}

.footer-brand {
  max-width: 420px;
}

.footer-brand p {
  margin-top: 18px;
  font-size: 0.95rem;
}

@keyframes drift {
  from { transform: rotate(32deg) scaleY(0.56) rotate(0deg); }
  to { transform: rotate(32deg) scaleY(0.56) rotate(360deg); }
}

@keyframes driftReverse {
  from { transform: rotate(-26deg) scaleY(0.72) rotate(360deg); }
  to { transform: rotate(-26deg) scaleY(0.72) rotate(0deg); }
}

@keyframes blink {
  0%, 100% { opacity: 0.55; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.16); }
}

@keyframes pulse {
  0%, 100% { transform: scale(0.98); opacity: 0.68; }
  50% { transform: scale(1.02); opacity: 1; }
}

@media (max-width: 1080px) {
  .hero__inner,
  .why-edge__inner,
  .cta-band__inner,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 480px;
  }

  .signal-sphere {
    position: relative;
    inset: 0;
    margin: 0 auto;
  }

  .hero-stats {
    position: relative;
    left: auto;
    bottom: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  .card-grid--three,
  .project-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  :root {
    --container: min(100vw - 32px, 720px);
  }

  .main-nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(16, 34, 53, 0.52);
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    margin: 0 auto;
    background: var(--text-0);
  }

  .mobile-menu {
    display: grid;
    gap: 10px;
    max-height: 0;
    overflow: hidden;
    width: var(--container);
    margin: 0 auto;
    transition: max-height 220ms ease, padding 220ms ease;
  }

  .mobile-menu.is-open {
    max-height: 280px;
    padding-bottom: 18px;
  }

  .mobile-menu a {
    color: var(--text-1);
    padding: 8px 0;
  }

  .hero {
    padding-top: 56px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .footer-inner,
  .header-inner {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero__visual {
    min-height: 380px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 84px 0;
  }

  .cta-band__inner,
  .insight-panel,
  .card,
  .project-card {
    padding: 24px;
  }

  .hero__signals {
    gap: 8px;
  }
}
