*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1100px 480px at 8% -8%, var(--hero-glow), transparent 58%),
    radial-gradient(900px 420px at 92% 4%, var(--hero-mesh-a), transparent 55%),
    linear-gradient(180deg, var(--hero-mesh-b), var(--bg) 48%);
  background-attachment: fixed;
  line-height: 1.55;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
  opacity: 0.45;
  animation: orb-drift 18s ease-in-out infinite alternate;
}

.bg-orb-a {
  width: 28rem;
  height: 28rem;
  top: 12%;
  left: -8%;
  background: var(--hero-glow);
}

.bg-orb-b {
  width: 22rem;
  height: 22rem;
  right: -6%;
  bottom: 18%;
  background: color-mix(in srgb, var(--brand) 35%, transparent);
  animation-delay: -7s;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.wrap,
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: "Syne", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.hero {
  min-height: min(100vh, 920px);
  display: grid;
  align-items: center;
  padding: 6.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-brand-name {
  margin: 0 0 1rem;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  animation: rise 0.8s ease both;
}

.hero-brand-name span {
  display: inline-block;
  color: var(--brand);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  animation: rise 0.9s ease 0.08s both;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  animation: rise 0.9s ease 0.16s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 0.9s ease 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.2rem;
  border-radius: 0.65rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.btn-icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  color: inherit;
}

.btn-icon svg {
  width: 100%;
  height: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: var(--cta-fg);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 28%, transparent);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--brand) 38%, transparent);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 72%, transparent);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 460px);
  animation: float-in 1s ease 0.2s both;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}

.hero-ring {
  position: absolute;
  inset: 6%;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  border-radius: 42% 58% 48% 52% / 48% 42% 58% 52%;
  z-index: 0;
  animation: morph 12s ease-in-out infinite alternate, spin-slow 28s linear infinite;
  pointer-events: none;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% 8%;
  background: radial-gradient(circle at 50% 42%, var(--hero-glow), transparent 72%);
  filter: blur(10px);
  z-index: 0;
  animation: pulse-glow 4.5s ease-in-out infinite;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  background: transparent;
  filter: drop-shadow(0 22px 40px color-mix(in srgb, var(--brand) 22%, transparent));
  animation: logo-float 5.5s ease-in-out infinite;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-item {
  padding: 1.4rem 1.2rem 1.5rem;
  border-top: 2px solid var(--brand);
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--bg-elevated) 88%, transparent),
    color-mix(in srgb, var(--bg-muted) 35%, transparent)
  );
  border-inline: 1px solid transparent;
  border-bottom: 1px solid transparent;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  transition-delay: var(--d, 0ms);
}

.service-item:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--brand) 40%, transparent);
  background: color-mix(in srgb, var(--bg-elevated) 96%, transparent);
}

.service-item .icon {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--brand);
  margin-bottom: 1rem;
  transition: transform 0.25s ease;
}

.service-item:hover .icon {
  transform: scale(1.08) rotate(-4deg);
}

.service-item h3 {
  margin: 0 0 0.55rem;
  font-family: "Syne", sans-serif;
  font-size: 1.15rem;
}

.service-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.section-systems {
  position: relative;
}

.systems {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.25rem;
  align-items: start;
}

.systems-intro {
  margin: -0.5rem 0 1.5rem;
  color: var(--text-soft);
  max-width: 36rem;
  font-size: 1.02rem;
}

.systems-cta {
  margin-top: 0.25rem;
}

.systems-panel {
  padding: 1.5rem 1.5rem 0.75rem;
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--bg-elevated) 92%, transparent), color-mix(in srgb, var(--bg-muted) 55%, transparent));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.systems-panel::after {
  content: "";
  position: absolute;
  width: 10rem;
  height: 10rem;
  right: -3rem;
  top: -3rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  filter: blur(20px);
  pointer-events: none;
}

.systems-panel-head .icon {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.systems-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
  z-index: 1;
}

.systems-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.2s ease, background 0.2s ease;
}

.systems-list li:last-child {
  border-bottom: 0;
}

.systems-list li:hover {
  transform: translateX(4px);
}

.systems-list strong {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 1.02rem;
  margin-bottom: 0.25rem;
  color: var(--text);
}

.systems-list p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.96rem;
}

.systems-dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 1px;
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}

.contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-link {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 1.2rem 1.25rem;
  text-decoration: none;
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  border: 1px solid var(--line);
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.contact-link:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 14%, transparent);
}

.contact-link .icon {
  width: 1.7rem;
  height: 1.7rem;
  color: var(--brand);
  flex-shrink: 0;
}

.contact-link small {
  display: block;
  color: var(--text-soft);
  margin-bottom: 0.15rem;
}

.contact-link strong {
  font-size: 1.02rem;
  word-break: break-word;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--d, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes morph {
  0% {
    border-radius: 42% 58% 48% 52% / 48% 42% 58% 52%;
  }
  100% {
    border-radius: 58% 42% 52% 48% / 42% 58% 42% 58%;
  }
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

@keyframes orb-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(2.5rem, 1.5rem, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-brand-name,
  .hero h1,
  .hero-lead,
  .hero-actions,
  .hero-visual,
  .hero-visual img,
  .hero-ring,
  .hero-visual::before,
  .bg-orb,
  .reveal {
    animation: none !important;
    opacity: 1;
    transform: none;
    transition: none;
  }
}
