@font-face {
  font-family: "DG Absans";
  src: url("assets/fonts/collletttivo/absans/Absans-Regular.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #172033;
  --muted: #5f6878;
  --line: #d9dee8;
  --paper: #f7f8f5;
  --white: #ffffff;
  --blue: #1768b7;
  --blue-dark: #123d68;
  --teal: #177f86;
  --sage: #d9e8dc;
  --coral: #c86f52;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.12);
  color-scheme: light;
  font-family: "DG Absans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-family: "DG Absans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(0.92rem, 1.3vw, 1.05rem);
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.navlinks {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.navlinks a {
  text-decoration: none;
}

.language-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.lang-button {
  border: 0;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang-button.is-active {
  background: var(--ink);
  color: var(--white);
}

.hero {
  position: relative;
  display: grid;
  align-content: end;
  min-height: min(760px, calc(100vh - 72px));
  padding: clamp(36px, 7vw, 84px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(3, 12, 25, 0.98) 0%, rgba(3, 12, 25, 0.95) 34%, rgba(3, 12, 25, 0.66) 58%, rgba(3, 12, 25, 0.16) 100%),
    url("assets/dg-home-modern-reference.png") center / cover no-repeat;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 12px;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--coral));
}

.hero-image-home {
  display: block;
  min-height: 0;
  padding: 0;
  background: #03101f;
}

.hero-image-home::after {
  display: none;
}

.home-main-image {
  display: block;
  width: 100%;
  height: auto;
}

.hero-agent-hotspot {
  position: absolute;
  left: 5.2%;
  top: 53.6%;
  z-index: 2;
  display: block;
  width: 18.6%;
  height: 6.2%;
  border-radius: 8px;
  text-decoration: none;
}

.hero-agent-hotspot:focus-visible {
  outline: 3px solid rgba(96, 255, 231, 0.95);
  outline-offset: 4px;
}

.hero-image-home .hero-content,
.hero-image-home .hero-metrics {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow,
.section-label {
  margin: 0 0 10px;
  color: var(--teal);
  font-family: "DG Absans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #bfe5e2;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
h4,
.brand,
.eyebrow,
.section-label,
label,
.journey-card span,
.summary-grid strong,
.review-table th,
.status-pill {
  font-family: "DG Absans", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(1.75rem, 4vw, 3.55rem);
  line-height: 1.02;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.45;
}

.hero-actions,
.next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

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

.button.secondary {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.next-steps .button.secondary,
.chat-form .button,
.lead-form .button {
  background: var(--ink);
  color: var(--white);
}

.button.full {
  width: 100%;
}

.button.compact {
  min-height: 44px;
  padding-inline: 16px;
}

.hero-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 780px;
  margin-top: 54px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-metrics span {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: rgba(15, 24, 38, 0.62);
}

.hero-metrics strong {
  color: #75c7ff;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.hero-metrics small {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.3;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
  padding: clamp(48px, 8vw, 86px) 0;
}

.intro,
.next-steps {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.section p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

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

.journey-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.journey-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

.journey-card h3 {
  margin: 0 0 10px;
  font-size: 1.14rem;
}

.journey-card p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.55;
}

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

.service-card {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.service-card h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
}

.service-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

.proof-band {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 clamp(36px, 6vw, 64px);
}

.proof-band img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.agent-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(320px, 1fr);
  gap: clamp(22px, 4vw, 40px);
  align-items: start;
  scroll-margin-top: 88px;
  transition: background-color 180ms ease;
}

.agent-layout.is-attention {
  background: linear-gradient(90deg, rgba(23, 104, 183, 0.08), rgba(23, 127, 134, 0.08));
}

.lead-panel,
.chat-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.lead-panel {
  padding: clamp(22px, 4vw, 34px);
}

.lead-panel h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.field {
  display: grid;
  gap: 8px;
}

.field-wide,
.lead-form .form-status,
.lead-form .button {
  grid-column: 1 / -1;
}

label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  background: var(--paper);
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(23, 104, 183, 0.16);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--blue-dark);
  font-weight: 700;
}

.lead-summary {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--teal), var(--line) 65%);
  border-radius: 8px;
  background: #f0f8f4;
}

.lead-summary h3 {
  margin: 0 0 14px;
}

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

