/* ==========================================================================
   Home v2 — one idea per screen.
   The stage is the product; the interface is a quiet glass layer on top.
   ========================================================================== */

body.home .hero {
  height: 100dvh;
  min-height: 0;
  display: flex;
  align-items: center;
  padding: 0;
  background: transparent;
}
body.home .hero::before {
  background:
    radial-gradient(48% 50% at 76% 24%, rgba(47, 75, 255, .24), transparent 64%),
    radial-gradient(42% 42% at 14% 78%, rgba(255, 77, 0, .20), transparent 62%),
    linear-gradient(180deg, rgba(5, 6, 10, .48) 0%, rgba(5, 6, 10, .24) 60%, rgba(5, 6, 10, .78) 100%);
}
body.home .hero-inner {
  position: relative; z-index: 3;
  width: min(680px, 54vw);
  max-width: 680px;
  margin: 0;
  padding: 0 0 0 max(6vw, 48px);
  text-align: left;
}
body.home .hero-title {
  font-size: clamp(58px, 7.4vw, 104px);
  line-height: .98;
  letter-spacing: -.045em;
  margin: 0 0 24px;
  text-wrap: balance;
}
body.home .hero-sub {
  max-width: 520px;
  margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.72;
  color: rgba(244, 240, 232, .62);
}
body.home .evo-eyebrow { margin-bottom: 22px; }
body.home .hero-examples {
  display: flex; flex-direction: column;
  gap: 0; max-width: 540px; margin: 0 0 28px;
}
body.home .hero-examples li {
  padding: 9px 0 9px 28px;
  border-bottom: 1px solid rgba(244, 240, 232, .09);
  font-size: 13px; color: rgba(244, 240, 232, .48);
}
body.home .hero-examples li::before { top: 10px; }
body.home .hero-examples li:hover { color: rgba(244, 240, 232, .82); }
body.home .evo-actions { margin: 0; }
body.home .hero-foot {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(244, 240, 232, .34);
}
body.home .hero-foot a { color: rgba(244, 240, 232, .58); }
body.home .hero-foot a:hover { color: var(--bone); }

/* One primary artifact, one ghost. No READY labels, no three-card carousel. */
body.home .evo-artifact {
  display: block;
  right: max(7vw, 64px);
  top: 50%;
  bottom: auto;
  width: 310px;
  height: 370px;
  transform: translateY(-48%);
  pointer-events: none;
}
body.home .evo-artifact .evo-card {
  position: relative;
  inset: auto;
  width: 300px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .13);
  background: rgba(17, 25, 41, .58);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .36), inset 0 1px 0 rgba(255, 255, 255, .10);
  transform: none;
  animation: none;
}
body.home .evo-artifact .main-card { z-index: 2; }
body.home .evo-artifact .main-card::after {
  content: ""; display: block; height: 3px; margin-top: 26px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), rgba(255, 77, 0, 0));
}
body.home .evo-card-kicker {
  display: block; margin-bottom: 38px;
  font: 9px/1 var(--mono); letter-spacing: .16em;
  color: var(--accent);
}
body.home .main-card b {
  display: block; margin-bottom: 7px;
  font: 500 25px/1.15 var(--serif);
  color: var(--bone);
}
body.home .evo-card-meta {
  display: block;
  font: 11px/1.5 var(--sans);
  color: rgba(244, 240, 232, .40);
}
body.home .ghost-card {
  position: absolute !important;
  right: -42px; top: 58px; z-index: 1;
  width: 230px !important;
  padding: 16px 18px !important;
  opacity: .42;
  transform: rotate(5deg) !important;
  filter: blur(.2px);
  font-size: 11px;
}
body.home .ghost-card::after { display: none !important; }

/* The composer is a floating pane, not a full-width cream slab. */
body.home .composer-wrap {
  position: absolute !important;
  left: 50%; bottom: 24px; z-index: 12;
  width: min(92vw, 720px);
  margin: 0 !important;
  padding: 16px 18px 12px !important;
  transform: translateX(-50%);
  border-radius: 22px;
  background: rgba(248, 245, 238, .72) !important;
  border: 1px solid rgba(255, 255, 255, .58);
  backdrop-filter: blur(30px) saturate(1.16) !important;
  -webkit-backdrop-filter: blur(30px) saturate(1.16) !important;
  box-shadow: 0 26px 70px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .82);
}
body.home .composer-wrap .mode-bar { margin-bottom: 8px; }
body.home .composer-wrap .tier-note { margin: 0 0 8px; }
body.home .composer textarea { min-height: 46px; }
body.home .composer-note { text-align: left; padding: 0 2px; margin-top: 8px; }
body.home .composer-note #composerNoteChat { color: rgba(17, 17, 20, .46); }
body.home .composer-wrap .helper-chip { color: rgba(17, 17, 20, .46); }

