:root {
  --ink: #16211c;
  --ink-soft: #304139;
  --muted: #65736c;
  --line: #dbe4de;
  --paper: #fbfcf8;
  --paper-strong: #f1f6f0;
  --mint: #dff1e8;
  --teal: #0f766e;
  --teal-dark: #0a4f49;
  --coral: #bd4d44;
  --gold: #bd8a22;
  --blue: #2f6f9f;
  --vs-purple: #6d35d5;
  --vs-violet: #8758ff;
  --vs-blue: #1f72e8;
  --vs-cyan: #23b7d9;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(22, 33, 28, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 228, 222, 0.9);
  background: rgba(251, 252, 248, 0.94);
  backdrop-filter: blur(18px);
}

.site-nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--mint);
  color: var(--teal-dark);
  outline: none;
}

.nav-links .nav-cta {
  background: var(--ink);
  color: var(--white);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  background: var(--teal-dark);
  color: var(--white);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: grid;
  align-items: center;
  background-color: var(--vs-purple);
  background-image:
    radial-gradient(circle at 82% 46%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 28%),
    linear-gradient(118deg, rgba(77, 36, 181, 0.97) 0%, rgba(116, 68, 224, 0.94) 38%, rgba(31, 114, 232, 0.9) 72%, rgba(35, 183, 217, 0.78) 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: right 4% center, center;
  background-size: auto 95%, cover;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/img/logo_ai_code_transparent_2048.png");
  background-repeat: no-repeat;
  background-position: calc(50% + 430px) center;
  background-size: auto 39%;
  filter: drop-shadow(0 26px 46px rgba(29, 37, 128, 0.28)) saturate(1.15) contrast(1.12);
  opacity: 0.82;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 46px;
}

.contact-hero {
  min-height: 62vh;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #dbe8ff;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: 4.25rem;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: 2.45rem;
  line-height: 1.12;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.28rem;
}

.hero__actions,
.contact-panel__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button--primary {
  background: var(--coral);
  color: var(--white);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: #a94038;
  color: var(--white);
  outline: none;
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--white);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.hero .button--primary {
  background: var(--white);
  color: #5130c7;
}

.hero .button--primary:hover,
.hero .button--primary:focus-visible {
  background: #e9f4ff;
  color: #3f25a2;
}

.button--ghost-dark {
  border-color: rgba(22, 33, 28, 0.22);
  color: var(--ink);
}

.button--ghost-dark:hover,
.button--ghost-dark:focus-visible {
  background: rgba(22, 33, 28, 0.08);
  outline: none;
}

.hero__metrics {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 32px 0 0;
}

.hero__metrics div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 34px rgba(33, 36, 111, 0.18);
}

.hero__metrics dt {
  color: var(--white);
  font-size: 1.32rem;
  font-weight: 850;
}

.hero__metrics dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

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

.section--intro {
  padding-top: 64px;
}

.section--muted,
.section--warning,
.section--contact,
.section--sources {
  width: 100%;
  padding-left: max(20px, calc((100% - 1180px) / 2));
  padding-right: max(20px, calc((100% - 1180px) / 2));
}

.section--muted {
  background: var(--paper-strong);
}

.section--warning {
  background: #fff7ed;
}

.section--contact {
  background: var(--ink);
  color: var(--white);
}

.section--sources {
  background: var(--white);
}

.section__header {
  max-width: 820px;
}

.section__header p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section--contact .section__header p,
.section--contact p {
  color: rgba(255, 255, 255, 0.78);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 38px;
}

.stat,
.segment-card,
.channel-grid article,
.timeline article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(22, 33, 28, 0.04);
}

.stat {
  min-height: 190px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat strong {
  color: var(--teal);
  font-size: 2.8rem;
  line-height: 1;
}

.stat span {
  color: var(--muted);
}

.stat--accent strong {
  color: var(--blue);
}

.section--split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 56px;
  align-items: start;
}

.section--split > div > p {
  color: var(--muted);
  font-size: 1.05rem;
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--teal-dark);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.method-list {
  display: grid;
  gap: 14px;
}

.method-list article {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.method-list span {
  grid-row: span 2;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal-dark);
  font-weight: 850;
}

.method-list p,
.segment-card p,
.channel-grid p,
.timeline p,
.process-list span {
  color: var(--muted);
}

