:root {
  color-scheme: dark;
  --color-bg: #090b11;
  --color-surface: rgba(14, 20, 31, 0.82);
  --color-surface-strong: rgba(18, 24, 36, 0.94);
  --color-surface-soft: rgba(255, 255, 255, 0.04);
  --color-border: rgba(162, 179, 204, 0.16);
  --color-border-strong: rgba(112, 146, 196, 0.4);
  --color-text: #f4f7fb;
  --color-text-muted: #b6c0cf;
  --color-text-soft: #8b96a8;
  --color-accent: #8dbaff;
  --color-accent-deep: #2c5ea8;
  --color-specialized: rgba(141, 186, 255, 0.08);
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.28);
  --shadow-hover: 0 32px 80px rgba(0, 0, 0, 0.34);
  --radius-large: 28px;
  --radius-card: 22px;
  --container-width: 1180px;
  --font-family-base: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --transition-base: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-family-base);
  line-height: 1.6;
  color: var(--color-text);
  background:
    linear-gradient(180deg, rgba(9, 11, 17, 0.2), rgba(9, 11, 17, 0.34)),
    url("../assets/images/hero-bg-clean.png") center top / cover no-repeat fixed,
    var(--color-bg);
}

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

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

.container {
  width: min(100% - 2.5rem, var(--container-width));
  margin: 0 auto;
}

.page-shell {
  position: relative;
  overflow: clip;
}

.hero,
.services,
.ai-section,
.site-footer {
  position: relative;
}

.hero {
  min-height: 100vh;
  padding: 1.5rem 0 3.5rem;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 11, 17, 0.03), rgba(9, 11, 17, 0.12)),
    radial-gradient(circle at 55% 28%, rgba(34, 80, 154, 0.1), transparent 24%),
    radial-gradient(circle at 72% 42%, rgba(120, 34, 44, 0.12), transparent 26%);
  opacity: 1;
}

.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(9, 11, 17, 0.02), rgba(9, 11, 17, 0.08) 55%, rgba(9, 11, 17, 0.18)),
    radial-gradient(circle at 48% 26%, rgba(44, 94, 168, 0.14), transparent 22%),
    radial-gradient(circle at 74% 36%, rgba(146, 38, 50, 0.14), transparent 24%);
}

.topbar,
.hero__content {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 0.4rem;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand__logo {
  width: clamp(264px, 28.8vw, 408px);
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.34));
}

.brand-block__tagline {
  width: 100%;
  margin: 0.45rem 0 0;
  color: #929aa8;
  font-size: clamp(0.78rem, 0.62rem + 0.28vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: right;
}

.hero__ticker {
  width: min(46%, 560px);
  margin-top: 1.4rem;
  white-space: nowrap;
  overflow: visible;
  z-index: 1;
  flex: 0 1 auto;
}

.hero__ticker-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35em;
  margin: 0;
  color: #f2f3f5;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(1.28rem, 2.8vw, 1.86rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
  will-change: contents;
}

.hero__prompt {
  color: #e5e7eb;
}

.hero__typed {
  min-width: 1ch;
}

.hero__typed::after {
  content: "_";
  display: inline-block;
  width: 0.7ch;
  margin-left: 0.06em;
  vertical-align: baseline;
  color: rgba(242, 243, 245, 0.92);
  animation: ticker-caret 0.75s steps(1, end) infinite;
}

@keyframes ticker-caret {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.hero__content {
  max-width: 820px;
  padding: clamp(4.5rem, 10vh, 7.5rem) 0 0;
}

.hero__eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 4.9vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: none;
}

.hero-title__line {
  display: block;
  white-space: nowrap;
}