/* System controls become quiet chips, never a second headline. */
body.home .helper-banner {
  position: absolute; left: 50%; bottom: 158px; z-index: 11;
  width: auto; max-width: min(88vw, 660px);
  transform: translateX(-50%);
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 77, 0, .22);
  background: rgba(13, 19, 31, .58);
  backdrop-filter: blur(16px);
  color: rgba(244, 240, 232, .58);
  font-size: 11.5px;
  white-space: nowrap;
}
body.home .helper-banner a { color: var(--accent); }
body.home .hist-search {
  position: absolute; left: 26px; bottom: 30px; z-index: 11;
}
body.home .hist-toggle {
  width: 34px; height: 34px; padding: 0;
  border-radius: 50%;
  background: rgba(10, 11, 16, .46);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(244, 240, 232, .62);
  font-size: 0;
  backdrop-filter: blur(16px);
}
body.home .hist-toggle::before { content: "↺"; font-size: 16px; }
body.home .hist-toggle:hover { color: var(--bone); border-color: var(--accent); }
body.home .hist-panel { bottom: 44px; left: 0; }
body.home .recent-strip { display: none !important; }
body.home .thread { padding-bottom: 190px; }

@media (max-width: 1079px) {
  body.home .hero-inner { width: min(760px, calc(100vw - 48px)); padding-left: 6vw; }
  body.home .evo-artifact { display: none; }
}
@media (max-width: 720px) {
  body.home .hero { align-items: flex-start; padding-top: 14vh; }
  body.home .hero-inner { width: auto; padding: 0 22px; }
  body.home .hero-title { font-size: clamp(48px, 13vw, 72px); }
  body.home .hero-sub { font-size: 15px; }
  body.home .hero-examples li:nth-child(3) { display: none; }
  body.home .composer-wrap { bottom: 12px; width: calc(100vw - 24px); padding: 12px 12px 10px !important; }
  body.home .helper-banner { bottom: 148px; white-space: normal; text-align: center; }
  body.home .hist-search { display: none; }
  body.home .thread { padding-bottom: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  body.home .hero-artifact .evo-card { animation: none; }
}

/* The left edge is the reading edge; the right edge is the artifact. */
body.home .hero { justify-content: flex-start; }
body.home .hero-inner { padding-left: max(7vw, 56px); }

/* Fewer lines inside the glass: modes, input, one quiet note. */
body.home .tier-note { display: none; }
body.home .composer-wrap {
  width: min(92vw, 680px);
  background: rgba(250, 247, 240, .88) !important;
  color: var(--ink);
}
body.home .composer-wrap .tier-note { display: none; }
body.home .composer textarea { color: var(--ink); }
body.home .composer-note { color: rgba(17, 17, 20, .54); }
body.home .composer-note #composerNoteChat { color: rgba(17, 17, 20, .54); }
body.home .hist-search { display: none; }
body.home .helper-banner {
  bottom: 162px;
  color: rgba(244, 240, 232, .66);
}
body.home .hero-title { font-size: clamp(54px, 6.4vw, 90px); }
body.home .composer-wrap { width: min(92vw, 620px); padding: 14px 16px 10px !important; }
body.home .composer-note { display: none; }
body.home .composer textarea { min-height: 32px; }
body.home .composer textarea::placeholder { color: rgba(17, 17, 20, .52); }
body.home .composer-wrap .mode-chip { color: rgba(17,17,20,.62); }
body.home .helper-banner { bottom: 178px; }
body.home .hero-title { font-size: clamp(52px, 6vw, 84px); }
body.home .hero-title .evo-line > span { white-space: nowrap; }

/* The composer is smoked glass on the film, not a cream card over it. */
body.home .composer-wrap {
  background: rgba(10, 12, 17, .64) !important;
  border-color: rgba(255, 255, 255, .17);
  color: var(--bone);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .40), inset 0 1px 0 rgba(255, 255, 255, .13);
}
body.home .composer textarea { color: var(--bone); }
body.home .composer textarea::placeholder { color: rgba(244, 240, 232, .40); }
body.home .composer-wrap .mode-chip {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
  color: rgba(244, 240, 232, .60);
}
body.home .composer-wrap .mode-chip.active {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
}
body.home .composer-wrap .quick-action {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
  color: rgba(244, 240, 232, .62);
}
body.home .composer-wrap .quick-action:hover {
  background: rgba(255, 77, 0, .14);
  border-color: rgba(255, 77, 0, .42);
  color: var(--bone);
}
body.home .composer-wrap .hint { color: rgba(244, 240, 232, .40); }
body.home .composer-wrap .icon-btn { color: rgba(244, 240, 232, .56); border-color: rgba(255,255,255,.14); }
body.home .composer-wrap .folder-btn { color: rgba(244, 240, 232, .52); border-color: rgba(255,255,255,.14); }
/* White type on the dark stage. Secondary copy keeps hierarchy through size,
   not by turning grey-on-grey. */
