:root {
  --bg: #101213;
  --surface: #181b1d;
  --surface-soft: #202427;

  --text: #f4f6f4;
  --muted: #a5ada8;

  --green: #3db44b;
  --green-soft: #86ff5c;

  --purple: #8b5cf6;
  --purple-deep: #5b2a86;

  --blue: #3da5ff;
  --blue-soft: #78c4ff;

  --line: #30353a;

  --radius: 1rem;
  --container: 72rem;

}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: var(--text);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  line-height: 1.6;

  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(139, 92, 246, 0.16),
      transparent 28rem
    ),
    radial-gradient(
      circle at 15% 75%,
      rgba(61, 180, 75, 0.055),
      transparent 24rem
    ),
    var(--bg);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */

.site-header {
  background: rgba(16, 18, 19, 0.88);
  border-bottom: 1px solid var(--line);

  backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.brand-logo {
  width: 2.9rem;
  height: 2.9rem;
  padding: 0.12rem;
  object-fit: cover;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(61, 165, 255, 0.12);
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 4vw, 1.48rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.brand-blue {
  color: #188ed0;
}

.brand-green {
  color: #3db44b;
}

.brand:hover .brand-blue,
.brand:focus-visible .brand-blue {
  color: #45b8f2;
}

.brand:hover .brand-green,
.brand:focus-visible .brand-green {
  color: #71d66e;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  order: 3;
  width: 100%;
  padding-bottom: 0.75rem;
  overflow-x: auto;
}

nav a {
  font-size: 0.78rem;
  white-space: nowrap;
  text-decoration: none;
  font-weight: 600;
  color: var(--muted);
}

nav a[aria-current="page"] {
  color: var(--green);
}

nav a:hover,
nav a:focus-visible {
  color: var(--blue);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.header-actions .member-login-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.38rem 0.65rem;
  color: var(--text);
  border: 1px solid rgba(61, 180, 75, 0.55);
  border-radius: 999px;
  background: rgba(61, 180, 75, 0.08);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.header-actions .member-login-link:hover,
.header-actions .member-login-link:focus-visible {
  color: var(--text);
  border-color: var(--blue);
  background: rgba(61, 165, 255, 0.12);
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted);
}

.language-switcher button {
  padding: 0.3rem 0.45rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  cursor: pointer;
  font-weight: 800;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--green);
  border-color: var(--line);
}

/* Hero */

.hero {
  padding-block: 5rem 4rem;

  background:
    linear-gradient(
      135deg,
      rgba(139, 92, 246, 0.045),
      rgba(61, 180, 75, 0.015)
    );
}

.hero .container {
  max-width: 48rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 10vw, 5.5rem);
}

.hero-copy {
  margin-block: 1.5rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Actions */

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 3rem;
  padding: 0.8rem 1.1rem;

  border-radius: 999px;
  border: 1px solid transparent;

  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  color: #081006;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--green-soft);
  color: #081006;
}

.button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

a:hover,
a:focus-visible {
  color: var(--blue);
}

/* Intro */

.intro {
  padding-block: 4rem;

  background: rgba(24, 27, 29, 0.78);

  border-block: 1px solid var(--line);
}

.intro .container {
  max-width: 48rem;
}

.intro h2 {
  margin-top: 0;
  font-size: 2rem;
}

.intro p {
  max-width: 40rem;
  color: var(--muted);
}

/* Interior pages */

.join-hero,
.page-hero {
  padding-block: 3.5rem 2rem;
}

.join-hero .container,
.page-hero .container,
.join-section .container,
.content-section .container {
  max-width: 48rem;
}

.join-hero h1,
.page-hero h1 {
  font-size: clamp(2.5rem, 10vw, 4.5rem);
}

.join-section,
.content-section {
  padding-block: 1rem 4rem;
}

.content-card,
#membership-form,
.success-panel {
  padding: clamp(1.25rem, 4vw, 2rem);
  background: rgba(24, 27, 29, 0.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.18);
}

.content-card + .content-card {
  margin-top: 1rem;
}

.content-card h2,
.success-panel h2 {
  margin-top: 0;
}

.content-card p,
.content-card li,
.success-panel p {
  color: var(--muted);
}

.form-field {
  margin-bottom: 1.25rem;
}

.form-field-small {
  max-width: 18rem;
}

.form-field label,
.preferences legend {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 750;
}

.form-field label span,
.preferences legend span {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  color: var(--text);
  background: #101314;
  border: 1px solid #444b50;
  border-radius: 0.65rem;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #ff7a8a;
}

textarea {
  resize: vertical;
}

.form-field label .label-main,
.preferences legend .label-main {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.contact-card form {
  margin-top: 1.5rem;
}

.location-card address {
  margin: -0.5rem 0 1.25rem;
  color: var(--text);
  font-style: normal;
}

.map-embed {
  aspect-ratio: 16 / 10;
  margin: 0 0 1rem;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-link {
  display: inline-block;
  color: var(--blue-soft);
  font-weight: 700;
}

.field-help,
.form-status,
.field-error {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.field-error {
  color: #ff9ca7;
}

.preferences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}

.preferences legend {
  grid-column: 1 / -1;
}

.preferences label,
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.preferences label {
  padding: 0.7rem;
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: 0.65rem;
}

input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--green);
  flex: 0 0 auto;
}

.consent-list {
  display: grid;
  gap: 1rem;
  margin-block: 1.5rem;
}

.consent a,
.content-card a {
  color: var(--blue-soft);
}

.form-submit {
  width: 100%;
  cursor: pointer;
}

.form-alert {
  margin-bottom: 1.25rem;
  padding: 1rem;
  color: #ffd8dd;
  background: rgba(170, 35, 55, 0.18);
  border: 1px solid rgba(255, 122, 138, 0.5);
  border-radius: 0.65rem;
}

.form-alert ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.success-panel {
  border-color: rgba(61, 180, 75, 0.35);
}

.reference-line code {
  display: inline-block;
  padding: 0.2rem 0.4rem;
  color: var(--text);
  background: #0b0d0e;
  border-radius: 0.3rem;
  overflow-wrap: anywhere;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */

.site-footer {
  padding-block: 2rem;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer .member-login-link {
  color: var(--green);
  font-weight: 700;
}

/* Larger screens */

@media (min-width: 48rem) {
  nav {
    gap: 1rem;
    order: initial;
    width: auto;
    padding-bottom: 0;
  }

  nav a {
    font-size: 1rem;
  }

  .hero {
    padding-block: 7rem 6rem;
  }

  .hero-actions {
    flex-direction: row;
  }

  .preferences {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-submit {
    width: auto;
  }

  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
