/* ==========================================================================
   Foset Robot — landing page
   Design system tokens sourced from the design handoff.
   ========================================================================== */

:root {
  /* Colour tokens */
  --brand-orange: #e95523;
  --brand-orange-hover: #d1461a;
  --ink: #22201e;
  --ink-2: #1a1917;
  --ink-panel: #201e1c;
  --paper: #faf8f5;
  --paper-2: #f4efe9;
  --paper-3: #efe9e2;
  --muted: #6f6a63;
  --muted-2: #8a847b;
  --text-on-dark: #f7f5f2;

  /* Typography */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --container: 1240px;
  --container-pad: clamp(18px, 5vw, 56px);
  --section-pad: clamp(58px, 8vw, 90px);
}

/* Reset ------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  max-width: 100%;
}
button {
  font-family: inherit;
}
input,
textarea {
  font-family: inherit;
}
[hidden] {
  display: none !important;
}

/* Keyframes --------------------------------------------------------------- */
@keyframes fuA {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes dashMove {
  to {
    background-position: 16px 0;
  }
}
@keyframes robotRun {
  0% {
    left: 0;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  78% {
    left: calc(100% - 30px);
    opacity: 1;
  }
  90% {
    left: calc(100% - 30px);
    opacity: 0;
  }
  100% {
    left: 0;
    opacity: 0;
  }
}

/* Entrance animation utilities */
.fu {
  animation: fuA 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.fu-panel {
  animation: fuA 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
}
.d1 { animation-delay: 0.06s; }
.d2 { animation-delay: 0.12s; }
.d3 { animation-delay: 0.18s; }
.d4 { animation-delay: 0.24s; }

/* Shared ------------------------------------------------------------------ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin: 0;
  text-wrap: pretty;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 16px 0 0;
  text-wrap: balance;
}

.lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 16px auto 0;
  text-wrap: pretty;
}

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.btn--primary {
  background: var(--brand-orange);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-orange-hover);
  transform: translateY(-1px);
}
.btn--nav {
  font-size: 14px;
  padding: 11px 18px;
  border-radius: 8px;
}
.btn--hero {
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 8px;
  gap: 9px;
}
.btn--provoke {
  font-size: 15px;
  padding: 15px 26px;
  border-radius: 8px;
  gap: 9px;
  margin-top: 28px;
}
.btn--submit {
  font-size: 15px;
  padding: 15px 24px;
  border-radius: 8px;
  gap: 9px;
  justify-content: center;
  grid-column: 1 / -1;
}
.btn--ghost {
  background: transparent;
  color: var(--text-on-dark);
  font-size: 15px;
  padding: 14px 4px;
}
.btn--ghost:hover {
  color: var(--brand-orange);
}

/* Dark band (nav + hero) -------------------------------------------------- */
.band-dark {
  background: var(--ink-2);
  color: var(--text-on-dark);
}

/* Nav --------------------------------------------------------------------- */
.nav {
  border-bottom: 1px solid rgba(247, 245, 242, 0.1);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  flex-wrap: wrap;
}
.nav__logo {
  height: clamp(28px, 4vw, 34px);
  width: auto;
  display: block;
}
.nav__cluster {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  flex-wrap: wrap;
}
.nav__link {
  font-size: 14px;
  font-weight: 600;
  color: rgba(247, 245, 242, 0.66);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease;
}
.nav__link:hover {
  color: var(--text-on-dark);
}

/* Language segmented toggle */
.seg {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(247, 245, 242, 0.08);
  border-radius: 8px;
  padding: 3px;
}
.seg__btn {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  background: transparent;
  color: rgba(247, 245, 242, 0.55);
}
.seg__btn.is-active {
  background: var(--text-on-dark);
  color: var(--ink);
}

/* Hero -------------------------------------------------------------------- */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 76px) var(--container-pad) clamp(60px, 8vw, 90px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: clamp(36px, 5vw, 54px);
  align-items: center;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text-on-dark);
  margin: 20px 0 0;
  text-wrap: balance;
}
.hero__sub {
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.55;
  color: rgba(247, 245, 242, 0.66);
  max-width: 50ch;
  margin: 22px 0 0;
  text-wrap: pretty;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(247, 245, 242, 0.8);
  background: rgba(247, 245, 242, 0.06);
  border: 1px solid rgba(247, 245, 242, 0.14);
  border-radius: 999px;
  padding: 8px 14px;
}
.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-orange);
  display: block;
}

