/* ============================================
   Emilliam — "Warm Midnight" v2
   Animated BG · Striking Header · SVG Logo Marquee
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #08080e;
  --ink-up: #0f0f18;
  --ink-up2: #16161f;
  --ink-card: #111118;
  --surface: rgba(255, 245, 230, 0.03);
  --surface-h: rgba(255, 245, 230, 0.06);
  --border: rgba(255, 245, 230, 0.06);
  --border-h: rgba(232, 168, 56, 0.2);
  --cream: #FAF0E4;
  --cream-dim: #a89e90;
  --cream-muted: #5a554e;
  --amber: #E8A838;
  --amber-soft: #D4983A;
  --amber-glow: rgba(232, 168, 56, 0.12);
  --coral: #E86B5A;
  --teal: #3ABBA8;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Consolas', monospace;
  --r: 14px;
  --r-sm: 8px;
}

html { font-size: 16px; }

body {
  font-family: var(--sans);
  background: var(--ink);
  color: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-scene__mesh {
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse 500px 400px at 30% 30%, rgba(232, 168, 56, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 400px 500px at 70% 60%, rgba(232, 107, 90, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 600px 300px at 50% 80%, rgba(58, 187, 168, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 300px 400px at 80% 20%, rgba(139, 92, 246, 0.03) 0%, transparent 60%);
  animation: meshDrift 30s ease-in-out infinite alternate;
}

@keyframes meshDrift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  25%  { transform: translate(3%, -2%) rotate(0.5deg); }
  50%  { transform: translate(-2%, 3%) rotate(-0.3deg); }
  75%  { transform: translate(1%, -1%) rotate(0.2deg); }
  100% { transform: translate(-3%, 2%) rotate(-0.5deg); }
}

.bg-scene__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.bg-scene__orb--1 {
  width: 400px; height: 400px;
  background: rgba(232, 168, 56, 0.08);
  top: -5%; right: 10%;
  animation: orbMove1 22s ease-in-out infinite;
}

.bg-scene__orb--2 {
  width: 300px; height: 300px;
  background: rgba(232, 107, 90, 0.06);
  bottom: 10%; left: 5%;
  animation: orbMove2 28s ease-in-out infinite;
}

.bg-scene__orb--3 {
  width: 250px; height: 250px;
  background: rgba(58, 187, 168, 0.05);
  top: 50%; left: 40%;
  animation: orbMove3 18s ease-in-out infinite;
}

.bg-scene__orb--4 {
  width: 200px; height: 200px;
  background: rgba(139, 92, 246, 0.04);
  top: 20%; left: 15%;
  animation: orbMove4 24s ease-in-out infinite;
}

@keyframes orbMove1 { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-60px, 40px); } 66% { transform: translate(40px, -30px); } }
@keyframes orbMove2 { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(50px, -40px); } 66% { transform: translate(-30px, 60px); } }
@keyframes orbMove3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -50px) scale(1.15); } }
@keyframes orbMove4 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-40px, 30px); } }

#bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 256px;
}

/* ============================================
   MOBILE BLOCK
   ============================================ */
.mobile-block {
  display: none; position: fixed; inset: 0; z-index: 99999;
  background: var(--ink); flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: 2rem;
}
.mobile-block__icon { color: var(--amber); margin-bottom: 1.5rem; }
.mobile-block__title { font-family: var(--serif); font-size: 1.6rem; color: var(--cream); margin-bottom: 0.6rem; }
.mobile-block__text { color: var(--cream-dim); font-size: 0.9rem; line-height: 1.6; }

@media (max-width: 600px) {
  .mobile-block { display: flex !important; }
  .shell { display: none !important; }
}

/* ============================================
   HEADER / TOPBAR
   ============================================ */
.shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: 68px; padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8, 8, 14, 0.6); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--border);
}

.topbar__brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--cream); }