body.home .hero-sub { color: rgba(255, 253, 248, .80); }
body.home .hero-examples li { color: rgba(255, 253, 248, .66); }
body.home .hero-examples li:hover { color: #fff; }
body.home .hero-foot { color: rgba(255, 253, 248, .50); }
body.home .hero-foot a { color: rgba(255, 253, 248, .74); }
body.home .evo-eyebrow { color: rgba(255, 253, 248, .62); }
body.home .evo-card-meta { color: rgba(255, 253, 248, .54); }
body.home .ghost-card { color: rgba(255, 253, 248, .48); }

/* Conversation does not blur the film behind it. The pane is tinted glass
   with a crisp background, not a frosted sheet. */
body.home .composer-wrap {
  background: rgba(12, 19, 32, .74) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.home .composer-wrap .mode-chip { color: rgba(255, 253, 248, .78); }
body.home .composer-wrap .mode-chip.active { color: var(--ink); }
body.home .composer textarea::placeholder { color: rgba(255, 253, 248, .50); }
body.home .composer-wrap .hint,
body.home .composer-wrap .folder-btn,
body.home .composer-wrap .icon-btn { color: rgba(255, 253, 248, .58); }
body.home .top-menu a { color: rgba(255, 253, 248, .82); }

/* Conversation cards are dark glass too; no light sheet appears over the film. */
body.home .result,
body.home .answer,
body.home .long-card,
body.home .long-offer,
body.home .long-plan-card,
body.home .proposal,
body.home .plan-card {
  background: rgba(13, 20, 34, .68) !important;
  border-color: rgba(255, 255, 255, .15) !important;
  color: var(--bone) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .10) !important;
}
body.home .result *,
body.home .answer *,
body.home .long-card *,
body.home .long-offer *,
body.home .long-plan-card *,
body.home .proposal *,
body.home .plan-card * { color: inherit; }
body.home .result a,
body.home .answer a,
body.home .long-card a,
body.home .proposal a { color: var(--bone); }
body.home .billing { display: none !important; }
body.home .hero::before {
  background:
    radial-gradient(48% 50% at 76% 24%, rgba(47, 75, 255, .26), transparent 64%),
    radial-gradient(42% 42% at 14% 78%, rgba(255, 77, 0, .22), transparent 62%),
    linear-gradient(180deg, rgba(8, 13, 24, .26) 0%, rgba(8, 13, 24, .06) 58%, rgba(6, 10, 18, .64) 100%);
}
body.home .thread .notice,
body.home .notice {
  background: rgba(13, 20, 34, .86) !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  color: rgba(255, 253, 248, .86) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28) !important;
}
body.home .thread .notice a { color: var(--accent) !important; }
/* Each mode changes the room, visibly. */
body.home[data-stage-mode="chat"] .hero::before {
  background:
    radial-gradient(58% 58% at 72% 28%, rgba(47, 75, 255, .42), transparent 66%),
    radial-gradient(46% 48% at 12% 82%, rgba(34, 160, 190, .22), transparent 64%),
    linear-gradient(180deg, rgba(6, 12, 26, .26) 0%, rgba(6, 12, 26, .06) 58%, rgba(4, 9, 18, .66) 100%);
}
body.home[data-stage-mode="agent"] .hero::before {
  background:
    radial-gradient(56% 58% at 72% 28%, rgba(255, 77, 0, .26), transparent 66%),
    radial-gradient(48% 50% at 14% 80%, rgba(47, 75, 255, .24), transparent 64%),
    linear-gradient(180deg, rgba(10, 12, 20, .30) 0%, rgba(10, 12, 20, .08) 58%, rgba(8, 9, 14, .68) 100%);
}
body.home[data-stage-mode="long"] .hero::before {
  background:
    radial-gradient(58% 60% at 68% 30%, rgba(120, 78, 210, .40), transparent 66%),
    radial-gradient(46% 48% at 16% 82%, rgba(47, 75, 255, .28), transparent 64%),
    linear-gradient(180deg, rgba(9, 8, 22, .30) 0%, rgba(9, 8, 22, .08) 58%, rgba(5, 7, 16, .68) 100%);
}

/* A focused field should look focused, not highlighted with a white halo. */
#authModal input:focus,
#onboardModal input:focus,
#authModal .field input:focus,
#onboardModal .field input:focus {
  outline: none !important;
  border-color: rgba(255, 77, 0, .56) !important;
  box-shadow: 0 0 0 3px rgba(255, 77, 0, .13) !important;
  background: rgba(255, 255, 255, .09) !important;
}
/* CSS mode wash sits above the canvas but below the text, so it changes even
   when a phone or reduced-motion session has no animated canvas. */
