:root {
  color-scheme: dark;
  --bg: #03040a;
  --bg-soft: #080b16;
  --panel: rgba(14, 18, 34, 0.72);
  --panel-strong: rgba(20, 25, 45, 0.9);
  --line: rgba(126, 244, 255, 0.18);
  --line-strong: rgba(126, 244, 255, 0.34);
  --text: #f4fbff;
  --muted: #9aa8ba;
  --teal: #19f4ee;
  --teal-soft: #62fff7;
  --violet: #9a46ff;
  --blue: #315dff;
  --green: #7cffb2;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgba(78, 38, 166, 0.28), transparent 32rem),
    radial-gradient(circle at 12% 30%, rgba(25, 244, 238, 0.13), transparent 28rem),
    linear-gradient(135deg, #020309 0%, #060713 48%, #03040a 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(126, 244, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 244, 255, 0.06) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 72%);
  transform: perspective(760px) rotateX(62deg) translateY(-18vh) scale(1.42);
  transform-origin: top;
}

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

.neural-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.noise-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
  opacity: 0.08;
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(3, 5, 14, 0.68);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  transform: translateX(-50%);
}

.brand,
.main-nav,
.header-cta,
.hero-actions a,
.contact-actions a {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 900;
}

.main-nav {
  justify-content: center;
  gap: clamp(10px, 2vw, 26px);
  color: rgba(244, 251, 255, 0.74);
  font-size: 0.86rem;
  font-weight: 600;
}

.main-nav a {
  transition: color 180ms ease;
}

.main-nav a:hover {
  color: var(--teal-soft);
}

