/* Local Space Grotesk, dark-first glass theme with optional light surfaces */
@font-face {
  font-family: 'Space Grotesk';
  src: local('Space Grotesk Light'), url('assets/fonts/SpaceGrotesk-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: local('Space Grotesk Regular'), url('assets/fonts/SpaceGrotesk-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: local('Space Grotesk Medium'), url('assets/fonts/SpaceGrotesk-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: local('Space Grotesk SemiBold'), url('assets/fonts/SpaceGrotesk-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Space Grotesk';
  src: local('Space Grotesk Bold'), url('assets/fonts/SpaceGrotesk-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* New dark-first glass theme with optional light surfaces */
:root {
  --bg: #07090f;
  --surface: rgba(15, 17, 25, 0.70);
  --surface-strong: rgba(12, 14, 22, 0.78);
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-text: #e7ecf3;
  --surface-text-dim: #9aa8b8;
  --nav-bg: rgba(12, 14, 20, 0.88);
  --nav-border: rgba(255, 255, 255, 0.10);
  --nav-text: #e8edf2;
  --accent: #4bd8ff;
  --accent-2: #5df0c0;
  --btn-text: #0a0c12;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
  --panel-blur: 5px;
  --body-blur: 7px;
}

.theme-light {
  --surface: rgba(255, 255, 255, 0.85);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-border: rgba(0, 0, 0, 0.10);
  --surface-text: #0b1020;
  --surface-text-dim: #4c586b;
  --accent: #2fa8ff;
  --accent-2: #65d2b2;
  --btn-text: #0b1020;
  --shadow: 0 18px 44px rgba(20, 40, 80, 0.18);
  --panel-blur: 4px;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--surface-text);
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(91, 208, 255, 0.16), transparent 34%),
    radial-gradient(circle at 78% 12%, rgba(93, 240, 192, 0.14), transparent 32%),
    radial-gradient(circle at 62% 70%, rgba(91, 208, 255, 0.12), transparent 36%),
    url('assets/images/hero-office.png') center/cover no-repeat;
  filter: blur(var(--body-blur));
  transform: scale(1.04);
  opacity: 0.9;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(145deg, rgba(5,6,12,0.80), rgba(8,10,18,0.82));
  backdrop-filter: blur(2px);
  z-index: -1;
}

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

main {
  flex: 1 0 auto;
  width: 100%;
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(4px);
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 10px 16px 12px;
}

.branding {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 12px;
  padding: 0;
}

.brand-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text {
  line-height: 1.2;
  color: #f5f7fb;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-slogan {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(245, 247, 251, 0.82);
  display: block;
  margin-top: 2px;
}

.top-nav {
  padding: 0;
}

.top-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--nav-text);
  flex-wrap: wrap;
  justify-content: center;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  color: var(--nav-text);
  padding: 8px 10px;
  border-radius: 10px;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  border: 1px solid transparent;
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--nav-border);
}

.top-nav a.active {
  background: rgba(214, 180, 64, 0.14);
  border-color: rgba(214, 180, 64, 0.55);
  box-shadow: 0 6px 18px rgba(214, 180, 64, 0.28);
  color: #ffffff;
  text-shadow: none;
}

.lang-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lang-inline a {
  border: 1px solid var(--nav-border);
  border-radius: 10px;
  padding: 7px 12px;
}

.lang-inline a:hover {
  background: rgba(255, 255, 255, 0.10);
}

.lang-inline a.active {
  background: rgba(214, 180, 64, 0.14);
  border-color: rgba(214, 180, 64, 0.55);
  box-shadow: 0 6px 18px rgba(214, 180, 64, 0.28);
  color: #ffffff;
}

.theme-toggle-item {
  display: inline-flex;
}

