:root {
  color-scheme: dark;
  --bg: #090909;
  --panel: rgba(255, 255, 255, 0.07);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --text: #f8f7f2;
  --muted: #b7b5aa;
  --line: rgba(255, 255, 255, 0.14);
  --gold: #f4c514;
  --cyan: #54d7ff;
  --green: #6df2b1;
  --black: #050505;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(244, 197, 20, 0.18), transparent 28rem),
    radial-gradient(circle at 85% 8%, rgba(84, 215, 255, 0.14), transparent 24rem),
    linear-gradient(135deg, #080808 0%, #111 46%, #080808 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 76px 76px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

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

img {
  display: block;
  max-width: 100%;
}

#scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0;
  color: #0a0a0a;
}

.brand img {
  width: 70px;
  height: 44px;
  border-radius: 0;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 0 10px rgba(244, 197, 20, 0.14));
}

nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

nav a {
  border-radius: 999px;
  padding: 10px 13px;
  color: rgba(0, 0, 0, 0.66);
  font-size: 0.92rem;
  transition: color 180ms ease, background 180ms ease;
}

nav a:hover {
  color: #050505;
  background: rgba(0, 0, 0, 0.07);
}

.language-toggle {
  min-width: 44px;
  min-height: 38px;
  align-self: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: #0a0a0a;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  padding: 0 16px;
  transition: transform 180ms ease, background 180ms ease;
}

.language-toggle:hover {
  transform: translateY(-1px);
  background: #1b1b1b;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: center;
  gap: 44px;
  padding: 130px 0 70px;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 7vw, 7.8rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

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

.hero-text {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: #080808;
  background: var(--gold);
  box-shadow: 0 16px 42px rgba(244, 197, 20, 0.24);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.hero-visual {
  min-height: 580px;
  display: grid;
  place-items: center;
  perspective: 1100px;
}

.hero-system {
  position: relative;
  width: min(540px, 88vw);
  aspect-ratio: 1.05;
  transform-style: preserve-3d;
  animation: floatCard 7s ease-in-out infinite;
}

.system-shell {
  position: absolute;
  inset: 8% 3% 7%;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045)),
    radial-gradient(circle at 70% 18%, rgba(84, 215, 255, 0.17), transparent 18rem),
    rgba(255, 255, 255, 0.06);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(20px);
  overflow: hidden;
  transform: rotateX(4deg) rotateY(-10deg);
}

.system-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.95), transparent 75%);
}

.system-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  padding: 22px 24px;
}

.system-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}

.system-topbar span:nth-child(2) {
  background: rgba(244, 197, 20, 0.8);
}

.system-topbar span:nth-child(3) {
  background: rgba(84, 215, 255, 0.72);
}

.system-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: calc(100% - 54px);
  padding: 0 24px 24px;
}

.brand-screen,
.system-stat,
.floating-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 5, 5, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 24px 60px rgba(0, 0, 0, 0.28);
}

.brand-screen {
  position: relative;
  grid-row: span 2;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.18), transparent 16rem),
    #fff;
  overflow: hidden;
  transform: translateZ(58px);
}

.brand-screen img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.scan-line {
  position: absolute;
  top: -20%;
  bottom: -20%;
  width: 64px;
  background: linear-gradient(90deg, transparent, rgba(244, 197, 20, 0.22), transparent);
  filter: blur(1px);
  transform: rotate(13deg);
  animation: scanLogo 3.6s ease-in-out infinite;
}

.system-stat {
  display: grid;
  align-content: end;
  gap: 8px;
  border-radius: 22px;
  padding: 20px;
  transform: translateZ(34px);
}

.system-stat strong {
  color: var(--gold);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.9;
}

.system-stat span {
  color: var(--muted);
  font-weight: 800;
}

.floating-card {
  position: absolute;
  z-index: 2;
  min-width: 160px;
  border-radius: 18px;
  padding: 14px 16px;
  backdrop-filter: blur(18px);
  animation: floatChip 5.5s ease-in-out infinite;
}

.floating-card span,
.floating-card strong {
  display: block;
}

.floating-card span {
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.floating-card strong {
  font-size: 0.98rem;
}

.card-web {
  top: 5%;
  right: 0;
}

.card-media {
  left: -2%;
  bottom: 18%;
  animation-delay: -1.4s;
}

.card-study {
  right: 8%;
  bottom: 0;
  animation-delay: -2.7s;
}

.metrics,
.service-grid,
.process,
.client-grid {
  display: grid;
  gap: 14px;
}

.metrics {
  grid-template-columns: repeat(4, 1fr);
  padding: 18px;
  margin-bottom: 100px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
}

.metrics div {
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.055);
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 1.9rem;
}

.metrics span,
.service-card p,
.process p,
.contact p {
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: 90px 0;
  scroll-margin-top: 140px;
}

#ai,
#agency-ai,
#contact {
  scroll-margin-top: 140px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 34px;
}

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

.service-card,
.process div,
.client-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
}

.service-card {
  min-height: 280px;
  padding: 24px;
  border-radius: 22px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 197, 20, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.service-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 34px;
  border-radius: 50%;
  color: #080808;
  background: var(--gold);
  font-weight: 900;
}

