:root {
  --bg-deep: #000814;
  --bg-navy: #001d3d;
  --bg-mid: #003566;
  --brand-blue: #005bb5;
  --accent: #00a8ff;
  --accent-soft: #33b5ff;
  --silver: #cbd5e0;
  --text: #f0f4f8;
  --text-muted: #94a3b8;
  --line: rgba(0, 168, 255, 0.18);
  --surface: rgba(0, 45, 90, 0.35);
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Outfit", sans-serif;
  --header-h: 4.5rem;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 91, 181, 0.35), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(0, 168, 255, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 35% at 10% 60%, rgba(0, 53, 102, 0.45), transparent 55%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg-navy) 45%, #001428 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.25s var(--ease-out);
}

a:hover,
a:focus-visible {
  color: #7dd3ff;
}

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

/* Atmosphere decorations */
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.glow--left {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  top: 18%;
  left: -8%;
  background: var(--brand-blue);
}

.glow--right {
  width: min(36vw, 360px);
  height: min(36vw, 360px);
  bottom: 8%;
  right: -6%;
  background: var(--accent);
  opacity: 0.22;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding: 0.75rem clamp(1.25rem, 4vw, 3rem);
  background: linear-gradient(
    180deg,
    rgba(0, 8, 20, 0.92) 0%,
    rgba(0, 29, 61, 0.78) 70%,
    rgba(0, 29, 61, 0.2) 100%
  );
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.brand__logo {
  width: auto;
  height: clamp(48px, 7vw, 58px);
  border-radius: 0.35rem;
  filter: drop-shadow(0 0 14px rgba(0, 168, 255, 0.3));
  transition: transform 0.35s var(--ease-out), filter 0.35s var(--ease-out);
}

.brand__logo_b {
  width: auto;
  height: clamp(120px, 20vw, 240px);
  border-radius: 0.35rem;
  filter: drop-shadow(0 0 14px rgba(0, 168, 255, 0.3));
  transition: transform 0.35s var(--ease-out), filter 0.35s var(--ease-out);
}

.brand:hover .brand__logo,
.brand:focus-visible .brand__logo {
  transform: scale(1.02);
  filter: drop-shadow(0 0 24px rgba(0, 168, 255, 0.45));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: rgba(0, 45, 90, 0.5);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav__link {
  position: relative;
  padding: 0.65rem 1.1rem;
  border: none;
  border-radius: 0.35rem;
  background: transparent;
  color: var(--silver);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}

.main-nav__link::after {
  content: "";
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 0.35rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.main-nav__link:hover,
.main-nav__link:focus-visible {
  color: var(--text);
  background: rgba(0, 168, 255, 0.08);
}

.main-nav__link.is-active {
  color: var(--text);
}

.main-nav__link.is-active::after {
  transform: scaleX(1);
}

/* Main layout */
.site-main {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) 0 4rem;
}

.panel {
  display: none;
  opacity: 0;
  transform: translateY(14px);
}

.panel.is-active {
  display: block;
  animation: panel-in 0.55s var(--ease-out) forwards;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero — brand first, one composition */
.hero {
  position: relative;
  padding: clamp(2.5rem, 8vh, 5rem) 0 clamp(2rem, 5vh, 3.5rem);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.hero__eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 4.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 0 40px rgba(0, 168, 255, 0.25);
}

.hero__lead {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--silver);
}

.section-intro {
  padding: clamp(1.75rem, 5vh, 3rem) 0 1.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.section-intro__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.section-intro__text {
  margin: 0;
  max-width: 36rem;
  color: var(--silver);
  font-weight: 300;
}

.content-block {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.content-block:last-child {
  border-bottom: none;
}

.content-block__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
}

.content-block__text {
  margin: 0 0 1.25rem;
  color: var(--silver);
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--silver);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(0, 168, 255, 0.55);
}

.feature-list strong {
  color: var(--text);
  font-weight: 600;
}

/* Tech table */
.table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: linear-gradient(145deg, rgba(0, 45, 90, 0.4), rgba(0, 8, 20, 0.5));
}

.tech-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.tech-table th,
.tech-table td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.tech-table th {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  background: rgba(0, 168, 255, 0.06);
}

.tech-table td:first-child,
.tech-table td:nth-child(2) {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

.tech-table td:nth-child(2) {
  color: var(--accent-soft);
}

.tech-table tbody tr:last-child th,
.tech-table tbody tr:last-child td {
  border-bottom: none;
}

.tech-table tbody tr {
  transition: background 0.25s var(--ease-out);
}

.tech-table tbody tr:hover {
  background: rgba(0, 168, 255, 0.05);
}

/* Founders */
.founders {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 0.5rem;
}

.founder {
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.founder:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.founder__header {
  margin-bottom: 1rem;
}

.founder__name {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}

.founder__role {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.founder__body {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.founder__body p {
  margin: 0;
  color: var(--silver);
}

/* Contact */
.contact {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin: 0;
  padding: 2rem 0 0;
  font-style: normal;
}

.contact__item {
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.contact__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact__label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact__value {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.55;
}

.contact__link {
  text-decoration: none;
  width: fit-content;
  transition: color 0.25s var(--ease-out);
}

.contact__link:hover,
.contact__link:focus-visible {
  color: var(--accent-soft);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: linear-gradient(180deg, rgba(0, 8, 20, 0.98), rgba(0, 29, 61, 0.96));
    border-bottom: 1px solid var(--line);
    transform: translateY(-0.5rem);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.3s var(--ease-out),
      transform 0.3s var(--ease-out),
      visibility 0.3s;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .main-nav__link {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
  }

  .main-nav__link::after {
    left: 1rem;
    right: auto;
    width: 2.5rem;
    bottom: 0.55rem;
  }

  .hero__brand {
    font-size: clamp(2.4rem, 12vw, 3.25rem);
  }

  .site-main {
    width: min(100%, calc(100% - 2rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .panel.is-active {
    opacity: 1;
    transform: none;
  }
}
