:root {
  --bg: #061018;
  --bg-deep: #03070d;
  --panel: rgba(13, 27, 39, 0.78);
  --panel-strong: rgba(15, 31, 45, 0.92);
  --line: rgba(158, 215, 236, 0.17);
  --line-strong: rgba(144, 220, 255, 0.34);
  --text: #eef7fb;
  --muted: #9db1bf;
  --soft: #c7d8e2;
  --cyan: #83e6ff;
  --blue: #4f8cff;
  --teal: #54d6c4;
  --violet: #9a87ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(circle at 22% 8%, rgba(79, 140, 255, 0.18), transparent 32rem),
    radial-gradient(circle at 86% 22%, rgba(84, 214, 196, 0.12), transparent 28rem),
    linear-gradient(145deg, var(--bg-deep), var(--bg) 38%, #09131f);
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(142, 214, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 214, 255, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.62), transparent 92%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 0%, rgba(3, 7, 13, 0.74) 78%, var(--bg-deep) 100%);
}

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

.site-shell {
  width: min(100%, 1480px);
  margin: 0 auto;
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(calc(100% - 32px), var(--max));
  min-height: 76px;
  margin: 0 auto;
  padding: 16px 0;
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.nav-cta {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 12px;
  width: auto;
  min-height: 52px;
  color: var(--text);
}

.brand-symbol {
  position: relative;
  display: grid;
  align-content: center;
  gap: 6px;
  width: 46px;
  height: 46px;
  padding: 9px 8px;
  border: 1px solid rgba(131, 230, 255, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 24%, rgba(131, 230, 255, 0.42), transparent 22px),
    linear-gradient(145deg, rgba(131, 230, 255, 0.16), rgba(79, 140, 255, 0.06));
  box-shadow: 0 0 30px rgba(83, 210, 255, 0.15);
}

.brand-symbol span {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.brand-symbol span:nth-child(1),
.brand-symbol span:nth-child(3) {
  width: 26px;
}

.brand-symbol span:nth-child(2) {
  width: 18px;
}

.brand-symbol::before,
.brand-symbol::after {
  position: absolute;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(131, 230, 255, 0.6);
}

.brand-symbol::before {
  top: 8px;
}

.brand-symbol::after {
  bottom: 8px;
}

.brand-icon {
  display: block;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-text {
  display: grid;
  gap: 2px;
  line-height: 1;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 800;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav-links {
  gap: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a:hover,
.contact-card a:hover {
  color: var(--cyan);
}

.nav-cta,
.button {
  min-height: 44px;
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-cta {
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

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

.primary {
  border: 1px solid rgba(131, 230, 255, 0.52);
  color: #031019;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 40px rgba(79, 140, 255, 0.24);
}

.secondary {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
}

.section-grid,
.content-section,
.positioning,
.site-footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, 0.98fr);
  gap: clamp(36px, 6vw, 86px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 80px 0 62px;
}

.hero-line,
.section-index {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
}

.hero-line {
  margin: 0 0 20px;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7.2vw, 7rem);
  line-height: 0.93;
  font-weight: 780;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.3vw, 4.4rem);
  line-height: 1.02;
  font-weight: 760;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.hero-subhead,
.section-copy p,
.architecture-copy,
.expertise-card p,
.process-step p {
  color: var(--soft);
  line-height: 1.75;
}

.hero-subhead {
  max-width: 650px;
  margin-bottom: 34px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.system-visual {
  position: relative;
  aspect-ratio: 1.08;
  min-height: 430px;
}

#hero-animation {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

#hero-animation canvas {
  width: min(100%, 430px) !important;
  height: auto !important;
  max-height: 100%;
  aspect-ratio: 1;
  background: transparent;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 42%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 42%, transparent 78%);
  filter: drop-shadow(0 0 18px rgba(131, 230, 255, 0.16));
}

.positioning {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0 68px;
}

.positioning span {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.85rem;
}

.content-section {
  padding: clamp(72px, 10vw, 132px) 0;
}

.split-section,
.architecture-wrap,
.contact-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(34px, 7vw, 86px);
}

.section-heading {
  display: grid;
  gap: 18px;
  align-content: start;
}

.section-heading.narrow {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-copy p {
  margin-bottom: 24px;
  font-size: 1.03rem;
}

.expertise-grid,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.expertise-card,
.process-step,
.differentiation-panel,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--panel), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.expertise-card {
  min-height: 210px;
  padding: 28px;
}

.expertise-card h3::before {
  display: block;
  width: 34px;
  height: 2px;
  margin-bottom: 22px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.architecture-wrap {
  align-items: center;
  margin-top: 42px;
}

.layer-stack {
  display: grid;
  gap: 12px;
  perspective: 1000px;
}

.architecture-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(131, 230, 255, 0.12), rgba(79, 140, 255, 0.04));
  color: var(--text);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  transform: rotateX(0deg) skewX(-6deg);
}

.architecture-layer:nth-child(even) {
  margin-left: 28px;
  background: linear-gradient(90deg, rgba(154, 135, 255, 0.11), rgba(84, 214, 196, 0.04));
}

.architecture-layer span,
.process-step span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
}

.architecture-copy {
  margin: 0;
  font-size: 1.08rem;
}

.process-step {
  min-height: 220px;
  padding: 26px;
}

.process-step span {
  display: inline-flex;
  margin-bottom: 42px;
}

.differentiation-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: clamp(30px, 5vw, 58px);
  background:
    linear-gradient(135deg, rgba(131, 230, 255, 0.12), rgba(154, 135, 255, 0.06)),
    var(--panel-strong);
}

