:root {
  --bg: #07070a;
  --panel: rgba(17, 24, 39, 0.72);
  --panel-strong: rgba(17, 24, 39, 0.92);
  --purple: #7c3aed;
  --blue: #2563eb;
  --text: #ffffff;
  --muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.38), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.26), transparent 28rem),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell,
.comments-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 44px;
}

.comments-shell {
  width: min(720px, calc(100% - 24px));
}

.glass-card {
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.78), rgba(10, 10, 16, 0.66));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.nav {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 22px;
}

.nav strong,
h1,
h2 {
  font-family: "Space Grotesk", Inter, sans-serif;
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #d7ccff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-link,
.secondary-button,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
}

.nav-link,
.secondary-button {
  border: 1px solid var(--border);
  padding: 0 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.primary-button {
  border: 0;
  padding: 0 18px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  box-shadow: 0 16px 44px rgba(124, 58, 237, 0.34);
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: center;
  padding: 72px 0 42px;
}

.hero h1 {
  max-width: 780px;
  margin: 18px 0;
  font-size: clamp(42px, 8vw, 78px);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.hero p,
.feature-card p,
.thread-header p,
.ai-placeholder p,
.comment-card p,
.form-note {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy > p {
  max-width: 660px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.phone-preview {
  min-height: 520px;
  border-radius: 34px;
  padding: 18px;
}

.phone-status {
  width: 82px;
  height: 5px;
  margin: 4px auto 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.message-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: 18px;
  background: rgba(7, 7, 10, 0.62);
}

.message-card span {
  font-weight: 800;
}

.message-card a {
  display: block;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 18px;
  text-align: center;
  font-weight: 800;
  background: rgba(124, 58, 237, 0.2);
}

.ai-chip {
  margin-top: 18px;
  border-radius: 20px;
  padding: 14px;
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.14);
}

.grid-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 210px;
  border-radius: 26px;
  padding: 22px;
}

.feature-card span {
  color: #c4b5fd;
  font-weight: 800;
}

.feature-card h2 {
  margin: 28px 0 8px;
  font-size: 24px;
}

.thread-header,
.ai-placeholder,
.comment-form,
.comment-card {
  border-radius: 26px;
}

.thread-header {
  margin-top: 16px;
  padding: 22px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 700;
}

.thread-header h1 {
  margin: 14px 0 10px;
  font-size: clamp(34px, 10vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.ai-placeholder {
  margin: 14px 0;
  padding: 18px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(37, 99, 235, 0.12));
}

.ai-placeholder span {
  font-weight: 800;
}

.comments-list {
  display: grid;
  gap: 12px;
}

.comment-card {
  padding: 18px;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.comment-meta strong {
  color: var(--text);
}

.comment-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 18px;
}

.comment-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  color: var(--text);
  background: rgba(7, 7, 10, 0.78);
  font: inherit;
}

.comment-form textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 42px;
  }

  .phone-preview {
    min-height: 360px;
  }

  .grid-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
  }

  .hero-actions,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .nav {
    border-radius: 18px;
  }
}