.topbar__logo {
  width: 44px; height: 44px; position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, var(--ink-up2), var(--ink)); border-radius: 13px; border: 1px solid var(--border-h);
}

.topbar__logo-ring {
  position: absolute; inset: -4px; border-radius: 16px;
  border: 1.5px solid transparent; border-top-color: var(--amber); border-right-color: rgba(232, 168, 56, 0.3);
  animation: logoSpin 4s linear infinite;
}

.topbar__logo-ring--2 {
  inset: -8px; border-radius: 19px; border-top-color: var(--coral);
  border-right-color: rgba(232, 107, 90, 0.15); animation: logoSpin 6s linear infinite reverse; opacity: 0.5;
}

@keyframes logoSpin { to { transform: rotate(360deg); } }

.topbar__logo-icon { position: relative; z-index: 1; filter: drop-shadow(0 0 8px rgba(232, 168, 56, 0.4)); }
.topbar__logo::after { content: ''; position: absolute; inset: 0; border-radius: 13px; background: radial-gradient(circle at center, rgba(232, 168, 56, 0.1), transparent 70%); }

.topbar__wordmark { display: flex; flex-direction: column; gap: 0; }
.topbar__name { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; color: var(--cream); letter-spacing: 0.01em; }
.topbar__tagline { font-size: 0.6rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; color: var(--amber); opacity: 0.7; }

.topbar__center-area { position: absolute; left: 50%; transform: translateX(-50%); }
.topbar__tag { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.85rem; background: var(--surface); border: 1px solid var(--border); border-radius: 50px; font-family: var(--mono); font-size: 0.68rem; color: var(--cream-dim); }
.topbar__tag svg { color: var(--amber); opacity: 0.7; }

.topbar__right { display: flex; align-items: center; gap: 1rem; }
.topbar__status { display: flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 500; color: var(--cream-dim); }
.topbar__dot { width: 6px; height: 6px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 10px rgba(58, 187, 168, 0.6); animation: dotPulse 2.5s ease-in-out infinite; }

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(58, 187, 168, 0.6), 0 0 0 0 rgba(58, 187, 168, 0.3); }
  50% { box-shadow: 0 0 10px rgba(58, 187, 168, 0.6), 0 0 0 6px rgba(58, 187, 168, 0); }
}

/* ============================================
   STAGE (main)
   ============================================ */
.stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 5.5rem 3rem 1.5rem; }
.stage__layout { width: 100%; max-width: 1200px; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

/* ============================================
   HERO
   ============================================ */
.hero { opacity: 0; transform: translateY(30px); animation: revealUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards; }
@keyframes revealUp { to { opacity: 1; transform: translateY(0); } }

.hero__eyebrow { display: flex; align-items: center; gap: 0.8rem; font-family: var(--mono); font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--amber); margin-bottom: 2rem; }
.hero__eyebrow-line { display: block; width: 40px; height: 1px; background: linear-gradient(to right, var(--amber), transparent); }

.hero__title { font-family: var(--serif); font-size: 4.2rem; font-weight: 400; line-height: 1.08; letter-spacing: -0.02em; color: var(--cream); margin-bottom: 1.8rem; }
.hero__title em { font-style: italic; color: var(--cream-dim); }

.hero__title-accent {
  color: transparent; background: linear-gradient(135deg, var(--amber), var(--coral));
  -webkit-background-clip: text; background-clip: text; background-size: 200% 200%;
  animation: accentShift 4s ease-in-out infinite alternate; position: relative;
}
.hero__title-accent::after { content: ''; position: absolute; bottom: 2px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--amber), var(--coral)); opacity: 0.35; border-radius: 1px; }
@keyframes accentShift { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }

.hero__sub { font-size: 1.02rem; line-height: 1.7; color: var(--cream-dim); max-width: 420px; margin-bottom: 2.5rem; }

