#page-home { padding: 0 !important; }
.ai-home {
  --gutter: clamp(20px, 6vw, 110px);
  --panel: #091423e8;
  --line: #c5ddff55;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: max(550px, calc(100svh - var(--home-header-height, 96px)));
  overflow: hidden;
  background: #080e19;
  color: #f1f7ff;
}
.ai-home-slides { display: grid; min-width: 0; }
.ai-home-scene {
  grid-area: 1 / 1;
  display: grid;
  align-items: end;
  align-content: end;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  margin: 0;
  padding: clamp(75px, 15vh, 155px) var(--gutter) clamp(24px, 4vh, 60px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1000ms ease-in-out;
}
.ai-home-scene.is-active { opacity: 1; pointer-events: auto; z-index: 2; }
.ai-home-scene.is-outgoing { opacity: 1; z-index: 1; }
.ai-home-scene > img, .ai-home-scene::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ai-home-scene > img { object-fit: cover; object-position: center; }
.ai-home-scene::after {
  content: "";
  background: linear-gradient(90deg, #060c18eb, #060c18a1 39%, transparent 76%),
              linear-gradient(0deg, #060c18fc, #060c1870 24%, transparent 56%);
  pointer-events: none;
}
.ai-home-copy { position: relative; z-index: 1; max-width: min(590px, 54vw); }
.ai-home-copy .ai-home-eyebrow {
  font-size: .81rem;
  letter-spacing: .13em;
  color: #a1eaff;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.ai-home-copy h2 {
  font-size: clamp(2.55rem, 5.2vw, 5.2rem);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -.045em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.ai-home-copy p { font-size: clamp(1rem, 1.3vw, 1.16rem); line-height: 1.5; color: #edf3ff; max-width: 48ch; margin: 0; }
.ai-home-footer {
  position: relative;
  z-index: 4;
  padding: 0 var(--gutter) clamp(16px, 3.4vh, 42px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px 24px;
}
.ai-home-links, .ai-home-controls, .ai-home-transport { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ai-home-controls { justify-content: flex-end; }
.ai-home-links a, .ai-home button, .ai-home select {
  border-radius: 9px;
  font: inherit;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: #f3f8ff;
  cursor: pointer;
}
.ai-home-links a { display: inline-flex; align-items: center; text-decoration: none; padding: 8px 14px; font-weight: 600; }
.ai-home-links .ai-home-shop { background: #abf0ff; color: #091729; border-color: transparent; }
.ai-home-note { margin: 8px 0 0; color: #c0cadb; font-size: .76rem; }
.ai-home-transport button { padding: 7px 12px; }
.ai-home-picker { display: block; max-width: 100%; margin: 0; }
.ai-home-picker select { width: clamp(180px, 20vw, 305px); max-width: 100%; padding: 7px 32px 7px 12px; text-overflow: ellipsis; color-scheme: dark; }
.ai-home-counter { font-size: .82rem; font-variant-numeric: tabular-nums; color: #e0edff; white-space: nowrap; }
.ai-home :is(button, a, select):focus-visible { outline: 2px solid #99eaff; outline-offset: 3px; }
.ai-home .ai-home-screen {
  position: relative;
  z-index: 1;
  justify-self: end;
  padding: 7px 12px;
  font-size: .88rem;
  color: #d6e8f6;
  background: #091423b8;
}
.ai-home-dialog {
  width: min(1120px, 94vw);
  max-height: 90svh;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: #0b1422;
  color: #eaf6ff;
  border-radius: 14px;
  padding: 12px;
}
.ai-home-dialog::backdrop { background: #030813dc; }
.ai-home-dialog div { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ai-home-dialog [data-ai-full] { margin-left: auto; color: #a1eaff; padding: 8px; text-align: center; }
.ai-home-dialog button { padding: 4px 14px; }
.ai-home-dialog img { width: 100%; max-height: calc(82svh - 60px); object-fit: contain; display: block; }
@media (max-width: 820px) {
  .ai-home { --gutter: 20px; min-height: calc(100svh - var(--home-header-height, 96px)); }
  .ai-home-scene {
    background: #080e19;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    align-items: start;
    align-content: start;
    gap: 12px;
    padding: 0 0 18px;
  }
  .ai-home-scene > img {
    position: static;
    height: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #050d18;
  }
  .ai-home-scene::after { display: none; }
  .ai-home-copy { align-self: center; margin: 6px var(--gutter) 0; max-width: 620px; }
  .ai-home-copy h2 { font-size: clamp(2.05rem, 7.8vw, 3.1rem); margin-bottom: 10px; }
  .ai-home-copy .ai-home-eyebrow { margin-bottom: 8px; }
  .ai-home .ai-home-screen { justify-self: start; margin-left: var(--gutter); }
  .ai-home-footer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ai-home-controls { justify-content: flex-start; }
  .ai-home-picker { flex: 1 1 160px; }
  .ai-home-picker select { width: 100%; }
}
@media (max-width: 450px) {
  .ai-home-controls { gap: 6px; }
  .ai-home-transport { gap: 4px; }
  .ai-home-transport button { padding: 7px 9px; }
  .ai-home-picker { flex-basis: 132px; }
}
@media (prefers-reduced-motion: reduce) { .ai-home-scene { transition: none; } }
@media (prefers-reduced-motion: reduce) { .ai-home-scene.is-outgoing { opacity: 0; } }
