:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --text: #111111;
  --text-muted: #444444;
  --line: #e0e0e0;
  --link: #111111;
  --link-underline: #333333;
  --accent: #111111;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-strong: 0 8px 32px rgba(0, 0, 0, 0.12);
  --glow: 0 0 40px rgba(0, 0, 0, 0.08);
  --glow-strong: 0 0 60px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

@media (pointer: coarse) {
  .btn-verify,
  .btn-follow,
  .strip .btn,
  .btn-submit,
  .btn-gh {
    min-height: 48px;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

html {
  scroll-behavior: smooth;
}

section[id],
#verify {
  scroll-margin-top: 5rem;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 64px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

@media (min-width: 768px) {
  .wrap {
    padding: 0 32px 96px;
    padding-left: max(32px, env(safe-area-inset-left));
    padding-right: max(32px, env(safe-area-inset-right));
  }
}

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  position: relative;
}

.site-header .wrap,
.site-header .header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
}

.logo {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
  padding: 6px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

.logo-img {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  border-radius: 6px;
}

.logo-text {
  display: inline-block;
}

.logo-text-short {
  display: none;
}

@media (max-width: 767px) {
  .logo-text-long {
    display: none;
  }
  .logo-text-short {
    display: inline-block;
  }
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
  .site-header .header-wrap {
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    display: none;
  }

  .site-header.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 14px 20px;
    min-height: 48px;
    justify-content: flex-start;
    font-size: 0.9375rem;
    border-radius: 0;
  }
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 8px 10px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links a:hover {
    color: var(--text);
  }
}

.page-one {
  padding: 32px 0 40px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 32px);
  text-align: center;
}

@media (min-width: 768px) {
  .page-one {
    padding: 48px 0 56px;
  }
}

.page-one-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px 0;
  text-align: left;
}

@media (min-width: 900px) {
  .page-one-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }
}

.page-one-left {
  min-width: 0;
}

@media (max-width: 899px) {
  .page-one-wrap {
    text-align: center;
  }
  .page-one-left {
    text-align: center;
  }
}

.page-one-headline {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text);
}

@media (min-width: 768px) {
  .page-one-headline {
    font-size: 2.5rem;
    margin-bottom: 16px;
  }
}

.hero-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.page-one-mission {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .page-one-mission {
    font-size: 1rem;
  }
}

.follow-cta {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.follow-cta-text {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.btn-follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 24px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.btn-follow:hover {
  opacity: 0.92;
  color: var(--bg);
  text-decoration: none;
  box-shadow: var(--glow);
}

.follow-cta-note {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.page-one-right {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

.verify-bubble {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 24px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-strong);
  text-align: center;
}

.verify-bubble-label {
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}

.verify-bubble-text {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  line-height: 1.55;
  opacity: 0.95;
}

.verify-bubble-contact {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  word-break: break-word;
}

.verify-bubble-contact a {
  color: var(--bg);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 8px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.verify-bubble-contact a:hover {
  opacity: 0.9;
}

.btn-verify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 160px;
  padding: 14px 24px;
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  transition: opacity 0.2s ease;
}

.btn-verify:hover {
  opacity: 0.92;
  color: var(--text);
  text-decoration: none;
}

.scroll-hint {
  margin: 24px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-align: center;
}

.section {
  padding: 36px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 48px 0;
  }
}

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
}

.section-heading {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

@media (min-width: 768px) {
  .section-heading {
    font-size: 1.75rem;
    margin-bottom: 28px;
  }
}

.lead {
  max-width: 64ch;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 32px;
}

.lead-tight {
  margin: 0 0 24px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-strong);
  border-color: #ccc;
}

.card.card-glow:hover {
  box-shadow: var(--shadow-strong), var(--glow);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.card p + p {
  margin-top: 12px;
}

.card ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.card li {
  margin: 6px 0;
}

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

.dev-block {
  margin-top: 32px;
  max-width: 560px;
  padding: 24px;
  background: linear-gradient(145deg, #0d1117 0%, #161b22 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.dev-block-title {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #e6edf3;
}

.dev-block-desc {
  margin: 0 0 16px;
  font-size: 0.875rem;
  color: #8b949e;
  line-height: 1.5;
}

.dev-cli {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: #010409;
  border: 1px solid #30363d;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Monaco, Consolas, monospace;
  font-size: 0.875rem;
}

.dev-cli-prompt {
  color: #3fb950;
  user-select: none;
}

.dev-cli code {
  color: #e6edf3;
  letter-spacing: 0.02em;
}

.dev-block-meta {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  color: #8b949e;
}

.dev-block-meta a {
  color: #58a6ff;
  text-decoration: none;
}

.dev-block-meta a:hover {
  text-decoration: underline;
}

.btn-gh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  background: #238636;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: inherit;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s ease;
}

.btn-gh:hover {
  background: #2ea043;
  color: #fff;
  text-decoration: none;
}

.card-title-inline {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.team-blurb {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.trust-note {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.impact-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

@media (min-width: 600px) {
  .impact-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.impact-stat {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.impact-stat span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.1;
}

.impact-stat p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.strip {
  background: var(--text);
  color: var(--bg);
  padding: 48px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 48px 0;
  box-shadow: var(--glow-strong);
}

@media (min-width: 768px) {
  .strip {
    padding: 64px 48px;
    margin: 64px 0;
  }
}

.strip h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .strip h2 {
    font-size: 1.75rem;
  }
}

.strip p {
  margin: 0 auto 24px;
  max-width: 480px;
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.6;
}

.strip .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 120px;
  padding: 14px 28px;
  background: var(--bg);
  color: var(--text);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.strip .btn:hover {
  opacity: 0.92;
  text-decoration: none;
  box-shadow: var(--glow);
}

.strip .btn:focus-visible {
  outline: 2px solid var(--bg);
  outline-offset: 3px;
}

.kv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 20px;
}

.kv .row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.kv .row:last-child {
  border-bottom: 0;
}

.kv .k {
  font-weight: 600;
  color: var(--text);
}

.kv .v {
  color: var(--text-muted);
  word-break: break-word;
}

.kv .v a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kv .v a:hover {
  color: var(--text);
}

.verification-block {
  margin-top: 24px;
  padding: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.verification-block strong {
  color: var(--text);
}

.verify-one-liner {
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.verify-detail {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

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

.volunteer-form .form-group {
  margin-bottom: 20px;
}

.volunteer-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.volunteer-form .required {
  font-weight: 400;
  color: var(--text-muted);
}

.volunteer-form .label-block {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.volunteer-form input[type="text"],
.volunteer-form input[type="email"],
.volunteer-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.volunteer-form input:focus,
.volunteer-form textarea:focus {
  outline: none;
  border-color: var(--text);
}

.volunteer-form textarea {
  resize: vertical;
  min-height: 80px;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.checkbox-label input {
  width: 18px;
  height: 18px;
  min-width: 18px;
  cursor: pointer;
}

.checkbox-required {
  max-width: 36em;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: inherit;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
  opacity: 0.92;
  box-shadow: var(--glow);
}

.btn-submit:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.callout {
  margin-top: 20px;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.callout strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  color: var(--text);
}

.callout p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer {
  margin-top: 48px;
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.footer a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 6px 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer a:hover {
  color: var(--link-underline);
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 767px) {
  .kv .row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