.header-cta {
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(25, 244, 238, 0.42);
  border-radius: 999px;
  background: rgba(25, 244, 238, 0.1);
  color: var(--teal-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.82fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  min-height: 100svh;
  padding: 112px 0 72px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.25rem, 8vw, 7.8rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
.section-heading h2,
.contact-panel h2 {
  text-wrap: balance;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 34px;
  color: #c8d4e2;
  font-size: clamp(1.04rem, 1.8vw, 1.34rem);
  line-height: 1.65;
}

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

.hero-actions a {
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 900;
}

.primary-button {
  background: linear-gradient(135deg, var(--teal), #b7fff9 45%, var(--violet));
  color: #021014;
  box-shadow: 0 18px 50px rgba(25, 244, 238, 0.22);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: #e9f6ff;
}

.metrics-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.metrics-strip span {
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.88rem;
}

.metrics-strip strong {
  color: var(--text);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  perspective: 1200px;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(126, 244, 255, 0.22);
  transform: rotateX(68deg) rotateZ(-16deg);
  animation: scanPulse 5s ease-in-out infinite;
}

.hero-visual::before {
  width: 460px;
  height: 460px;
}

.hero-visual::after {
  width: 620px;
  height: 620px;
  border-color: rgba(154, 70, 255, 0.18);
  animation-delay: -2s;
}

.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 22%;
  background:
    radial-gradient(circle at 18% 12%, rgba(98, 255, 247, 0.58), transparent 17%),
    radial-gradient(circle at 83% 76%, rgba(154, 70, 255, 0.55), transparent 25%),
    linear-gradient(145deg, rgba(10, 18, 35, 0.98), rgba(4, 5, 18, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(126, 244, 255, 0.24),
    inset 0 -30px 64px rgba(0, 0, 0, 0.46),
    inset 18px 18px 38px rgba(255, 255, 255, 0.06),
    0 0 76px rgba(25, 244, 238, 0.23),
    0 30px 90px rgba(0, 0, 0, 0.62);
}

.logo-mark::before {
  position: absolute;
  inset: 11%;
  border: 1px solid rgba(126, 244, 255, 0.34);
  border-radius: 50%;
  content: "";
  transform: rotate(-18deg) scaleX(1.26);
}

.logo-mark::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(315deg, rgba(25, 244, 238, 0.24), transparent 32%);
  mix-blend-mode: screen;
}

.mini {
  width: 38px;
  height: 38px;
}

.hero-logo {
  z-index: 2;
  width: min(380px, 70vw);
  aspect-ratio: 1;
  animation: logoFloat 6s ease-in-out infinite;
}

.logo-core {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.02em;
  width: 78%;
  height: 78%;
  color: transparent;
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: 0;
  transform: skewX(-8deg);
}

.logo-core b,
.logo-core i {
  display: block;
  background: linear-gradient(145deg, #ffffff 0%, #62fff7 34%, #02d5dc 58%, #9a46ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-style: normal;
  text-shadow:
    0 0 18px rgba(25, 244, 238, 0.58),
    0 0 40px rgba(154, 70, 255, 0.32);
}

.logo-core b {
  font-size: clamp(7.4rem, 15vw, 10.6rem);
  margin-right: -0.12em;
}

.logo-core i {
  font-size: clamp(5.6rem, 11.5vw, 8.1rem);
  margin-top: 0.17em;
}

.mini .logo-core {
  width: 82%;
  height: 82%;
}

.mini .logo-core b {
  font-size: 1.34rem;
}

.mini .logo-core i {
  font-size: 1.02rem;
}

.terminal-panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  z-index: 3;
  width: min(330px, 82vw);
  padding: 16px;
  border: 1px solid rgba(126, 244, 255, 0.22);
  border-radius: 18px;
  background: rgba(5, 8, 18, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: panelFloat 5s ease-in-out infinite;
}

.terminal-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.terminal-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.terminal-dots span:nth-child(2) {
  background: var(--violet);
}

.terminal-dots span:nth-child(3) {
  background: var(--green);
}

.terminal-panel code {
  display: grid;
  gap: 10px;
  color: #d5fff9;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.8rem;
}

.orbit-field {
  position: absolute;
  inset: 9%;
  z-index: 1;
  animation: slowRotate 18s linear infinite;
}

.orbit-field span {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(25, 244, 238, 0.76);
  border-radius: 3px;
  background: rgba(25, 244, 238, 0.12);
  box-shadow: 0 0 28px rgba(25, 244, 238, 0.5);
}

.orbit-field span:nth-child(1) {
  top: 8%;
  left: 18%;
}

.orbit-field span:nth-child(2) {
  top: 42%;
  right: 4%;
  border-color: rgba(154, 70, 255, 0.9);
}

.orbit-field span:nth-child(3) {
  bottom: 12%;
  left: 28%;
  border-color: rgba(124, 255, 178, 0.72);
}

.section-heading {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(18px, 5vw, 72px);
  align-items: end;
  margin-bottom: 34px;
}

.section-heading.compact {
  display: block;
  max-width: 620px;
}

.section-heading h2,
.contact-panel h2,
.privacy-content h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 1.02;
  font-weight: 900;
}

.about,
.services,
.cases,
.contacts,
.privacy {
  padding: 88px 0;
}

.about-grid,
.service-grid,
.case-list {
  display: grid;
  gap: 16px;
}

.about-grid {
  grid-template-columns: repeat(3, 1fr);
}

.about-grid article,
.service-card,
.case-card,
.contact-panel,
.privacy-content {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.about-grid article,
.service-card,
.case-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.about-grid article {
  min-height: 270px;
  padding: 28px;
}

.about-grid article::after,
.service-card::after,
.case-card::after {
  position: absolute;
  inset: auto 16px 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(25, 244, 238, 0.58), transparent);
  transform: translateY(1px);
}

.card-index {
  display: inline-block;
  margin-bottom: 60px;
  color: rgba(98, 255, 247, 0.86);
  font-size: 0.82rem;
  font-weight: 900;
}

.about-grid h3,
.service-card h3,
.case-card h3 {
  margin-bottom: 12px;
  font-size: 1.24rem;
  line-height: 1.18;
}

.about-grid p,
.service-card p,
.case-card p,
.privacy-content p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.62;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  min-height: 254px;
  padding: 24px;
  transition:
    border-color 200ms ease,
    transform 200ms ease,
    background 200ms ease;
}

.service-card:hover,
.case-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.service-card.featured {
  background:
    linear-gradient(145deg, rgba(25, 244, 238, 0.18), rgba(154, 70, 255, 0.11)),
    rgba(255, 255, 255, 0.045);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  min-width: 50px;
  height: 34px;
  margin-bottom: 42px;
  padding: 0 10px;
  border: 1px solid rgba(126, 244, 255, 0.26);
  border-radius: 9px;
  background: rgba(25, 244, 238, 0.08);
  color: var(--teal-soft);
  font-size: 0.72rem;
  font-weight: 900;
}

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

.case-card {
  display: grid;
  gap: 28px;
  min-height: 330px;
  padding: 26px;
}

.case-tag,
.case-meta {
  display: inline-flex;
  width: fit-content;
  color: var(--teal-soft);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-tag {
  margin-bottom: 18px;
}

.case-tag.violet {
  color: #c8a8ff;
}

.case-meta {
  align-self: end;
  color: rgba(244, 251, 255, 0.58);
}

.process {
  padding: 36px 0;
}

.process-track {
  display: flex;
  gap: 12px;
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
}

.process-track span {
  flex: 0 0 auto;
  min-width: 220px;
  color: rgba(244, 251, 255, 0.68);
  font-size: clamp(1rem, 2vw, 1.55rem);
  font-weight: 900;
  animation: ticker 18s linear infinite;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 6vw, 58px);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(25, 244, 238, 0.16), rgba(154, 70, 255, 0.12)),
    rgba(255, 255, 255, 0.05);
}

.contact-actions {
  display: grid;
  gap: 12px;
  min-width: min(320px, 100%);
}

.contact-actions a {
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(3, 5, 14, 0.5);
  color: #ecffff;
  font-weight: 900;
}

.contact-actions a::after {
  content: "↗";
  color: var(--teal-soft);
}

.privacy {
  padding-top: 40px;
}

.privacy-content {
  max-width: 850px;
  padding: clamp(24px, 5vw, 42px);
  border-radius: 8px;
}

.privacy-content h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 42px;
  color: rgba(244, 251, 255, 0.52);
  font-size: 0.9rem;
}

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg) rotateY(0deg);
  }
  50% {
    transform: translateY(-18px) rotateX(5deg) rotateY(-7deg);
  }
}

