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

:root {
  --bg: #12090a;
  --bg-elevated: rgba(33, 14, 16, 0.85);
  --surface: rgba(43, 17, 20, 0.82);
  --surface-strong: #351416;
  --surface-soft: rgba(255, 255, 255, 0.04);
  --stroke: rgba(255, 255, 255, 0.1);
  --stroke-strong: rgba(255, 255, 255, 0.16);
  --text: #fff8f5;
  --text-muted: rgba(255, 248, 245, 0.72);
  --text-soft: rgba(255, 248, 245, 0.56);
  --primary: #ef646b;
  --primary-dark: #cf4c55;
  --primary-soft: rgba(239, 100, 107, 0.15);
  --cream: #ffd9cc;
  --success: #8de8b5;
  --warning: #ffe08a;
  --danger: #ff9ea4;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1240px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(239, 100, 107, 0.14), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(255, 200, 166, 0.08), transparent 18%),
    linear-gradient(180deg, #180a0b 0%, #12090a 35%, #0e0607 100%);
  color: var(--text);
  font-family: "Outfit", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

main {
  display: grid;
  gap: 0;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

code {
  font-family: "Space Grotesk", monospace;
  color: var(--cream);
}

.page-glow {
  position: fixed;
  inset: auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.page-glow-left {
  top: 120px;
  left: -180px;
  background: rgba(239, 100, 107, 0.4);
}

.page-glow-right {
  right: -160px;
  bottom: 180px;
  background: rgba(255, 206, 170, 0.16);
}

.site-header,
.hero,
.metrics,
.feature-section,
.final-cta,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0 10px;
}

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

.brand-logo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-tag {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 14px 22px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  justify-self: center;
}

.site-nav a {
  color: var(--text-muted);
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.header-actions,
.hero-actions,
.cta-actions,
.action-row,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #ff7f74 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(239, 100, 107, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(135deg, #ff7c7f 0%, #ff9674 100%);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--stroke);
  color: var(--text);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--stroke-strong);
  background: rgba(255, 255, 255, 0.08);
}

.button-danger {
  background: rgba(255, 158, 164, 0.12);
  border-color: rgba(255, 158, 164, 0.26);
  color: var(--danger);
}

.button-danger:hover,
.button-danger:focus-visible {
  background: rgba(255, 158, 164, 0.18);
  border-color: rgba(255, 158, 164, 0.42);
}

.button-large {
  min-height: 56px;
  padding-inline: 26px;
}

.button-small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 0.92rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 42px;
  padding: 64px 0 48px;
  align-items: center;
}

.hero-copy,
.hero-visual,
.feature-copy,
.feature-visual,
.usage-card,
.board-card {
  min-width: 0;
}

.eyebrow,
.section-label,
.mini-badge,
.card-label,
.sidebar-kicker,
.floating-title {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid rgba(239, 100, 107, 0.18);
  color: var(--cream);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 18px;
  max-width: 13ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-title-line,
.hero-title-highlight {
  display: block;
}

.hero-title-line {
  color: var(--text);
}

.hero-title-highlight {
  color: var(--cream);
}

.hero-text,
.feature-copy p,
.final-cta p {
  margin: 0;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.hero-point {
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.hero-point strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.hero-point span {
  color: var(--text-soft);
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
}

.hero-window,
.panel-shell {
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--bg-elevated);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
}

.hero-window {
  position: relative;
  overflow: hidden;
  padding: 18px;
  transform: rotate(-2deg);
  animation: float-window 6s ease-in-out infinite;
  width: min(100%, 640px);
  margin-left: auto;
}

.window-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
}

.window-hero {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(239, 100, 107, 0.17), rgba(255, 194, 173, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.window-hero-copy h2,
.feature-copy h2,
.final-cta h2,
.message-mock h3,
.board-top h3 {
  margin: 14px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.window-hero-copy p,
.message-mock p,
.board-summary span,
.board-summary strong {
  color: var(--text-muted);
}

.window-banner {
  margin-top: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.dashboard-card,
.mini-panel,
.message-mock,
.board-card,
.floating-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.04);
}

.accent-card {
  background: linear-gradient(135deg, rgba(239, 100, 107, 0.14), rgba(255, 255, 255, 0.03));
}

.dashboard-card h3,
.message-mock h3,
.board-card h3 {
  margin: 16px 0 10px;
  font-size: 1.45rem;
}

.dashboard-card p,
.quote,
.board-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.tag-row span,
.chip,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding-inline: 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.tag-row span,
.chip-neutral,
.status-badge {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.chip-positive {
  background: rgba(141, 232, 181, 0.13);
  color: var(--success);
}

.chip-negative {
  background: rgba(255, 158, 164, 0.13);
  color: var(--danger);
}

.floating-card {
  position: absolute;
  max-width: 230px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.floating-card strong {
  display: block;
  margin: 12px 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.floating-copy {
  color: var(--text-soft);
  line-height: 1.6;
}

.floating-card-top {
  top: -12px;
  right: -12px;
  animation: float-chip 5.5s ease-in-out infinite;
}

.floating-card-bottom {
  bottom: 46px;
  left: -22px;
  animation: float-chip 6.5s ease-in-out infinite;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 12px 0 24px;
  align-items: stretch;
}

.metrics article {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 22px 24px;
  min-height: 184px;
  border: 1px solid var(--stroke);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.03);
}

.metrics strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.metrics span {
  color: var(--text-soft);
  line-height: 1.55;
}

.metrics small {
  display: block;
  margin-top: 8px;
  color: var(--text-soft);
  line-height: 1.55;
}

.metrics-note {
  width: min(calc(100% - 48px), var(--max-width));
  margin: -6px auto 8px;
  color: var(--text-soft);
  text-align: right;
  font-size: 0.95rem;
}

.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 52px;
  align-items: center;
  padding: 84px 0;
}

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

.feature-copy h2 {
  max-width: 12ch;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-muted);
  line-height: 1.7;
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ffb37b);
  box-shadow: 0 0 0 6px rgba(239, 100, 107, 0.13);
}

.feature-usage-gallery {
  display: grid;
  gap: 18px;
  width: min(100%, 690px);
  margin-left: auto;
}

.usage-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.usage-card {
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--bg-elevated);
  box-shadow: var(--shadow);
  height: 100%;
}

.usage-card-large .usage-image {
  aspect-ratio: 1200 / 860;
}

.usage-image {
  width: 100%;
  aspect-ratio: 860 / 700;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.02);
}

.usage-copy {
  display: grid;
  align-content: start;
  padding: 22px 24px 24px;
}

.usage-copy h3 {
  margin: 14px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.usage-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.panel-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
}

.panel-sidebar {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 28px;
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid var(--stroke);
}

.sidebar-item {
  padding: 14px 16px;
  border-radius: 16px;
  color: var(--text-muted);
  transition: background-color 160ms ease;
}

.sidebar-item.active,
.sidebar-item:hover,
.sidebar-item:focus-visible {
  background: rgba(239, 100, 107, 0.14);
  color: var(--text);
}

.panel-main {
  padding: 28px;
}

.panel-main-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.panel-main-top h3 {
  margin: 12px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.mini-panel span,
.board-summary span,
.message-head span,
.progress-card span {
  color: var(--text-soft);
}

.mini-panel strong,
.board-summary strong {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
}

.embed-preview {
  display: flex;
  gap: 18px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: rgba(10, 6, 7, 0.48);
}

.embed-bar {
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), #ffc58d);
}

.embed-content {
  display: flex;
  gap: 16px;
}

.embed-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
}

