:root {
  --ink: #17212b;
  --muted: #5f6d75;
  --paper: #fffdf8;
  --paper-strong: #ffffff;
  --line: #d9e1df;
  --teal: #0f766e;
  --teal-deep: #0a4f4a;
  --coral: #d9553f;
  --gold: #d49a26;
  --blue: #2f6f9f;
  --soft: #edf6f3;
  --shadow: 0 18px 60px rgba(23, 33, 43, 0.16);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(217, 225, 223, 0.82);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.2);
}

.brand-logo {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(23, 33, 43, 0.16);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #2e3b43;
  font-size: 0.95rem;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--teal-deep);
  background: #e6f2ef;
  outline: none;
}

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.language-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 30px;
  border: 0;
  border-radius: 6px;
  color: #4a5960;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.language-button:hover,
.language-button:focus-visible {
  color: var(--teal-deep);
  background: #e6f2ef;
  outline: none;
}

.language-button.is-active {
  color: #ffffff;
  background: var(--teal-deep);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(600px, calc(100svh - 110px), 760px);
  padding: clamp(72px, 9vw, 120px) clamp(20px, 6vw, 72px);
  overflow: hidden;
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 18, 24, 0.76) 0%, rgba(8, 18, 24, 0.48) 42%, rgba(8, 18, 24, 0.1) 100%),
    linear-gradient(0deg, rgba(8, 18, 24, 0.16), rgba(8, 18, 24, 0.04));
}

.hero-media {
  z-index: -2;
}

.hero-content {
  width: min(660px, 100%);
  color: #ffffff;
}

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

