/* ===== Design tokens ===== */
:root {
  --navy: #070f3d;
  --navy-deep: #040a2b;
  --navy-glow: #12267a;
  --blue: #1a7dff;
  --blue-dark: #0b4fe0;
  --cyan: #3cc8ff;
  --ink: #0d1440;
  --text-muted: #4a5478;
  --text-on-dark: #f5f7ff;
  --text-on-dark-muted: #c3cbea;
  --bg: #f7f9fd;
  --card-border: #e2e8f4;

  --gradient-btn: linear-gradient(135deg, var(--cyan), var(--blue) 60%, var(--blue-dark));
  --gradient-night: radial-gradient(120% 90% at 75% 40%, var(--navy-glow) 0%, var(--navy) 55%, var(--navy-deep) 100%);
  --gradient-card: linear-gradient(180deg, #ffffff, #f0f5fd);
  --shadow-glow: 0 10px 30px -8px rgba(26, 125, 255, 0.65);
  --shadow-card: 0 1px 2px rgba(13, 20, 64, 0.06), 0 18px 40px -20px rgba(26, 125, 255, 0.35);

  --radius: 1rem;
  --container: 72rem;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  background: var(--gradient-btn);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-glow);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.btn--sm { padding: 0.65rem 1.5rem; font-size: 0.875rem; }

/* ===== Logo ===== */
.logo {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.logo:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.logo__img {
  display: block;
  height: clamp(2rem, 4vw, 2.6rem);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.logo__img--footer {
  height: clamp(2.4rem, 4.5vw, 3.25rem);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--text-on-dark);
}
.hero__robot {
  position: absolute;
  right: 0;
  top: 6rem;
  bottom: 0;
  width: 72%;
  height: calc(100% - 6rem);
  object-fit: cover;
  object-position: 70% top;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%), linear-gradient(to bottom, transparent 0%, #000 12%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 30%), linear-gradient(to bottom, transparent 0%, #000 12%);
  mask-composite: intersect;
}
.hero__robot-mobile { display: none; }

.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: flex; gap: 2rem; font-size: 0.875rem; font-weight: 500; }
.nav__link {
  position: relative;
  padding-bottom: 0.5rem;
  color: var(--text-on-dark-muted);
  transition: color 0.2s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--text-on-dark); }
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.nav__link.is-active::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.6rem;
  background: transparent;
  border: 0;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero__content {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  min-height: 520px;
  padding-top: 2.5rem;
  padding-bottom: 6rem;
}
.hero__text { max-width: 28rem; }
.hero__text h1 {
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero__text p {
  margin: 1.5rem 0 2.25rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-on-dark-muted);
}

/* ===== Meet section ===== */
.meet { padding-top: 6rem; padding-bottom: 6rem; }
.meet__intro { max-width: 42rem; margin: 0 auto; text-align: center; }
.meet__intro h2 { font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; }
.meet__intro p { margin-top: 1.25rem; font-size: clamp(1.1rem, 2vw, 1.25rem); line-height: 1.65; color: var(--text-muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem 1.5rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--gradient-card);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px); }
.card__icon { width: 5rem; height: 5rem; color: var(--blue); transition: transform 0.5s ease; }
.card:hover .card__icon { transform: scale(1.1); }
.card h3 { font-size: 1.5rem; font-weight: 700; }

/* ===== CTA ===== */
.cta-wrap { padding: 0 1.5rem; }
.cta {
  position: relative;
  overflow: hidden;
  max-width: var(--container);
  margin: 0 auto;
  border-radius: 1.5rem;
  background: var(--navy-deep);
  color: var(--text-on-dark);
}
.cta__robot {
  position: absolute;
  inset: 0 auto 0 0;
  width: 65%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 35%);
  mask-image: linear-gradient(to left, transparent 0%, #000 35%);
}
.cta__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 340px;
  max-width: 27rem;
  margin-left: auto;
  margin-right: 4rem;
  padding: 4rem 0;
}
.cta__content h2 {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

/* ===== Footer ===== */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3.5rem 1.5rem;
}
.footer__tag { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.4em; color: var(--text-muted); text-align: center; }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
  .hero__robot { display: none; }
  .hero__robot-mobile {
    display: block;
    width: 100%;
    margin-top: -4rem;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 25%);
  }
  .hero__content { min-height: 0; padding-top: 2rem; padding-bottom: 5rem; }

  .nav__toggle { display: flex; }
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 1.5rem;
    right: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: rgba(10, 20, 75, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .nav__menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links { flex-direction: column; gap: 1rem; font-size: 1rem; }
  .nav__link { display: inline-block; }

  .cards { grid-template-columns: 1fr; }

  .cta-wrap { padding: 0; }
  .cta { border-radius: 0; }
  .cta__robot {
    position: static;
    width: 100%;
    aspect-ratio: 4 / 3;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .cta__content { min-height: 0; margin: 0; padding: 1rem 2rem 4rem; }
}