body.home .hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  transition: opacity .35s ease;
}
body.home[data-stage-mode="chat"] .hero::after {
  background:
    radial-gradient(58% 55% at 78% 18%, rgba(47, 75, 255, .46), transparent 68%),
    radial-gradient(46% 50% at 10% 84%, rgba(30, 168, 190, .26), transparent 66%);
}
body.home[data-stage-mode="agent"] .hero::after {
  background:
    radial-gradient(54% 56% at 76% 22%, rgba(255, 77, 0, .30), transparent 68%),
    radial-gradient(48% 50% at 12% 82%, rgba(47, 75, 255, .28), transparent 66%);
}
body.home[data-stage-mode="long"] .hero::after {
  background:
    radial-gradient(58% 58% at 68% 22%, rgba(128, 82, 220, .48), transparent 68%),
    radial-gradient(48% 52% at 12% 84%, rgba(47, 75, 255, .30), transparent 66%);
}
/* Make the mode switch unmistakable, not a slightly different tint. */
body.home[data-stage-mode="chat"] .hero::before {
  background:
    linear-gradient(135deg, #0B2450 0%, #08152B 52%, #040B16 100%),
    radial-gradient(58% 58% at 74% 20%, rgba(47, 75, 255, .34), transparent 68%);
}
body.home[data-stage-mode="agent"] .hero::before {
  background:
    linear-gradient(135deg, #21100A 0%, #150C0C 54%, #08070A 100%),
    radial-gradient(56% 58% at 74% 24%, rgba(255, 77, 0, .38), transparent 68%);
}
body.home[data-stage-mode="long"] .hero::before {
  background:
    linear-gradient(135deg, #1E1038 0%, #29124A 48%, #090713 100%),
    radial-gradient(58% 58% at 68% 22%, rgba(128, 82, 220, .44), transparent 68%);
}
body.home .composer:focus-within {
  border-color: rgba(255, 255, 255, .20) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .30) !important;
}
body.home .composer textarea:focus { outline: none !important; box-shadow: none !important; }
/* While a reply/task is running, the room changes even after the hero is gone. */
body.home[data-activity="thinking"] .main {
  background:
    radial-gradient(58% 52% at 72% 16%, rgba(47, 75, 255, .26), transparent 68%),
    radial-gradient(48% 50% at 14% 84%, rgba(30, 168, 190, .14), transparent 66%);
}
body.home[data-activity="task"] .main {
  background:
    radial-gradient(56% 54% at 72% 18%, rgba(255, 77, 0, .24), transparent 68%),
    radial-gradient(50% 50% at 12% 82%, rgba(47, 75, 255, .20), transparent 66%);
}
body.home[data-activity="long"] .main {
  background:
    radial-gradient(58% 58% at 68% 16%, rgba(128, 82, 220, .32), transparent 68%),
    radial-gradient(48% 52% at 12% 84%, rgba(47, 75, 255, .22), transparent 66%);
}
body.home[data-activity="thinking"] .main { background: radial-gradient(58% 52% at 72% 16%, rgba(47, 75, 255, .26), transparent 68%), radial-gradient(48% 50% at 14% 84%, rgba(30, 168, 190, .14), transparent 66%) !important; }
body.home[data-activity="task"] .main { background: radial-gradient(56% 54% at 72% 18%, rgba(255, 77, 0, .24), transparent 68%), radial-gradient(50% 50% at 12% 82%, rgba(47, 75, 255, .20), transparent 66%) !important; }
body.home[data-activity="long"] .main { background: radial-gradient(58% 58% at 68% 16%, rgba(128, 82, 220, .32), transparent 68%), radial-gradient(48% 52% at 12% 84%, rgba(47, 75, 255, .22), transparent 66%) !important; }
/* The conversation view keeps the current mode's room, not the neutral page. */
body.home[data-stage-mode="chat"] .main {
  background:
    radial-gradient(58% 54% at 74% 16%, rgba(47, 75, 255, .22), transparent 68%),
    radial-gradient(48% 50% at 12% 84%, rgba(30, 168, 190, .12), transparent 66%) !important;
}
body.home[data-stage-mode="agent"] .main {
  background:
    radial-gradient(56% 54% at 74% 18%, rgba(255, 77, 0, .20), transparent 68%),
    radial-gradient(50% 50% at 12% 82%, rgba(47, 75, 255, .18), transparent 66%) !important;
}
body.home[data-stage-mode="long"] .main {
  background:
    radial-gradient(58% 58% at 68% 16%, rgba(128, 82, 220, .28), transparent 68%),
    radial-gradient(48% 52% at 12% 84%, rgba(47, 75, 255, .20), transparent 66%) !important;
}
