/* EXCAR One: one continuous product story from intelligence to the cabin. */

.one-story {
  --one-blue: #1e97f4;
  --one-cyan: #6bdcff;
  --one-line: rgba(92, 196, 255, 0.2);
  --one-surface: rgba(11, 17, 27, 0.72);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 72% 7%, rgba(16, 98, 165, 0.16), transparent 31%),
    radial-gradient(ellipse at 16% 46%, rgba(8, 54, 103, 0.11), transparent 28%),
    linear-gradient(180deg, #08090f 0%, #05070c 45%, #090a10 100%);
  border-bottom: 1px solid rgba(83, 174, 231, 0.1);
}

.one-story::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(64, 145, 203, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 145, 203, 0.025) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 82%, transparent);
}

.one-hero {
  position: relative;
  display: flex;
  min-height: min(880px, 94vh);
  align-items: center;
  padding: 116px 0 88px;
}

.one-hero::after {
  content: "";
  position: absolute;
  top: 10%;
  right: -10%;
  width: 66%;
  height: 80%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(31, 151, 244, 0.12), transparent 67%);
  filter: blur(12px);
}

.one-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: clamp(42px, 6vw, 92px);
  align-items: center;
}

.one-hero-copy {
  position: relative;
  z-index: 2;
}

.one-hero-copy .eyebrow {
  margin-bottom: 22px;
}

.one-hero-copy h1 {
  max-width: 10ch;
  margin: 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(50px, 5.4vw, 76px);
  font-weight: 650;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.one-hero-copy h1 span {
  color: var(--one-blue);
  white-space: nowrap;
}

.one-hero-lead {
  max-width: 31ch;
  margin: 27px 0 0;
  color: rgba(238, 247, 252, 0.9);
  font-family: var(--font-display);
  font-size: clamp(19px, 1.65vw, 24px);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.025em;
}

.one-hero-body {
  max-width: 49ch;
  margin: 17px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.one-glance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 600px;
  margin-top: 34px;
  border-top: 1px solid var(--one-line);
  border-bottom: 1px solid rgba(92, 196, 255, 0.11);
}

.one-glance > div {
  min-width: 0;
  padding: 16px 16px 17px 0;
}

.one-glance > div + div {
  padding-left: 17px;
  border-left: 1px solid rgba(92, 196, 255, 0.11);
}

.one-glance span,
.one-label,
.one-cabin-status,
.one-product-stage > p,
.one-context-number {
  color: rgba(92, 207, 255, 0.74);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.one-glance strong {
  display: block;
  margin-top: 7px;
  color: rgba(225, 238, 246, 0.73);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.one-hero-copy .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 31px;
}

.one-product-stage {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 520px;
  align-items: center;
  justify-content: center;
}

.one-product-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 49%;
  width: 112%;
  height: 92%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 59% 43%, rgba(58, 181, 255, 0.2), transparent 38%),
    radial-gradient(ellipse, rgba(16, 67, 119, 0.25), transparent 67%);
  filter: blur(8px);
  transform: translate(-50%, -50%);
}

.one-product-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: 72%;
  height: 10%;
  background: radial-gradient(ellipse, rgba(36, 157, 246, 0.2), transparent 70%);
  filter: blur(13px);
  transform: translateX(-50%);
}

.one-product-stage > img {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 600px);
  height: auto;
  filter: drop-shadow(0 0 42px rgba(30, 151, 244, 0.25)) drop-shadow(0 32px 42px rgba(0, 0, 0, 0.62));
}

.one-product-stage > p {
  position: absolute;
  right: 4%;
  bottom: 3%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(182, 216, 235, 0.48);
  letter-spacing: 0.11em;
}

.one-product-stage > p span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--one-cyan);
  box-shadow: 0 0 12px rgba(67, 204, 255, 0.9);
}

.one-product-sheen {
  position: absolute;
  top: 5%;
  bottom: 5%;
  left: -24%;
  z-index: 3;
  width: 25%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(161, 221, 255, 0.11), transparent);
  filter: blur(10px);
  animation: one-sheen 9s ease-in-out infinite;
}

.one-cabin {
  padding: 20px 0 60px;
}

.one-cabin-figure {
  margin: 0;
}

