@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ─── TOKENS ─────────────────────────────────────────── */
:root {
  --red:          #CC0000;
  --red-dark:     #AA0000;
  --red-subtle:   rgba(204,0,0,.08);

  --bg:           #FFFFFF;
  --bg-alt:       #F3F3F3;
  --surface:      #EBEBEB;
  --text:         #0A0A0A;
  --text-muted:   #555555;
  --text-faint:   #999999;
  --border:       rgba(0,0,0,.10);
  --border-str:   rgba(0,0,0,.20);
  --nav-bg:       rgba(255,255,255,.88);
  --card-bg:      rgba(255,255,255,.70);
  --grid-line:    rgba(204,0,0,.04);

  --font:         'Outfit', system-ui, sans-serif;
  --nav-h:        72px;
  --max-w:        1200px;
  --r:            8px;
  --r-lg:         16px;
  --ease:         .22s ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --red:          #E53535;
    --red-dark:     #CC0000;
    --red-subtle:   rgba(229,53,53,.10);

    --bg:           #121212;
    --bg-alt:       #181818;
    --surface:      #222222;
    --text:         #ECECEC;
    --text-muted:   #B0B0B0;
    --text-faint:   #707070;
    --border:       rgba(255,255,255,.10);
    --border-str:   rgba(255,255,255,.20);
    --nav-bg:       rgba(18,18,18,.92);
    --card-bg:      rgba(30,30,30,.90);
    --grid-line:    rgba(229,53,53,.06);
  }

  /* Dark mode input backgrounds need contrast against dark sections */
  input, select, textarea {
    background: var(--surface);
    border-color: var(--border-str);
  }
  input::placeholder, textarea::placeholder {
    color: var(--text-faint);
  }

  /* Cards need visible backgrounds */
  .cap-card, .value-card {
    background: var(--surface);
    border-color: var(--border);
  }

  /* Footer should be distinct */
  .footer__tagline { color: var(--text-muted); }
  .footer__nav a { color: var(--text-muted); }
  .footer__copy { color: var(--text-faint); }

  /* Cookie banner more visible */
  .cookie-banner {
    background: var(--surface);
    border-top-color: var(--border-str);
    box-shadow: 0 -4px 30px rgba(0,0,0,.4);
  }

  /* Buttons need adjustment */
  .btn--outline {
    border-color: var(--red);
    color: var(--red);
  }
  .btn--outline:hover {
    background: var(--red);
    color: #fff;
  }

  /* Consent label more readable */
  .consent-label { color: var(--text-muted); }

  /* Scroll cue visible */
  .scroll-cue__text { color: var(--text-faint); }
  .hero__scroll { color: var(--text-faint); }

  /* Section eyebrow stays bright */
  .section-eyebrow { color: var(--red); }

  /* Cobot cards */
  .cobot-card {
    background: var(--surface);
    border-color: var(--border);
  }

  /* Cobot status bar */
  .cobot-status {
    background: var(--surface);
    border-color: var(--border);
  }

  /* Value pills in about section */
  .value-pill {
    background: var(--surface);
    border-color: var(--border);
  }

  /* Section body text */
  .section-body { color: var(--text-muted); }
  .section-subtitle { color: var(--text-muted); }

  /* Footer legal links */
  .footer__legal a { color: var(--text-faint); }
  .footer__legal a:hover { color: var(--red); }

  /* About section title in dark */
  .about-teaser__text .section-title { color: var(--text); }
}

/* ─── RESET ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--ease), color var(--ease);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ─── LAYOUT ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}
.section-padded { padding-block: clamp(60px, 10vw, 120px); }
.section--alt { background: var(--bg-alt); }

/* ─── LOGO ───────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.logo__img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

/* ─── NAV ────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: background var(--ease), border-color var(--ease);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .5px;
  transition: color var(--ease);
}
.nav__links a:hover { color: var(--red); }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform var(--ease), opacity var(--ease);
}

/* ─── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn--outline:hover { background: var(--red); color: #fff; }
.btn--secondary { color: var(--red); background: var(--red-subtle); border-color: transparent; }
.btn--secondary:hover { background: var(--red); color: #fff; }
.btn--lg { padding: 16px 36px; font-size: 16px; }

/* ─── SECTION HEADERS ────────────────────────────────── */
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
}
.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section-header .section-subtitle { margin-inline: auto; }

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridDrift 24s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to   { background-position: 48px 48px; }
}
.hero__glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204,0,0,.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.hero__headline {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--text);
  margin-bottom: 24px;
}
.hero__headline em {
  color: var(--red);
  font-style: normal;
}
.hero__sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}
.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: var(--red);
  opacity: .5;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─── VALUE CARDS ────────────────────────────────────── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.value-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.value-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(204,0,0,.12);
}
.value-card__icon { font-size: 28px; margin-bottom: 16px; }
.value-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.value-card__body { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ─── ABOUT TEASER ───────────────────────────────────── */
#about {
  background: url('../assets/about-bg.png') center/cover no-repeat;
  position: relative;
}
#about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.92);
  pointer-events: none;
}
@media (prefers-color-scheme: dark) {
  #about::before { background: rgba(18,18,18,.94); }
}
#about > * { position: relative; z-index: 1; }
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-teaser__text .section-body {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}
.about-teaser__text .section-body.signature {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  letter-spacing: .5px;
  margin-bottom: 28px;
}
.about-teaser__text .section-title { margin-top: 4px; }
.about-teaser__values {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.value-pill {
  padding: 14px 20px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--text);
  background: var(--card-bg);
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}
.value-pill:hover {
  border-color: var(--red);
  background: var(--red-subtle);
  transform: translateX(4px);
}