.ai-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
  padding: 42px;
  border: 1px solid rgba(244, 197, 20, 0.28);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(244, 197, 20, 0.18), rgba(84, 215, 255, 0.08)),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.32);
}

.ai-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ai-list span {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--text);
  font-weight: 750;
}

.ybots-hero,
.ybots-grid article,
.ybots-flow div {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
}

.ybots-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 20%, rgba(244, 197, 20, 0.18), transparent 18rem),
    radial-gradient(circle at 80% 10%, rgba(84, 215, 255, 0.15), transparent 18rem),
    rgba(255, 255, 255, 0.07);
}

.ybots-hero h3 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.ybots-hero p,
.ybots-grid p,
.ybots-flow p {
  color: var(--muted);
  line-height: 1.55;
}

.ybots-hero p {
  max-width: 720px;
}

.ybots-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ybots-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  font-weight: 750;
}

.ybots-stats strong {
  margin-right: 5px;
  color: var(--gold);
}

.ybots-grid,
.ybots-flow {
  display: grid;
  gap: 14px;
}

.ybots-grid {
  grid-template-columns: repeat(4, 1fr);
}

.ybots-grid article {
  min-height: 235px;
  padding: 22px;
  border-radius: 22px;
}

.ybots-grid article span,
.ybots-flow span {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ybots-flow {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

.ybots-flow div {
  min-height: 160px;
  padding: 22px;
  border-radius: 22px;
}

.ybots-flow strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.18rem;
}

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

.process div {
  min-height: 210px;
  padding: 26px;
  border-radius: 22px;
}

.process span {
  display: block;
  margin-bottom: 48px;
  color: var(--green);
  font-size: 1.5rem;
  font-weight: 900;
}

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

.client-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.client-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 197, 20, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.client-logo {
  min-height: 190px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 15%, rgba(244, 197, 20, 0.16), transparent 12rem),
    rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-round img {
  max-width: 78%;
  max-height: 78%;
  border-radius: 50%;
}

.client-card span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.client-card h3 {
  margin: -10px 0 0;
}

.contact {
  justify-content: space-between;
  margin: 80px 0 34px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
}

.contact div {
  max-width: 720px;
}

.contact-actions {
  justify-content: flex-end;
}

.contact h2 {
  margin-bottom: 16px;
}

@keyframes floatCard {
  0%,
  100% {
    transform: rotateX(8deg) rotateY(-12deg) translateY(0);
  }
  50% {
    transform: rotateX(-2deg) rotateY(12deg) translateY(-20px);
  }
}

@keyframes rotateOne {
  from {
    transform: rotateX(67deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(67deg) rotateZ(360deg);
  }
}

@keyframes rotateTwo {
  from {
    transform: rotateY(70deg) rotateZ(360deg);
  }
  to {
    transform: rotateY(70deg) rotateZ(0deg);
  }
}

@keyframes scanLogo {
  0%,
  100% {
    left: -30%;
    opacity: 0;
  }
  18%,
  82% {
    opacity: 1;
  }
  50% {
    left: 72%;
  }
}

@keyframes floatChip {
  0%,
  100% {
    transform: translate3d(0, 0, 78px);
  }
  50% {
    transform: translate3d(0, -14px, 98px);
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: stretch;
    border-radius: 24px;
    flex-direction: column;
  }

  nav {
    justify-content: space-between;
  }

  nav a {
    padding-inline: 9px;
  }

  .hero,
  .section-heading,
  .ai-band {
    grid-template-columns: 1fr;
  }

  .ybots-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-top: 170px;
  }

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

  .metrics,
  .service-grid,
  .process,
  .client-grid,
  .ybots-grid,
  .ybots-flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    top: max(10px, env(safe-area-inset-top));
    width: min(430px, calc(100% - 24px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 8px;
    padding: 8px 10px 10px;
    border-radius: 22px;
  }

  main {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand img {
    width: 50px;
    height: 32px;
  }

  .brand span {
    font-size: 0.92rem;
  }

  nav {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: space-between;
    gap: 2px;
  }

  nav a {
    padding: 7px 6px;
    font-size: 0.78rem;
  }

  .language-toggle {
    grid-column: 2;
    grid-row: 1;
    min-width: 42px;
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 4.7rem);
  }

  .hero {
    gap: 18px;
    padding-top: 126px;
  }

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

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

  .hero-system {
    width: min(360px, 94vw);
    aspect-ratio: 0.95;
    border-radius: 24px;
  }

  .system-shell {
    inset: 5% 0;
    transform: rotateX(0deg) rotateY(0deg);
  }

  .system-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    padding: 0 18px 18px;
  }

  .brand-screen {
    grid-row: auto;
    border-radius: 24px;
  }

  .brand-screen img {
    width: 92%;
    height: 92%;
  }

  .system-stat,
  .floating-card {
    display: none;
  }

  .metrics,
  .service-grid,
  .process,
  .client-grid,
  .ybots-grid,
  .ybots-flow {
    grid-template-columns: 1fr;
  }

  .metrics,
  .ai-band,
  .contact,
  .ybots-hero {
    padding: 18px;
    border-radius: 22px;
  }

  .section {
    padding: 64px 0;
    scroll-margin-top: 180px;
  }

  #ai,
  #agency-ai,
  #contact {
    scroll-margin-top: 180px;
  }
}
