:root {
  --bg: #faf5ed;
  --paper: #fff9f1;
  --surface: #ffffff;
  --ink: #2c2723;
  --ink-soft: #4b443a;
  --muted: #6b6255;
  --line: #e7ddcc;
  --line-strong: #d8c8b4;
  --blue: #5b8ea7;
  --blue-dark: #3a6d87;
  --teal: #6f8d58;
  --teal-soft: #e8f0dd;
  --coral: #5b8ea7;
  --amber: #b7791f;
  --green: #5da06a;
  --rose: #c2415a;
  --dark: #221f1a;
  --dark-soft: #302a23;
  --shadow: 0 24px 60px rgba(44, 39, 35, 0.13);
  --shadow-soft: 0 14px 34px rgba(44, 39, 35, 0.08);
  --radius: 8px;
  --radius-lg: 18px;
  --container: 1180px;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "PT Sans", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

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

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

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(227, 218, 203, 0.78);
  background: rgba(247, 243, 234, 0.88);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--ink);
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: 19px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #111410;
  box-shadow: 0 10px 22px rgba(17, 20, 16, 0.16);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand .brand-domain {
  color: var(--coral);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav a,
.mobile-nav a {
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 750;
  padding: 10px 12px;
  transition: color 160ms ease, background 160ms ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  background: #ddeaf2;
  color: var(--blue-dark);
}

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

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.mobile-nav {
  display: none;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.1;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

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

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 26px rgba(91, 142, 167, 0.28);
}

.btn-primary:hover {
  background: var(--blue-dark);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}

.btn-dark:hover {
  background: #142238;
}

.btn-light {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.btn-light:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-wide {
  width: 100%;
}

.hero-home {
  position: relative;
  min-height: clamp(590px, 80svh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}

.hero-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(34, 31, 26, 0.9) 0%, rgba(34, 31, 26, 0.7) 42%, rgba(34, 31, 26, 0.22) 100%),
    linear-gradient(180deg, rgba(91, 142, 167, 0.07), rgba(34, 31, 26, 0.32));
}

.hero-content {
  position: relative;
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  padding: 72px 0;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(300px, 0.6fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.hero-copy {
  max-width: 670px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: #c5dff0;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: #c5dff0;
}

.hero-title {
  margin: 0;
  max-width: 770px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

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

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 249, 241, 0.97), rgba(240, 248, 254, 0.92)),
    radial-gradient(circle at 88% 12%, rgba(91, 142, 167, 0.14), transparent 9rem);
  color: var(--ink);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 120px;
  height: 120px;
  border-radius: 0 16px 0 100%;
  background: rgba(91, 142, 167, 0.1);
  pointer-events: none;
}

.curator-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  z-index: 1;
}

.curator-avatar {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  border: 3px solid #fffaf1;
  border-radius: 18px;
  object-fit: cover;
  object-position: center 28%;
  background: #f6e2d6;
  box-shadow: 0 16px 34px rgba(44, 39, 35, 0.22);
}

.curator-role {
  color: #a98f78;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.curator-name {
  margin-top: 2px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

.curator-text {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  z-index: 1;
}

.curator-list {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  z-index: 1;
}

.curator-list span {
  display: flex;
  gap: 9px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 750;
}

.curator-list span::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--green);
}

.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 750;
}

.proof-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-soft);
}

.section {
  padding: clamp(64px, 8vw, 104px) 0;
}

.section-tight {
  padding: clamp(42px, 6vw, 74px) 0;
}