.hero__stats { display: flex; align-items: center; gap: 1.8rem; }
.hero__stat { display: flex; flex-direction: column; gap: 0.15rem; }
.hero__stat-num { font-family: var(--serif); font-size: 1.8rem; color: var(--cream); line-height: 1; }
.hero__stat-label { font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--cream-muted); }
.hero__stat-sep { width: 1px; height: 36px; background: var(--border); }

/* ============================================
   CHAT
   ============================================ */
.chat-wrap { position: relative; }

.chat-glow { position: absolute; width: 80%; height: 60%; top: 10%; left: 10%; background: radial-gradient(ellipse, rgba(232, 168, 56, 0.1) 0%, transparent 70%); filter: blur(50px); pointer-events: none; animation: chatGlowPulse 5s ease-in-out infinite alternate; z-index: 0; }
.chat-glow--2 { width: 60%; height: 50%; top: 40%; left: 30%; background: radial-gradient(ellipse, rgba(232, 107, 90, 0.06) 0%, transparent 70%); animation-delay: 2s; animation-duration: 7s; }
@keyframes chatGlowPulse { 0% { opacity: 0.6; transform: scale(1); } 100% { opacity: 1; transform: scale(1.1); } }

.chat {
  background: var(--ink-card); border: 1px solid rgba(232, 168, 56, 0.1); border-radius: 20px;
  overflow: hidden; position: relative; z-index: 1;
  opacity: 0; transform: translateY(25px) scale(0.97); animation: revealChat 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
  box-shadow: 0 0 0 1px rgba(232, 168, 56, 0.05), 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(232, 168, 56, 0.04);
}

.chat::before {
  content: ''; position: absolute; inset: -1px; border-radius: 20px; padding: 1px;
  background: linear-gradient(var(--chat-border-angle, 135deg), rgba(232, 168, 56, 0.3), transparent 30%, transparent 50%, rgba(232, 107, 90, 0.15) 70%, rgba(58, 187, 168, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; animation: borderRotate 8s linear infinite;
}

@keyframes borderRotate { 0% { --chat-border-angle: 0deg; } 100% { --chat-border-angle: 360deg; } }
@property --chat-border-angle { syntax: "<angle>"; initial-value: 135deg; inherits: false; }
@keyframes revealChat { to { opacity: 1; transform: translateY(0) scale(1); } }

.chat__chrome { padding: 0.9rem 1.4rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(232, 168, 56, 0.03), transparent); }
.chat__chrome-left { display: flex; align-items: center; gap: 0.75rem; }

.chat__avatar { width: 40px; height: 40px; background: linear-gradient(135deg, var(--amber), var(--coral)); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--ink); position: relative; box-shadow: 0 4px 16px rgba(232, 168, 56, 0.25); }
.chat__avatar-pulse { position: absolute; inset: -3px; border-radius: 14px; border: 2px solid rgba(232, 168, 56, 0.25); animation: avatarPulse 3s ease-in-out infinite; }
@keyframes avatarPulse { 0%, 100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.08); opacity: 0; } }

.chat__chrome-info { display: flex; flex-direction: column; gap: 0.1rem; }
.chat__chrome-name { font-size: 0.88rem; font-weight: 600; color: var(--cream); letter-spacing: -0.01em; }
.chat__chrome-status { display: flex; align-items: center; gap: 0.35rem; font-size: 0.65rem; color: var(--teal); font-weight: 500; }
.chat__chrome-dot { width: 5px; height: 5px; background: var(--teal); border-radius: 50%; box-shadow: 0 0 6px var(--teal); }

.chat__chrome-actions { display: flex; align-items: center; gap: 0.5rem; }
.chat__chrome-tag { display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--mono); font-size: 0.58rem; padding: 0.25rem 0.65rem; background: linear-gradient(135deg, rgba(232, 168, 56, 0.1), rgba(232, 168, 56, 0.05)); border: 1px solid rgba(232, 168, 56, 0.15); border-radius: 6px; color: var(--amber); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500; }
.chat__chrome-secure { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; color: var(--cream-muted); transition: color 0.2s; }
.chat__chrome-secure:hover { color: var(--teal); }

