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

.home-page {
  --ink: #0d253d;
  --muted: #44566e;
  --action: #533afd;
  --action-hover: #4434d4;
  --soft: #f6f9fc;
  --line: #e3e8ee;
  --navy: #1c1e54;
  --shadow: 0 8px 24px rgb(0 55 112 / 8%), 0 2px 6px rgb(0 55 112 / 5%);
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.6 Inter, system-ui, sans-serif;
  font-feature-settings: "ss01";
}

.home-page .container {
  max-width: 1264px;
  padding-inline: clamp(20px, 5vw, 48px);
}

.home-page h1,
.home-page h2,
.home-page h3 {
  font-family: inherit;
  font-weight: 300;
  letter-spacing: -.025em;
}

.home-page .header {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

@supports (backdrop-filter: blur(12px)) {
  .home-page .header {
    background: rgb(255 255 255 / 91%);
    backdrop-filter: blur(12px);
  }
}

.home-page .nav-row { height: 72px; gap: 16px; }
.home-page .brand { min-width: 0; }
.home-page .brand .accent { color: var(--action); }
.home-page .brand small { font-size: .6875rem; }
.home-page .nav { gap: 6px; font-size: .875rem; font-weight: 500; }
.home-page .nav a { padding: 10px 14px; border-radius: 8px; white-space: nowrap; }
.home-page .nav a:hover { background: var(--soft); color: var(--action-hover); }
.home-page a:focus-visible,
.home-page button:focus-visible,
.home-page summary:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }

.home-button,
.home-page .nav-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 20px;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  text-align: center;
}

