:root {
  --cream: #fdf8f3;
  --ink: #1a1614;
  --muted: #6f645c;
  --line: rgba(26, 22, 20, 0.1);
  --coral: #ff5c3d;
  --coral-dark: #dd4326;
  --violet: #6c5ce7;
  --card: #ffffff;
  --radius: 20px;
  --shadow-sm: 0 1px 2px rgba(26, 22, 20, 0.06), 0 8px 24px -16px rgba(26, 22, 20, 0.25);
  --shadow-md: 0 24px 60px -30px rgba(26, 22, 20, 0.35);
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.025em; margin: 0; font-weight: 800; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── background blobs ───────────────────────────────────── */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs span { position: absolute; display: block; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.bg-blobs span:nth-child(1) { width: 46vw; height: 46vw; background: #ffd0c2; top: -14vw; right: -8vw; }
.bg-blobs span:nth-child(2) { width: 34vw; height: 34vw; background: #d7d2ff; top: 42vh; left: -12vw; }
.bg-blobs span:nth-child(3) { width: 30vw; height: 30vw; background: #ffe9b8; bottom: -12vw; right: 10vw; }

/* ── nav ────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  max-width: var(--max); margin: 0 auto; padding: 16px 20px;
  backdrop-filter: blur(14px);
  background: rgba(253, 248, 243, 0.78);
  border-bottom: 1px solid transparent;
}
.nav-links { display: none; gap: 26px; margin-left: auto; font-size: 0.94rem; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav .btn { margin-left: auto; }
.nav-links + .btn { margin-left: 0; }

.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -0.03em; font-size: 1.05rem; }
.brand .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--coral); display: inline-block; }
.brand-mark { color: var(--coral); }

/* ── buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 10px 26px -12px rgba(26, 22, 20, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); background: #000; }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: rgba(255, 255, 255, 0.72); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: #fff; border-color: rgba(26, 22, 20, 0.24); transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ── hero ───────────────────────────────────────────────── */
main { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.hero {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  padding: 40px 0 60px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line);
  padding: 7px 15px; border-radius: 999px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #2fc07a; box-shadow: 0 0 0 0 rgba(47, 192, 122, 0.6); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 192, 122, 0.55); }
  70% { box-shadow: 0 0 0 11px rgba(47, 192, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 192, 122, 0); }
}

.hero h1 { font-size: clamp(2.9rem, 11vw, 5.2rem); margin: 18px 0 0; }
.grad {
  background: linear-gradient(100deg, var(--coral) 10%, var(--violet) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wave { display: inline-block; transform-origin: 70% 80%; animation: wave 2.6s ease-in-out infinite; }
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  70% { transform: rotate(16deg); }
  80% { transform: rotate(-9deg); }
  90% { transform: rotate(11deg); }
}
.lede { color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.14rem); max-width: 46ch; margin: 20px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.counter { margin-top: 22px; color: var(--muted); font-size: 0.92rem; }
.counter strong { color: var(--ink); font-size: 1.05rem; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 26px; box-shadow: var(--shadow-md);
  border: 6px solid #fff;
}
.float-card {
  position: absolute; left: 12px; bottom: -18px;
  display: flex; gap: 11px; align-items: flex-start;
  background: #fff; border-radius: 16px; padding: 13px 17px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  max-width: 260px; font-size: 0.88rem; font-weight: 500;
}
.float-card i { color: var(--coral); font-size: 0.8rem; margin-top: 4px; }

/* ── sections ───────────────────────────────────────────── */
.section-head { max-width: 56ch; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); margin-bottom: 10px; }
.section-head p { color: var(--muted); }

section { padding: 56px 0; scroll-margin-top: 84px; }

/* ── wall ───────────────────────────────────────────────── */
.wall-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }

.hello-form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.hello-form h3 { font-size: 1.15rem; margin-bottom: 4px; }
.hello-form label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin: 16px 0 7px;
}
.hello-form input, .hello-form textarea {
  font: inherit; font-size: 0.96rem; color: var(--ink);
  background: #fbf6f0; border: 1px solid var(--line); border-radius: 13px;
  padding: 12px 14px; width: 100%; resize: vertical;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.hello-form input:focus, .hello-form textarea:focus {
  outline: none; background: #fff; border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 92, 61, 0.14);
}
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 0.86rem; }
.status { font-size: 0.88rem; margin-top: 12px; min-height: 1.3em; }
.status.ok { color: #1f8a52; font-weight: 600; }
.status.err { color: var(--coral-dark); font-weight: 600; }

.wall-list-wrap {
  background: rgba(255, 255, 255, 0.55); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  min-height: 320px;
}
.wall-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hello-card {
  display: flex; gap: 13px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; box-shadow: 0 1px 2px rgba(26, 22, 20, 0.04);
  animation: rise 0.32s ease both;
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.avatar {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 1rem; color: #fff;
}
.hello-body { min-width: 0; }
.hello-meta { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.hello-meta strong { font-size: 0.95rem; }
.hello-meta span { font-size: 0.76rem; color: var(--muted); }
.hello-msg { font-size: 0.95rem; margin-top: 3px; overflow-wrap: anywhere; }

.empty { color: var(--muted); text-align: center; padding: 42px 12px; font-size: 0.95rem; }
.loading-line { padding: 8px 4px; }
.wall-more-wrap { display: flex; justify-content: center; margin-top: 16px; }

/* ── features ───────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-icon {
  display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 14px; background: linear-gradient(135deg, #ffe3da, #ece7ff);
  color: var(--coral-dark); font-size: 1.15rem; margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.95rem; }

/* ── story ──────────────────────────────────────────────── */
.story { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.story-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-md); border: 6px solid #fff; }
.story-copy h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin-bottom: 14px; }
.story-copy p { color: var(--muted); max-width: 48ch; }
.story-copy blockquote {
  margin: 24px 0; padding: 18px 20px; border-left: 3px solid var(--coral);
  background: rgba(255, 255, 255, 0.72); border-radius: 0 14px 14px 0;
  font-size: 1.02rem; font-weight: 500; color: var(--ink);
}
.story-copy blockquote i { color: var(--coral); margin-right: 8px; }

/* ── footer ─────────────────────────────────────────────── */
.footer {
  max-width: var(--max); margin: 0 auto; padding: 40px 20px 60px;
  border-top: 1px solid var(--line); margin-top: 40px;
  display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem;
}

/* ── tablet ─────────────────────────────────────────────── */
@media (min-width: 768px) {
  .nav { padding: 18px 32px; }
  .nav-links { display: flex; }
  .nav .btn { margin-left: 0; }
  .nav-links { margin-left: auto; }
  main { padding: 0 32px; }
  .hero { padding: 56px 0 80px; gap: 48px; }
  .wall-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 28px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .story { grid-template-columns: 1fr 1fr; gap: 44px; }
  .hello-form { position: sticky; top: 92px; }
  .footer { flex-direction: row; justify-content: space-between; padding: 44px 32px 64px; }
}

/* ── desktop ────────────────────────────────────────────── */
@media (min-width: 1024px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; padding: 72px 0 96px; }
  section { padding: 72px 0; }
  .wall-list-wrap { padding: 22px; }
  .wall-list { gap: 14px; }
  .hello-form { padding: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
