:root {
  --bg: #12020d;
  --bg-2: #1b0613;
  --bg-3: #2a091b;
  --surface: rgba(24, 8, 18, 0.82);
  --surface-2: rgba(35, 10, 24, 0.94);
  --surface-3: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 3, 95, 0.34);
  --text: #fff3f8;
  --muted: #d3a9ba;
  --soft: #b78498;
  --accent: #ff035f;
  --accent-2: #ff2a75;
  --accent-3: #ff5e93;
  --accent-4: #ff89b2;
  --danger: #ff6f91;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  min-height: 100%;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 3, 95, 0.18), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(255, 94, 147, 0.14), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(255, 42, 117, 0.12), transparent 35%),
    linear-gradient(180deg, #090207 0%, #11040c 42%, #1a0712 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 62%, rgba(0, 0, 0, 0.44) 100%);
  pointer-events: none;
  z-index: -1;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.bg-blur,
.bg-orbit,
.grid-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

.bg-blur {
  background:
    radial-gradient(circle at 25% 85%, rgba(255, 3, 95, 0.14), transparent 24%),
    radial-gradient(circle at 75% 15%, rgba(255, 137, 178, 0.10), transparent 18%);
  filter: blur(10px);
}

.bg-orbit {
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.04);
  filter: blur(0.3px);
}

.orbit-1 {
  top: -12vw;
  right: -10vw;
  background: radial-gradient(circle at center, rgba(255, 3, 95, 0.18), transparent 58%);
  animation: orbitFloat 20s ease-in-out infinite alternate;
}

.orbit-2 {
  left: -14vw;
  bottom: -18vw;
  background: radial-gradient(circle at center, rgba(255, 94, 147, 0.14), transparent 58%);
  animation: orbitFloat 24s ease-in-out infinite alternate-reverse;
}

.grid-noise {
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 90%);
}

@keyframes orbitFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(2vw, -1vw, 0) scale(1.05);
  }
  100% {
    transform: translate3d(-1vw, 1vw, 0) scale(0.98);
  }
}

.glass-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
  background: rgba(12, 4, 10, 0.56);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-link,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.logo-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 26px rgba(255, 3, 95, 0.18);
  overflow: hidden;
}

.logo-box img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text strong {
  font-size: 1rem;
  letter-spacing: 0.16em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topnav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: 180ms ease;
}

.nav-cta {
  color: #fff0f5 !important;
  background: linear-gradient(135deg, rgba(255,3,95,0.30), rgba(255,94,147,0.22));
  border-color: rgba(255, 3, 95, 0.28) !important;
}

.hero-section {
  position: relative;
  padding: 40px 0 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 26px;
  align-items: center;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.hero-kicker,
.section-kicker,
.mini-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,3,95,0.12);
  border: 1px solid rgba(255,3,95,0.20);
  color: #ffd4e2;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.chat-topbar h1,
.section-head h2,
.section-card h2,
.welcome-state h2 {
  margin: 16px 0 0;
  line-height: 1.04;
}

.hero-copy h1 {
  font-size: clamp(2.8rem, 6vw, 4.9rem);
}

