/* Rovids — Roblox Trailer Ordering Site
   Pure CSS, dark theme with red+blue duo accents */

:root {
  --bg-0: #08080b;
  --bg-1: #0f0f14;
  --bg-2: #16161d;
  --bg-3: #1e1e28;
  --line: #2a2a36;
  --line-2: #3a3a4a;
  --text: #f4f4f6;
  --text-dim: #a1a1ae;
  --text-mute: #6b6b7a;
  --red: #ff3d2e;
  --red-deep: #d61e10;
  --blue: #4ea8ff;
  --blue-deep: #1d6dff;
  --yellow: #ffe15c;
  --green: #3ddc84;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --font-body: 'Instrument Sans', 'Bricolage Grotesque', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

body {
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(255,61,46,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(78,168,255,0.08), transparent 60%);
  background-attachment: fixed;
}

/* subtle grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/></svg>");
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

::selection { background: var(--red); color: #fff; }

/* container */
.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(8,8,11,0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 800; font-size: 22px; letter-spacing: -0.02em;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background:
    linear-gradient(135deg, var(--red) 0%, var(--red-deep) 55%, #1d6dff 100%);
  display: grid; place-items: center;
  color: white; font-family: var(--font-display); font-weight: 900;
  font-size: 16px; letter-spacing: -0.05em;
  box-shadow: 0 4px 22px rgba(255,61,46,0.35);
}
.nav-links {
  display: flex; gap: 30px; align-items: center;
  color: var(--text-dim); font-size: 14px;
}
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600; font-size: 14px;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 26px -8px rgba(255,61,46,0.65);
}
.btn-primary:hover { background: #ff5648; box-shadow: 0 12px 32px -8px rgba(255,61,46,0.8); }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--text-dim); background: rgba(255,255,255,0.03); }
.btn-blue {
  background: var(--blue-deep); color: #fff;
  box-shadow: 0 8px 26px -8px rgba(29,109,255,0.6);
}
.btn-blue:hover { background: #2f7cff; }
.btn-block { width: 100%; justify-content: center; }

/* Hero */
.hero {
  padding: 88px 0 60px;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 60px; align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 22px 0 22px;
}
.hero h1 .accent { color: var(--red); font-style: italic; }
.hero h1 .accent-blue { color: var(--blue); font-style: italic; }
.hero p.lede {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 13px; font-family: var(--font-mono);
}
.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 42px; }
.stat { }
.stat .num {
  font-family: var(--font-display);
  font-weight: 800; font-size: 30px; letter-spacing: -0.02em;
  color: var(--text);
}
.stat .lbl { color: var(--text-mute); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,61,46,0.35), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(29,109,255,0.35), transparent 55%),
    var(--bg-2);
  border: 1px solid var(--line);
}
.hero-visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.hero-card {
  position: absolute;
  background: rgba(15,15,20,0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 13px;
  min-width: 220px;
}
.hero-card .kicker { color: var(--text-mute); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px;}
.hero-card .val { font-family: var(--font-display); font-weight: 700; font-size: 18px;}
.hero-card.a { top: 8%; left: -6%; transform: rotate(-4deg); }
.hero-card.b { bottom: 12%; right: -4%; transform: rotate(3deg); }
.hero-card.c { top: 44%; right: 8%; transform: rotate(-2deg); border-color: var(--red); }

.hero-visual .play {
  position: absolute; inset: 0; margin: auto;
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(255,61,46,0.9);
  display: grid; place-items: center;
  box-shadow: 0 0 0 8px rgba(255,61,46,0.18), 0 0 60px rgba(255,61,46,0.4);
  animation: heartbeat 2.4s infinite;
}
@keyframes heartbeat { 0%, 100% { transform: scale(1);} 50% { transform: scale(1.06);} }
.hero-visual .play svg { width: 30px; height: 30px; fill: white; margin-left: 4px; }

/* Marquee logos-ish strip */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex; gap: 42px;
  overflow: hidden;
  white-space: nowrap;
}
.strip span { opacity: 0.7; }