.summary-grid span {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(23, 127, 134, 0.2);
  border-radius: 8px;
  background: var(--white);
}

.summary-grid strong,
.summary-grid small {
  display: block;
}

.summary-grid strong {
  margin-bottom: 4px;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.summary-grid small {
  color: var(--muted);
  line-height: 1.35;
}

.chat-panel {
  display: grid;
  min-height: 690px;
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.chat-header h3 {
  margin: 0;
  font-size: 1.3rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--blue-dark);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.chat-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 360px;
  padding: 22px;
  overflow-y: auto;
  background: #fbfbf8;
}

.chat-message {
  max-width: 86%;
  padding: 13px 15px;
  border-radius: 8px;
  line-height: 1.5;
}

.chat-message.agent {
  align-self: flex-start;
  background: var(--sage);
}

.chat-message.user {
  align-self: flex-end;
  background: var(--blue);
  color: var(--white);
}

.quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 22px 18px;
  background: #fbfbf8;
}

.quick-prompts button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.quick-prompts button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
}

.next-steps {
  border-top: 1px solid var(--line);
}

.next-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.next-note {
  flex-basis: 100%;
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.footer a {
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}

.review-page {
  background: #eef3f0;
}

.review-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 6vw, 70px) 0;
}

.review-hero {
  position: relative;
  max-width: none;
  margin-bottom: 28px;
  overflow: hidden;
  padding: clamp(28px, 6vw, 58px);
  border: 1px solid color-mix(in srgb, var(--blue), var(--line) 58%);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(247, 248, 245, 0.96) 0%, rgba(247, 248, 245, 0.86) 48%, rgba(247, 248, 245, 0.2) 100%),
    url("assets/review-ai-projects-bg.svg") right center / cover no-repeat;
  box-shadow: var(--shadow);
}

.review-hero h1 {
  max-width: 14ch;
  color: var(--ink);
  font-size: clamp(2.8rem, 7vw, 5.6rem);
}

.review-hero p {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.review-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.review-toolbar .button.secondary {
  background: var(--ink);
  color: var(--white);
}

.review-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.review-stats span {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.review-stats strong,
.review-stats small {
  display: block;
}

.review-stats strong {
  font-size: 2rem;
}

.review-stats small {
  color: var(--muted);
}

.review-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.review-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.review-table th,
.review-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  white-space: pre-line;
}

.review-table th {
  color: var(--blue-dark);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.review-table td {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

.empty-review {
  padding: 28px;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .navlinks {
    display: none;
  }

  .hero:not(.hero-image-home) {
    min-height: 660px;
    background:
      linear-gradient(180deg, rgba(3, 12, 25, 0.98) 0%, rgba(3, 12, 25, 0.9) 54%, rgba(3, 12, 25, 0.72) 100%),
      url("assets/dg-home-modern-reference.png") center / cover no-repeat;
  }

  .hero-metrics,
  .intro,
  .next-steps,
  .journey-grid,
  .agent-layout {
    grid-template-columns: 1fr;
  }

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

  .next-actions {
    justify-content: flex-start;
  }

  .review-toolbar,
  .review-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    min-height: 64px;
    gap: 12px;
  }

  .brand {
    font-size: 0.92rem;
  }

  .hero:not(.hero-image-home) {
    min-height: 700px;
    padding: 30px 18px 42px;
  }

  .home-main-image {
    min-height: calc(100vh - 64px);
    object-fit: cover;
    object-position: top center;
  }

  .hero-agent-hotspot {
    left: 5%;
    top: 53%;
    width: 43%;
    height: 7%;
  }

  h1 {
    max-width: 11ch;
  }

  .hero-metrics,
  .service-grid,
  .lead-form,
  .summary-grid,
  .chat-form {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    min-height: 620px;
  }

  .chat-log {
    height: 330px;
  }

  .chat-message {
    max-width: 94%;
  }

  .footer {
    flex-direction: column;
  }
}

.brand,
.eyebrow,
.section-label,
h1,
h2,
h3,
h4,
.section h2,
.journey-card h3,
.service-card h3,
.lead-panel h2,
.lead-summary h3,
.chat-header h3,
.review-hero h1,
.review-stats strong,
.review-table th,
label,
.status-pill {
  font-family: "DG Absans", Inter, ui-sans-serif, system-ui, sans-serif;
}