.segment-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.segment-card {
  min-height: 210px;
  padding: 22px;
}

.segment-card:nth-child(2) {
  border-top: 5px solid var(--gold);
}

.segment-card:nth-child(3) {
  border-top: 5px solid var(--blue);
}

.segment-card:nth-child(4) {
  border-top: 5px solid var(--coral);
}

.segment-card:nth-child(5) {
  border-top: 5px solid var(--teal);
}

.formula {
  margin-top: 28px;
  padding: 22px;
  border-left: 5px solid var(--coral);
  border-radius: var(--radius);
  background: var(--white);
}

.formula span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
  text-transform: uppercase;
}

.formula strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
}

.process-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  min-height: 94px;
  position: relative;
  padding: 20px 20px 20px 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.process-list li::before {
  counter-increment: process;
  content: counter(process);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  font-weight: 850;
}

.process-list strong,
.process-list span {
  display: block;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.channel-grid article {
  min-height: 245px;
  padding: 22px;
}

.section--timeline {
  width: 100%;
  padding-left: max(20px, calc((100% - 1180px) / 2));
  padding-right: max(20px, calc((100% - 1180px) / 2));
  background: #eef7f4;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.timeline article {
  min-height: 270px;
  padding: 24px;
}

.timeline span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-panel {
  max-width: 880px;
}

.contact-page .contact-panel {
  padding: 26px 0;
}

.contact-panel h2 {
  max-width: 820px;
}

.contact-panel p {
  max-width: 760px;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(109, 53, 213, 0.18);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(61, 81, 168, 0.08);
}

.contact-card span {
  color: var(--vs-purple);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-card h2 {
  margin-bottom: auto;
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.contact-card .button {
  min-width: 180px;
  align-self: center;
}

.contact-card .button--primary {
  background: linear-gradient(120deg, var(--vs-purple), var(--vs-blue));
  color: var(--white);
}

.contact-card .button--primary:hover,
.contact-card .button--primary:focus-visible {
  background: linear-gradient(120deg, #5630c8, #145fc9);
  color: var(--white);
}

.source-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.source-list a {
  color: var(--teal-dark);
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.site-footer {
  min-height: 92px;
  padding: 24px max(20px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
}

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

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

.site-footer a {
  color: var(--teal-dark);
  font-weight: 800;
}

@media (max-width: 1080px) {
  h1 {
    font-size: 3.55rem;
  }

  h2 {
    font-size: 2.05rem;
  }

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

  .segment-card,
  .channel-grid article,
  .timeline article {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .site-nav {
    min-height: 90px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 12px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero::after {
    background-position: calc(50% + 310px) center;
    background-size: auto 31%;
    opacity: 0.72;
  }

  .hero__inner {
    padding: 54px 0 46px;
  }

  h1 {
    font-size: 2.75rem;
  }

  .hero__lead {
    font-size: 1.08rem;
  }

  .hero__metrics,
  .stat-grid,
  .contact-methods,
  .section--split,
  .source-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

@media (max-width: 560px) {
  .site-nav,
  .section,
  .hero__inner {
    width: min(100% - 28px, 1180px);
  }

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

  .nav-links a {
    min-height: 36px;
    padding: 0 9px;
    font-size: 0.86rem;
  }

  .hero {
    background-image:
      linear-gradient(135deg, rgba(75, 36, 176, 0.96) 0%, rgba(95, 74, 218, 0.94) 52%, rgba(25, 109, 223, 0.9) 100%);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }

  .hero::after {
    background-position: right 14px center;
    background-size: auto 29%;
    opacity: 0.64;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.68rem;
  }

  .button {
    width: 100%;
  }

  .hero__actions {
    gap: 8px;
  }

  .hero .button {
    width: auto;
    min-height: 44px;
    padding: 0 13px;
    font-size: 0.9rem;
  }

  .hero__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 28px;
  }

  .hero__metrics div {
    min-height: 96px;
    padding: 10px;
  }

  .hero__metrics dt {
    font-size: 0.98rem;
    overflow-wrap: anywhere;
  }

  .hero__metrics dd {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .method-list article {
    grid-template-columns: 1fr;
  }

  .method-list span {
    grid-row: auto;
    margin-bottom: 14px;
  }

  .segment-grid,
  .channel-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

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