@font-face {
  font-family: "Bank Gothic";
  src: url("assets/bank-gothic-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@keyframes brand-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

:root {
  --ink: #07110d;
  --panel: #10221a;
  --green: #33e77d;
  --mint: #93e2ad;
  --paper: #f3f1e9;
  --white: #ffffff;
  --muted: #a7b5ad;
  --dark-muted: #53635a;
  --line: rgba(255, 255, 255, 0.12);
  --dark-line: rgba(7, 17, 13, 0.14);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 17, 13, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; width: 158px; flex: 0 0 auto; }
.logo-text {
  display: inline-flex;
  align-items: center;
  min-height: 1em;
  color: var(--white);
  font-family: "Bank Gothic", Arial, sans-serif;
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo-text::after {
  content: "";
  width: 2px;
  height: 1.05em;
  margin-left: .12em;
  background: rgba(143, 230, 161, .78);
  animation: cursor-blink .8s step-end infinite;
}
nav { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 14px; }
nav a { transition: color .2s ease; }
nav a:hover { color: var(--white); }

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover { transform: translateY(-2px); background: var(--mint); border-color: var(--mint); }
.button--small { min-height: 42px; padding-inline: 18px; font-size: 13px; }
.button--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.28); }
.button--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--white); }
.button--dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.button--dark:hover { background: #173326; border-color: #173326; }

.hero { position: relative; overflow: hidden; padding: 88px 0 76px; }
.hero-glow {
  position: absolute;
  width: 760px;
  height: 760px;
  right: -270px;
  top: -380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(51,231,125,.2), rgba(51,231,125,0) 70%);
  pointer-events: none;
}

