:root {
  --bg: #070b14;
  --bg-elevated: #101827;
  --panel: rgba(16, 24, 39, 0.88);
  --text: #f3f6ff;
  --muted: #9aa8c7;
  --line: rgba(155, 176, 220, 0.18);
  --green: #34d399;
  --green-dim: rgba(52, 211, 153, 0.14);
  --blue: #60a5fa;
  --blue-dim: rgba(96, 165, 250, 0.16);
  --violet: #a78bfa;
  --amber: #fbbf24;
  --danger: #fb7185;
  --bubble: #173024;
  --bubble-border: rgba(52, 211, 153, 0.35);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(96, 165, 250, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(52, 211, 153, 0.14), transparent 50%),
    var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.bg-glow {
  position: fixed;
  inset: auto -10% 20% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.12);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--green), #059669);
  color: #04140d;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 10px 30px rgba(52, 211, 153, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-text strong {
  font-size: 1.05rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.8rem;
}

.site-nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.hero {
  padding: 3.5rem 0 2rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero-lead {
  margin: 1.25rem 0 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(145deg, #4ade80, #10b981);
  color: #052e1b;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.28);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-block {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2.5rem 0 0;
  padding: 0;
}

.hero-stats div {
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-stats dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-stats dd {
  margin: 0.35rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.featured,
.compose,
.wall,
.about {
  padding: 1.5rem 0 2.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section-label .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.12);
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h2,
.about-card h2,
.compose-tips h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
}

.section-heading p,
.about-card p,
.compose-tips li,
.form-note {
  color: var(--muted);
}

.bubble {
  position: relative;
  max-width: 720px;
  padding: 1.2rem 1.25rem 1rem;
  border: 1px solid var(--bubble-border);
  border-radius: 22px 22px 22px 8px;
  background:
    linear-gradient(180deg, rgba(52, 211, 153, 0.12), transparent 40%),
    var(--bubble);
  box-shadow: var(--shadow);
}

.bubble::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: var(--bubble);
  border-right: 1px solid var(--bubble-border);
  border-bottom: 1px solid var(--bubble-border);
  transform: rotate(45deg);
}

.bubble-featured {
  max-width: none;
  padding: 1.6rem 1.5rem 1.25rem;
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.16), transparent 45%),
    linear-gradient(180deg, rgba(52, 211, 153, 0.16), transparent 50%),
    #122033;
  border-color: rgba(96, 165, 250, 0.35);
}

.bubble-featured::after {
  background: #122033;
  border-color: rgba(96, 165, 250, 0.35);
}

.bubble-text {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.45;
}

.bubble-featured .bubble-text {
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
}

.bubble-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--blue-dim);
  color: #bfd8ff;
  font-size: 0.78rem;
  font-weight: 600;
}

.pill[data-category="Product"] {
  background: var(--green-dim);
  color: #a7f3d0;
}

.pill[data-category="Business"] {
  background: rgba(251, 191, 36, 0.14);
  color: #fde68a;
}

.pill[data-category="Life"] {
  background: rgba(167, 139, 250, 0.16);
  color: #ddd6fe;
}

.pill[data-category="Tech"] {
  background: var(--blue-dim);
  color: #bfdbfe;
}

.pill[data-category="Funny"] {
  background: rgba(251, 113, 133, 0.14);
  color: #fecdd3;
}

.count,
.author {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.compose {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
}

.compose-panel,
.compose-tips,
.about-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(12px);
}

.field-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.composer {
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.composer textarea {
  display: block;
  width: 100%;
  min-height: 140px;
  padding: 1rem 1rem 0.5rem;
  border: 0;
  resize: vertical;
  background: transparent;
  color: var(--text);
  outline: none;
}

.composer textarea::placeholder {
  color: #6b7a99;
}

.composer-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem 0.85rem;
  border-top: 1px solid var(--line);
}

.char-count {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--green);
}

.char-count.is-warn {
  color: var(--amber);
}

.char-count.is-full {
  color: var(--danger);
}

.char-hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.field input,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
}

.field select option {
  color: #111827;
}

.form-note {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
}

.compose-tips ul {
  margin: 0.9rem 0 0;
  padding-left: 1.1rem;
}

.compose-tips li + li {
  margin-top: 0.55rem;
}

.wall-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter {
  min-height: 38px;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.filter.is-active,
.filter:hover {
  color: var(--text);
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.1);
}

.wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.wall-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.15rem 1.15rem 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 55%),
    var(--bg-elevated);
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.wall-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.35);
}

.wall-card .bubble-text {
  flex: 1;
  font-size: 1.02rem;
}

.wall-card.is-new {
  animation: pop-in 0.45s ease;
  border-color: rgba(52, 211, 153, 0.55);
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.empty-state {
  margin: 1.5rem 0 0;
  padding: 1.25rem;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0 2.5rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}

.site-footer strong {
  display: block;
  color: var(--text);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 20;
  transform: translateX(-50%);
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #064e3b;
  font-weight: 600;
  box-shadow: var(--shadow);
}

@media (max-width: 860px) {
  .compose,
  .form-row,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }

  .site-nav {
    display: none;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .compose-panel,
  .compose-tips,
  .about-card {
    padding: 1.15rem;
  }
}