@keyframes panelFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-10px, -14px, 0);
  }
}

@keyframes panelFloatMobile {
  0%,
  100% {
    transform: translateX(-50%) translate3d(0, 0, 0);
  }
  50% {
    transform: translateX(-50%) translate3d(0, -12px, 0);
  }
}

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

@keyframes scanPulse {
  0%,
  100% {
    opacity: 0.42;
    transform: rotateX(68deg) rotateZ(-16deg) scale(0.94);
  }
  50% {
    opacity: 0.82;
    transform: rotateX(68deg) rotateZ(-16deg) scale(1.02);
  }
}

@keyframes ticker {
  to {
    transform: translateX(calc(-100% - 12px));
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 116px;
  }

  .hero-visual {
    min-height: 500px;
    order: -1;
  }

  .section-heading,
  .about-grid,
  .service-grid,
  .case-list,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .section-shell,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    border-radius: 16px;
  }

  .brand span:last-child {
    font-size: 0.82rem;
  }

  .header-cta {
    min-height: 36px;
    padding: 0 12px;
  }

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

  .hero {
    padding-bottom: 42px;
  }

  .hero-visual {
    min-height: 410px;
  }

  .hero-visual::before {
    width: 310px;
    height: 310px;
  }

  .hero-visual::after {
    width: 410px;
    height: 410px;
  }

  .terminal-panel {
    left: 50%;
    right: auto;
    bottom: 10px;
    transform: translateX(-50%);
    animation-name: panelFloatMobile;
  }

  .terminal-panel code {
    font-size: 0.72rem;
  }

  .about,
  .services,
  .cases,
  .contacts,
  .privacy {
    padding: 58px 0;
  }

  .about-grid article,
  .service-card,
  .case-card {
    min-height: auto;
  }

  .card-index,
  .service-icon {
    margin-bottom: 34px;
  }

  .hero-actions a {
    width: 100%;
  }
}

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