.theme-toggle {
  border: 1px solid var(--surface-border);
  background: var(--surface);
  color: var(--surface-text);
  border-radius: 12px;
  padding: 5px 7px;
  min-width: 36px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow: var(--shadow);
  backdrop-filter: blur(3px);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.theme-toggle .label { display: none; }
.theme-toggle .icon {
  font-size: 22px;
  line-height: 1;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: scale(1.4);
  transform-origin: center;
}

.alert-success {
  background: linear-gradient(135deg, #1e5f3a, #0f3b28);
  border: 1px solid #4ae89d;
  color: #e8fff4;
  padding: 14px 16px;
  border-radius: 12px;
  margin: 0 0 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.content,
.form-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 16px 24px;
  flex: 1;
}

.content {
  text-align: center;
}

.section-label {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 32px 0 14px;
  filter: drop-shadow(0 0 10px rgba(214, 180, 64, 0.35));
}

.section-label.space-top {
  margin-top: 46px;
}

.label-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  background: var(--surface-strong);
  border: 1px solid rgba(214, 180, 64, 0.45);
  border-radius: 12px;
  color: var(--surface-text);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px rgba(214, 180, 64, 0.18), var(--shadow);
  backdrop-filter: blur(var(--panel-blur));
}

.feature-section { margin-top: 20px; display: grid; gap: 14px; }

.feature-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(320px, 1.15fr) auto;
  align-items: center;
  column-gap: 20px;
  row-gap: 18px;
  padding: 22px;
  background: var(--surface-strong);
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--panel-blur));
}

.feature-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-visual {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.feature-visual img {
  width: 190px;
  height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.25));
}

.feature-points {
  align-self: center;
  justify-self: stretch;
  max-width: 520px;
  width: 100%;
  padding-right: 12px;
}

.feature-bullets {
  margin: 0;
  padding-left: 20px;
  color: var(--surface-text-dim);
  text-align: left;
}

.feature-bullets li {
  margin-bottom: 10px;
  line-height: 1.4;
  white-space: nowrap;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--surface-text-dim);
}

.feature-text h1,
.feature-text h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.25;
  color: var(--surface-text);
}

.hero h1,
.form-head h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1.25;
  color: var(--surface-text);
}

.lede,
.form-head .lede {
  margin: 0;
  font-size: 16px;
  color: var(--surface-text-dim);
}

.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  padding: 9px 18px;
  min-width: 140px;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, filter 0.2s ease;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--btn-text);
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.btn.ghost {
  color: var(--surface-text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--surface-border);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--surface-border);
}

.hero-visual img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

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

.card {
  padding: 16px;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--panel-blur));
  text-align: left;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--surface-text);
}

.card p {
  margin: 0;
  color: var(--surface-text-dim);
  line-height: 1.5;
}

.site-footer {
  margin-top: 20px;
  background: rgba(12, 14, 20, 0.72);
  color: var(--nav-text);
  padding: 10px 14px 12px;
  text-align: center;
  backdrop-filter: blur(5px);
  border-top: 1px solid var(--nav-border);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-links {
  margin-bottom: 4px;
}

.footer-links a {
  font-weight: 600;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
  text-shadow: 0 0 6px rgba(75, 216, 255, 0.55);
}

.footer-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.footer-meta {
  font-size: 14px;
  gap: 8px;
  color: rgba(232, 237, 242, 0.8);
}

.footer-cookie {
  margin-top: 4px;
}

.dot {
  opacity: 0.7;
}

/* Form pages */
.form-card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(var(--panel-blur));
}

.pmg-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.form-grid.single {
  grid-template-columns: 1fr;
  justify-items: center;
}

.form-grid.single .field {
  width: min(360px, 100%);
}

@media (max-width: 960px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  color: var(--surface-text);
}

.field input[type="text"],
.field input[type="file"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field select {
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 9px 14px;
  min-height: 42px;
  height: 42px;
  line-height: 1.35;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  background: rgba(255, 255, 255, 0.06);
  color: var(--surface-text);
}

.field select option {
  color: #0b1020;
}

.field textarea {
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 10px 14px;
  min-height: 120px;
  line-height: 1.5;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  background: rgba(255, 255, 255, 0.06);
  color: var(--surface-text);
}

.theme-light .field input[type="text"],
.theme-light .field input[type="file"],
.theme-light .field input[type="email"],
.theme-light .field input[type="tel"],
.theme-light .field input[type="date"],
.theme-light .field select {
  background: rgba(255, 255, 255, 0.92);
  color: #0b1020;
}

.theme-light .field textarea {
  background: rgba(255, 255, 255, 0.92);
  color: #0b1020;
}

/* Date inputs with consistent icon styling */
.field input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  height: 42px;
}

.field input[type="date"]::-webkit-datetime-edit,
.field input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
  line-height: 1.35;
}

.field input[type="date"]::-webkit-calendar-picker-indicator {
  color: inherit;
  background-color: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  transition: opacity 0.18s ease, filter 0.18s ease;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f3c64b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='5' width='16' height='15' rx='2'/><line x1='4' y1='9' x2='20' y2='9'/><line x1='9' y1='3' x2='9' y2='7'/><line x1='15' y1='3' x2='15' y2='7'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}