.section-alt {
  background: #fffaf2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark {
  background: var(--dark);
  color: #fff;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head.center {
  display: block;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.section-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-dark .section-title {
  color: #fff;
}

.section-text {
  margin: 14px 0 0;
  max-width: 690px;
  color: var(--muted);
  font-size: 17px;
}

.section-dark .section-text {
  color: rgba(255, 255, 255, 0.72);
}

.overline {
  display: block;
  margin-bottom: 12px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.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 {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.card-pad {
  padding: clamp(22px, 3vw, 30px);
}

.feature-card,
.tool-card,
.service-card,
.article-card,
.example-card,
.document-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.feature-card {
  gap: 14px;
}

.feature-card h3,
.tool-card h3,
.service-card h3,
.article-card h3,
.example-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.18;
}

.feature-card p,
.tool-card p,
.service-card p,
.article-card p,
.example-card p {
  margin: 0;
  color: var(--muted);
}

.icon-box {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 950;
}

.service-card {
  gap: 18px;
  justify-content: space-between;
}

.service-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.price {
  color: var(--blue);
  font-size: 24px;
  font-weight: 950;
}

.link-arrow {
  color: var(--blue);
  font-weight: 900;
}

.tool-card {
  gap: 16px;
  justify-content: space-between;
}

.tool-tag {
  align-self: flex-start;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--teal-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.stat-item {
  min-height: 136px;
  padding: 24px;
  background: var(--paper);
}

.stat-number {
  display: block;
  color: var(--ink);
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 950;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-weight: 700;
}

.page-hero {
  padding: clamp(54px, 8vw, 88px) 0 clamp(42px, 6vw, 70px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(255, 249, 241, 0.97), rgba(210, 232, 244, 0.6)),
    var(--bg);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.48fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: end;
}

.page-title {
  margin: 0;
  max-width: 820px;
  color: var(--ink);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

.page-lead {
  margin: 18px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.page-aside {
  border-left: 3px solid var(--coral);
  padding: 8px 0 8px 20px;
  color: var(--ink-soft);
  font-weight: 750;
}

.form-shell {
  width: min(100% - 32px, 880px);
  margin-inline: auto;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

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

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(91, 142, 167, 0.14);
}

.notice {
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 750;
}

.notice-success {
  border: 1px solid rgba(25, 135, 84, 0.2);
  background: rgba(25, 135, 84, 0.08);
  color: #11633d;
}

.notice-error {
  border: 1px solid rgba(194, 65, 90, 0.22);
  background: rgba(194, 65, 90, 0.08);
  color: var(--rose);
}

.tool-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  gap: 20px;
  align-items: start;
}

.tool-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-soft);
}

.tool-panel h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.tool-output {
  min-height: 188px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf6;
  color: var(--ink-soft);
  padding: 16px;
  white-space: pre-line;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.6;
}

.output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 210px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fbfaf6;
  padding: 26px;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease;
}

.drop-zone.is-active {
  border-color: var(--teal);
  background: var(--teal-soft);
}

.drop-zone strong {
  display: block;
  margin-bottom: 6px;
}

.file-name {
  margin-top: 12px;
  color: var(--teal);
  font-weight: 900;
  word-break: break-word;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  min-height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: linear-gradient(145deg, #302a23 0%, #2a2420 100%);
  padding: 28px 24px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(91, 142, 167, 0.9) 0%, rgba(91, 142, 167, 0.2) 100%);
  border-radius: 16px 16px 0 0;
}

.contact-card:hover {
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.44);
}

.contact-card strong {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.contact-card span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 700;
}

.contact-card .btn {
  margin-top: auto;
}

.contact-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.channel-badge {
  display: inline-flex;
  align-self: flex-start;
  border-radius: 999px;
  border: 1px solid rgba(217, 243, 238, 0.28);
  padding: 5px 9px;
  color: #d9f3ee;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.examples-list {
  display: grid;
  gap: 14px;
}

.example-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

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

.document-thumb {
  display: grid;
  place-items: center;
  height: 280px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf6;
  overflow: hidden;
}

.document-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(8, 17, 31, 0.84);
}

.modal.is-open {
  display: flex;
}

