:root {
  --midnight-950: #06101f;
  --midnight-900: #09182b;
  --midnight-800: #10243d;
  --midnight-700: #193552;
  --teal-500: #13d8c4;
  --teal-400: #45ead7;
  --teal-300: #8af3e5;
  --sky-400: #5db7ff;
  --white: #ffffff;
  --paper: #f7fbfc;
  --mist: #e8f1f4;
  --charcoal: #26343d;
  --slate: #62727c;
  --danger: #d94a66;
  --warning: #e3a62f;
  --success: #168b72;
  --shadow-sm: 0 8px 24px rgba(6, 16, 31, 0.08);
  --shadow-lg: 0 24px 70px rgba(6, 16, 31, 0.16);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--charcoal);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button,
.button {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(19, 216, 196, 0.44);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 40px), 820px);
  margin-inline: auto;
}

.section {
  padding: 92px 0;
}

.section-sm {
  padding: 58px 0;
}

.section-dark {
  background:
    radial-gradient(circle at 10% 0%, rgba(19, 216, 196, 0.13), transparent 30%),
    var(--midnight-950);
  color: var(--white);
}

.section-mist {
  background: var(--mist);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  background: currentColor;
  content: "";
}

.section-dark .eyebrow {
  color: var(--teal-400);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 16px;
  color: var(--midnight-950);
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.09;
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

h1 {
  font-size: clamp(2.65rem, 6vw, 5.6rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.55rem);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}

p {
  margin: 0 0 20px;
}

.lede {
  max-width: 720px;
  color: var(--slate);
  font-size: clamp(1.06rem, 1.6vw, 1.24rem);
}

.section-dark .lede,
.section-dark .muted {
  color: #a9beca;
}

.muted {
  color: var(--slate);
}

.tiny {
  font-size: 0.78rem;
}

.center {
  text-align: center;
}

.center .lede {
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--white);
  color: var(--midnight-950);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(98, 114, 124, 0.14);
  background: rgba(247, 251, 252, 0.9);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: var(--midnight-950);
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.brand img {
  width: 39px;
  height: 39px;
}

.brand span span {
  color: var(--success);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-links > a {
  padding: 10px 9px;
  border-radius: 9px;
  color: #40525e;
  font-size: 0.83rem;
  font-weight: 720;
  white-space: nowrap;
}

.nav-links > a:hover,
.nav-links > a[aria-current="page"] {
  background: rgba(19, 216, 196, 0.1);
  color: var(--midnight-950);
}

.nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
}

.language-toggle {
  display: inline-flex;
  overflow: hidden;
  padding: 3px;
  border: 1px solid #cfdbdf;
  border-radius: 999px;
  background: var(--white);
}

.language-toggle button {
  min-width: 36px;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--slate);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
}

.language-toggle button.active {
  background: var(--midnight-900);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #d8e2e5;
  border-radius: 12px;
  background: var(--white);
  color: var(--midnight-950);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 19px;
  height: 2px;
  background: currentColor;
  content: "";
}

.menu-toggle span::before {
  transform: translateY(-6px);
}

.menu-toggle span::after {
  transform: translateY(4px);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--midnight-900);
  color: var(--white);
  cursor: pointer;
  font-weight: 780;
  line-height: 1.1;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  box-shadow: 0 11px 30px rgba(6, 16, 31, 0.18);
  transform: translateY(-2px);
}

.button-teal {
  background: var(--teal-500);
  color: var(--midnight-950);
}

.button-teal:hover {
  background: var(--teal-400);
}

.button-ghost {
  border-color: #cbd8dd;
  background: transparent;
  color: var(--midnight-950);
}

.section-dark .button-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--white);
}

.button-small {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
}

.button-wide {
  width: 100%;
}

.button[disabled] {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 72px;
  background:
    radial-gradient(circle at 75% 35%, rgba(19, 216, 196, 0.19), transparent 27%),
    radial-gradient(circle at 88% 4%, rgba(93, 183, 255, 0.15), transparent 31%),
    var(--midnight-950);
  color: var(--white);
}