.hero-grid { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; gap: 54px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero-context, .section-kicker { margin: 0 0 18px; color: var(--green); font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.section--light .section-kicker { color: #147c45; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 600; letter-spacing: -.045em; }
h1 { max-width: 710px; margin-bottom: 24px; font-size: clamp(48px, 5.4vw, 76px); line-height: .98; }
h1 em, h2 em { color: var(--green); font-style: normal; }
.hero-title { font-weight: 700; }
.hero-title > span, .hero-title > em { display: block; }
.hero-title__lead { white-space: nowrap; }
.rotating-word {
  display: inline-block;
  transition: opacity .24s ease, transform .24s ease;
  will-change: opacity, transform;
}
.rotating-word.is-leaving { opacity: 0; transform: translateY(-.24em); }
.rotating-word.is-entering { opacity: 0; transform: translateY(.24em); transition: none; }
.hero-lead { max-width: 590px; margin-bottom: 30px; color: #c7d2cc; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 0; }
.hero-note { max-width: 520px; margin-bottom: 26px; padding-left: 14px; border-left: 2px solid rgba(51,231,125,.65); color: var(--muted); font-size: 13px; line-height: 1.55; }

.product-shot { position: relative; margin: 0; }
.product-shot__frame { padding: 7px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.045); box-shadow: var(--shadow); transform: perspective(1500px) rotateY(-2deg); }
.product-shot__frame img { display: block; width: 100%; border-radius: 8px; }

.section { padding: 110px 0; }
.medusa-overview { background: var(--paper); }
.overview-part { position: relative; }
.overview-part--platform { border-top: 1px solid rgba(255,255,255,.1); }
.section--light { background: var(--paper); color: var(--ink); }
.section-heading { max-width: 780px; margin-bottom: 58px; }
.section-heading--split { max-width: none; display: grid; grid-template-columns: 1.15fr .85fr; align-items: start; gap: 90px; }
.section-heading h2, .results-copy h2, .final-cta h2 { margin-bottom: 20px; font-size: clamp(38px, 4.5vw, 62px); line-height: 1.02; }
.section-heading--split > p, .section-heading > p:last-child, .results-copy > p, .final-cta p { color: var(--dark-muted); font-size: 17px; line-height: 1.7; }
.section-heading--split > p { max-width: 470px; margin: 52px 0 0; padding-left: 24px; border-left: 2px solid #168a4c; color: #263a31; font-size: 18px; line-height: 1.65; }
.section-heading--split h2 { margin-bottom: 0; }
.section-heading--split h2 em, .section--light h2 em { color: #168a4c; }
.agents-title__accent span { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }

.journey { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 56px; padding: 0; border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); }
.journey li { min-height: 220px; padding: 34px 26px 32px; border-right: 1px solid var(--dark-line); }
.journey li:last-child { border-right: 0; }
.journey h3 { margin-bottom: 14px; font-size: 21px; line-height: 1.2; }
.journey p { margin-bottom: 0; color: var(--dark-muted); font-size: 14px; line-height: 1.65; }

.difference-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.difference-grid article { min-height: 270px; display: flex; flex-direction: column; justify-content: center; padding: 40px; border-radius: 10px; background: var(--ink); color: var(--white); }
.difference-grid article:last-child { background: #18472f; }
.difference-grid h3 { max-width: 540px; margin-bottom: 16px; font-size: 28px; line-height: 1.15; }
.difference-grid p { max-width: 570px; margin-bottom: 0; color: #bdcbc3; line-height: 1.65; }

.capabilities-section { background: #08140f; }
.capabilities-section .section-heading > p:last-child { color: var(--muted); }
.capabilities-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 38px; row-gap: 22px; }
.capability { min-height: 190px; padding: 28px 0 20px; border-top: 1px solid rgba(255,255,255,.2); }
.capability h3 { margin-bottom: 14px; font-size: 22px; }
.capability p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.results-section { background: var(--white); color: var(--ink); border-top: 1px solid var(--dark-line); }
.results-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.results-copy { position: static; align-self: center; }
.results-section .section-kicker { color: #147c45; }
.results-copy > p, .results-copy small { color: var(--dark-muted); }
.results-copy small { display: block; margin-top: 28px; font-size: 11px; line-height: 1.6; }
.outcomes { display: grid; }
.outcomes article { min-height: 220px; display: grid; grid-template-columns: minmax(310px, .9fr) 1fr; align-items: center; gap: 24px; border-top: 1px solid var(--dark-line); }
.outcomes article:last-child { border-bottom: 1px solid var(--dark-line); }
.outcomes strong { color: #148a4b; font-family: "Bank Gothic", Arial, sans-serif; font-size: clamp(38px, 5vw, 64px); line-height: 1; }
.outcomes article:nth-child(2) strong { white-space: nowrap; }
.outcome--capacity strong { white-space: nowrap; font-size: clamp(32px, 3.3vw, 46px); }
.outcomes p { max-width: 400px; margin-bottom: 0; color: #32483e; font-size: 18px; line-height: 1.55; }

.testimonials { grid-column: 1 / -1; margin-top: 16px; }
.testimonials__title { margin-bottom: 34px; font-size: clamp(38px, 4.5vw, 62px); font-weight: 600; line-height: 1.02; letter-spacing: -.045em; }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); align-items: stretch; gap: 38px; }
.testimonials blockquote { min-width: 0; display: flex; flex-direction: column; margin: 0; padding: 30px 0 6px; border-top: 1px solid var(--dark-line); }
.testimonials blockquote p { flex: 1; margin-bottom: 24px; color: #263a31; font-size: 17px; font-style: italic; line-height: 1.7; }
.testimonials cite { display: block; margin-bottom: 16px; color: #148a4b; font-size: 14px; font-style: normal; font-weight: 700; }
.testimonials cite a:hover { text-decoration: underline; text-underline-offset: 3px; }
.client-logo-slot { width: 160px; height: 64px; display: flex; align-items: center; justify-content: flex-start; }
.client-logo { display: block; width: auto; max-width: 160px; max-height: 58px; object-fit: contain; object-position: left center; }
.client-logo--intelinet { width: 150px; }
.client-logo--nitel { max-height: 64px; padding: 7px 10px; border-radius: 8px; background: var(--white); }
.client-logo--entreaire { width: 150px; }

.final-cta { background: var(--green); color: var(--ink); }
.final-cta__inner { min-height: 420px; display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: center; }
.final-cta__inner > div:first-child { max-width: 780px; }
.final-cta__actions { display: flex; flex-direction: column; align-items: stretch; gap: 18px; text-align: center; }
.final-cta__actions > a:last-child { font-size: 13px; font-weight: 700; }

footer { padding: 70px 0 24px; background: #050c09; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr .7fr; gap: 70px; padding-bottom: 54px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; }
.footer-grid strong { color: var(--white); }
.footer-grid a:hover { color: var(--green); }
.footer-logo-lockup { min-height: 48px; display: flex; align-items: center; gap: 12px; }
.footer-wordmark { width: 160px; }
.footer-mark { width: 38px; height: 38px; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.38)); animation: brand-float 6s ease-in-out infinite; }
.footer-brand p { max-width: 340px; margin: 12px 0 0; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 22px; border-top: 1px solid var(--line); color: #708078; font-size: 11px; }

@media (max-width: 1040px) {
  nav { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 780px; }
  .product-shot__frame { transform: none; }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .results-layout { grid-template-columns: 1fr; gap: 46px; }
}

@media (max-width: 780px) {
  .shell { width: min(100% - 28px, 1180px); }
  .site-header .button { display: none; }
  .header-inner { min-height: 68px; }
  .brand { width: 142px; }
  .hero { padding: 64px 0 58px; }
  h1 { font-size: clamp(42px, 13vw, 64px); }
  .section { padding: 78px 0; }
  .section-heading--split { grid-template-columns: 1fr; gap: 26px; }
  .section-heading--split > p { margin-top: 0; }
  .journey { grid-template-columns: 1fr 1fr; }
  .journey li:nth-child(2) { border-right: 0; }
  .journey li:nth-child(-n+2) { border-bottom: 1px solid var(--dark-line); }
  .difference-grid { grid-template-columns: 1fr; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .testimonials { margin-top: 8px; }
  .testimonials__grid { grid-template-columns: 1fr; gap: 18px; }
  .final-cta__inner { min-height: 520px; grid-template-columns: 1fr; gap: 32px; padding-block: 70px; }
  .final-cta__actions { align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .hero-title { font-size: clamp(38px, 12.2vw, 58px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; max-width: 100%; }
  .product-shot { margin-inline: -14px; }
  .journey { grid-template-columns: 1fr; }
  .journey li { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--dark-line); }
  .journey li:last-child { border-bottom: 0; }
  .outcomes article { min-height: 190px; grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .rotating-word { will-change: auto; }
  .footer-mark { animation: none; }
  .logo-text::after { animation: none; opacity: .78; }
}