.embed-content strong {
  display: block;
  margin-bottom: 6px;
}

.embed-content p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.stacked-visual {
  display: grid;
  gap: 18px;
  width: min(100%, 540px);
  margin-right: auto;
  min-height: auto;
}

.message-mock {
  position: relative;
  width: 100%;
  box-shadow: var(--shadow);
}

.primary-mock {
  background: linear-gradient(145deg, rgba(239, 100, 107, 0.16), rgba(255, 255, 255, 0.04));
}

.secondary-mock {
  background: rgba(255, 255, 255, 0.04);
}

.message-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.avatar-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ff9c75);
  color: #fff;
  font-weight: 700;
}

.progress-card {
  margin-top: 20px;
}

.progress-track {
  width: 100%;
  height: 14px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-fill {
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #ffc27f);
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 36px;
  margin-top: 18px;
  margin-bottom: 38px;
  border: 1px solid rgba(239, 100, 107, 0.18);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(239, 100, 107, 0.14), rgba(255, 195, 167, 0.06)),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 0 48px;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 20px;
  color: var(--text-soft);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.dashboard-page {
  min-height: 100vh;
}

.dashboard-header,
.dashboard-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.dashboard-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
}

.dashboard-brand {
  width: fit-content;
}

.dashboard-user {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.dashboard-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.dashboard-user span {
  display: block;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.dashboard-user strong {
  display: block;
  margin-top: 2px;
}

.dashboard-shell {
  display: grid;
  gap: 22px;
  padding: 18px 0 54px;
}

.dashboard-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: 34px 0 18px;
}

.dashboard-intro h1,
.server-toolbar h2,
.selected-server-panel h2 {
  margin: 14px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.35rem;
  line-height: 1.08;
}

.dashboard-intro p,
.selected-server-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.dashboard-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(239, 100, 107, 0.14);
}