.one-cabin-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(109, 195, 245, 0.18);
  border-radius: 26px;
  background: #04070c;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38), 0 0 70px rgba(18, 102, 169, 0.08);
}

.one-cabin-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(1, 3, 8, 0.08), transparent 56%, rgba(1, 3, 8, 0.34)),
    radial-gradient(ellipse at 66% 52%, transparent 0 15%, rgba(1, 3, 8, 0.12) 62%, rgba(1, 3, 8, 0.34) 100%);
}

.one-cabin-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.one-cabin-status {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  padding: 9px 12px;
  border: 1px solid rgba(105, 207, 255, 0.2);
  border-radius: 999px;
  background: rgba(2, 8, 15, 0.62);
  color: rgba(200, 232, 248, 0.72);
  backdrop-filter: blur(12px);
}

.one-cabin-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(44px, 8vw, 116px);
  align-items: end;
  padding: 40px 2px 0;
}

.one-cabin-copy h2,
.one-section-head h2,
.one-dedicated-intro h2 {
  margin: 14px 0 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.one-cabin-copy p {
  margin: 0 0 4px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.72;
}

.one-system {
  padding: 76px 0 60px;
  border-top: 1px solid rgba(91, 179, 232, 0.08);
}

.one-section-head {
  max-width: 790px;
  margin: 0 auto 62px;
  text-align: center;
}

.one-section-head p {
  max-width: 63ch;
  margin: 23px auto 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
}

.one-context-map {
  position: relative;
  display: grid;
  grid-template-areas:
    "vehicle core phone"
    ". cabin .";
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px) minmax(0, 1fr);
  grid-template-rows: 390px 150px;
  gap: 32px clamp(50px, 6vw, 88px);
  width: min(1120px, 100%);
  min-height: 572px;
  margin: 0 auto;
  align-items: center;
}

.one-context-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.one-context-lines path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.one-line-base {
  stroke: rgba(58, 153, 214, 0.18);
  stroke-width: 1;
}

.one-line-energy {
  stroke-width: 1.5;
  stroke-dasharray: 1 15;
  filter: drop-shadow(0 0 4px rgba(66, 194, 255, 0.72));
  animation: one-signal 3.8s linear infinite;
}

.one-line-energy.is-reverse { animation-direction: reverse; animation-duration: 4.3s; }
.one-line-energy.is-cabin { animation-duration: 3.4s; }

.one-context-lines circle {
  fill: #a8eeff;
  filter: drop-shadow(0 0 6px rgba(66, 194, 255, 0.9));
}

.one-context-core,
.one-context-card {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.one-context-core {
  grid-area: core;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 370px;
  padding: 28px 24px 31px;
  overflow: hidden;
  border: 1px solid rgba(99, 202, 255, 0.25);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 33%, rgba(34, 151, 230, 0.17), transparent 32%),
    linear-gradient(180deg, rgba(13, 26, 42, 0.82), rgba(5, 10, 18, 0.9));
  box-shadow: inset 0 0 58px rgba(17, 95, 154, 0.11), 0 0 54px rgba(9, 89, 155, 0.08);
  text-align: center;
}

.one-context-core > img {
  position: absolute;
  top: -8px;
  left: 50%;
  z-index: 2;
  width: 245px;
  height: 245px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 14px 25px rgba(0, 0, 0, 0.58)) drop-shadow(0 0 24px rgba(31, 151, 244, 0.18));
}

.one-core-halo {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(104, 216, 255, 0.18);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 42px rgba(25, 145, 230, 0.1), inset 0 0 38px rgba(25, 145, 230, 0.08);
}

