:root {
  color-scheme: light;
  --ink: #142033;
  --muted: #5b6678;
  --line: #d7dde7;
  --paper: #f7f8fb;
  --white: #ffffff;
  --red: #d92332;
  --blue: #2459d6;
  --yellow: #f5b82e;
  --green: #138a65;
  --dark: #0b1220;
  --shadow: 0 22px 70px rgba(20, 32, 51, 0.16);
}

* {
  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.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(247, 248, 251, 0.92);
  border-bottom: 1px solid rgba(215, 221, 231, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--white);
  background: linear-gradient(135deg, var(--red), var(--blue));
  border-radius: 8px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.eyebrow {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav a {
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 73px);
  padding: clamp(44px, 7vw, 92px) clamp(18px, 4vw, 54px) clamp(30px, 5vw, 64px);
  background:
    linear-gradient(120deg, rgba(217, 35, 50, 0.12), transparent 32%),
    linear-gradient(290deg, rgba(36, 89, 214, 0.13), transparent 34%),
    var(--paper);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions,
.contact-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: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 12px 28px rgba(217, 35, 50, 0.22);
}

.button.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.robot-panel {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  border: 1px solid rgba(215, 221, 231, 0.95);
  border-radius: 8px;
  background: #101827;
  box-shadow: var(--shadow);
}

.field-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 20% 20%, rgba(217, 35, 50, 0.4), transparent 24%),
    radial-gradient(circle at 80% 70%, rgba(36, 89, 214, 0.5), transparent 26%);
  background-size: 42px 42px, 42px 42px, auto, auto;
}

.robot {
  position: absolute;
  right: 10%;
  bottom: 26%;
  width: 72%;
  max-width: 430px;
  aspect-ratio: 1.35;
}

.robot span {
  position: absolute;
  display: block;
}

.wheel {
  bottom: 0;
  width: 27%;
  aspect-ratio: 1;
  border: 14px solid #cbd3df;
  border-radius: 50%;
  background: #202a3a;
  box-shadow: inset 0 0 0 10px #39465a;
}

.wheel-left {
  left: 5%;
}

.wheel-right {
  right: 4%;
}

.chassis {
  left: 12%;
  right: 7%;
  bottom: 19%;
  height: 18%;
  border: 10px solid #f4f7fb;
  background: rgba(217, 35, 50, 0.82);
  transform: skewX(-13deg);
}

.tower {
  left: 45%;
  bottom: 34%;
  width: 13%;
  height: 55%;
  border: 9px solid #e7edf6;
  background: rgba(36, 89, 214, 0.85);
  transform: rotate(-10deg);
}

.arm {
  left: 46%;
  top: 16%;
  width: 47%;
  height: 9%;
  border: 8px solid #edf2f8;
  background: var(--yellow);
  transform: rotate(-22deg);
  transform-origin: left center;
}

.claw {
  right: 0;
  top: 3%;
  width: 18%;
  height: 22%;
  border-top: 9px solid #edf2f8;
  border-right: 9px solid #edf2f8;
  border-bottom: 9px solid #edf2f8;
}

.metric-strip {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-strip span {
  padding: 12px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 0.84rem;
}

.metric-strip strong {
  display: block;
  color: var(--white);
  font-size: 1.35rem;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 4vw, 54px);
}

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

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.contact-band p {
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-band,
.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: 28px;
  align-items: center;
  background: var(--white);
  border-block: 1px solid var(--line);
}

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

.stats div,
.tool-grid article {
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.stats dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stats dd {
  margin: 6px 0 0;
  font-size: 1.25rem;
  font-weight: 900;
}

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

.project-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-visual {
  min-height: 210px;
  background-color: #172033;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.12) 25%, transparent 25%);
  background-size: 42px 42px;
}

.project-visual.drive {
  border-bottom: 7px solid var(--red);
}

.project-visual.code {
  border-bottom: 7px solid var(--green);
}

.project-visual.cad {
  border-bottom: 7px solid var(--blue);
}

.project-body {
  padding: 22px;
}

.tag {
  display: inline-flex;
  padding: 5px 9px;
  color: var(--dark);
  background: #f2d36d;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-body h3,
.timeline h3,
.tool-grid h3 {
  margin: 14px 0 8px;
  font-size: 1.25rem;
}

.project-body p,
.timeline p,
.tool-grid p,
.tool-grid li {
  color: var(--muted);
}

.project-body a,
.resource-list a {
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 40px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  padding: 22px;
  background: var(--white);
  border-left: 6px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(20, 32, 51, 0.07);
}

.timeline time {
  color: var(--red);
  font-weight: 900;
}

.competition-band {
  color: var(--white);
  background: var(--dark);
}

.competition-band .eyebrow,
.competition-band .section-heading p,
.competition-band .tool-grid p,
.competition-band .tool-grid li {
  color: rgba(255, 255, 255, 0.72);
}

.competition-band .tool-grid article {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.tool-grid ul {
  margin: 14px 0 0;
  padding-left: 19px;
}

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

.resource-list a {
  min-height: 76px;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-band {
  border-bottom: 0;
}

.contact-actions {
  justify-content: flex-end;
}

.footer {
  padding: 28px clamp(18px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--dark);
}

.footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header,
  .hero,
  .intro-band,
  .split,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .robot-panel {
    min-height: 430px;
  }

  .stats,
  .project-grid,
  .tool-grid,
  .resource-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .site-header {
    position: static;
    display: grid;
    gap: 14px;
  }

  .nav {
    justify-content: flex-start;
    width: 100%;
  }

  .nav a {
    flex: 1 1 108px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .robot-panel {
    min-height: 350px;
  }

  .metric-strip,
  .stats,
  .project-grid,
  .tool-grid,
  .resource-list {
    grid-template-columns: 1fr;
  }

  .metric-strip {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .button {
    width: 100%;
  }
}