.amn-section {
  padding-top: 0;
}

.amn-panel {
  max-width: 900px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(30px, 5vw, 58px);
  background:
    radial-gradient(circle at 14% 18%, rgba(131, 230, 255, 0.14), transparent 18rem),
    linear-gradient(145deg, rgba(15, 31, 45, 0.88), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.amn-panel h2 {
  max-width: 760px;
  margin: 18px 0 14px;
}

.amn-subtitle {
  color: var(--cyan);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 750;
  line-height: 1.25;
}

.amn-panel p {
  max-width: 760px;
  margin-bottom: 18px;
  color: var(--soft);
  font-size: 1.04rem;
  line-height: 1.75;
}

.amn-panel p:last-child {
  margin-bottom: 0;
}

.amn-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
}

.amn-points li {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  font-weight: 750;
}

.differentiation-panel ul {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.differentiation-panel li {
  position: relative;
  padding-left: 28px;
  color: var(--soft);
}

.differentiation-panel li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 12px;
  height: 2px;
  content: "";
  background: var(--cyan);
}

.contact-section {
  align-items: start;
}

.contact-copy h2 {
  margin: 18px 0 30px;
}

.contact-form,
.form-field {
  display: grid;
}

.contact-form {
  gap: 16px;
  max-width: 540px;
}

.form-field {
  gap: 8px;
}

.form-field label {
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 15px;
  color: var(--text);
  font: inherit;
  background: rgba(255, 255, 255, 0.045);
  outline: none;
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(131, 230, 255, 0.11);
}

.contact-form .button {
  width: fit-content;
  cursor: pointer;
}

.contact-card {
  display: grid;
  gap: 10px;
  padding: 34px;
  color: var(--soft);
  font-style: normal;
}

.contact-card strong {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.2rem;
}

.contact-card a {
  color: var(--cyan);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0 52px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer div {
  display: grid;
  gap: 6px;
}

.site-footer strong {
  color: var(--text);
}

.site-footer p {
  margin: 0;
}

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

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

@media (max-width: 960px) {
  .site-header {
    flex-wrap: wrap;
    min-height: auto;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero,
  .split-section,
  .architecture-wrap,
  .contact-section,
  .amn-points,
  .differentiation-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .system-visual {
    min-height: 360px;
  }

  .expertise-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header,
  .section-grid,
  .content-section,
  .positioning,
  .site-footer {
    width: min(calc(100% - 24px), var(--max));
  }

  .brand {
    width: 100%;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  h1 {
    font-size: clamp(2.8rem, 16vw, 4.4rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .contact-form .button {
    width: 100%;
  }

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

  .system-visual {
    min-height: 330px;
  }

  .expertise-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .architecture-layer {
    min-height: 78px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    transform: none;
  }

  .architecture-layer:nth-child(even) {
    margin-left: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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