.modal img {
  max-width: min(100%, 980px);
  max-height: 88vh;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.modal-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.empty-state {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  padding: 32px;
  color: var(--muted);
  text-align: center;
  font-weight: 750;
}

.seo-copy {
  columns: 2 320px;
  column-gap: 44px;
  color: var(--ink-soft);
  font-size: 16px;
}

.seo-copy p {
  margin-top: 0;
}

/* ── Marquee ticker ── */
.ticker-wrap {
  overflow: hidden;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 13px 0;
}

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker-scroll 38s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.ticker-item .ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

.ticker-item strong {
  color: #fff;
  font-weight: 900;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.site-footer {
  background: var(--dark);
  color: #fff;
  padding: 44px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr;
  gap: 28px;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 950;
}

.footer-text {
  margin: 0;
  max-width: 440px;
  color: rgba(255, 255, 255, 0.62);
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 700;
}

.footer-links a:hover {
  color: #fff;
}

.footer-socials {
  gap: 4px;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 160ms ease;
}

.footer-social:hover {
  background: rgba(255, 255, 255, 0.08);
}

.footer-social img {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.copyright {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.community-popup {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 240;
  width: min(440px, calc(100vw - 32px));
  border: 1px solid rgba(227, 218, 203, 0.7);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 32px 80px rgba(17, 20, 16, 0.26), 0 8px 24px rgba(17, 20, 16, 0.12);
  padding: 20px;
  opacity: 0;
  transform: translateY(22px) scale(0.97);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
  backdrop-filter: blur(20px);
}

.community-popup.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.community-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.community-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--coral);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.community-title {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
}

.community-close {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.community-text {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

.community-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.community-link:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 6px 18px rgba(91, 142, 167, 0.15);
}

.community-link strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.community-link em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
}

.community-link img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
  border-radius: 9px;
}

.referral-note {
  margin-top: 14px;
  border: 1px solid rgba(91, 142, 167, 0.26);
  border-radius: 10px;
  background: #eef5fa;
  padding: 13px;
}

.referral-note strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.referral-note p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-actions .btn {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-nav {
    position: fixed;
    inset: 76px 0 auto;
    display: grid;
    gap: 4px;
    padding: 18px 16px 22px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  body.nav-open .mobile-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .page-hero-inner,
  .hero-content,
  .tool-workspace,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 560px;
  }

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

  .section-head {
    display: block;
  }
}

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

  .header-inner {
    min-height: 68px;
  }

  .mobile-nav {
    inset: 68px 0 auto;
  }

  .hero-home {
    min-height: clamp(560px, 82svh, 720px);
    background-position: 62% center;
  }

  .hero-content {
    width: min(100% - 24px, var(--container));
    padding: 54px 0;
  }

  .hero-title {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero-actions,
  .section-actions,
  .output-actions {
    display: grid;
  }

  .hero-actions .btn,
  .section-actions .btn,
  .output-actions .btn {
    width: 100%;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .document-grid,
  .stats-band,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .stat-item {
    min-height: 112px;
  }

  .example-card {
    grid-template-columns: 1fr;
  }

  .page-aside {
    border-left: 0;
    border-top: 3px solid var(--coral);
    padding: 16px 0 0;
  }

  .community-popup {
    right: 10px;
    bottom: 10px;
    width: min(340px, calc(100vw - 20px));
    padding: 12px;
    border-radius: 12px;
  }

  .community-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
  }

  .community-title {
    font-size: 16px;
  }

  .community-kicker {
    font-size: 9px;
  }

  .community-text {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.35;
  }

  .community-link {
    min-height: 54px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 4px;
    text-align: center;
  }

  .community-link img {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .community-link strong {
    font-size: 11px;
  }

  .community-link em {
    display: none;
  }

  .community-close {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .referral-note {
    margin-top: 10px;
    padding: 10px;
  }

  .referral-note strong {
    font-size: 13px;
  }

  .referral-note p {
    font-size: 12px;
    line-height: 1.35;
  }

  .ticker-item {
    padding: 0 18px;
    font-size: 12px;
  }

  .contact-card {
    min-height: auto;
    padding: 22px 18px 18px;
  }

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

  .footer-social {
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
  }

  .footer-social:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
  }
}

@media (max-width: 400px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .footer-socials {
    grid-template-columns: 1fr;
  }
}