.home-primary,
.home-page .nav-actions .button { color: #fff; background: var(--action); }
.home-primary:hover,
.home-page .nav-actions .button:hover { background: var(--action-hover); transform: none; }
.home-secondary { color: var(--action-hover); border-color: #d8d3fb; background: #fff; }
.home-secondary:hover { background: #f4f1ff; }
.home-page .nav-actions .button { font-size: .875rem; white-space: nowrap; }

.home-hero { isolation: isolate; position: relative; }
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 -8%;
  z-index: -1;
  background:
    linear-gradient(172deg, transparent 56%, #fff 88%),
    radial-gradient(ellipse at 77% 24%, #c5c7ff 0%, transparent 48%),
    radial-gradient(ellipse at 96% 4%, #f9c2db 0%, transparent 47%),
    radial-gradient(ellipse at 14% 0%, #ffe5c9 0%, transparent 53%),
    #f2efff;
}

.home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(56px, 7vw, 100px);
}

.home-page .home-eyebrow { color: var(--action-hover); font-weight: 600; font-size: .9375rem; margin: 0 0 12px; }
.home-hero h1 { font-size: clamp(2.5rem, 4.7vw, 3.75rem); line-height: 1.04; margin-bottom: 20px; text-wrap: balance; }
.home-intro { max-width: 47ch; margin-bottom: 24px; color: var(--muted); font-size: 1.0625rem; }
.home-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.home-hero-panel {
  min-width: 0;
  padding: 8px;
  background: rgb(255 255 255 / 92%);
  border: 1px solid #e8e3fb;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.home-motion-frame { position: relative; }
.home-motion-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; background: #171a20; }
.home-motion-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border: 0;
  border-radius: 9999px;
  background: rgb(13 37 61 / 92%);
  color: #fff;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
}
.home-motion-toggle:hover { background: var(--ink); }
.home-motion-models { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 18px; padding: 2px 8px 0; }
.home-motion-models a { display: inline-flex; align-items: center; min-height: 44px; color: var(--action-hover); font-size: .875rem; font-weight: 500; }
.home-motion-models a:hover { text-decoration: underline; text-underline-offset: 4px; }

.home-section { padding-block: clamp(52px, 7vw, 96px); }
.home-section h2 { font-size: clamp(1.85rem, 4.1vw, 3rem); line-height: 1.1; margin-bottom: 14px; }
.home-section p { color: var(--muted); }
.home-section-head { max-width: 640px; margin-bottom: 32px; }
#products .home-section-head { margin-inline: auto; text-align: center; }
.home-section-head p:last-child { margin-bottom: 0; }

.range-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.range-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgb(0 55 112 / 8%);
  transition: border-color .2s, box-shadow .2s;
}

.range-card:hover { border-color: #c5bbff; box-shadow: var(--shadow); }
.range-image { aspect-ratio: 1.85 / 1; overflow: hidden; margin: auto 12px 12px; background: #f4f4f4; border-radius: 8px; }
.range-image img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.range-image-reception img { padding: 12px; }
.range-image-bionic img { padding: clamp(14px, 2vw, 26px); }
.range-copy { display: flex; flex: 1; flex-direction: column; padding: 24px 18px 18px; text-align: center; }
.range-copy h3 { font-size: 1.55rem; line-height: 1.18; margin-bottom: 8px; }
.range-copy p { margin-bottom: 10px; }
.range-copy .range-category { color: var(--action-hover); font-size: .875rem; font-weight: 500; }
.range-copy span { margin-top: auto; color: var(--action-hover); font-size: .9375rem; font-weight: 500; }
.range-card:hover .range-copy span { text-decoration: underline; }

.home-export { background: var(--navy); color: #fff; }
.home-export p { color: #e0e3ff; }
.home-export a:focus-visible { outline-color: #fff; }
.home-export-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 36px; }
.home-export-head p { max-width: 540px; margin: 0; }
.home-export-head .home-button { flex-shrink: 0; }
.home-export .home-process article { border-top: 1px solid #595c91; padding-top: 20px; }

.home-divider { border-top: 1px solid var(--line); }
.home-process { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-process h3 { font-size: 1.35rem; margin-bottom: 8px; }
.home-process p { max-width: 34ch; margin-bottom: 0; }
.home-faq { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px 48px; }
.home-faq details { border-bottom: 1px solid var(--line); }
.home-faq summary { min-height: 48px; padding-block: 14px; font-weight: 500; cursor: pointer; }
.home-faq details p { padding-bottom: 16px; margin: 0; }
.home-inquiry { background: #f5e9d4; text-align: center; }
.home-inquiry .home-lead { margin: 0 auto 24px; max-width: 500px; }

.home-page .footer { background: var(--soft); color: var(--ink); }
.home-page .footer b,
.home-page .footer .brand-footer { color: var(--ink); }
.home-page .footer p,
.home-page .footer a:not(.brand),
.home-page .footer-bottom { color: var(--muted); }
.home-page .footer a:hover,
.home-page .footer a:focus-visible { color: var(--action-hover); }
.home-page .footer-bottom { border-color: var(--line); }
.home-page section[id] { scroll-margin-top: 84px; }

.robot-menu { position: relative; }
.robot-menu summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}

.robot-menu summary::-webkit-details-marker { display: none; }
.robot-menu summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.robot-menu[open] summary::after { transform: rotate(225deg); }
.robot-menu summary:hover,
.robot-menu[open] summary { background: var(--soft); }
.robot-menu-options { display: grid; gap: 2px; padding: 8px; background: #fff; }
.home-page .nav .robot-menu-options { position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.robot-menu-options strong { display: block; font-weight: 500; }
.robot-menu-options small { display: block; color: var(--muted); font-size: .8125rem; }
.robot-menu-options .robot-menu-all { color: var(--action-hover); }

@media (min-width: 768px) {
  .home-page .nav { display: flex; }
  .home-page .menu-button,
  .home-page .mobile-menu.open { display: none; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .home-page .nav a,
  .robot-menu summary { padding-inline: 8px; }
}

@media (max-width: 767px) {
  .home-page .nav-row { height: 60px; }
  .home-page .nav,
  .home-page .nav-actions .button { display: none; }
  .home-page .menu-button { display: block; min-width: 44px; min-height: 44px; }
  .home-page .mobile-menu.open {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    padding: 0 20px 16px;
    background: #fff;
  }
  .home-page .mobile-menu a { min-height: 44px; padding: 10px 0; }
  .home-page .mobile-menu .robot-menu summary { padding-inline: 0; }
  .home-page .mobile-menu .robot-menu-options { padding-inline: 12px; }
  .home-hero-layout { grid-template-columns: 1fr; padding-block: 54px 46px; }
  .home-hero h1 { font-size: clamp(2.25rem, 8vw, 3rem); }
  .home-hero-panel { width: min(100%, 480px); }
  .range-grid,
  .home-process,
  .home-faq { grid-template-columns: 1fr; }
  .home-export-head { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.home-page) { scroll-behavior: auto; }
  .home-page a, .home-page button { transition: none; }
}

.home-export-guide { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.home-export-guide:hover, .home-export-guide:focus-visible { color: #e0e3ff; }