/* Messages */
.chat__body { padding: 1.4rem; min-height: 300px; max-height: 520px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; scrollbar-width: thin; scrollbar-color: rgba(232, 168, 56, 0.12) transparent; background: radial-gradient(ellipse at 20% 80%, rgba(232, 168, 56, 0.02), transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(58, 187, 168, 0.015), transparent 50%); }
.chat__body::-webkit-scrollbar { width: 3px; }
.chat__body::-webkit-scrollbar-track { background: transparent; }
.chat__body::-webkit-scrollbar-thumb { background: rgba(232, 168, 56, 0.12); border-radius: 2px; }

/* Bubbles */
.chat-bubble { width: 100%; padding: 0.8rem 1.1rem; font-size: 0.85rem; line-height: 1.7; opacity: 0; transform: translateY(10px) scale(0.97); animation: bubbleIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes bubbleIn { to { opacity: 1; transform: translateY(0) scale(1); } }

.chat-bubble--bot { align-self: stretch; background: linear-gradient(145deg, rgba(232, 168, 56, 0.06) 0%, rgba(255, 245, 230, 0.02) 100%); border: 1px solid rgba(232, 168, 56, 0.08); border-radius: 16px; color: var(--cream); position: relative; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.chat-bubble--bot::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(180deg, var(--amber), var(--coral)); border-radius: 1px; opacity: 0.5; }
.chat-bubble--bot.chat-bubble--accent::before { background: linear-gradient(180deg, var(--teal), var(--amber)); }

.chat-bubble--bot .bot-label { display: flex; align-items: center; gap: 0.35rem; font-family: var(--mono); font-size: 0.55rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber); margin-bottom: 0.4rem; padding-left: 0.2rem; }
.chat-bubble--bot .bot-label .bot-avatar { width: 16px; height: 16px; background: linear-gradient(135deg, var(--amber), var(--coral)); border-radius: 5px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.chat-bubble--bot .bot-text { padding-left: 0.2rem; }

.chat-bubble--user { align-self: stretch; background: linear-gradient(135deg, var(--amber), var(--coral)); color: var(--ink); font-weight: 500; border-radius: 16px; box-shadow: 0 4px 20px rgba(232, 168, 56, 0.15), 0 0 40px rgba(232, 168, 56, 0.05); }

/* Chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.6rem; }
.chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.3rem 0.75rem; background: rgba(232, 168, 56, 0.07); border: 1px solid rgba(232, 168, 56, 0.12); border-radius: 8px; font-size: 0.68rem; font-weight: 500; color: var(--amber); white-space: nowrap; transition: background 0.2s, border-color 0.2s; }
.chip:hover { background: rgba(232, 168, 56, 0.12); border-color: rgba(232, 168, 56, 0.25); }
.chip svg { opacity: 0.6; }

/* Install card */
.chat-install-card { align-self: stretch; width: 100%; background: linear-gradient(145deg, rgba(232, 168, 56, 0.08) 0%, rgba(232, 107, 90, 0.04) 100%); border: 1px solid rgba(232, 168, 56, 0.15); border-radius: 16px; padding: 1.6rem 1.5rem 1.2rem; opacity: 0; transform: translateY(10px) scale(0.97); animation: bubbleIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards; position: relative; overflow: visible; text-align: center; }

.cic-glow { position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 200px; height: 200px; background: radial-gradient(circle, rgba(232, 168, 56, 0.12), transparent 70%); pointer-events: none; animation: cicGlowPulse 4s ease-in-out infinite alternate; }
@keyframes cicGlowPulse { 0% { opacity: 0.5; transform: translateX(-50%) scale(1); } 100% { opacity: 1; transform: translateX(-50%) scale(1.2); } }

.cic-badge { display: inline-block; font-family: var(--mono); font-size: 0.55rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); background: linear-gradient(135deg, var(--amber), var(--coral)); padding: 0.25rem 0.85rem; border-radius: 50px; margin-bottom: 1rem; position: relative; box-shadow: 0 2px 12px rgba(232, 168, 56, 0.3); }