/* SECTION HEAD */
.section { padding: 100px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: 44px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 4.4vw, 54px);
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 720px;
  line-height: 1.05;
}
.eyebrow {
  color: var(--red);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head .sub { color: var(--text-dim); max-width: 380px; font-size: 15px; }

/* Sample trailers grid */
.trailer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.trailer-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-1);
  transition: transform .3s ease, border-color .3s ease;
  cursor: pointer;
}
.trailer-card:hover { transform: translateY(-4px); border-color: var(--red); }
.trailer-thumb {
  aspect-ratio: 16/10;
  position: relative;
  background: linear-gradient(135deg, #1d1d28, #0f0f14);
  overflow: hidden;
}
.trailer-thumb::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,61,46,0.35), transparent 55%),
    radial-gradient(circle at 75% 70%, rgba(29,109,255,0.3), transparent 55%);
}
.trailer-thumb .label {
  position: absolute; top: 12px; left: 12px;
  background: rgba(0,0,0,0.55); color: white;
  padding: 5px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  z-index: 2;
}
.trailer-thumb .duration {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.65); color: white;
  padding: 4px 8px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 11px;
  z-index: 2;
}
.trailer-thumb .center-play {
  position: absolute; inset: 0; margin: auto;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,61,46,0.95);
  display: grid; place-items: center;
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(255,61,46,0.15);
}
.trailer-thumb .center-play svg { width: 20px; height: 20px; fill: white; margin-left: 3px; }
.trailer-body {
  padding: 18px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.trailer-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px; letter-spacing: -0.01em; font-weight: 700;
}
.trailer-body .meta { color: var(--text-mute); font-size: 13px; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.tier {
  border: 1px solid var(--line);
  background: var(--bg-1);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color .25s ease, transform .25s ease;
}
.tier:hover { border-color: var(--line-2); }
.tier.featured {
  border-color: var(--red);
  background:
    radial-gradient(circle at 100% 0%, rgba(255,61,46,0.15), transparent 60%),
    var(--bg-1);
  transform: translateY(-6px);
}
.tier .badge {
  position: absolute; top: -12px; right: 24px;
  background: var(--red); color: white;
  padding: 5px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.tier .name {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-mute);
}
.tier .price {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 800;
  letter-spacing: -0.03em;
  margin: 10px 0 4px;
  line-height: 1;
}
.tier .price sup { font-size: 20px; color: var(--text-dim); vertical-align: super; font-weight: 500;}
.tier .desc {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 24px;
  min-height: 42px;
}
.tier .feats {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: flex; flex-direction: column; gap: 12px;
  flex: 1;
}
.tier .feats li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14.5px;
  color: var(--text);
}
.tier .feats li .tick {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(255,61,46,0.15); color: var(--red);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 11px; font-weight: 800;
}
.tier.featured .feats li .tick { background: var(--red); color: white; }

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.quote {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.quote p {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 22px;
}
.quote .who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: white;
  font-size: 15px;
  background: linear-gradient(135deg, var(--red), var(--blue-deep));
}
.who .name { font-weight: 600; font-size: 14px; }
.who .role { color: var(--text-mute); font-size: 12px; }

/* FAQ */
.faq { max-width: 780px; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-q {
  display: flex; justify-content: space-between; gap: 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px;
  letter-spacing: -0.01em;
}
.faq-q::after { content: "+"; font-size: 26px; color: var(--red); line-height: 1; }
.faq-item.open .faq-q::after { content: "–"; }
.faq-a {
  color: var(--text-dim);
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, margin .3s ease;
}
.faq-item.open .faq-a { max-height: 320px; margin-top: 12px; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 50px 0 32px;
  color: var(--text-mute);
  font-size: 14px;
  margin-top: 40px;
}
.foot-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 320px; }
.foot-brand p { color: var(--text-mute); margin-top: 10px; font-size: 13px; }
.foot-col h4 { margin: 0 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text); }
.foot-col a { display: block; padding: 5px 0; color: var(--text-mute); }
.foot-col a:hover { color: var(--text); }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 22px; display: flex; justify-content: space-between; font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* ==== FORM PAGES ==== */
.page-head {
  padding: 80px 0 36px;
  border-bottom: 1px solid var(--line);
}
.page-head .eyebrow { margin-bottom: 14px; }
.page-head h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: -0.03em;
  margin: 0;
}
.page-head p { color: var(--text-dim); margin-top: 14px; max-width: 640px; font-size: 16px;}

.steps {
  display: flex; gap: 10px; margin-top: 26px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.step {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-mute);
}
.step.active { color: var(--red); border-color: var(--red); background: rgba(255,61,46,0.08); }
.step.done { color: var(--text-dim); border-color: var(--line-2); }

.grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 40px;
  padding: 60px 0 100px;
}

