:root {
  --bg: #06111f;
  --bg-deep: #020712;
  --surface: rgba(7, 17, 38, 0.62);
  --surface-strong: rgba(7, 17, 38, 0.84);
  --surface-line: rgba(133, 177, 255, 0.16);
  --text: #eaf2ff;
  --muted: #9aa9c8;
  --brand-dark: #283b70;
  --brand-blue: #2f8ff0;
  --brand-cyan: #43b6ff;
  --brand-violet: #7f39fb;
  --brand-magenta: #b03cff;
  --glow: rgba(67, 182, 255, 0.34);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --grid: rgba(255, 255, 255, 0.03);
  --pointer-x: 50%;
  --pointer-y: 50%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 22%, rgba(67, 182, 255, 0.22), transparent 0 24%),
    radial-gradient(circle at 82% 18%, rgba(127, 57, 251, 0.18), transparent 0 22%),
    radial-gradient(circle at 50% 80%, rgba(32, 67, 142, 0.24), transparent 0 28%),
    linear-gradient(145deg, #07111f 0%, #050c18 42%, #020611 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(255, 255, 255, 0.05) 45%, transparent 52%),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 92%);
  animation: sweep 12s linear infinite;
  opacity: 0.35;
}

body::after {
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(67, 182, 255, 0.18), transparent 18%),
    radial-gradient(circle at center, rgba(176, 60, 255, 0.12), transparent 58%);
  filter: blur(60px);
  transform: scale(1.12);
  animation: pulse 8s ease-in-out infinite;
  opacity: 0.82;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

.page-shell {
  position: relative;
  isolation: isolate;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
}

.brand-chip,
.header-mail,
.button,
.contact-line,
.contact-block,
.site-nav a,
.site-footer a {
  text-decoration: none;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid rgba(145, 179, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 20, 45, 0.48);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 24px rgba(67, 182, 255, 0.08);
}

.brand-chip__mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-cyan), var(--brand-violet));
  box-shadow: 0 0 18px var(--glow);
}