/* Hero route graphic */
.hero__visual {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.route {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ink-panel);
  border: 1px solid rgba(247, 245, 242, 0.12);
  border-radius: 18px;
  background-image: radial-gradient(rgba(247, 245, 242, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
}
/* Tags + track share one flex row so the dashed track fills whatever space is
   left between the two labels — it adapts to the text length in any language
   instead of overlapping a long label (e.g. German "Kommissionierung"). */
.route__row {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}
.route__tag {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}
.route__tag--pick {
  background: rgba(247, 245, 242, 0.06);
  border: 1px solid rgba(247, 245, 242, 0.16);
  color: var(--text-on-dark);
}
.route__tag--pack {
  background: var(--brand-orange);
  color: #fff;
  font-weight: 600;
}
.route__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: block;
}
.route__dot--light {
  background: var(--text-on-dark);
}
.route__dot--white {
  background: #fff;
}
.route__track {
  flex: 1 1 auto;
  min-width: 20px;
  position: relative;
  height: 2px;
  background: repeating-linear-gradient(90deg, #e95523 0 9px, transparent 9px 16px);
  animation: dashMove 0.8s linear infinite;
}
.route__robot {
  position: absolute;
  top: calc(50% - 15px);
  left: calc(50% - 15px);
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--brand-orange);
  box-shadow: 0 6px 18px rgba(233, 85, 35, 0.45);
}
.route__robot.is-animated {
  left: 0;
  animation: robotRun 4.6s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}
.route__caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(247, 245, 242, 0.5);
}

/* Section scaffolding ----------------------------------------------------- */
.section {
  padding: var(--section-pad) 0;
  scroll-margin-top: 12px;
}
.section--alt {
  background: var(--paper-2);
  border-top: 1px solid rgba(34, 32, 30, 0.1);
}
.section--contact {
  border-top: 1px solid rgba(34, 32, 30, 0.1);
}
.section-head {
  text-align: center;
  margin: 0 auto;
}
.section-head--how {
  max-width: 680px;
  margin-bottom: 52px;
}
.section-head--contact {
  max-width: 640px;
  margin-bottom: 44px;
}
.lead--how {
  max-width: 56ch;
}
.lead--contact {
  max-width: 52ch;
}

/* Cards (shared hover) ---------------------------------------------------- */
.card {
  background: #fff;
  border: 1px solid rgba(34, 32, 30, 0.12);
  border-radius: 14px;
  padding: 22px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  border-color: rgba(34, 32, 30, 0.24);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(34, 32, 30, 0.08);
}
.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.card__body {
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* How it works ------------------------------------------------------------ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 20px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.step__num {
  min-width: 54px;
  height: 52px;
  padding: 0 8px;
  border-radius: 12px;
  background: var(--brand-orange);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__card {
  margin-top: 20px;
  width: 100%;
}
.step__card .card__title {
  font-size: 18px;
}
.step__card .card__body {
  font-size: 14.5px;
  margin: 10px 0 0;
}

.callout {
  margin-top: 48px;
  background: var(--paper-2);
  border: 1px solid rgba(34, 32, 30, 0.1);
  border-radius: 16px;
  padding: clamp(24px, 4vw, 34px) clamp(24px, 4vw, 40px);
  display: flex;
  align-items: center;
  gap: 20px;
}
.callout__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-orange);
  display: block;
  flex: none;
}
.callout__text {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.6vw, 22px);
  line-height: 1.35;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

/* Software ---------------------------------------------------------------- */
.sw-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(36px, 5vw, 52px);
}
.sw-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin: 20px 0 0;
  text-wrap: pretty;
}

/* Fleet environment diagram */
.fleet {
  border: 1px solid rgba(34, 32, 30, 0.12);
  border-radius: 16px;
  background: #fff;
  padding: 24px;
}
.fleet__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 16px;
}
.fleet__os {
  background: var(--ink);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.fleet__os-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-on-dark);
}
.fleet__os-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(247, 245, 242, 0.6);
  letter-spacing: 0.05em;
}
.fleet__connector {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}
.fleet__connector span {
  width: 1px;
  height: 20px;
  background: rgba(34, 32, 30, 0.2);
  display: block;
}
.fleet__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tile {
  border-radius: 11px;
  padding: 14px;
}
.tile--native {
  border: 1.5px solid var(--brand-orange);
  background: rgba(233, 85, 35, 0.05);
}
.tile--neutral {
  border: 1px solid rgba(34, 32, 30, 0.14);
  background: var(--paper);
}
.tile__swatch {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: var(--paper-3);
  background-image: repeating-linear-gradient(135deg, rgba(34, 32, 30, 0.07) 0 1px, transparent 1px 6px);
  border: 1px solid rgba(34, 32, 30, 0.12);
  margin-bottom: 10px;
}
.tile--neutral .tile__swatch {
  border-color: rgba(34, 32, 30, 0.1);
}
.tile__name {
  font-size: 14px;
}
.tile--native .tile__name {
  font-weight: 700;
  color: var(--ink);
}
.tile--neutral .tile__name {
  font-weight: 600;
  color: #46423d;
}
.tile__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.tile--native .tile__status {
  color: var(--brand-orange);
}
.tile--neutral .tile__status {
  color: var(--muted-2);
}
.tile__status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: block;
}
.tile--native .tile__status-dot {
  background: var(--brand-orange);
}
.tile--neutral .tile__status-dot {
  background: #9a938a;
}
.fleet__integ {
  border: 1px dashed rgba(34, 32, 30, 0.22);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.fleet__integ-name {
  font-weight: 600;
  font-size: 13px;
  color: #46423d;
}
.fleet__integ-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}