.server-selection,
.selected-server-panel {
  padding: 24px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.server-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 340px);
  align-items: end;
  gap: 18px;
  margin-bottom: 18px;
}

.server-search {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
}

.server-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  outline: none;
}

.server-search input:focus {
  border-color: rgba(239, 100, 107, 0.46);
  box-shadow: 0 0 0 4px rgba(239, 100, 107, 0.12);
}

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

.server-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(16, 7, 8, 0.58);
}

.server-card[data-bot-present="false"] {
  background: rgba(255, 255, 255, 0.03);
}

.server-card-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.server-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: cover;
}

.server-card h3 {
  margin: 0 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.server-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dashboard-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--stroke-strong);
  border-radius: 12px;
  color: var(--text-muted);
  text-align: center;
}

.guild-dashboard-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
  padding: 18px 0 54px;
}

.guild-sidebar,
.guild-main-panel {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.guild-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  position: sticky;
  top: 18px;
}

.guild-tab {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 14px;
  background: transparent;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
}

.guild-tab.active,
.guild-tab:hover,
.guild-tab:focus-visible {
  border-color: rgba(239, 100, 107, 0.2);
  background: rgba(239, 100, 107, 0.12);
  color: var(--text);
}

.guild-main-panel {
  padding: 24px;
}

.guild-panel-content {
  display: grid;
  gap: 0;
}

.guild-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 24px;
}

.guild-panel-header h1 {
  margin: 14px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.35rem;
  line-height: 1.08;
}

.guild-panel-header p {
  margin: 0;
  max-width: 720px;
  color: var(--text-muted);
  line-height: 1.7;
}

.guild-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  white-space: nowrap;
}

.automessage-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
  color: var(--text-soft);
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  outline: none;
}

.form-field select option {
  color: #130809;
}

.form-field textarea {
  resize: vertical;
  min-height: 160px;
}

.field-help {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: rgba(239, 100, 107, 0.46);
  box-shadow: 0 0 0 4px rgba(239, 100, 107, 0.12);
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  grid-column: 1 / -1;
}

.toggle-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(16, 7, 8, 0.48);
  cursor: pointer;
}

.toggle-field input {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
}

.toggle-field strong,
.toggle-field small {
  display: block;
}

.toggle-field small {
  margin-top: 4px;
  color: var(--text-soft);
  line-height: 1.5;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  grid-column: 1 / -1;
}

.form-feedback {
  margin: 0;
  color: var(--text-soft);
}

.form-feedback[data-type="success"] {
  color: var(--success);
}

.form-feedback[data-type="error"] {
  color: var(--danger);
}

.automessage-manager {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.automessage-list-panel,
.automessage-editor,
.automessage-empty-state,
.placeholder-panel,
.embed-editor-block,
.discord-preview-shell {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(16, 7, 8, 0.42);
}

.automessage-list-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  position: sticky;
  top: 18px;
}

.manager-small-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-muted);
}

.manager-small-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--cream);
  font-weight: 700;
}

.automessage-list {
  display: grid;
  gap: 10px;
}