.panel {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.panel h2 {
  font-family: var(--font-display);
  font-weight: 800; font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.panel .panel-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 30px; }

.form-row { display: grid; gap: 8px; margin-bottom: 22px; }
.form-row.split { grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.form-row.split .form-field { display: grid; gap: 8px; }
label { font-size: 13px; color: var(--text-dim); font-weight: 500; }
input[type="text"], input[type="url"], input[type="email"], input[type="tel"], textarea, select {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px; font-family: inherit;
  transition: border-color .18s ease, background .18s ease;
  outline: none;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--red);
  background: var(--bg-3);
}
textarea { min-height: 120px; resize: vertical; }
.hint { color: var(--text-mute); font-size: 12px; margin-top: 4px; }

.style-chips {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.chip {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .18s ease;
}
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.selected { background: var(--red); color: white; border-color: var(--red); }

.pkg-select { display: grid; gap: 12px; margin-bottom: 22px; }
.pkg-option {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  cursor: pointer;
  transition: all .18s ease;
}
.pkg-option:hover { border-color: var(--line-2); }
.pkg-option.selected { border-color: var(--red); background: rgba(255,61,46,0.06); }
.pkg-option .pkg-info { display: flex; flex-direction: column; gap: 4px;}
.pkg-option .pkg-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.pkg-option .pkg-desc { color: var(--text-mute); font-size: 12.5px;}
.pkg-option .pkg-price { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -0.02em;}

.error { color: #ff6b6b; font-size: 12px; margin-top: 4px; min-height: 0; }
.error.show { min-height: 16px; }

/* Sidebar summary */
.summary {
  position: sticky; top: 90px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  align-self: start;
}
.summary h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.02em;
}
.summary .sub { color: var(--text-mute); font-size: 13px; margin-bottom: 22px; }
.sum-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14px;}
.sum-row .k { color: var(--text-dim); }
.sum-row .v { color: var(--text); font-weight: 500; }
.sum-total { display: flex; justify-content: space-between; padding-top: 20px; margin-top: 8px; align-items: baseline; }
.sum-total .k { color: var(--text-dim); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-mono); }
.sum-total .v { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.sum-total .v sup { font-size: 16px; color: var(--text-dim); vertical-align: super; }
.summary .btn { margin-top: 22px; }
.summary .promise {
  margin-top: 20px; padding: 14px; border-radius: 12px;
  background: var(--bg-2); font-size: 12.5px; color: var(--text-dim);
  border: 1px solid var(--line);
}
.summary .promise strong { color: var(--text); }

/* Card visual (checkout) */
.card-visual {
  aspect-ratio: 1.6/1;
  background:
    linear-gradient(135deg, #ff3d2e 0%, #d61e10 50%, #1d6dff 100%);
  border-radius: 18px;
  padding: 22px;
  color: white;
  font-family: var(--font-mono);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 12px 40px -12px rgba(255,61,46,0.5);
  margin-bottom: 22px;
  position: relative; overflow: hidden;
}
.card-visual::before {
  content: ""; position: absolute; inset: -20% -20% auto auto;
  width: 70%; height: 70%; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  filter: blur(30px);
}
.card-visual .chip-visual { width: 34px; height: 26px; border-radius: 5px; background: linear-gradient(135deg, #f4d15c, #b98e14); }
.card-visual .num { font-size: 22px; letter-spacing: 0.14em; }
.card-visual .row { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }
.card-visual .row .lbl { opacity: 0.7; font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;}

/* ==== CHAT ==== */
.chat-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  padding: 40px 0 60px;
  min-height: calc(100vh - 82px);
}
.chat {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
  min-height: 640px;
}
.chat-header {
  display: flex; align-items: center; gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.chat-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #1a1a20, #08080b);
  border: 1px solid var(--red);
  display: grid; place-items: center;
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 800; font-size: 16px;
  position: relative;
}
.chat-avatar::after {
  content: ""; position: absolute; bottom: 2px; right: 2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg-2);
}
.chat-user { flex: 1; }
.chat-user .name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 16px;
}
.chat-user .status {
  color: var(--green); font-size: 12px; font-family: var(--font-mono);
  letter-spacing: 0.1em;
}
.chat-menu {
  color: var(--text-mute); padding: 8px; border-radius: 8px;
}
.chat-menu:hover { color: var(--text); background: var(--bg-3); }

.messages {
  flex: 1; overflow-y: auto;
  padding: 24px 24px 8px;
  display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.messages::-webkit-scrollbar { width: 6px; }
.messages::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }

.msg {
  display: flex; flex-direction: column;
  max-width: 68%;
  gap: 4px;
}
.msg .bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14.5px; line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg .time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-mute);
  padding: 0 4px;
}
.msg.creator { align-self: flex-start; }
.msg.creator .bubble {
  background: var(--bg-3);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me .bubble {
  background: var(--red);
  color: white;
  border-bottom-right-radius: 4px;
}
.msg.system {
  align-self: center; max-width: 90%;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px dashed var(--line-2);
  border-radius: 999px;
}
.typing {
  align-self: flex-start;
  background: var(--bg-3);
  padding: 12px 16px;
  border-radius: 18px 18px 18px 4px;
  display: none;
  gap: 4px;
}
.typing.on { display: flex; }
.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--text-mute);
  animation: bounce 1.2s infinite;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%,60%,100% { transform: translateY(0); opacity: 0.5;} 30% { transform: translateY(-6px); opacity: 1;} }