.cic-icon-wrap { position: relative; width: 56px; height: 56px; margin: 0 auto 0.9rem; display: flex; align-items: center; justify-content: center; }
.cic-icon-ring { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--amber); border-right-color: rgba(232, 168, 56, 0.3); animation: cicRingSpin 3s linear infinite; }
@keyframes cicRingSpin { to { transform: rotate(360deg); } }
.cic-icon { color: var(--amber); filter: drop-shadow(0 0 10px rgba(232, 168, 56, 0.4)); position: relative; z-index: 1; }
.cic-icon-wrap::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(232, 168, 56, 0.08); border: 1px solid rgba(232, 168, 56, 0.12); }

.cic-title { font-family: var(--serif); font-size: 1.15rem; font-weight: 400; color: var(--cream); margin-bottom: 0.4rem; position: relative; }
.cic-text { font-size: 0.78rem; line-height: 1.65; color: var(--cream-dim); margin-bottom: 1.1rem; position: relative; max-width: 300px; margin-left: auto; margin-right: auto; }

.cic-btn { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.75rem 2rem; background: linear-gradient(135deg, var(--amber), var(--coral)); color: var(--ink); font-family: var(--sans); font-size: 0.85rem; font-weight: 700; border: none; border-radius: 12px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 24px rgba(232, 168, 56, 0.3), 0 0 50px rgba(232, 168, 56, 0.08); position: relative; overflow: hidden; }
.cic-btn-shine { position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); transform: translateX(-100%); animation: shimmer 2.5s ease-in-out infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }
.cic-btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 32px rgba(232, 168, 56, 0.4), 0 0 60px rgba(232, 168, 56, 0.12); }
.cic-btn:active { transform: translateY(0) scale(0.98); }
.cic-btn svg { position: relative; z-index: 1; }
.cic-btn span:last-child { position: relative; z-index: 1; }

.cic-meta { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 0.9rem; position: relative; }
.cic-meta span { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.6rem; font-weight: 500; color: var(--cream-muted); letter-spacing: 0.02em; }
.cic-meta span svg { color: var(--teal); opacity: 0.7; }

/* Typing */
.typing-indicator { display: inline-flex; align-items: center; gap: 5px; padding: 0.75rem 1rem; align-self: stretch; background: linear-gradient(145deg, rgba(232, 168, 56, 0.06), rgba(255, 245, 230, 0.02)); border: 1px solid rgba(232, 168, 56, 0.08); border-radius: 16px; }
.typing-indicator span { width: 6px; height: 6px; background: var(--amber); border-radius: 50%; animation: typeBounce 1.3s ease-in-out infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typeBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.15; } 30% { transform: translateY(-8px); opacity: 1; } }

/* Footer / Input */
.chat__footer { padding: 0.9rem 1.4rem; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(232, 168, 56, 0.015)); }
.chat__input-row { display: flex; gap: 0.5rem; opacity: 0; transition: opacity 0.5s ease; }
.chat__input-row.visible { opacity: 1; }
.chat__input-wrap { flex: 1; position: relative; display: flex; align-items: center; }
.chat__input-icon { position: absolute; left: 0.9rem; color: var(--cream-muted); pointer-events: none; opacity: 0.5; }
.chat__input { width: 100%; background: rgba(255, 245, 230, 0.03); border: 1px solid var(--border); border-radius: 12px; padding: 0.75rem 1rem 0.75rem 2.6rem; color: var(--cream); font-family: var(--sans); font-size: 0.85rem; outline: none; transition: border-color 0.3s, box-shadow 0.3s, background 0.3s; }
.chat__input::placeholder { color: var(--cream-muted); }
.chat__input:focus { border-color: rgba(232, 168, 56, 0.35); box-shadow: 0 0 0 4px rgba(232, 168, 56, 0.06), 0 0 20px rgba(232, 168, 56, 0.04); background: rgba(255, 245, 230, 0.04); }