.automessage-card {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.automessage-card:hover,
.automessage-card:focus-visible,
.automessage-card.active {
  border-color: rgba(239, 100, 107, 0.32);
  background: rgba(239, 100, 107, 0.12);
}

.automessage-card-head,
.automessage-card-tags,
.split-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.automessage-card-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automessage-card-head small,
.automessage-card-tags small {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.automessage-card-head small[data-status="active"] {
  background: rgba(141, 232, 181, 0.13);
  color: var(--success);
}

.automessage-card-head small[data-status="paused"] {
  background: rgba(255, 158, 164, 0.13);
  color: var(--danger);
}

.automessage-card-meta {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.automessage-card-tags {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.automessage-empty-state,
.placeholder-panel {
  padding: 28px;
}

.automessage-empty-state strong,
.placeholder-panel h1 {
  display: block;
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
}

.automessage-empty-state p,
.placeholder-panel p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.automessage-editor {
  display: grid;
  gap: 20px;
  padding: 20px;
}

.editor-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.editor-heading h2 {
  margin: 12px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

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

.embed-editor-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  grid-column: 1 / -1;
  padding: 18px;
}

.embed-editor-block > div {
  grid-column: 1 / -1;
}

.embed-editor-block h3 {
  margin: 12px 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
}

.embed-editor-block p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.discord-preview-shell {
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  padding: 18px;
}

.discord-preview {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(49, 51, 56, 0.92);
  color: #f2f3f5;
}

.discord-preview[data-mode="message"] {
  grid-template-columns: minmax(0, 1fr);
}

.discord-preview[data-mode="message"] .preview-embed-bar {
  display: none;
}

.preview-embed-bar {
  width: 5px;
  min-height: 100%;
  border-radius: 999px;
  background: var(--primary);
}

.preview-content {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.preview-content strong {
  color: #fff;
}

.preview-content p {
  margin: 0;
  white-space: pre-wrap;
  color: #dbdee1;
  line-height: 1.55;
}

.preview-content img {
  max-height: 220px;
  width: fit-content;
  max-width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.preview-content small {
  color: #b5bac1;
}

.docs-page {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
  padding: 34px 0 54px;
}

.docs-hero {
  display: grid;
  gap: 18px;
  max-width: 900px;
  padding: 42px 0 34px;
}

.docs-hero h1 {
  margin: 0;
  max-width: 12ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.docs-hero p,
.docs-category-head p,
.docs-copy p,
.docs-note-card p,
.docs-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.72;
}

.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.docs-sidebar a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--text-muted);
}

.docs-sidebar a:hover,
.docs-sidebar a:focus-visible {
  background: rgba(239, 100, 107, 0.12);
  color: var(--text);
}

.docs-content,
.docs-category {
  display: grid;
  gap: 22px;
}

.docs-category {
  scroll-margin-top: 28px;
}

.docs-category + .docs-category {
  padding-top: 34px;
}

.docs-category-head {
  display: grid;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--stroke);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(239, 100, 107, 0.11), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.035);
}

.docs-category-head h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.docs-panel,
.docs-card,
.docs-note-card {
  border: 1px solid var(--stroke);
  border-radius: 20px;
  background: rgba(16, 7, 8, 0.46);
}

.docs-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 20px;
  padding: 24px;
  align-items: center;
}

.docs-panel-visual {
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 1fr);
}

.docs-copy {
  display: grid;
  gap: 14px;
}

.docs-copy h3,
.docs-card h3,
.docs-note-card strong {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.65rem;
  line-height: 1.12;
}

.docs-steps {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding-left: 22px;
  color: var(--text-muted);
  line-height: 1.65;
}

.docs-note-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(141, 232, 181, 0.1), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.035);
}

.docs-visual {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.03);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.docs-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
}

.bobia-dashboard,
.bobia-form {
  display: grid;
  gap: 18px;
}

.bobia-summary-card,
.bobia-card,
.pending-suggestion {
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: rgba(16, 7, 8, 0.42);
}

.bobia-summary-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 20px;
  align-items: stretch;
  padding: 20px;
}

.bobia-summary-card h2,
.pending-suggestion h3 {
  margin: 12px 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
}

.bobia-summary-card p,
.bobia-section-head p,
.pending-suggestion p,
.pending-suggestion small {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.bobia-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.bobia-stats article {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 110px;
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.bobia-stats strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
}

.bobia-stats span {
  color: var(--text-soft);
  line-height: 1.35;
}

.bobia-card,
.pending-suggestion {
  padding: 18px;
}

.bobia-section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

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

.interest-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.interest-card:has(input:checked) {
  border-color: rgba(239, 100, 107, 0.36);
  background: rgba(239, 100, 107, 0.12);
}

.interest-card input {
  width: 21px;
  height: 21px;
  accent-color: var(--primary);
}

.interest-card strong,
.interest-card small {
  display: block;
}

.interest-card small {
  margin-top: 4px;
  color: var(--text-soft);
  line-height: 1.5;
}

.bobia-settings-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: 14px;
}