/* ─── CAPABILITIES ───────────────────────────────────── */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.cap-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.cap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.cap-card:hover::before { transform: scaleX(1); }
.cap-card:hover {
  border-color: var(--border-str);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,.12);
}
.cap-card__number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--red);
  margin-bottom: 16px;
}
.cap-card__title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}
.cap-card__body { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; }
.cap-card__tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cap-card__tags li {
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: .5px;
}
.cap-card__tags li::before { content: '— '; color: var(--red); }

/* ─── ROBOTICS ───────────────────────────────────────── */
.cobot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}
.cobot-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: border-color var(--ease), transform var(--ease);
}
.cobot-card:hover { border-color: var(--red); transform: translateY(-2px); }
.cobot-card__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.cobot-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.cobot-card p  { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.cobot-status {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card-bg);
  margin-bottom: 48px;
}
.status-badge {
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  white-space: nowrap;
}
.status-text { font-size: 14px; color: var(--text-muted); }

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.industry-tags span {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color var(--ease), color var(--ease);
}
.industry-tags span:hover { border-color: var(--red); color: var(--red); }

/* ─── CONTACT ────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
input, select, textarea {
  background: var(--bg);
  border: 1px solid var(--border-str);
  border-radius: var(--r);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,0,0,.12);
}
textarea { resize: vertical; min-height: 140px; }
select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23CC0000' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
input::placeholder, textarea::placeholder { color: var(--text-faint); }

.contact-info { display: flex; flex-direction: column; gap: 32px; padding-top: 8px; }
.contact-detail { display: flex; flex-direction: column; gap: 6px; }
.contact-detail strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
}
.contact-detail span, .contact-detail a {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}
.contact-detail a:hover { color: var(--red); }

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-block: 64px 48px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
}
.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer__logo .logo__img {
  height: 80px;
}
.footer__tagline {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
}
.footer__nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer__nav a {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: .5px;
  transition: color var(--ease);
}
.footer__nav a:hover { color: var(--red); }
.footer__copy {
  font-size: 12px;
  color: var(--text-faint);
  padding-top: 24px;
  border-top: 1px solid var(--border);
  width: 100%;
  text-align: center;
}
.footer__legal {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.footer__legal a {
  color: var(--text-faint);
  transition: color var(--ease);
}
.footer__legal a:hover { color: var(--red); }
.footer__dot { color: var(--text-faint); }

/* ─── FORM CONSENT ───────────────────────────────────── */
.form-consent {
  margin-top: 8px;
  margin-bottom: 4px;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.5;
}
.consent-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--red);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.consent-label a {
  color: var(--red);
  text-decoration: underline;
}

/* ─── COOKIE CONSENT BANNER ──────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 20px 0;
  transform: translateY(100%);
  transition: transform .4s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.cookie-banner.is-visible {
  transform: translateY(0);
}
.cookie-banner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cookie-banner__inner p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.cookie-banner__inner p a {
  color: var(--red);
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.btn--sm {
  padding: 8px 20px;
  font-size: 13px;
}

/* ─── LEGAL PAGE STYLES ──────────────────────────────── */
.legal-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text);
}
.legal-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text);
}
.legal-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.legal-content ul {
  margin: 8px 0 16px 24px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}
.legal-content li { margin-bottom: 4px; }
.legal-content a { color: var(--red); text-decoration: underline; }

/* ─── RESPONSIVE ─────────────────────────────────────── */

/* Tablet landscape */
@media (max-width: 1024px) {
  .container { padding-inline: 32px; }
  .hero__title { font-size: clamp(2.4rem, 6vw, 3.5rem); }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .about-teaser { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { flex-direction: row; flex-wrap: wrap; }
  .caps-grid { grid-template-columns: 1fr; }
  .cobot-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2rem, 7vw, 3rem); }
  .section-title { font-size: clamp(1.5rem, 5vw, 2.2rem); }
}

/* Mobile */
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .nav__links {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 0;
    background: var(--bg);
    padding: 32px;
    gap: 24px;
    z-index: 999;
  }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: flex; }
  .logo__img { height: 48px; }
  .form-row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__nav { justify-content: center; }
  .footer__legal { justify-content: center; }
  .hero__title { font-size: 2rem; }
  .section-title { font-size: 1.5rem; }
  .section-padded { padding-block: 48px; }
  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-banner__actions { justify-content: center; }
  .caps-grid { gap: 16px; }
}

/* Small phones */
@media (max-width: 400px) {
  .container { padding-inline: 16px; }
  .logo__img { height: 40px; }
  .hero__eyebrow { font-size: 10px; }
  .hero__title { font-size: 1.6rem; }
  .value-cards { flex-direction: column; }
}

/* ─── REVEAL ANIMATION ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