.hero-copy h1 span,
.section-card h2 span,
.welcome-state h2 span {
  background: linear-gradient(135deg, #fff4f8, var(--accent-4));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead,
.section-card p,
.section-head p,
.welcome-state p,
.chat-topbar-meta,
.composer-meta,
.conversation-item-meta,
.mini-panel p,
.feature-card p,
.flow-list,
.status-list,
.console-address {
  color: var(--muted);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badges {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.info-pill,
.console-shortcuts span,
.welcome-chip,
.status-badge {
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
}

.info-pill,
.console-shortcuts span {
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  color: #ffe1ea;
  font-size: 0.9rem;
}

.hero-stats {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-card,
.feature-card,
.section-card,
.mini-panel,
.conversation-item,
.suggestion-card,
.message-card,
.console-item,
.console-input,
.console-newchat {
  border-radius: var(--radius-lg);
}

.stat-card {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 26px rgba(0,0,0,0.22);
}

.stat-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.05rem;
  color: #ffd6e5;
}

.stat-card span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.94rem;
}

.btn {
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff5f8;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 16px 34px rgba(255, 3, 95, 0.28);
}

.btn-secondary {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.btn-secondary:hover,
.console-newchat:hover,
.suggestion-card:hover,
.conversation-item:hover,
.topnav a:hover {
  border-color: var(--border-strong);
}

.ai-console {
  overflow: hidden;
}

.console-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.window-dots {
  display: inline-flex;
  gap: 7px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}

.window-dots span:nth-child(1) { background: #fb7185; }
.window-dots span:nth-child(2) { background: #f59e0b; }
.window-dots span:nth-child(3) { background: #22c55e; }

.status-badge {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  background: rgba(255,3,95,0.14);
  color: #ffd5e3;
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.console-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 540px;
}

.console-sidebar {
  padding: 18px;
  border-right: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
}

.console-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.console-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.console-brand strong,
.console-item-title,
.suggestion-title,
.conversation-title {
  display: block;
  font-weight: 700;
}

.console-brand small,
.console-item small,
.suggestion-card small {
  color: var(--soft);
}

.console-newchat {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 3, 95, 0.18);
  color: var(--text);
  background: linear-gradient(135deg, rgba(255,3,95,0.18), rgba(255,94,147,0.12));
  margin-bottom: 18px;
}

.console-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.console-item {
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
}

.console-item.active {
  background: linear-gradient(135deg, rgba(255,3,95,0.18), rgba(255,94,147,0.12));
  border-color: rgba(255, 3, 95, 0.24);
}

.console-main {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.console-headline h2,
.section-card h2,
.section-head h2 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.bubble-row {
  display: flex;
}

.bubble-row.right {
  justify-content: flex-end;
}

.bubble {
  max-width: min(86%, 560px);
  border-radius: 22px;
  padding: 16px 18px;
  line-height: 1.7;
  border: 1px solid rgba(255,255,255,0.08);
}

.bubble.ai {
  background: rgba(255,255,255,0.05);
}

.bubble.user {
  background: linear-gradient(135deg, rgba(255,3,95,0.24), rgba(255,94,147,0.20));
}

.bubble.soft {
  color: var(--muted);
}

.console-input {
  margin-top: auto;
  padding: 12px 12px 12px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.console-input span {
  color: var(--soft);
}

.console-input button {
  min-height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff5f8;
  font-weight: 700;
}

.section-block {
  padding: 28px 0;
}

.section-grid,
.feature-grid,
.workflow-grid {
  display: grid;
  gap: 22px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-card {
  padding: 28px;
}

.accent-card {
  background: linear-gradient(180deg, rgba(255,3,95,0.16), rgba(255,255,255,0.03));
  border-color: rgba(255, 3, 95, 0.20);
}

.section-head {
  max-width: 860px;
  margin: 0 auto 22px;
  text-align: center;
}

.section-head p {
  margin: 14px auto 0;
  max-width: 720px;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  padding: 24px;
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255,3,95,0.12);
  border: 1px solid rgba(255,3,95,0.20);
  color: #ffdbe7;
  font-weight: 800;
}

.feature-card h3 {
  margin: 16px 0 10px;
  font-size: 1.16rem;
}

.workflow-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.flow-list,
.status-list {
  padding-left: 20px;
  margin: 16px 0 0;
}

.flow-list li,
.status-list li {
  margin-bottom: 12px;
}

.wide-btn {
  width: 100%;
  margin-top: 18px;
}

.reveal-up {
  animation: revealUp 0.55s ease both;
}

.delay-1 { animation-delay: 0.08s; }
.delay-2 { animation-delay: 0.16s; }
.delay-3 { animation-delay: 0.24s; }

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* CHAT */
.nos-chat-page {
  height: 100dvh;
  overflow: hidden;
}

.chat-shell {
  height: 100dvh;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  overflow: hidden;
}

.chat-sidebar,
.chat-topbar,
.chat-viewport,
.composer {
  border-radius: 28px;
}

.chat-sidebar {
  padding: 16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: calc(100dvh - 32px);
  overflow: hidden;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-full-btn {
  width: 100%;
}

.sidebar-search-wrap {
  margin-top: 14px;
}

.sidebar-search {
  width: 100%;
  min-height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 0 16px;
  outline: none;
}

.sidebar-search::placeholder,
#chatInput::placeholder {
  color: var(--soft);
}

.sidebar-section-label-row {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-section-label,
.sidebar-count {
  color: var(--soft);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.conversation-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.conversation-item {
  width: 100%;
  padding: 14px 14px 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  text-align: left;
  transition: 180ms ease;
}

.conversation-item.active {
  background: linear-gradient(135deg, rgba(255,3,95,0.20), rgba(255,94,147,0.12));
  border-color: rgba(255, 3, 95, 0.26);
}

.conversation-item-top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.conversation-item-title,
.conversation-title {
  display: block;
  font-weight: 700;
  line-height: 1.35;
}

.conversation-item-meta,
.conversation-meta,
.conversation-empty {
  display: block;
  margin-top: 6px;
  color: var(--soft);
  font-size: 0.84rem;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.mini-panel {
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.mini-label {
  display: block;
  margin-bottom: 8px;
  color: #ffd7e4;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mini-links a {
  color: var(--muted);
}

.chat-main {
  min-width: 0;
  min-height: 0;
  height: calc(100dvh - 32px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
}

.chat-topbar {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.chat-topbar h1 {
  margin-top: 6px;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
}

.chat-topbar-meta {
  margin: 8px 0 0;
  font-size: 0.96rem;
}

.chat-topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.danger-soft:hover {
  border-color: rgba(251, 113, 133, 0.28);
}

.chat-viewport {
  min-height: 0;
  padding: 24px;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.welcome-state {
  max-width: 920px;
  margin: 5vh auto 0;
  text-align: center;
}

.welcome-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  color: #ffe0ea;
  background: rgba(255,3,95,0.10);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.welcome-state h2 {
  margin-top: 18px;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.welcome-state p {
  max-width: 760px;
  margin: 14px auto 0;
  font-size: 1rem;
}

.suggestion-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.suggestion-card {
  padding: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  text-align: left;
}

.suggestion-card small {
  display: block;
  margin-top: 8px;
}

.messages {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.welcome-state.hidden {
  display: none;
}

.message-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: flex-start;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,0.10);
}

.avatar.ai {
  background: linear-gradient(135deg, rgba(255,3,95,0.20), rgba(255,94,147,0.18));
  color: #fff6fa;
}

.avatar.user {
  background: rgba(255,255,255,0.06);
}

.message-card {
  padding: 18px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.message-card.user {
  background: linear-gradient(135deg, rgba(255,3,95,0.16), rgba(255,94,147,0.12));
}

.message-role {
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: #ffd7e5;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.message-text {
  color: #fff3f8;
  word-break: break-word;
}

.message-text p {
  margin: 0 0 10px;
}

.message-text p:last-child {
  margin-bottom: 0;
}

.message-text a {
  color: #ffb7cf;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.typing {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 24px;
}

.typing span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffd7e5;
  opacity: 0.5;
  animation: pulse 0.9s infinite ease-in-out;
}

.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes pulse {
  0%, 80%, 100% { transform: scale(0.72); opacity: 0.35; }
  40% { transform: scale(1); opacity: 1; }
}

.composer-wrap {
  min-height: 0;
}

.composer {
  padding: 14px;
  overflow: hidden;
}

.composer-main {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 12px;
}

#chatInput {
  width: 100%;
  min-height: 58px;
  max-height: 180px;
  resize: none;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  padding: 6px 6px 0;
  overflow-y: auto;
}

.send-button {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 18px;
  color: #fff5f8;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  box-shadow: 0 16px 28px rgba(255,3,95,0.26);
}

.send-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.send-button svg {
  width: 22px;
  height: 22px;
}

.composer-meta-row {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.composer-meta,
.composer-counter {
  color: var(--soft);
  font-size: 0.84rem;
}

.chat-viewport,
.conversation-list,
#chatInput {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 3, 95, 0.55) rgba(255, 255, 255, 0.06);
}

.chat-viewport::-webkit-scrollbar,
.conversation-list::-webkit-scrollbar,
#chatInput::-webkit-scrollbar {
  width: 10px;
}

.chat-viewport::-webkit-scrollbar-track,
.conversation-list::-webkit-scrollbar-track,
#chatInput::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
}

.chat-viewport::-webkit-scrollbar-thumb,
.conversation-list::-webkit-scrollbar-thumb,
#chatInput::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255,3,95,0.72), rgba(255,94,147,0.52));
  border-radius: 999px;
}

@media (max-width: 1160px) {
  .hero-grid,
  .feature-grid,
  .workflow-grid,
  .two-columns,
  .console-layout {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .console-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}

@media (max-width: 940px) {
  .topbar {
    position: relative;
  }

  .topbar-inner,
  .chat-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-shell {
    height: auto;
    min-height: 100dvh;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .chat-sidebar,
  .chat-main {
    height: auto;
  }

  .chat-sidebar {
    min-height: auto;
  }

  .nos-chat-page {
    height: auto;
    overflow: auto;
  }
}

@media (max-width: 700px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero-section {
    padding-top: 28px;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .console-topbar {
    grid-template-columns: 1fr;
  }

  .suggestion-grid {
    grid-template-columns: 1fr;
  }

  .message-row {
    grid-template-columns: 40px 1fr;
  }

  .avatar {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .chat-sidebar,
  .chat-topbar,
  .chat-viewport,
  .composer,
  .glass-panel {
    border-radius: 22px;
  }

  .chat-viewport {
    padding: 18px;
  }

  .chat-topbar-actions,
  .composer-meta-row {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-topbar-actions .btn,
  .hero-actions .btn,
  .topnav .nav-cta {
    width: 100%;
  }
}