.hero .eyebrow {
  color: #b7fbef;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.8rem, 10vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

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

.hero-lead {
  width: min(600px, 100%);
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  color: #ffffff;
  background: var(--coral);
  box-shadow: 0 14px 30px rgba(217, 85, 63, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #bd432f;
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.intro-band {
  padding: 28px clamp(20px, 5vw, 56px);
  background: var(--ink);
  color: #ffffff;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.intro-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
}

.section {
  padding: clamp(72px, 9vw, 112px) clamp(20px, 5vw, 56px);
}

.section-heading,
.service-grid,
.advanced-services,
.project-list,
.method-steps,
.why-layout,
.contact-layout {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.section-heading {
  margin-bottom: 36px;
}

.section-heading p:not(.eyebrow) {
  width: min(680px, 100%);
  color: var(--muted);
  font-size: 1.05rem;
}

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

.service-card {
  min-height: 244px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: 0 10px 30px rgba(23, 33, 43, 0.05);
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-card--accent {
  color: #ffffff;
  border-color: var(--teal-deep);
  background: var(--teal-deep);
}

.service-card--accent p,
.service-card--accent .service-index {
  color: rgba(255, 255, 255, 0.82);
}

.service-index {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--coral);
  font-weight: 900;
}

.advanced-services {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: clamp(24px, 5vw, 52px);
  align-items: start;
  margin-top: 34px;
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.advanced-copy .eyebrow {
  margin-bottom: 10px;
}

.advanced-copy h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
}

.advanced-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.advanced-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.advanced-list li {
  padding: 9px 12px;
  border: 1px solid #cfdcd8;
  border-radius: 8px;
  color: #34444b;
  background: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
}

.section-tinted {
  background: #eef7f4;
}

.project-list {
  border-top: 1px solid #cbdad6;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid #cbdad6;
}

.project-row p {
  margin: 0;
  color: #4c5d64;
}

.project-tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.method-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  list-style: none;
}

.method-steps li {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.method-steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 24px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--gold);
  font-weight: 900;
}

.method-steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.why-section {
  color: #ffffff;
  background: linear-gradient(135deg, #12202a 0%, #0f4f4a 52%, #2f6f73 100%);
}

.why-section .eyebrow {
  color: #acf5e6;
}

.why-layout {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.why-copy {
  display: grid;
  gap: 18px;
}

.why-copy p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.contact-section {
  background: #ffffff;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
}

.contact-copy p {
  color: var(--muted);
}

.contact-points {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.contact-points li {
  position: relative;
  padding-left: 24px;
  color: #364850;
}

.contact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(22px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfc;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row-full,
.form-button,
.form-status {
  grid-column: 1 / -1;
}

label {
  font-size: 0.9rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd7d4;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(15, 118, 110, 0.14);
}

.form-button {
  width: 100%;
  border: 0;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--line);
  color: #435159;
  background: var(--paper);
}

.site-footer p {
  margin: 0;
  font-weight: 900;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer .brand-logo {
  width: 34px;
  height: 34px;
}

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

.chatbot-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: grid;
  justify-items: end;
  gap: 10px;
  width: min(390px, calc(100vw - 32px));
  pointer-events: none;
}

.chatbot-widget > * {
  pointer-events: auto;
}

.chatbot-launcher {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(217, 225, 223, 0.95);
  border-radius: 8px;
  color: #ffffff;
  background: var(--teal-deep);
  box-shadow: 0 16px 38px rgba(10, 79, 74, 0.28);
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
}

.chatbot-launcher:hover,
.chatbot-launcher:focus-visible {
  background: var(--teal);
  outline: none;
  transform: translateY(-1px);
}

.chatbot-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #96f4df;
  box-shadow: 0 0 0 5px rgba(150, 244, 223, 0.18);
}

.chatbot-panel {
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto auto;
  width: 100%;
  max-height: min(680px, calc(100svh - 96px));
  overflow: hidden;
  border: 1px solid rgba(217, 225, 223, 0.95);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.98);
  box-shadow: 0 24px 72px rgba(23, 33, 43, 0.22);
}

.chatbot-panel[hidden] {
  display: none;
}

.chatbot-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.chatbot-kicker {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chatbot-header h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.15;
}

.chatbot-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #26343c;
  background: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.chatbot-close:hover,
.chatbot-close:focus-visible {
  color: var(--teal-deep);
  background: #e6f2ef;
  outline: none;
}

.chatbot-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  overflow: auto;
  background: #f7fbf9;
}

.chat-message {
  display: grid;
  gap: 8px;
  max-width: 92%;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.chat-message p,
.chat-message ul,
.chat-message ol {
  margin: 0;
}

.chat-message ul,
.chat-message ol {
  display: grid;
  gap: 5px;
  padding-left: 18px;
}

.chat-message li {
  padding-left: 1px;
}

.chat-message pre {
  max-height: 210px;
  overflow: auto;
  padding: 10px;
  margin: 0;
  border: 1px solid #d7e1dd;
  border-radius: 8px;
  color: #263840;
  background: #f7fbf9;
  font: inherit;
  font-size: 0.86rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-message--bot {
  justify-self: start;
  color: #263840;
  border: 1px solid #d7e1dd;
  background: #ffffff;
}

.chat-message--user {
  justify-self: end;
  color: #ffffff;
  background: var(--teal-deep);
}

.chat-message strong {
  color: inherit;
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.chat-actions a,
.chat-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid #cbd8d4;
  border-radius: 8px;
  color: var(--teal-deep);
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.1;
  cursor: pointer;
}

.chat-actions a:hover,
.chat-actions button:hover,
.chat-actions a:focus-visible,
.chat-actions button:focus-visible {
  border-color: var(--teal);
  background: #e6f2ef;
  outline: none;
}

.chatbot-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.chatbot-quick-actions button {
  min-height: 32px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #304149;
  background: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.chatbot-quick-actions button:hover,
.chatbot-quick-actions button:focus-visible {
  color: var(--teal-deep);
  background: #e6f2ef;
  outline: none;
}

.chatbot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.chatbot-form textarea {
  min-height: 44px;
  max-height: 130px;
  resize: vertical;
}

.chatbot-form button {
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--coral);
  font-weight: 900;
  cursor: pointer;
}

.chatbot-form button:hover,
.chatbot-form button:focus-visible {
  background: #bd432f;
  outline: none;
}

.chatbot-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(15, 118, 110, 0.14);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 16px auto 16px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 12px;
  }

  .language-control {
    width: 100%;
    justify-content: stretch;
  }

  .language-button {
    width: 100%;
  }

  .intro-grid,
  .why-layout,
  .contact-layout,
  .project-row {
    grid-template-columns: 1fr;
  }

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

  .advanced-services {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
  }

  .site-nav {
    top: 64px;
  }

  .hero {
    min-height: clamp(560px, calc(100svh - 96px), 680px);
    padding-top: 64px;
    align-items: flex-end;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(8, 18, 24, 0.9) 0%, rgba(8, 18, 24, 0.72) 48%, rgba(8, 18, 24, 0.22) 100%);
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.6rem);
  }

  h2 {
    font-size: clamp(1.8rem, 10vw, 2.4rem);
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .service-grid,
  .method-steps,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .chatbot-widget {
    right: 12px;
    bottom: 12px;
    width: min(100% - 24px, 390px);
  }

  .chatbot-launcher {
    min-height: 42px;
    padding: 9px 12px;
  }

  .chatbot-panel {
    max-height: calc(100svh - 86px);
  }

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

  .chatbot-form {
    grid-template-columns: 1fr;
  }

  .chatbot-form button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Public launch: keep the local prototype chatbot hidden until the API version is ready. */
.chatbot-widget {
  display: none !important;
}