.notification-box {
  display: grid;
  gap: 14px;
}

.radio-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-stack label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  cursor: pointer;
}

.radio-stack input {
  accent-color: var(--primary);
}

.mini-badge[data-status="active"] {
  background: rgba(141, 232, 181, 0.13);
  border-color: rgba(141, 232, 181, 0.22);
  color: var(--success);
}

.mini-badge[data-status="paused"] {
  background: rgba(255, 158, 164, 0.13);
  border-color: rgba(255, 158, 164, 0.22);
  color: var(--danger);
}

.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  padding: 15px 16px;
  border: 1px solid rgba(141, 232, 181, 0.28);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(141, 232, 181, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(18, 9, 10, 0.92);
  color: var(--text);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: toast-in 220ms ease-out both;
}

.toast[data-type="error"] {
  border-color: rgba(255, 158, 164, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 158, 164, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(18, 9, 10, 0.92);
}

.toast-hide {
  animation: toast-out 220ms ease-in both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

@keyframes float-window {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(-1deg) translateY(-8px);
  }
}

@keyframes float-chip {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1120px) {
  .site-header,
  .dashboard-header,
  .dashboard-shell,
  .guild-dashboard-shell,
  .docs-page,
  .hero,
  .feature-section,
  .final-cta,
  .site-footer,
  .metrics-note {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .dashboard-header,
  .dashboard-intro,
  .guild-dashboard-shell,
  .guild-panel-header,
  .automessage-manager,
  .docs-layout,
  .docs-panel,
  .docs-panel-visual,
  .bobia-summary-card,
  .bobia-settings-grid,
  .server-toolbar,
  .server-card {
    grid-template-columns: 1fr;
  }

  .dashboard-user,
  .server-actions {
    justify-self: start;
  }

  .hero,
  .feature-section,
  .feature-section.reverse,
  .panel-shell,
  .usage-card-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-window,
  .feature-usage-gallery,
  .stacked-visual {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .hero h1,
  .feature-copy h2 {
    max-width: none;
  }

  .hero-visual,
  .stacked-visual {
    min-height: auto;
  }

  .floating-card,
  .message-mock {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
    margin-top: 16px;
  }

  .panel-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--stroke);
  }

  .panel-grid,
  .hero-points,
  .board-summary,
  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-cta,
  .site-footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .site-nav,
  .header-actions {
    width: 100%;
    justify-content: center;
  }

  .button,
  .button-large {
    width: 100%;
  }

  .hero,
  .feature-section {
    padding: 48px 0;
  }

  .site-header,
  .dashboard-header,
  .dashboard-shell,
  .guild-dashboard-shell,
  .docs-page,
  .metrics,
  .feature-section,
  .final-cta,
  .site-footer,
  .metrics-note {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .hero h1 {
    font-size: clamp(2.6rem, 13vw, 4.4rem);
  }

  .window-hero-copy h2,
  .feature-copy h2,
  .final-cta h2,
  .board-top h3 {
    font-size: clamp(1.9rem, 10vw, 2.6rem);
  }

  .hero-points,
  .panel-grid,
  .board-summary,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .hero-window,
  .panel-main,
  .panel-sidebar,
  .guild-main-panel,
  .final-cta {
    padding-left: 18px;
    padding-right: 18px;
  }

  .automessage-form,
  .toggle-grid {
    grid-template-columns: 1fr;
  }

  .guild-sidebar {
    position: static;
  }

  .docs-sidebar {
    position: static;
  }

  .automessage-list-panel {
    position: static;
  }

  .automessage-edit-form,
  .embed-editor-block,
  .interest-grid,
  .bobia-stats {
    grid-template-columns: 1fr;
  }

  .split-actions,
  .editor-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .embed-content {
    flex-direction: column;
  }

  .metrics-note,
  .footer-links {
    text-align: left;
    justify-self: start;
  }
}