/* Rating card (in-chat) */
.rate-card {
  align-self: stretch;
  max-width: 100%;
  border: 1px solid var(--red);
  background:
    linear-gradient(135deg, rgba(255,61,46,0.10), rgba(29,109,255,0.08)),
    var(--bg-2);
  border-radius: 18px;
  padding: 22px 24px;
  margin: 6px 0;
  display: flex; flex-direction: column; gap: 14px;
}
.rate-card .rate-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 17px;
}
.rate-card .rate-head .pill {
  padding: 3px 10px; border-radius: 999px;
  background: var(--red); color: white;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.rate-card .rate-sub {
  color: var(--text-dim); font-size: 13.5px;
  margin: -6px 0 4px;
}
.stars {
  display: flex; gap: 6px;
}
.star-btn {
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  color: var(--text-mute);
  cursor: pointer;
  transition: all .16s ease;
  display: grid; place-items: center;
}
.star-btn:hover, .star-btn.hover, .star-btn.filled {
  color: var(--yellow);
  border-color: var(--yellow);
  background: rgba(255,225,92,0.08);
  transform: translateY(-1px);
}
.star-btn.filled { background: rgba(255,225,92,0.14); }
.star-btn svg { width: 20px; height: 20px; fill: currentColor; }
.rate-comment {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  min-height: 60px;
  outline: none;
}
.rate-comment:focus { border-color: var(--red); }
.rate-actions { display: flex; gap: 10px; align-items: center; }
.rate-actions .btn { padding: 10px 18px; font-size: 13px; }
.rate-hint {
  color: var(--text-mute); font-size: 12px;
  font-family: var(--font-mono); letter-spacing: 0.06em;
  margin-left: auto;
}

.composer {
  border-top: 1px solid var(--line);
  padding: 16px;
  display: flex; gap: 12px; align-items: flex-end;
  background: var(--bg-2);
}
.composer textarea {
  flex: 1; background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  color: var(--text);
  resize: none; max-height: 100px; min-height: 44px;
  font-size: 14.5px;
  font-family: inherit;
}
.composer textarea:focus { border-color: var(--red); }
.send-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: var(--red); color: white;
  display: grid; place-items: center;
  transition: transform .15s ease, background .15s ease;
  flex-shrink: 0;
}
.send-btn:hover { background: #ff5648; transform: scale(1.05); }
.send-btn svg { width: 18px; height: 18px; }

/* Chat sidebar */
.chat-side {
  display: flex; flex-direction: column; gap: 16px;
}
.side-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.side-card h4 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 16px;
}
.side-card .kicker {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-mute);
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 12px;
}
.side-row {
  display: flex; justify-content: space-between; padding: 8px 0;
  font-size: 13px; border-bottom: 1px dashed var(--line);
}
.side-row:last-child { border-bottom: none; }
.side-row .k { color: var(--text-dim); }
.side-row .v { color: var(--text); font-weight: 500; text-align: right; max-width: 60%; }

.progress-list { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.progress-item {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-dim); font-size: 13.5px;
}
.progress-item .dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line-2);
  flex-shrink: 0;
}
.progress-item.done .dot { background: var(--red); border-color: var(--red); }
.progress-item.done { color: var(--text); }
.progress-item.active .dot { border-color: var(--red); background: transparent; box-shadow: 0 0 0 4px rgba(255,61,46,0.15); }
.progress-item.active { color: var(--text); }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 60px 0 40px; gap: 40px; }
  .hero-visual { aspect-ratio: 4/4; }
  .trailer-grid, .pricing-grid, .testimonials { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .nav-links { display: none; }
  .section { padding: 70px 0; }
  .section-head { flex-direction: column; align-items: flex-start;}
  .form-row.split { grid-template-columns: 1fr; }
}