.one-context-core > span {
  position: relative;
  z-index: 3;
  color: rgba(112, 216, 255, 0.66);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.one-context-core h3 {
  position: relative;
  z-index: 3;
  margin: 8px 0 0;
  color: #f4faff;
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.one-context-core ul {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.one-context-core li {
  padding: 6px 8px;
  border: 1px solid rgba(87, 186, 241, 0.16);
  border-radius: 999px;
  color: rgba(192, 218, 233, 0.58);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.one-context-card {
  padding: 26px 2px 22px;
  border-top: 1px solid rgba(91, 193, 250, 0.28);
  background: linear-gradient(180deg, rgba(20, 106, 167, 0.055), transparent 72%);
}

.one-context-vehicle { grid-area: vehicle; }
.one-context-phone { grid-area: phone; }
.one-context-cabin {
  grid-area: cabin;
  align-self: start;
  padding-top: 22px;
  text-align: center;
}

.one-context-card h3 {
  margin: 11px 0 0;
  color: rgba(240, 248, 252, 0.94);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 550;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.one-context-card p {
  max-width: 34ch;
  margin: 11px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.62;
}

.one-context-phone p {
  max-width: 35ch;
}

.one-context-cabin p {
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
}

.one-context-card strong,
.one-context-card small {
  display: block;
}

.one-context-card strong {
  margin-top: 20px;
  color: rgba(111, 213, 255, 0.82);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.one-context-card small {
  margin-top: 6px;
  color: rgba(163, 190, 206, 0.47);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.4;
}

.one-system-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: min(960px, 100%);
  margin: 48px auto 0;
  border-top: 1px solid rgba(92, 187, 240, 0.12);
  border-bottom: 1px solid rgba(92, 187, 240, 0.12);
}

.one-system-notes p {
  margin: 0;
  padding: 17px 23px;
  color: rgba(161, 187, 203, 0.55);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1.6;
}

.one-system-notes p + p {
  border-left: 1px solid rgba(92, 187, 240, 0.12);
}

.one-system-notes strong {
  color: rgba(196, 221, 235, 0.74);
  font-weight: 500;
}

.one-dedicated {
  padding: 76px 0 126px;
  border-top: 1px solid rgba(91, 179, 232, 0.08);
}

.one-dedicated-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(54px, 9vw, 128px);
  align-items: end;
}

.one-dedicated-intro h2 {
  max-width: 11ch;
}

.one-dedicated-intro p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.72;
}

.one-dedicated-intro p + p {
  margin-top: 15px;
}

.one-capabilities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 62px;
}

.one-capability {
  position: relative;
  min-height: 220px;
  padding: 25px 25px 28px;
  overflow: hidden;
  border: 1px solid rgba(90, 173, 224, 0.13);
  border-radius: 18px;
  background: rgba(13, 17, 25, 0.68);
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.one-capability:hover {
  border-color: rgba(92, 197, 255, 0.28);
  background: rgba(15, 24, 36, 0.78);
  transform: translateY(-2px);
}

.one-capability.is-featured {
  grid-column: span 2;
  background:
    radial-gradient(circle at 86% 18%, rgba(34, 156, 237, 0.15), transparent 29%),
    rgba(13, 20, 31, 0.82);
}

.one-capability > span {
  color: rgba(84, 201, 255, 0.48);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.one-capability h3 {
  margin: 48px 0 0;
  color: rgba(241, 248, 252, 0.95);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: -0.035em;
}

.one-capability p {
  max-width: 43ch;
  margin: 12px 0 0;
  color: rgba(175, 201, 217, 0.57);
  font-size: 14px;
  line-height: 1.62;
}

.one-closing {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 50px;
  align-items: start;
  margin-top: 80px;
  padding-top: 30px;
  border-top: 1px solid rgba(94, 198, 255, 0.2);
}

.one-closing span {
  color: rgba(96, 209, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.45;
  text-transform: uppercase;
}

.one-closing p {
  max-width: 29ch;
  margin: 0;
  color: rgba(234, 244, 249, 0.92);
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.045em;
}

@keyframes one-sheen {
  0%, 14% { opacity: 0; transform: translateX(0); }
  25% { opacity: 0.8; }
  72% { opacity: 0.8; }
  88%, 100% { opacity: 0; transform: translateX(540%); }
}

@keyframes one-signal {
  to { stroke-dashoffset: -64; }
}

@media (max-width: 980px) {
  .one-hero {
    min-height: 0;
    padding: 108px 0 84px;
  }

  .one-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.78fr);
    gap: 30px;
  }

  .one-product-stage {
    min-height: 430px;
  }

  .one-context-map {
    gap: 28px 38px;
  }
}

@media (max-width: 820px) {
  .one-hero {
    padding: 104px 0 72px;
  }

  .one-hero-grid,
  .one-cabin-copy,
  .one-dedicated-intro {
    grid-template-columns: 1fr;
  }

  .one-hero-copy h1 {
    max-width: 12ch;
  }

  .one-hero-copy h1 span {
    white-space: normal;
  }

  .one-hero-body {
    max-width: 58ch;
  }

  .one-product-stage {
    min-height: 470px;
    margin-top: 18px;
  }

  .one-product-stage > img {
    width: min(82vw, 560px);
  }

  .one-cabin {
    padding-bottom: 54px;
  }

  .one-cabin-copy {
    gap: 24px;
    padding-top: 30px;
  }

  .one-cabin-copy p {
    max-width: 58ch;
  }

  .one-system,
  .one-dedicated {
    padding-top: 66px;
  }

  .one-context-map {
    grid-template-areas:
      "core"
      "vehicle"
      "phone"
      "cabin";
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 18px;
    width: min(560px, 100%);
    min-height: 0;
  }

  .one-context-lines {
    display: none;
  }

  .one-context-core {
    min-height: 390px;
  }

  .one-context-card {
    padding: 24px 20px;
    border: 1px solid rgba(91, 193, 250, 0.16);
    border-radius: 16px;
    background: rgba(11, 17, 26, 0.68);
    text-align: left;
  }

  .one-context-card::before {
    content: "";
    position: absolute;
    top: -19px;
    left: 50%;
    width: 1px;
    height: 18px;
    background: linear-gradient(180deg, rgba(83, 202, 255, 0.12), rgba(83, 202, 255, 0.72));
  }

  .one-context-card p,
  .one-context-phone p,
  .one-context-cabin p {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .one-system-notes {
    grid-template-columns: 1fr;
    width: min(560px, 100%);
  }

  .one-system-notes p + p {
    border-top: 1px solid rgba(92, 187, 240, 0.12);
    border-left: 0;
  }

  .one-dedicated-intro {
    gap: 30px;
  }

  .one-dedicated-intro h2 {
    max-width: 14ch;
  }

  .one-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .one-closing {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 560px) {
  .one-hero {
    padding: 88px 0 58px;
  }

  .one-hero-copy h1 {
    font-size: clamp(43px, 13vw, 58px);
  }

  .one-hero-lead {
    font-size: 19px;
  }

  .one-hero-body {
    font-size: 15px;
  }

  .one-glance {
    grid-template-columns: 1fr;
  }

  .one-glance > div {
    padding: 13px 0;
  }

  .one-glance > div + div {
    padding-left: 0;
    border-top: 1px solid rgba(92, 196, 255, 0.11);
    border-left: 0;
  }

  .one-hero-copy .hero-actions {
    align-items: stretch;
  }

  .one-hero-copy .hero-actions a {
    flex: 1 1 100%;
    justify-content: center;
  }

  .one-product-stage {
    min-height: 330px;
  }

  .one-product-stage > p {
    right: 0;
    bottom: 0;
  }

  .one-cabin {
    padding-top: 6px;
    padding-bottom: 48px;
  }

  .one-cabin-image {
    border-radius: 18px;
  }

  .one-cabin-status {
    top: 12px;
    right: 12px;
    padding: 7px 9px;
    font-size: 7px;
  }

  .one-cabin-copy h2,
  .one-section-head h2,
  .one-dedicated-intro h2 {
    font-size: clamp(34px, 10.5vw, 45px);
  }

  .one-cabin-copy p,
  .one-section-head p,
  .one-dedicated-intro p {
    font-size: 15px;
  }

  .one-system {
    padding: 60px 0 52px;
  }

  .one-section-head {
    margin-bottom: 42px;
    text-align: left;
  }

  .one-context-core {
    min-height: 360px;
    border-radius: 22px;
  }

  .one-context-core > img {
    width: 225px;
    height: 225px;
  }

  .one-system-notes {
    margin-top: 28px;
  }

  .one-dedicated {
    padding: 60px 0 88px;
  }

  .one-capabilities {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .one-capability,
  .one-capability.is-featured {
    grid-column: auto;
    min-height: 190px;
  }

  .one-capability h3 {
    margin-top: 34px;
  }

  .one-closing {
    margin-top: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .one-product-sheen,
  .one-line-energy {
    animation: none !important;
  }

  .one-capability {
    transition: none;
  }
}