/* Feature cards */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
}
.feature__icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(233, 85, 35, 0.12);
  border: 1px solid rgba(233, 85, 35, 0.35);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature__icon span {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--brand-orange);
  display: block;
}
.feature .card__title {
  font-size: 17px;
}
.feature .card__body {
  font-size: 14px;
  margin: 9px 0 0;
}

/* About — three pillars --------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 20px;
}
.pillar {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Orange cap = the "pillar" accent; survives the card's grey hover border. */
.pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--brand-orange);
}
.pillar__role {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin: 6px 0 0;
}
.pillar__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 10px 0 0;
  text-wrap: balance;
}
.pillar__place {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  margin: 6px 0 0;
}
.pillar__desc {
  font-size: 14.5px;
  margin: 14px 0 0;
}
.about__synthesis {
  background: var(--paper-2);
}

/* Provocation band -------------------------------------------------------- */
.provoke {
  background: var(--ink-2);
  color: var(--text-on-dark);
  padding: clamp(60px, 9vw, 84px) 0;
}
.provoke__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
  text-align: center;
}
.provoke__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.15;
  font-weight: 600;
  color: var(--text-on-dark);
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.provoke__body {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(247, 245, 242, 0.68);
  margin: 18px auto 0;
  max-width: 60ch;
  text-wrap: pretty;
}

/* Contact ----------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 24px;
  align-items: stretch;
}
.form-card {
  background: #fff;
  border: 1px solid rgba(34, 32, 30, 0.12);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 32px);
}
.form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field--full {
  grid-column: 1 / -1;
}
.field__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.field__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(34, 32, 30, 0.16);
  border-radius: 9px;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.18s ease;
}
.field__input:focus {
  border-color: var(--brand-orange);
  outline: none;
}
textarea.field__input {
  min-height: 104px;
  resize: vertical;
  line-height: 1.5;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 52px 12px;
}
.form-success:focus {
  outline: none;
}
.form-success__check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.form-success__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin: 22px 0 0;
  text-wrap: balance;
}
.form-success__body {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 10px 0 0;
  max-width: 36ch;
  text-wrap: pretty;
}

/* Info card */
.info-card {
  background: var(--ink);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 32px);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.info-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 245, 242, 0.5);
  margin: 0;
}
.info-card__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin-top: 14px;
}
.info-card__addr {
  font-size: 15px;
  color: rgba(247, 245, 242, 0.7);
  line-height: 1.75;
  margin-top: 10px;
}
.info-card__group {
  padding-top: 20px;
  border-top: 1px solid rgba(247, 245, 242, 0.14);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(247, 245, 242, 0.7);
}
.info-card__group-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-orange);
  display: block;
  flex: none;
}

/* Footer ------------------------------------------------------------------ */
.footer {
  background: var(--ink-2);
  color: var(--text-on-dark);
  padding: clamp(40px, 5vw, 52px) 0;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer__left {
  max-width: 360px;
}
.footer__logo {
  height: 30px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}
.footer__tagline {
  font-size: 14px;
  color: rgba(247, 245, 242, 0.6);
  line-height: 1.6;
  margin: 0;
  text-wrap: pretty;
}
.footer__group {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(247, 245, 242, 0.55);
  margin: 0;
}
.footer__rights {
  font-size: 13px;
  color: rgba(247, 245, 242, 0.4);
  margin: 10px 0 0;
}

/* Accessibility: honour reduced-motion ------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .fu,
  .fu-panel {
    animation: none;
  }
  .route__track {
    animation: none;
  }
  .route__robot.is-animated {
    animation: none;
    left: calc(50% - 15px);
  }
}