.chat__send { width: 44px; height: 44px; flex-shrink: 0; background: linear-gradient(135deg, var(--amber), var(--coral)); border: none; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink); transition: transform 0.15s, box-shadow 0.2s; box-shadow: 0 4px 16px rgba(232, 168, 56, 0.25); position: relative; }
.chat__send::after { content: ''; position: absolute; inset: -2px; border-radius: 14px; background: linear-gradient(135deg, var(--amber), var(--coral)); z-index: -1; filter: blur(10px); opacity: 0.3; transition: opacity 0.2s; }
.chat__send:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232, 168, 56, 0.35); }
.chat__send:hover::after { opacity: 0.5; }
.chat__send:active { transform: translateY(0); }

.chat__footer-hint { display: flex; align-items: center; justify-content: center; gap: 0.35rem; margin-top: 0.6rem; font-size: 0.6rem; color: var(--cream-muted); letter-spacing: 0.02em; opacity: 0.6; }
.chat__footer-hint strong { font-weight: 600; color: var(--cream-dim); }

/* ============================================
   INSTALL
   ============================================ */
.install { text-align: center; margin-top: 2rem; opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.install.visible { opacity: 1; transform: translateY(0); }
.install__btn { display: inline-flex; align-items: center; gap: 0.65rem; padding: 0.85rem 2.2rem; background: transparent; color: var(--amber); font-family: var(--sans); font-size: 0.88rem; font-weight: 600; border: 1px solid var(--amber); border-radius: 50px; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; }
.install__btn:hover { background: linear-gradient(135deg, var(--amber), var(--coral)); color: var(--ink); border-color: transparent; box-shadow: 0 4px 30px rgba(232, 168, 56, 0.2); transform: translateY(-2px); }
.install__hint { display: block; margin-top: 0.6rem; font-size: 0.7rem; color: var(--cream-muted); }

/* ============================================
   MARQUEE
   ============================================ */
.marquee-bar { border-top: 1px solid var(--border); background: rgba(8, 8, 14, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; opacity: 0; animation: revealUp 0.7s ease 1.8s forwards; }
.marquee-bar__label { text-align: center; padding: 1.2rem 2rem 0; font-family: var(--mono); font-size: 0.58rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; color: var(--cream-muted); }
.marquee-bar__track-wrap { position: relative; padding: 1rem 0 1.3rem; }
.marquee-bar__track-wrap::before, .marquee-bar__track-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 180px; z-index: 2; pointer-events: none; }
.marquee-bar__track-wrap::before { left: 0; background: linear-gradient(to right, var(--ink), transparent); }
.marquee-bar__track-wrap::after { right: 0; background: linear-gradient(to left, var(--ink), transparent); }
.marquee-bar__track { display: flex; align-items: center; width: max-content; animation: marquee 40s linear infinite; }
.marquee-bar__track:hover { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.mq-item { margin: 0 0.6rem; flex-shrink: 0; opacity: 0.55; transition: opacity 0.3s, transform 0.3s; cursor: default; }
.mq-item:hover { opacity: 1; transform: scale(1.06); }
.mq-logo { height: 40px; width: auto; display: block; border-radius: 6px; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 1600px) { .stage__layout { max-width: 1400px; gap: 6rem; } .hero__title { font-size: 5rem; } }
@media (max-width: 1200px) and (min-width: 601px) { .stage__layout { grid-template-columns: 1fr; gap: 2rem; max-width: 600px; } .hero__title { font-size: 2.4rem; } .hero { text-align: center; } .hero__sub { max-width: 100%; } .hero__stats { justify-content: center; } .hero__eyebrow { justify-content: center; } .topbar { padding: 0 1.5rem; } .stage { padding: 5.5rem 1.5rem 1.5rem; } }