.hero::after {
  position: absolute;
  right: -12%;
  bottom: -48%;
  width: 660px;
  height: 660px;
  border: 1px solid rgba(69, 234, 215, 0.15);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgba(69, 234, 215, 0.025),
    0 0 0 180px rgba(69, 234, 215, 0.02);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 54px;
}

.hero h1 {
  max-width: 760px;
  color: var(--white);
}

.hero h1 em {
  color: var(--teal-400);
  font-style: normal;
}

.hero .lede {
  color: #b8cad3;
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 30px;
  color: #a9beca;
  font-size: 0.88rem;
  font-weight: 650;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-row span::before {
  width: 8px;
  height: 8px;
  border: 2px solid var(--teal-400);
  border-radius: 50%;
  content: "";
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: min(100%, 520px);
  margin-inline: auto;
  filter: drop-shadow(0 35px 50px rgba(0, 0, 0, 0.34));
}

.signal-card {
  position: absolute;
  right: 2%;
  bottom: 8%;
  width: min(240px, 58%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(9, 24, 43, 0.86);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.signal-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
}

.signal-card span {
  color: #a9beca;
  font-size: 0.82rem;
}

.signal-line {
  height: 4px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 99px;
  background: #20364b;
}

.signal-line::after {
  display: block;
  width: 76%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal-500);
  content: "";
}

.page-hero {
  padding: 78px 0 64px;
  background:
    linear-gradient(115deg, rgba(19, 216, 196, 0.08), transparent 45%),
    var(--midnight-950);
  color: var(--white);
}

.page-hero h1 {
  max-width: 900px;
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4.75rem);
}

.page-hero .lede {
  color: #b8cad3;
}

.breadcrumbs {
  margin-bottom: 24px;
  color: #91a8b4;
  font-size: 0.84rem;
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: var(--teal-400);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.card {
  position: relative;
  padding: 28px;
  border: 1px solid #dbe6e9;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.card-interactive {
  transition:
    transform 180ms ease,
    border 180ms ease,
    box-shadow 180ms ease;
}

.card-interactive:hover {
  border-color: rgba(19, 216, 196, 0.75);
  box-shadow: 0 18px 50px rgba(6, 16, 31, 0.12);
  transform: translateY(-4px);
}

.icon-tile {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 14px;
  background: rgba(19, 216, 196, 0.12);
  color: var(--success);
}

.icon-tile svg {
  width: 23px;
  height: 23px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  font-weight: 790;
}

.card-link::after {
  content: "→";
  transition: transform 150ms ease;
}

.card-link:hover::after {
  transform: translateX(4px);
}

.stats {
  display: grid;
  overflow: hidden;
  border: 1px solid #dbe6e9;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  padding: 26px;
  border-right: 1px solid #e1eaed;
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--midnight-950);
  font-size: 1.3rem;
}

.stat span {
  color: var(--slate);
  font-size: 0.84rem;
}

.step-list {
  display: grid;
  margin-top: 34px;
  counter-reset: steps;
  gap: 16px;
}

.step {
  position: relative;
  min-height: 92px;
  padding: 23px 24px 23px 84px;
  border: 1px solid #dbe6e9;
  border-radius: 18px;
  background: var(--white);
  counter-increment: steps;
}

.step::before {
  position: absolute;
  top: 22px;
  left: 23px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--midnight-900);
  color: var(--teal-400);
  content: counter(steps, decimal-leading-zero);
  font-size: 0.78rem;
  font-weight: 850;
}

.step h3 {
  margin-bottom: 7px;
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  color: var(--slate);
}

.callout {
  padding: 24px 26px;
  border: 1px solid rgba(19, 216, 196, 0.34);
  border-left: 4px solid var(--teal-500);
  border-radius: 16px;
  background: rgba(19, 216, 196, 0.08);
}

.callout-warning {
  border-color: rgba(227, 166, 47, 0.34);
  border-left-color: var(--warning);
  background: #fff9eb;
}

.callout-danger {
  border-color: rgba(217, 74, 102, 0.32);
  border-left-color: var(--danger);
  background: #fff4f6;
}

.callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--midnight-950);
}

