:root {
  --bg: #0d0f12;
  --surface: #171a1f;
  --surface-2: #20242b;
  --text: #f5f6f7;
  --muted: #a8adb6;
  --line: #303640;
  --accent: #ff4d35;
  --accent-hover: #ff654f;
  --max: 1060px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 76px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 15%, rgba(255,77,53,.18), transparent 30%),
    linear-gradient(145deg, #111419, #090b0d);
}
.hero::after {
  content: "HN";
  position: absolute;
  right: -30px;
  bottom: -100px;
  font-size: clamp(180px, 32vw, 430px);
  font-weight: 900;
  letter-spacing: -0.1em;
  color: rgba(255,255,255,.025);
  pointer-events: none;
}
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 800;
  font-size: .76rem;
  letter-spacing: .14em;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin: 14px 0 22px;
  max-width: 760px;
  font-size: clamp(3rem, 9vw, 6.8rem);
  line-height: .93;
  letter-spacing: -.065em;
}
h1 span { color: var(--accent); }
.hero p {
  max-width: 620px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}
.primary, .secondary {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
}
.primary { background: var(--accent); color: white; }
.primary:hover { background: var(--accent-hover); }
.secondary { background: transparent; border-color: var(--line); color: var(--text); }
.secondary:hover { background: var(--surface-2); }

main { padding: 58px 0 90px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}
.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -.04em;
}
.meetup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.meetup-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.meetup-card:hover {
  border-color: #4b535f;
  transform: translateY(-2px);
  transition: .18s ease;
}
.card-date {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.meetup-card h3 { margin-bottom: 12px; font-size: 1.55rem; line-height: 1.12; }
.meta { display: grid; gap: 8px; margin-bottom: 16px; color: var(--muted); }
.meta strong { color: var(--text); }
.description { margin-bottom: 20px; color: #d3d6db; white-space: pre-wrap; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.organizer { color: var(--muted); font-size: .88rem; }
.whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 11px;
  background: #22c763;
  color: #07130b;
  font-weight: 900;
  text-decoration: none;
}
.whatsapp:hover { filter: brightness(1.08); }
.status { min-height: 24px; margin-bottom: 14px; color: var(--muted); }
.status.error { color: #ff8777; }
.status.success { color: #78e6a1; }
.empty-state {
  padding: 70px 22px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  text-align: center;
  background: var(--surface);
}
.empty-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  font-size: 2rem;
  font-weight: 300;
}

.legal-notice {
  margin-top: 42px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--surface), #111419);
}
.legal-notice h2 {
  margin: 8px 0 16px;
  font-size: clamp(1.55rem, 4vw, 2.25rem);
  letter-spacing: -.03em;
}
.legal-notice p { max-width: 850px; color: #d3d6db; }
.legal-notice .rules-note {
  margin-bottom: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

dialog {
  width: min(calc(100% - 24px), 650px);
  max-height: calc(100vh - 30px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
}
dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(5px); }
form { padding: 26px; }
.dialog-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.dialog-head h2 { margin: 6px 0 0; font-size: 2rem; }
.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 1.7rem;
  line-height: 1;
}
label { display: grid; gap: 7px; margin-bottom: 17px; font-weight: 750; }
input, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #101318;
  color: var(--text);
}
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,77,53,.13);
}
textarea { resize: vertical; }
small, .optional, .privacy-note { color: var(--muted); font-size: .82rem; font-weight: 450; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-label { grid-template-columns: auto 1fr; align-items: start; font-weight: 500; }
.check-label input { width: 18px; height: 18px; margin-top: 3px; }
.check-label a { text-decoration: underline; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }
.privacy-note { margin: 18px 0 0; text-align: center; }
.honeypot { position: fixed !important; left: -9999px !important; opacity: 0 !important; }

footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .85rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
footer a:hover { color: var(--text); }

.legal-page { padding: 46px 0 80px; }
.legal-header {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  background: #111419;
}
.back-link { display: inline-block; margin-bottom: 16px; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--text); }
.legal-page article {
  max-width: 800px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.legal-page h1 { margin: 0; font-size: clamp(2.4rem, 7vw, 4.5rem); }
.legal-page h2 { margin: 34px 0 12px; font-size: 1.35rem; }
.legal-page h2:first-child { margin-top: 0; }
.legal-page p, .legal-page li { color: #d3d6db; }
.legal-page ul { padding-left: 22px; }
.legal-page address { font-style: normal; color: #d3d6db; }

@media (max-width: 700px) {
  .hero { padding: 64px 0 58px; }
  .meetup-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; }
  .section-heading .secondary { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .card-footer { align-items: stretch; flex-direction: column; }
  .whatsapp { width: 100%; }
  .footer-inner { flex-direction: column; }
  .legal-page article { padding: 22px; }
}