.field input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  filter: drop-shadow(0 0 3px rgba(243, 198, 75, 0.35));
}

.theme-light .field input[type="date"]::-webkit-calendar-picker-indicator {
  background-color: transparent;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b27700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='5' width='16' height='15' rx='2'/><line x1='4' y1='9' x2='20' y2='9'/><line x1='9' y1='3' x2='9' y2='7'/><line x1='15' y1='3' x2='15' y2='7'/></svg>");
}

/* File input button styling */
.field input[type="file"] {
  padding: 10px 14px;
  width: 100%;
  max-width: 100%;
  display: block;
  height: auto;
  min-height: 46px;
  line-height: 1.4;
}

.field input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid rgba(214, 180, 64, 0.55);
  border-radius: 10px;
  padding: 9px 12px;
  background: rgba(214, 180, 64, 0.18);
  color: var(--surface-text);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.field input[type="file"]::file-selector-button:hover {
  background: rgba(214, 180, 64, 0.26);
  border-color: rgba(214, 180, 64, 0.75);
  transform: translateY(-1px);
}

.theme-light .field input[type="file"]::file-selector-button {
  background: rgba(214, 180, 64, 0.16);
  color: #0b1020;
}

.file-list {
  margin-top: 6px;
  font-size: 14px;
  color: var(--surface-text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.file-list .file-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.theme-light .file-list .file-name {
  background: rgba(0, 0, 0, 0.04);
}

.file-list .remove-file {
  background: transparent;
  border: 0;
  color: var(--surface-text-dim);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.file-list .remove-file:hover {
  background: rgba(214, 180, 64, 0.18);
  color: var(--surface-text);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(75, 216, 255, 0.2);
}

.radios {
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  padding: 12px 12px 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--surface-text);
  display: grid;
  gap: 10px;
}

.theme-light .radios {
  background: rgba(255, 255, 255, 0.8);
  color: #0b1020;
}

.radios legend {
  font-weight: 600;
  padding: 0 6px;
  color: inherit;
}

.radio-option {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
  color: inherit;
}

.form-inline-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-inline-group .radios {
  flex: 1;
  min-width: 240px;
}

.form-actions {
  margin-top: 6px;
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 720px) {
  .hero {
    padding: 22px;
  }
  .top-nav ul {
    gap: 8px;
  }
}

/* Privacy page layout */
.privacy {
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  text-align: left;
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(var(--panel-blur));
}

.privacy-centered {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: calc(100vh - 200px);
  padding: 32px 16px 40px;
}

.info-box {
  width: min(720px, 100%);
  background: var(--surface-strong);
  border-radius: 16px;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  color: var(--surface-text);
  backdrop-filter: blur(var(--panel-blur));
}

.privacy-centered .info-box h1 {
  margin-top: 0;
}

.privacy-centered .info-box p {
  margin: 8px 0;
}

.org-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--surface-text);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.moderator-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.center-cta {
  display: flex;
  justify-content: center;
}

.mod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.mod-card {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--surface-border);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  text-align: left;
  backdrop-filter: blur(var(--panel-blur));
}

.mod-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--surface-text);
}

.mod-card p,
.mod-card li {
  line-height: 1.6;
  color: var(--surface-text-dim);
}

.mod-card ul {
  padding-left: 20px;
  margin: 8px 0 12px;
}

.creator-page {
  align-items: center;
}

.creator-card {
  width: min(900px, 100%);
}

.privacy h1 {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--surface-text);
}

.privacy h2 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 22px;
  color: var(--surface-text);
}

.privacy p,
.privacy li {
  line-height: 1.6;
  color: var(--surface-text-dim);
}

.privacy ul {
  padding-left: 20px;
}

.privacy a {
  color: var(--accent);
}

@media (max-width: 720px) {
  .branding {
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-text {
    text-align: center;
  }

  .top-nav ul {
    justify-content: center;
  }

  .hero {
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .cta-row {
    justify-content: center;
  }
}

@media (max-width: 960px) {
  .feature-panel {
    grid-template-columns: 1fr;
    row-gap: 14px;
    text-align: left;
  }
  .feature-text {
    text-align: left;
    align-items: flex-start;
  }
  .feature-points {
    max-width: none;
    padding-right: 0;
  }
  .feature-visual {
    justify-content: center;
  }
  .feature-visual img {
    width: 150px;
    height: 150px;
  }
  .feature-bullets li {
    white-space: normal;
  }
  .cta-row {
    justify-content: flex-start;
  }
}