.callout p:last-child {
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf2f4;
  color: #4a5e69;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-teal {
  background: rgba(19, 216, 196, 0.14);
  color: #087565;
}

.badge-dark {
  background: var(--midnight-900);
  color: var(--teal-400);
}

.badge-warning {
  background: #fff1ce;
  color: #7a5400;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.guide-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.guide-card .guide-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.guide-card p {
  color: var(--slate);
}

.guide-card .card-link {
  margin-top: auto;
}

.guide-card.locked::after {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--warning);
  border-radius: 3px;
  content: "";
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 26px 0 32px;
}

.filter-button {
  padding: 9px 14px;
  border: 1px solid #cfdbdf;
  border-radius: 999px;
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 760;
}

.filter-button.active {
  border-color: var(--midnight-900);
  background: var(--midnight-900);
  color: var(--white);
}

.pricing-grid {
  display: grid;
  align-items: stretch;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 25px;
  border: 1px solid #dbe6e9;
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.price-card.featured {
  border-color: var(--teal-500);
  box-shadow: 0 22px 60px rgba(19, 216, 196, 0.16);
  transform: translateY(-10px);
}

.price {
  margin: 10px 0 20px;
  color: var(--midnight-950);
  font-size: 2.55rem;
  font-weight: 850;
  letter-spacing: -0.06em;
}

.price small {
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0;
}

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

.feature-list li {
  position: relative;
  padding-left: 23px;
  color: #4a5e69;
  font-size: 0.9rem;
}

.feature-list li::before {
  position: absolute;
  top: 0.13em;
  left: 0;
  color: var(--success);
  content: "✓";
  font-weight: 900;
}

.price-card .button {
  margin-top: auto;
}

.form-card {
  padding: 32px;
  border: 1px solid #dbe6e9;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.field {
  display: grid;
  margin-bottom: 18px;
  gap: 7px;
}

.field label {
  color: var(--midnight-950);
  font-size: 0.84rem;
  font-weight: 780;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #c8d6dc;
  border-radius: 11px;
  background: var(--white);
  color: var(--midnight-950);
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(19, 216, 196, 0.12);
  outline: 0;
}

.form-message {
  min-height: 25px;
  margin: 12px 0;
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 650;
}

.auth-shell {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 34px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.auth-tab {
  flex: 1;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: #eaf2f4;
  color: var(--slate);
  cursor: pointer;
  font-weight: 800;
}

.auth-tab.active {
  background: var(--midnight-900);
  color: var(--white);
}

.account-panel {
  display: grid;
  gap: 18px;
}

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

.account-meta {
  display: grid;
  margin: 0;
  gap: 0;
}

.account-meta div {
  display: grid;
  padding: 13px 0;
  border-bottom: 1px solid #e1eaed;
  grid-template-columns: 150px 1fr;
}

.account-meta dt {
  color: var(--slate);
  font-size: 0.84rem;
}

.account-meta dd {
  margin: 0;
  color: var(--midnight-950);
  font-weight: 740;
}

.board-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
}

.board-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.post-list {
  display: grid;
  gap: 12px;
}

.post-card {
  display: grid;
  padding: 22px;
  border: 1px solid #dbe6e9;
  border-radius: 16px;
  background: var(--white);
  grid-template-columns: 1fr auto;
  gap: 16px;
}

.post-card h3 {
  margin-bottom: 7px;
  font-size: 1.15rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--slate);
  font-size: 0.78rem;
}

.reply-count {
  min-width: 54px;
  text-align: center;
}

.reply-count strong {
  display: block;
  color: var(--midnight-950);
  font-size: 1.25rem;
}