.hero-title__line--sub {
  margin-top: 0.12em;
  font-size: 0.78em;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__lead {
  max-width: 64ch;
  margin: 1.75rem 0 0;
  font-size: clamp(1.06rem, 0.98rem + 0.42vw, 1.24rem);
  line-height: 1.72;
  color: var(--color-text-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 2.35rem;
  padding: 0.95rem 1.65rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

.button--primary {
  color: #06111e;
  background: linear-gradient(135deg, #d8e8ff, #8dbaff);
  box-shadow: 0 20px 46px rgba(13, 28, 50, 0.4);
}

.button--primary:hover,
.button--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(13, 28, 50, 0.42);
}

.services {
  z-index: 1;
  padding: 0 0 4.75rem;
  margin-top: 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 2.5rem;
}

.section-title {
  margin: 0;
  font-size: clamp(2.05rem, 2.7vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-summary {
  margin: 1rem 0 0;
  color: var(--color-text-muted);
  max-width: 64ch;
  font-size: 1.02rem;
  line-height: 1.72;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--color-surface);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
  transition:
    transform var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background var(--transition-base);
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-6px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-hover);
  background:
    linear-gradient(180deg, rgba(141, 186, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--color-surface-strong);
}

.service-card--specialized {
  background:
    linear-gradient(180deg, rgba(141, 186, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--color-surface-strong);
}

.service-card__label {
  align-self: flex-start;
  margin-bottom: 1.1rem;
  padding: 0.38rem 0.74rem;
  border: 1px solid rgba(141, 186, 255, 0.2);
  border-radius: 999px;
  background: var(--color-specialized);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.service-card__icon {
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(141, 186, 255, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(141, 186, 255, 0.24), rgba(44, 94, 168, 0.08));
  position: relative;
  display: grid;
  place-items: center;
  color: #e2e8f0;
}

.service-card__icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

.service-card__icon--ai {
  margin-bottom: 0;
}

.service-card__icon--ai svg {
  width: 1.8rem;
  height: 1.8rem;
}

.service-card__body {
  flex: 1 1 auto;
}

.service-card h3 {
  margin: 0;
  font-size: 1.42rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.service-card p {
  margin: 0;
}

.service-card__body p {
  margin-top: 0.95rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.68;
}

.service-card__tagline {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
}

.ai-section {
  padding: 0 0 4.8rem;
}

.ai-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.9fr);
  gap: 1.65rem;
  padding: clamp(1.7rem, 2.2vw, 2.2rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-large);
  background:
    linear-gradient(135deg, rgba(141, 186, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(14, 20, 31, 0.82);
  box-shadow: var(--shadow-card);
}

.ai-panel__description {
  margin: 1rem 0 0;
  color: var(--color-text-muted);
  max-width: 64ch;
  font-size: 1rem;
  line-height: 1.72;
}

.ai-panel__header {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 0.25rem;
}

.ai-panel__tagline {
  margin: 1.35rem 0 0;
  color: var(--color-text);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.55;
}

.ai-panel__aside {
  display: grid;
  gap: 1rem;
}

.ai-metric {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: 1.15rem;
  border: 1px solid rgba(141, 186, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.ai-metric__value {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.ai-metric__label {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.site-footer {
  padding: 0 0 2.7rem;
}

.site-footer__content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.25rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--color-border);
}

.site-footer__brand {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.site-footer__contact {
  font-size: 2rem;
  color: var(--color-text-muted);
  font-weight: 600;
  transition: color var(--transition-base);
}

.site-footer__contact:hover,
.site-footer__contact:focus-visible {
  color: var(--color-accent);
}

@media (max-width: 1100px) {
  .hero__content,
  .section-heading {
    max-width: 760px;
  }

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

  .ai-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 759px) {
  .container {
    width: min(100% - 1.5rem, var(--container-width));
  }

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

  .hero {
    min-height: auto;
    padding-bottom: 2.7rem;
  }

  .brand__logo {
    width: clamp(204px, 62.4vw, 288px);
  }

  .hero__ticker {
    width: 90%;
    margin: 0.35rem 0 0 auto;
    max-width: 90%;
  }

  .hero__ticker-line {
    justify-content: flex-start;
    font-size: clamp(0.92rem, 4.1vw, 1.2rem);
  }

  .hero__content {
    padding-top: 3.4rem;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.35rem);
  }

  .hero-title__line {
    white-space: normal;
  }

  .hero__lead {
    font-size: 1rem;
    line-height: 1.66;
  }

  .button {
    width: 100%;
    max-width: 220px;
  }

  .services {
    margin-top: 0;
    padding-top: 0.8rem;
    padding-bottom: 3.5rem;
  }

  .section-heading {
    margin-bottom: 1.6rem;
  }

  .section-title {
    font-size: clamp(1.75rem, 7vw, 2.3rem);
  }

  .section-summary {
    font-size: 0.96rem;
    line-height: 1.66;
  }

  .services-grid,
  .ai-panel__aside {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 1.25rem;
  }

  .service-card h3 {
    font-size: 1.24rem;
  }

  .service-card__body p,
  .service-card__tagline,
  .ai-panel__description,
  .ai-panel__tagline {
    font-size: 0.95rem;
  }

  .ai-section {
    padding-bottom: 3.7rem;
  }

  .ai-panel {
    padding: 1.3rem;
  }

  .site-footer__content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .site-footer__brand {
    font-size: 1.7rem;
  }

  .site-footer__contact {
    font-size: 1.35rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }

  .hero__typed::after {
    animation: none !important;
  }
}
