/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #000;
  --white: #fff;
  --teal: #4C969C;
  --teal-dark: #386e73;
  --yellow: #fec50d;
  --red: rgb(201, 0, 0);
  --blue: #0d21ff;
  --gray: rgb(102, 102, 102);
  --gray-light: rgb(153, 153, 153);
  --gray-border: rgba(0, 0, 0, 0.08);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ── Layout ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ── */
.nav {
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-border);
  background: var(--white);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.nav-logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--black);
  padding: 8px 16px;
  border-radius: 10px;
  transition: background 0.2s;
}

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

.nav-links a.active {
  color: var(--teal);
}

/* ── Hero ── */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  text-align: center;
}

.hero-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 40px;
}

.hero .tagline {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray);
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

.hero-links {
  display: flex;
  gap: 36px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.hero-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--teal);
  transition: opacity 0.2s;
  cursor: pointer;
}

.hero-link:hover {
  opacity: 0.7;
}

.hero-link--contact {
  color: var(--teal);
}

/* ── Contact Modal ── */
.contact-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 100;
  align-items: center;
  justify-content: center;
}

.contact-overlay.active {
  display: flex;
}

.contact-modal {
  background: var(--white);
  border-radius: 16px;
  padding: 32px;
  min-width: 320px;
  max-width: 400px;
  text-align: center;
}

.contact-modal h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.contact-option {
  display: block;
  width: 100%;
  padding: 14px 20px;
  margin-bottom: 12px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: var(--font-body);
  border: 1px solid var(--gray-border);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
}

.contact-option:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--gray-light);
}

.contact-option--primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.contact-option--primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.contact-cancel {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--gray-light);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
}

.contact-cancel:hover {
  color: var(--gray);
}

/* ── Page Header ── */
.page-header {
  padding: 80px 0 40px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 700px;
  margin: 0 auto;
}

.page-header p {
  color: var(--gray);
  font-size: 1.1rem;
  margin-top: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Plan Page ── */
.plan-section {
  padding: 40px 0 80px;
}

.org-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.org-card {
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  padding: 20px 24px;
  transition: border-color 0.2s;
}

.org-card:hover {
  border-color: var(--teal);
}

.org-card .org-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.org-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.org-pct {
  background: rgba(76, 150, 156, 0.12);
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.org-card p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.org-card a.org-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.org-card a.org-link:hover {
  border-color: var(--teal);
}

.disclaimer {
  margin-top: 48px;
  padding: 20px 24px;
  background: #f9f9f9;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ── Projects Page ── */
.projects-section {
  padding: 40px 0 80px;
}

.category {
  margin-bottom: 56px;
}

.category h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--black);
  display: inline-block;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.project-card {
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.project-card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.project-card .project-desc {
  font-size: 0.9rem;
  color: var(--gray);
}

.project-card .badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
  width: fit-content;
}

.badge-puzzle { background: #e5f4f5; color: var(--teal); }
.badge-motivation { background: #fff8e0; color: #b08d00; }
.badge-soon { background: #f0f0f0; color: var(--gray); }

/* ── About Page ── */
.about-section {
  padding: 40px 0 80px;
}

.about-content {
  max-width: 640px;
  margin: 0 auto;
}

.about-photo {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 32px;
}

.about-content p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #333;
  margin-bottom: 24px;
}

.about-content a {
  color: var(--teal);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.about-content a:hover {
  border-color: var(--teal);
}

/* ── Legal Pages ── */
.legal-section {
  padding: 40px 0 80px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.35rem;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal-content p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-content ul {
  margin: 8px 0 16px 24px;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 4px;
}

.legal-content .last-updated {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--gray-border);
  padding: 32px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.footer-brand-area img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--gray);
}

.footer h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-light);
  margin-bottom: 12px;
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 6px;
}

.footer li a {
  font-size: 0.8rem;
  color: var(--gray);
  transition: color 0.2s;
}

.footer li a:hover {
  color: var(--black);
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-border);
  font-size: 0.75rem;
  color: var(--gray-light);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-link {
    font-size: 1.25rem;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .hero-links {
    gap: 24px;
  }

  .page-header {
    padding: 60px 0 30px;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .org-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 4px;
  }

  .nav-links a {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.35rem;
  }

  .hero-link {
    font-size: 1.15rem;
  }

  .hero-links {
    flex-direction: column;
    gap: 20px;
  }

  .nav .container {
    flex-direction: column;
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