.reply-count span {
  color: var(--slate);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.board-rules {
  position: sticky;
  top: 98px;
}

.board-rules ul {
  padding-left: 18px;
  color: var(--slate);
  font-size: 0.86rem;
}

.post-detail {
  padding: 30px;
  border: 1px solid #dbe6e9;
  border-radius: var(--radius);
  background: var(--white);
}

.post-body,
.reply-body {
  white-space: pre-wrap;
}

.reply-list {
  display: grid;
  margin-top: 22px;
  gap: 12px;
}

.reply {
  padding: 20px;
  border-left: 3px solid var(--teal-500);
  border-radius: 8px 16px 16px 8px;
  background: var(--white);
}

.guide-article {
  padding: 50px 0 90px;
}

.guide-shell {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 48px;
}

.guide-content {
  min-width: 0;
}

.guide-content section {
  padding: 26px 0;
  border-bottom: 1px solid #dce6e9;
}

.guide-content section:first-child {
  padding-top: 0;
}

.guide-content section h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.guide-aside {
  position: sticky;
  top: 105px;
}

.legal-strip {
  padding: 18px 0;
  border-bottom: 1px solid rgba(69, 234, 215, 0.18);
  background: var(--midnight-900);
  color: #b8cad3;
  font-size: 0.8rem;
}

.legal-strip .container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.legal-strip strong {
  color: var(--teal-400);
  white-space: nowrap;
}

.ad-shell {
  display: none;
  min-height: 100px;
  margin: 30px auto;
  padding: 12px;
  border: 1px dashed #cbd8dd;
  border-radius: 12px;
  background: #f1f6f7;
  color: #7b8c95;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ad-shell.active {
  display: grid;
  place-items: center;
}

.newsletter {
  display: grid;
  align-items: center;
  padding: 36px;
  border-radius: 24px;
  background:
    linear-gradient(125deg, rgba(19, 216, 196, 0.15), transparent 45%),
    var(--midnight-900);
  color: var(--white);
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
  gap: 30px;
}

.newsletter h2 {
  color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.newsletter p {
  margin: 0;
  color: #b8cad3;
}

.newsletter-form {
  display: flex;
  gap: 9px;
}

.newsletter-form input {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
}

.newsletter-form input::placeholder {
  color: #9bb1bd;
}

.site-footer {
  padding: 62px 0 28px;
  background: #040b15;
  color: #91a8b4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}

.site-footer .brand {
  margin-bottom: 18px;
  color: var(--white);
}

.site-footer h3 {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  font-size: 0.86rem;
}

.footer-links a:hover {
  color: var(--teal-400);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.76rem;
}

.toast-region {
  position: fixed;
  z-index: 500;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: min(380px, calc(100% - 40px));
  gap: 10px;
}

.toast {
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background: var(--midnight-900);
  box-shadow: var(--shadow-lg);
  color: var(--white);
  font-size: 0.88rem;
  animation: toast-in 180ms ease-out;
}

.toast.error {
  background: #701c31;
}

.empty-state,
.loading-state {
  padding: 42px;
  border: 1px dashed #cbd8dd;
  border-radius: var(--radius);
  color: var(--slate);
  text-align: center;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (max-width: 1040px) {
  .nav-links {
    position: fixed;
    top: 78px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    overflow-y: auto;
    align-content: start;
    padding: 22px;
    background: var(--paper);
  }

  .menu-open .nav-links {
    display: grid;
  }

  .nav-links > a {
    padding: 14px;
    font-size: 1rem;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-actions .button {
    display: none;
  }

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

  .price-card.featured {
    transform: none;
  }
}

@media (max-width: 820px) {
  .section {
    padding: 68px 0;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-grid,
  .auth-shell,
  .guide-shell,
  .board-layout,
  .newsletter {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 560px;
    margin-inline: auto;
  }

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

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

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid #e1eaed;
  }

  .board-rules,
  .guide-aside {
    position: static;
  }

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

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

  .nav-shell {
    min-height: 70px;
  }

  .nav-links {
    top: 70px;
  }

  .brand span {
    font-size: 0.92rem;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .hero-actions,
  .inline-actions {
    display: grid;
  }

  .hero-actions .button,
  .inline-actions .button {
    width: 100%;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .pricing-grid,
  .stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid #e1eaed;
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .card,
  .form-card,
  .post-detail {
    padding: 22px;
  }

  .step {
    padding: 76px 20px 20px;
  }

  .account-heading,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-meta div {
    grid-template-columns: 1fr;
  }

  .newsletter {
    padding: 26px;
  }

  .newsletter-form {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
