/* REZO ADNA — brand-aligned redesign */

:root {
  color-scheme: light dark;
  --blue: #3d7ab5;
  --blue-deep: #2a5f94;
  --ink: #0e1116;
  --ink-soft: #2a3140;
  --muted: #5c6678;
  --line: rgba(14, 17, 22, 0.1);
  --surface: #f5f7fa;
  --surface-alt: #ffffff;
  --band: #102038;
  --band-text: #f5f7fa;
  --cta-text: #ffffff;
  --radius: 14px;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --header-h: 76px;
  --shadow: 0 12px 40px rgba(16, 32, 56, 0.08);
  accent-color: var(--blue);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef2f7;
  --ink-soft: #c5cedb;
  --muted: #9aa6b8;
  --line: rgba(255, 255, 255, 0.12);
  --surface: #0b1220;
  --surface-alt: #121a2a;
  --band: #071018;
  --band-text: #eef2f7;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #eef2f7;
    --ink-soft: #c5cedb;
    --muted: #9aa6b8;
    --line: rgba(255, 255, 255, 0.12);
    --surface: #0b1220;
    --surface-alt: #121a2a;
    --band: #071018;
    --band-text: #eef2f7;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 2000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.narrow {
  width: min(720px, 100%);
}

.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-alt {
  background: var(--surface-alt);
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.75rem;
}

.section-head p {
  color: var(--muted);
  margin: 0.85rem 0 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 0.85rem;
}

html[data-theme="dark"] .eyebrow {
  color: #7eb3e0;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .eyebrow {
    color: #7eb3e0;
  }
}

.eyebrow.light {
  color: #9cc7ea;
}

/* Header */
.site-header {
  background: rgba(16, 32, 56, 0.94);
  backdrop-filter: blur(12px);
  min-height: var(--header-h);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  background: rgba(10, 20, 36, 0.98);
}

.nav-inner {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.04em;
}

.site-header .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500;
  padding: 0.55rem 0.7rem !important;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus-visible {
  color: #9cc7ea !important;
}

.toolbar {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.4rem 0;
}

.ctrl-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.ctrl-btn:hover,
.ctrl-btn:focus-visible {
  border-color: #9cc7ea;
  color: #9cc7ea;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: var(--cta-text) !important;
  border: 1px solid transparent;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.75rem 1.35rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-cta:hover,
.btn-cta:focus-visible {
  background: var(--blue-deep);
  color: #fff !important;
}

.btn-cta.outline {
  background: transparent;
  color: var(--blue-deep) !important;
  border-color: var(--blue);
}

html[data-theme="dark"] .btn-cta.outline {
  color: #9cc7ea !important;
}

.btn-ghost {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 5px;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0.5rem;
}

.btn-ghost:hover {
  color: #9cc7ea;
}

/* Hero — centered composition */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--header-h) + 2rem) 1rem 4rem;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 50% at 50% 20%, rgba(61, 122, 181, 0.35), transparent 60%),
    linear-gradient(165deg, #0a1526 0%, #102038 45%, #0a1526 100%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 44rem;
}

.hero-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
  padding: 0.45rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9cc7ea;
  margin: 0 0 1rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin: 0 0 1rem;
  max-width: 14ch;
}

.hero .lead {
  margin: 0 0 1.75rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  justify-content: center;
  align-items: center;
}

/* About */
.about-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.about-copy {
  text-align: left;
}

.media-frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: min(360px, 50vw);
  object-fit: cover;
}

/* Mission */
.pillars {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pillar-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 0.75rem;
  letter-spacing: 0.08em;
}

.pillar h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Community band */
.band {
  background: var(--band);
  color: var(--band-text);
  text-align: center;
}

.band-inner {
  max-width: 40rem;
  margin-inline: auto;
}

.band h2 {
  color: #fff;
  margin: 0 0 1rem;
}

.band p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 1.5rem;
}

/* Activities */
.activity-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .activity-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.activity {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.activity img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #1a2a40;
}

.activity-body {
  padding: 1.2rem 1.3rem 1.45rem;
  text-align: left;
}

.activity-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.activity-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Form */
.join-form {
  width: min(720px, 100%);
  margin: 0 auto;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  box-shadow: var(--shadow);
}

.field {
  margin-bottom: 0.25rem;
}

.join-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.req {
  color: var(--blue-deep);
}

.join-form input,
.join-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.join-form textarea {
  min-height: 140px;
  resize: vertical;
}

.join-form input:focus-visible,
.join-form textarea:focus-visible {
  outline: 3px solid rgba(61, 122, 181, 0.4);
  outline-offset: 2px;
  border-color: var(--blue);
}

.error-msg {
  display: none;
  color: #b42318;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.join-form input:user-invalid,
.join-form textarea:user-invalid {
  border-color: #b42318;
}

.join-form input:user-invalid + .error-msg,
.join-form textarea:user-invalid + .error-msg {
  display: block;
}

.form-actions {
  text-align: center;
  margin-top: 1.25rem;
}

.form-success {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: rgba(61, 122, 181, 0.12);
  color: var(--blue-deep);
  font-weight: 600;
  text-align: center;
}

html[data-theme="dark"] .form-success {
  color: #9cc7ea;
}

.form-success.is-visible {
  display: block;
}

.form-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 1rem 0 0;
}

.honey {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

.section-head .btn-cta {
  margin-top: 1.25rem;
}

.contact-channels {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 1rem;
  text-align: center;
}

.contact-list li {
  margin: 0.55rem 0;
}

.contact-list a {
  color: var(--blue-deep);
  font-weight: 600;
  text-decoration: none;
}

html[data-theme="dark"] .contact-list a {
  color: #9cc7ea;
}

.contact-list a:hover {
  text-decoration: underline;
}

.social-note {
  text-align: center;
  color: var(--muted);
  margin: 0;
}

/* Footer */
.site-footer {
  background: #0a1526;
  color: rgba(255, 255, 255, 0.78);
  padding: 2rem 1rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
}

.tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-copy {
  width: 100%;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Top button */
#topButton {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1040;
  min-width: 52px;
  height: 44px;
  padding: 0 0.9rem;
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  translate: 0 10px;
  transition: opacity 0.2s ease, visibility 0.2s ease, translate 0.2s ease;
}

#topButton.is-visible {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

@media (max-width: 991.98px) {
  .site-header .btn-cta {
    width: 100%;
    margin-top: 0.5rem;
  }

  .toolbar {
    margin: 0.35rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
