/* =========================================================
   tlp Martin: its own look, separate from Infra Services.
   Teal accent with a warm amber second colour; Manrope type.
   Light and dark themes via [data-theme] on <html>.
   ========================================================= */

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

:root {
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1120px;
  --gutter: 24px;
  --header-height: 64px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
}

/* ---------- Light theme (default) ---------- */
:root,
[data-theme="light"] {
  color-scheme: light;

  --bg: #f6f8f7;
  --bg-band: #ebf1ef;
  --surface: #ffffff;
  --surface-2: #f1f5f4;

  --text: #0f1716;
  --text-soft: #43514d;
  --text-muted: #66756f;

  --border: rgba(15, 23, 22, 0.09);
  --border-strong: rgba(15, 23, 22, 0.18);

  --accent: #0f766e;
  --accent-strong: #0b5f58;
  --accent-soft: rgba(15, 118, 110, 0.1);
  --accent-contrast: #ffffff;

  --warm: #b45309;
  --warm-soft: rgba(180, 83, 9, 0.1);

  --user-bubble: #0f766e;
  --user-text: #ffffff;
  --bot-bubble: #f1f5f4;

  --error: #b42318;
  --success: #0f766e;

  --shadow: 0 1px 2px rgba(15, 23, 22, 0.04), 0 14px 34px -14px rgba(15, 23, 22, 0.2);
  --glow: radial-gradient(720px 420px at 88% -6%, rgba(45, 212, 191, 0.2), transparent 70%),
    radial-gradient(620px 420px at -6% 104%, rgba(180, 83, 9, 0.07), transparent 70%);
}

/* ---------- Dark theme ---------- */
[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0b1110;
  --bg-band: #0f1816;
  --surface: #121c1a;
  --surface-2: #17231f;

  --text: #e6eeeb;
  --text-soft: #a8b6b1;
  --text-muted: #8a9893;

  --border: rgba(230, 238, 235, 0.08);
  --border-strong: rgba(230, 238, 235, 0.18);

  --accent: #2dd4bf;
  --accent-strong: #5eead4;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --accent-contrast: #04211d;

  --warm: #fbbf24;
  --warm-soft: rgba(251, 191, 36, 0.12);

  --user-bubble: #14b8a6;
  --user-text: #04211d;
  --bot-bubble: #17231f;

  --error: #f97066;
  --success: #2dd4bf;

  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 42px -18px rgba(0, 0, 0, 0.7);
  --glow: radial-gradient(720px 420px at 88% -6%, rgba(45, 212, 191, 0.14), transparent 70%),
    radial-gradient(620px 420px at -6% 104%, rgba(251, 191, 36, 0.05), transparent 70%);
}

/* =========================================================
   Base
   ========================================================= */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--glow);
  pointer-events: none;
  z-index: -1;
}

main {
  flex: 1;
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  left: 16px;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand-mark rect {
  fill: var(--accent);
}

.brand-mark path {
  stroke: var(--accent-contrast);
}

.brand-name {
  font-weight: 500;
  color: var(--text-soft);
}

.brand-name strong {
  font-weight: 800;
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.lang-switch a {
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.lang-switch a:hover {
  color: var(--text);
}

.lang-switch a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent-soft);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

[data-theme="dark"] .icon-moon,
:root:not([data-theme="dark"]) .icon-sun {
  display: none;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 56px;
  padding-block: 72px;
}

.page-soon .hero {
  min-height: calc(100vh - var(--header-height) - 80px);
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--accent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px transparent;
  }
}

.wordmark {
  margin: 22px 0 14px;
  font-size: clamp(3.1rem, 8vw, 5.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.wordmark-tlp {
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.03em;
}

.wordmark-name {
  color: var(--accent);
  background: linear-gradient(120deg, var(--accent) 10%, var(--accent-strong) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.lead {
  max-width: 36em;
  font-size: 1.1rem;
  color: var(--text-soft);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
}

.btn.primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn.primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn[disabled] {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

/* =========================================================
   Example conversation
   ========================================================= */
.chat-mock {
  margin: 0;
}

.chat-mock-label {
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
}

.chat-window {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.chat-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
}

.chat-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.chat-bar b {
  margin-left: 8px;
  font-weight: 800;
}

.msg {
  max-width: 88%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.msg.user {
  align-self: flex-end;
  background: var(--user-bubble);
  color: var(--user-text);
  border-bottom-right-radius: 6px;
}

.msg.bot {
  align-self: flex-start;
  background: var(--bot-bubble);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}

.route-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
}

.route-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.route-chip.strong {
  background: var(--warm-soft);
  color: var(--warm);
}

/* =========================================================
   Early-access card and form
   ========================================================= */
.ea-card {
  max-width: 520px;
  margin-top: 34px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ea-card h2 {
  margin-bottom: 4px;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}

.ea-card > p {
  margin-bottom: 18px;
  font-size: 0.98rem;
  color: var(--text-soft);
}

.ea-wide {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px;
}

.ea-wide h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.ea-form {
  display: grid;
  gap: 14px;
}

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

.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-soft);
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field [aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  font-size: 0.84rem;
  color: var(--error);
}

.field-error:empty {
  display: none;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ea-form .btn {
  justify-self: start;
}

/* Stays in the page while empty, so screen readers announce what appears. */
.ea-status {
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-soft);
}

.ea-status.is-error {
  color: var(--error);
}

.ea-status.is-success {
  color: var(--success);
}

.ea-privacy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =========================================================
   Sections (landing page)
   ========================================================= */
.section {
  padding-block: 84px;
}

.section h2 {
  margin-bottom: 16px;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-text {
  max-width: 40em;
  font-size: 1.1rem;
  color: var(--text-soft);
}

.section-text a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
}

.section-text a:hover {
  border-bottom-color: var(--accent);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.feature {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--accent-soft);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.feature p {
  font-size: 0.96rem;
  color: var(--text-soft);
}

.band {
  background: var(--bg-band);
  border-block: 1px solid var(--border);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 18px;
  list-style: none;
}

.chips li {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
}

.note {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* =========================================================
   404 and footer
   ========================================================= */
.page-404 {
  padding-block: 120px;
  text-align: center;
}

.page-404 h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  letter-spacing: -0.03em;
}

.page-404 p {
  margin: 12px 0 28px;
  color: var(--text-soft);
}

.site-footer {
  padding-block: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
}

.footer-inner a {
  font-weight: 700;
  color: var(--text-soft);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--accent);
}

.footer-brand {
  font-weight: 800;
  color: var(--text);
}

/* =========================================================
   Responsive and motion
   ========================================================= */
@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 44px 56px;
  }

  .page-soon .hero {
    min-height: 0;
  }

  .chat-mock-label {
    text-align: left;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .lang-switch a {
    padding: 5px 8px;
  }

  .section {
    padding-block: 60px;
  }

  .ea-card,
  .ea-wide {
    padding: 20px;
  }

  .ea-form .btn,
  .cta-row .btn {
    justify-self: stretch;
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
