/* Hero styles */

.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 120px); }
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero-copy > * + * { margin-top: 20px; }
.hero-title { margin-top: 24px !important; }
.hero-sub { margin-top: 22px !important; }

.waitlist { margin-top: 32px !important; max-width: 520px; }
.waitlist-row {
  display: flex; gap: 8px;
  padding: 7px; border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  transition: border-color .2s, box-shadow .2s;
}
.waitlist-row:focus-within {
  border-color: rgba(167,139,255,0.5);
  box-shadow: 0 0 0 3px rgba(167,139,255,0.12);
}
.waitlist-row.is-ok { border-color: rgba(110,231,255,0.5); box-shadow: 0 0 0 3px rgba(110,231,255,0.12); }
.waitlist-row input {
  flex: 1; background: transparent; border: 0; outline: 0;
  padding: 10px 14px; color: var(--fg-0); font-size: 15px;
}
.waitlist-row input::placeholder { color: var(--fg-3); }
.waitlist-row .btn-primary { white-space: nowrap; }
.waitlist-msg { margin-top: 10px; padding-left: 16px; font-size: 13px; color: var(--fg-3); min-height: 18px; }
.waitlist-msg .err { color: #ff8b8b; }
.waitlist-msg .ok { color: #7fe9d1; }

.hero-secondary { margin-top: 20px !important; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-meta { color: var(--fg-3); font-size: 12px; letter-spacing: 0.04em; }

/* Split visual ---------------------------------------------------- */
.hero-split {
  position: relative; aspect-ratio: 1 / 0.9;
  display: grid; grid-template-columns: 0.72fr 1fr; gap: 18px;
  align-items: center;
}
.hero-halo {
  position: absolute; inset: -10% -10% -20% -10%;
  background:
    radial-gradient(40% 35% at 30% 60%, rgba(167,139,255,0.35), transparent 70%),
    radial-gradient(40% 35% at 75% 40%, rgba(110,231,255,0.30), transparent 70%);
  filter: blur(30px);
  pointer-events: none; z-index: 0;
}
.hero-split > .mock-phone, .hero-split > .mock-tv { position: relative; z-index: 1; }

/* Phone ---------------------------------------- */
.mock-phone { justify-self: end; width: 100%; max-width: 270px; }
.mock-phone-bezel {
  aspect-ratio: 9 / 19.2;
  background: linear-gradient(160deg, #2a2a32, #141419);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  padding: 8px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.9), inset 0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
}
.mock-phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 18px; border-radius: 12px; background: #07070a; z-index: 3;
}
.mock-phone-screen {
  background: #0d0d11;
  border-radius: 24px;
  height: 100%;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.chat-head {
  display: flex; align-items: center; gap: 8px;
  padding: 34px 14px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.chat-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--acc-grad);
  box-shadow: 0 0 10px -2px rgba(167,139,255,0.5);
}
.chat-name { font-size: 12px; color: var(--fg-0); font-weight: 500; }
.chat-status { font-size: 10px; color: var(--fg-3); font-family: var(--font-mono); }
.chat-body { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.bubble {
  padding: 7px 10px; border-radius: 12px; font-size: 11px; line-height: 1.4;
  max-width: 85%;
  word-break: break-word;
  animation: bubble-in .35s ease;
}
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.bubble-in {
  background: rgba(255,255,255,0.06);
  color: var(--fg-1);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.bubble-out {
  background: var(--acc-grad);
  color: #0a0a0c;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}
.bubble-out .caret { margin-left: 1px; font-weight: 400; opacity: 0.7; }
.bubble-out .caret.blink { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.bubble-out.sent .caret { display: none; }

.bubble-tool {
  align-self: stretch;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 7px 10px;
  font-size: 10px;
}
.tool-label { color: var(--acc-a); letter-spacing: 0.04em; }
.tool-args { color: var(--fg-2); }
.tool-status { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-family: var(--font-mono); }
.tool-status.pending { color: var(--fg-3); }
.tool-status.pending::before {
  content:''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--fg-3); animation: pulse 1s ease infinite;
}
@keyframes pulse { 50% { opacity: 0.3; } }
.tool-status.ok { color: #7fe9d1; }

.chat-input {
  padding: 8px 10px 12px; display: flex; gap: 6px; align-items: center;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.chat-input-box {
  flex: 1; height: 26px; border-radius: 13px;
  background: rgba(255,255,255,0.05);
  display: flex; align-items: center; padding: 0 10px;
}
.chat-placeholder { font-size: 10px; color: var(--fg-3); }
.chat-send {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--acc-grad); color: #0a0a0c;
  display: flex; align-items: center; justify-content: center;
}

/* TV ---------------------------------------- */
.mock-tv { position: relative; width: 100%; }
.mock-tv-screen {
  aspect-ratio: 16 / 10;
  background: #030306;
  border-radius: 10px;
  border: 6px solid #16161b;
  box-shadow:
    0 40px 60px -30px rgba(167,139,255,0.3),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 0 0 1px rgba(0,0,0,0.8);
  position: relative; overflow: hidden;
}
.mock-tv-stand {
  width: 44%; height: 10px; margin: 0 auto;
  background: linear-gradient(180deg, #16161b, #0a0a0e);
  border-radius: 0 0 6px 6px;
  border: 1px solid rgba(255,255,255,0.05); border-top: 0;
}
.mock-tv-base {
  width: 28%; height: 4px; margin: 2px auto 0;
  background: #16161b; border-radius: 2px;
}

.tv-scene {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.02);
  transition: opacity .45s ease, transform .6s ease;
}
.tv-scene.active { opacity: 1; transform: scale(1); }

.tv-home { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
  background:
    radial-gradient(140% 80% at 0% 0%, rgba(167,139,255,0.15), transparent 55%),
    radial-gradient(140% 80% at 100% 100%, rgba(110,231,255,0.10), transparent 55%),
    #07070a;
}
.tv-topbar {
  display: flex; justify-content: space-between; color: var(--fg-2); font-size: 10px;
}
.tv-rail-title { font-size: 9px; color: var(--fg-3); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.tv-tiles { display: flex; gap: 6px; }
.tv-tile {
  flex: 1; aspect-ratio: 16/10; border-radius: 4px;
  background: linear-gradient(135deg, #2a2a33, #1a1a22);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  transition: transform .2s;
}
.tv-tile.warm { background: linear-gradient(135deg, #3a2638, #1e1320); }
.tv-tile.cool { background: linear-gradient(135deg, #1f2838, #10151e); }
.tv-tile.focus { outline: 2px solid var(--acc-a); outline-offset: 2px; transform: scale(1.03); }
.tv-tile-label { color: var(--fg-3); font-size: 10px; position: absolute; left: 4px; top: 3px; }

.tv-app {
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}
.tv-app-a { background: linear-gradient(135deg, #e50914, #7a0609); }
.tv-app-b { background: linear-gradient(135deg, #0073e6, #0f2657); }
.tv-app-c { background: linear-gradient(135deg, #ff0000, #5a0000); }
.tv-app-d { background: linear-gradient(135deg, #1db954, #0a5c2b); }
.tv-app-e { background: linear-gradient(135deg, #f5a623, #5a3c10); }
.tv-app-f { background: linear-gradient(135deg, #8a4dff, #3a1a80); }

.tv-loading {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(60% 50% at 50% 50%, #0a0a10, #000);
}
.tv-loading-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tv-spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--acc-a);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tv-loading-text { color: var(--fg-2); font-size: 11px; }

.tv-playing {
  padding: 14px 16px; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(180deg, #0a0d15 0%, #1a2035 35%, #0f1528 100%);
}
.tv-playing::before {
  content:''; position: absolute; inset: 0;
  background:
    radial-gradient(50% 50% at 30% 40%, rgba(255,230,180,0.15), transparent 60%),
    radial-gradient(50% 60% at 70% 60%, rgba(167,139,255,0.12), transparent 60%);
}
.tv-playing-title {
  font-family: var(--font-display); font-size: 26px; font-weight: 600; color: #fff;
  letter-spacing: -0.02em; position: relative;
}
.tv-playing-meta { color: rgba(255,255,255,0.65); font-size: 10px; margin-top: 4px; position: relative; }
.tv-playing-bar {
  margin-top: 10px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.15); position: relative; overflow: hidden;
}
.tv-playing-bar span {
  display: block; height: 100%; width: 0%;
  background: var(--acc-grad);
  animation: playbar 4s ease forwards;
}
@keyframes playbar { to { width: 18%; } }
.tv-playing-vignette {
  position: absolute; inset: 0;
  box-shadow: inset 0 0 60px 10px rgba(0,0,0,0.5);
  pointer-events: none;
}

@media (max-width: 960px) {
  .mock-phone { max-width: 240px; margin: 0 auto; justify-self: center; }
}
