:root {
  --black: #030507;
  --black-soft: #0a1013;
  --ink: #eefafa;
  --muted: #a7b8bd;
  --line: rgba(255, 255, 255, 0.14);
  --white: #ffffff;
  --soft: #11181c;
  --teal: #00c6c9;
  --teal-dark: #008b90;
  --teal-soft: #b6fcff;
  --magenta: #ff3aa7;
  --magenta-dark: #9e0f6a;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--max-width));
  margin: 18px auto 0;
  padding: 12px 14px;
  color: var(--white);
  background: rgba(3, 5, 7, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(3, 5, 7, 0.94);
  border-color: rgba(255, 58, 167, 0.36);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 44px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--white);
  background: rgba(0, 198, 201, 0.14);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: transform 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.section {
  position: relative;
  padding: 112px 24px;
  overflow: hidden;
  background: var(--black);
}

.section > * {
  position: relative;
  z-index: 1;
}

.section-light {
  background: #071012;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 136px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(3, 5, 7, 0.96) 0%, rgba(9, 16, 19, 0.98) 55%, rgba(19, 3, 23, 0.94) 100%),
    var(--black);
}

.circle-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.circle-field span {
  position: absolute;
  display: block;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 198, 201, 0.26);
  border-radius: 50%;
}

.circle-field span:nth-child(2n) {
  border-color: rgba(255, 58, 167, 0.26);
}

.circle-field span:nth-child(1) {
  width: 420px;
  top: 14%;
  right: 5%;
}

.circle-field span:nth-child(2) {
  width: 190px;
  top: 66%;
  left: 7%;
}

.circle-field span:nth-child(3) {
  width: 96px;
  top: 21%;
  left: 42%;
}

.circle-field span:nth-child(4) {
  width: 280px;
  right: 26%;
  bottom: -90px;
}

.circle-field span:nth-child(5) {
  width: 64px;
  top: 48%;
  right: 38%;
}

.section-circles span:nth-child(1) {
  width: 260px;
  top: -72px;
  right: 11%;
}

.section-circles span:nth-child(2) {
  width: 120px;
  left: 8%;
  bottom: 18%;
}

.section-circles span:nth-child(3) {
  width: 72px;
  right: 35%;
  bottom: 12%;
}

.eclipse {
  position: absolute;
  top: 10%;
  right: max(24px, calc((100vw - var(--max-width)) / 2));
  width: clamp(230px, 34vw, 470px);
  aspect-ratio: 1;
  border: 1px solid rgba(10, 166, 166, 0.36);
  border-radius: 50%;
  opacity: 0.95;
}

.eclipse::before,
.eclipse::after {
  position: absolute;
  content: "";
  border-radius: inherit;
}

.eclipse::before {
  inset: 11%;
  background: var(--black);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateX(-13%);
}

.eclipse::after {
  inset: 36%;
  border: 1px solid rgba(10, 166, 166, 0.42);
  transform: translateX(-12%);
}

.hero-grid,
.section-grid,
.card-grid,
.contact-card {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.72fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--teal-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: 5.7rem;
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 4rem;
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-text {
  max-width: 620px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.18rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  color: var(--white);
  background: var(--magenta-dark);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--magenta);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(0, 198, 201, 0.54);
  background: rgba(0, 198, 201, 0.12);
}

.signal-panel {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(0, 198, 201, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(22px);
}

.brand-showcase {
  display: grid;
  place-items: center;
  height: 232px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 58, 167, 0.22);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.48);
}

.brand-showcase img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.metric {
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
}

.metric span,
.card-index,
.app-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--magenta);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.metric p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.94rem;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.section-heading h2 {
  color: var(--white);
}

.section:not(.hero) {
  color: var(--white);
}

.section:not(.hero) .section-heading h2 {
  color: var(--white);
}

.section-content p,
.app-card p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading > p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.centered > p:not(.eyebrow) {
  margin-inline: auto;
}

.section-content p:last-child,
.app-card p:last-child {
  margin-bottom: 0;
}

.centered {
  width: min(100%, 720px);
  margin: 0 auto 42px;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 285px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(0, 198, 201, 0.08), rgba(255, 58, 167, 0.08)),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.service-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
}

.app-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: 32px;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(0, 198, 201, 0.11), rgba(255, 58, 167, 0.14)),
    rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.app-card-content {
  display: grid;
  gap: 20px;
}

.app-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon {
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(89, 28, 36, 0.18);
}

.app-card h3 {
  color: var(--white);
  font-size: 2.2rem;
}

.app-card p {
  margin-bottom: 0;
}

.app-card .app-label {
  color: var(--teal-soft);
}

.app-card .button {
  justify-self: start;
}

.app-card .button-primary {
  background: var(--magenta-dark);
}

.app-card .button-primary:hover,
.app-card .button-primary:focus-visible {
  background: var(--magenta);
}

.app-preview {
  height: 330px;
  overflow: hidden;
  border: 9px solid #07080a;
  border-radius: 32px;
  background: #07080a;
  box-shadow: 0 20px 44px rgba(255, 58, 167, 0.12);
}

.app-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.contact-section {
  background:
    linear-gradient(135deg, rgba(3, 5, 7, 1) 0%, rgba(15, 5, 18, 1) 100%),
    var(--black);
}

.contact-card {
  padding: clamp(34px, 7vw, 72px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(0, 198, 201, 0.12), rgba(255, 58, 167, 0.13)),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
}

.contact-card h2 {
  max-width: 760px;
  color: var(--white);
}

.contact-card p:not(.eyebrow) {
  max-width: 590px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.06rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 26px max(24px, calc((100vw - var(--max-width)) / 2)) 34px;
  color: rgba(255, 255, 255, 0.62);
  background: var(--black);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

.error-page {
  min-height: 100vh;
}

.error-content {
  width: min(100%, 760px);
  margin: 0 auto;
  text-align: center;
}

.error-brand {
  width: min(100%, 260px);
  height: 76px;
  margin: 0 auto 34px;
}

.error-content .hero-actions {
  justify-content: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 78px;
    left: 16px;
    right: 16px;
    display: grid;
    gap: 4px;
    padding: 12px;
    background: rgba(5, 7, 7, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .site-nav a {
    padding: 12px;
    border-radius: var(--radius);
  }

  .hero-grid,
  .section-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 4.6rem;
  }

  h2 {
    font-size: 3rem;
  }

  .signal-panel {
    max-width: 520px;
  }

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

  .service-card {
    min-height: 220px;
  }

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

  .app-preview {
    width: min(100%, 270px);
  }
}

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 24px);
    margin-top: 12px;
  }

  .brand {
    width: 138px;
    height: 36px;
  }

  .section {
    padding: 82px 18px;
  }

  .hero {
    padding-top: 118px;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero-text {
    font-size: 1rem;
  }

  .app-card h3 {
    font-size: 1.65rem;
  }

  .hero-actions,
  .contact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .app-card,
  .contact-card,
  .service-card {
    padding: 24px;
  }

  .app-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-card .button {
    justify-self: stretch;
  }

  .app-preview {
    width: 100%;
    height: 360px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 18px;
  }

  .error-brand {
    height: 58px;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 2.1rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