.brand-chip__text,
.header-mail,
.site-nav a {
  color: #d5e4ff;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.site-nav a,
.header-mail {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(145, 179, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.header-mail:hover,
.header-mail:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(145, 179, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 32px;
  align-items: center;
  padding: 40px 0 28px;
}

.eyebrow,
.metric__label,
.info-card__label,
.section-head__label,
.project-card__label,
.contact-block__caption {
  color: #85b1ff;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  color: #c6dbff;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
}

h1 {
  margin-top: 20px;
  max-width: 9ch;
  font-size: clamp(3.8rem, 9vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.brand-line {
  display: block;
  background: linear-gradient(90deg, #f4f8ff 0%, #88cbff 30%, #7f39fb 68%, #e1e8ff 100%);
  background-size: 180% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

.lead,
.section-head p,
.project-card__lead,
.info-card p,
.feature-list {
  color: var(--muted);
  line-height: 1.8;
}

.lead {
  max-width: 640px;
  margin-top: 24px;
  font-size: 1.12rem;
}

.hero-actions,
.metrics,
.info-grid,
.project-grid,
.project-card__actions {
  display: grid;
  gap: 16px;
}

.hero-actions {
  grid-template-columns: repeat(2, max-content);
  margin-top: 30px;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  isolation: isolate;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-115%);
  background: linear-gradient(120deg, transparent 22%, rgba(255, 255, 255, 0.34) 48%, transparent 74%);
  transition: transform 0.8s ease;
  z-index: -1;
}

.button:hover,
.button:focus-visible,
.contact-line:hover,
.contact-line:focus-visible,
.contact-block:hover,
.contact-block:focus-visible {
  transform: translateY(-3px);
}

.button:hover::before,
.button:focus-visible::before {
  transform: translateX(115%);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-violet) 62%, var(--brand-magenta));
  box-shadow: 0 12px 32px rgba(72, 104, 255, 0.32);
}

.button-secondary {
  color: #d8e7ff;
  border-color: rgba(163, 196, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 22px rgba(67, 182, 255, 0.05);
}

.metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.metric,
.info-card,
.project-card,
.section-head {
  padding: 22px 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(153, 193, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 24px rgba(121, 163, 255, 0.04);
  backdrop-filter: blur(10px);
}

.metric__label,
.info-card__label,
.project-card__label,
.contact-block__caption {
  margin-bottom: 10px;
}

.metric__text {
  color: var(--text);
  line-height: 1.65;
}

.hero-visual {
  display: grid;
  place-items: center;
}

.logo-card {
  position: relative;
  width: min(100%, 490px);
  min-height: 620px;
  padding: 28px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid var(--surface-line);
  background:
    linear-gradient(180deg, rgba(16, 30, 64, 0.72), rgba(5, 10, 21, 0.88)),
    radial-gradient(circle at top, rgba(67, 182, 255, 0.12), transparent 42%);
  box-shadow: var(--shadow), inset 0 0 30px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  transition: transform 0.25s ease;
}

.logo-card::before {
  content: "";
  position: absolute;
  inset: -42%;
  background:
    conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(67, 182, 255, 0.22) 76deg, transparent 118deg, rgba(127, 57, 251, 0.24) 188deg, transparent 240deg, rgba(67, 182, 255, 0.18) 290deg, transparent 360deg);
  animation: spin 14s linear infinite;
  opacity: 0.85;
}

.logo-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 33px;
  background:
    linear-gradient(180deg, rgba(3, 7, 17, 0.15), rgba(3, 7, 17, 0.76)),
    radial-gradient(circle at 50% 22%, rgba(67, 182, 255, 0.1), transparent 28%);
}

.logo-card__halo {
  position: absolute;
  inset: auto 50% 70px auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(67, 182, 255, 0.22), transparent 72%);
  transform: translateX(50%);
  filter: blur(18px);
  z-index: 1;
}

.logo-stage,
.logo-card__copy {
  position: relative;
  z-index: 2;
}

.logo-stage {
  min-height: 360px;
  display: grid;
  place-items: center;
}

.sigil {
  width: 78%;
  height: auto;
  filter: drop-shadow(0 0 26px rgba(67, 182, 255, 0.26));
  transform: translateY(12px);
  animation: hoverLogo 6s ease-in-out infinite;
}

.sigil-mark {
  opacity: 0;
  animation: drawIn 1.2s ease forwards;
}

.sigil-mark:nth-of-type(2) { animation-delay: 0.12s; }
.sigil-mark:nth-of-type(3) { animation-delay: 0.24s; }
.sigil-mark:nth-of-type(4) { animation-delay: 0.36s; }
.sigil-mark:nth-of-type(5) { animation-delay: 0.48s; }

.logo-card__copy {
  display: grid;
  gap: 10px;
}

.logo-card__title {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.logo-card__subtitle {
  color: rgba(234, 242, 255, 0.64);
  font-size: 0.92rem;
  letter-spacing: 0.52em;
  text-transform: uppercase;
}

.logo-card__text {
  max-width: 28ch;
  color: var(--muted);
  line-height: 1.75;
}

.contact-line,
.contact-block {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(163, 196, 255, 0.12);
  color: #d8e7ff;
  box-shadow: inset 0 0 22px rgba(67, 182, 255, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.section {
  padding: 28px 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2,
.info-card h2 {
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 10px 0 14px;
}

.project-grid {
  grid-template-columns: minmax(0, 1fr);
}

.project-card {
  background:
    linear-gradient(180deg, rgba(14, 29, 58, 0.78), rgba(6, 14, 28, 0.92)),
    radial-gradient(circle at top right, rgba(67, 182, 255, 0.12), transparent 34%);
}

.project-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.project-card h3 {
  font-size: 1.7rem;
  margin-top: 8px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(116, 255, 189, 0.18);
  background: rgba(39, 163, 112, 0.12);
  color: #bbffd7;
  font-size: 0.84rem;
  white-space: nowrap;
}

.project-card__lead {
  max-width: 70ch;
}

.project-card__facts,
.feature-list {
  padding-left: 18px;
}

.project-card__facts {
  color: var(--text);
  line-height: 1.7;
  margin: 18px 0 0;
}

.project-card__facts li + li,
.feature-list li + li {
  margin-top: 10px;
}

.project-card__actions {
  grid-template-columns: repeat(2, max-content);
  margin-top: 22px;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px 0 54px;
}

.contact-block {
  margin-top: 16px;
  flex-direction: column;
  align-items: flex-start;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 24px 0 32px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid rgba(153, 193, 255, 0.1);
  color: var(--muted);
}

.site-footer__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #d5e4ff;
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.orb-a {
  top: 12%;
  left: -6%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(67, 182, 255, 0.42), transparent 68%);
  animation: floatA 11s ease-in-out infinite;
}

.orb-b {
  right: -2%;
  top: 8%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(127, 57, 251, 0.34), transparent 70%);
  animation: floatB 13s ease-in-out infinite;
}

.orb-c {
  left: 50%;
  bottom: -80px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(43, 122, 255, 0.24), transparent 72%);
  transform: translateX(-50%);
  animation: floatC 14s ease-in-out infinite;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

@keyframes shimmer {
  to {
    background-position: 180% center;
  }
}

@keyframes pulse {
  0%, 100% { transform: scale(1.12); opacity: 0.78; }
  50% { transform: scale(1.22); opacity: 0.96; }
}

@keyframes sweep {
  0% { transform: translateX(-2%); }
  50% { transform: translateX(2%); }
  100% { transform: translateX(-2%); }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatA {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 28px); }
}

@keyframes floatB {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-34px, 30px); }
}

@keyframes floatC {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-46%) translateY(-20px); }
}

@keyframes hoverLogo {
  0%, 100% { transform: translateY(12px) rotate(0deg); }
  50% { transform: translateY(2px) rotate(-1deg); }
}

@keyframes drawIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1080px) {
  .site-header,
  .hero,
  .info-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .site-header {
    justify-items: start;
  }

  .site-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero {
    min-height: auto;
  }

  .logo-card {
    min-height: 560px;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: min(100% - 20px, 1160px);
  }

  .site-header {
    gap: 14px;
    padding-top: 18px;
  }

  .site-nav {
    gap: 10px;
  }

  .hero {
    gap: 24px;
    padding-top: 28px;
  }

  h1 {
    max-width: none;
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .lead {
    font-size: 1rem;
    line-height: 1.72;
  }

  .hero-actions,
  .project-card__actions {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .project-card__top,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-card {
    min-height: 520px;
    padding: 22px;
    border-radius: 28px;
  }

  .logo-card::after {
    border-radius: 27px;
  }

  .logo-card__subtitle {
    letter-spacing: 0.28em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
