:root {
  --bg: #0a0a0c;
  --bg-2: #111115;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-hover: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f2f2f4;
  --muted: #b0b0bc;
  --soft: #7c7c8c;
  --accent-white: #f0f0f2;
  --green: #4ade80;
  --green-glow: rgba(74, 222, 128, 0.14);
  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 8px 32px rgba(0,0,0,0.3);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --max-width: 1160px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 40% at 60% -10%, rgba(59,130,246,0.11), transparent),
    radial-gradient(ellipse 50% 30% at 5% 20%, rgba(255,255,255,0.05), transparent);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 55%);
  z-index: 0;
}

.site-wrap {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 80px;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

/* ─── TOPBAR ─── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: rgba(10,10,12,0.7);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-white);
  color: #0a0a0c;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.brand-mark-sm {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 0.75rem;
}

.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name { font-size: 0.92rem; font-weight: 500; color: var(--text); }
.brand-sub { font-size: 0.78rem; color: var(--soft); }

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-nav a {
  padding: 8px 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: color 120ms, background 120ms;
}

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

/* ─── BUTTONS ─── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--accent-white);
  color: #0a0a0c;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 130ms ease, opacity 130ms ease, background 130ms ease, border-color 130ms ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px); opacity: 0.92; }
.button:disabled { opacity: 0.45; cursor: not-allowed; }

.button-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.button-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--muted);
}

.button-ghost:hover:not(:disabled) { border-color: var(--border-strong); color: var(--text); }

.full-width { width: 100%; }

/* ─── EYEBROW / LABELS ─── */
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 14px;
}

/* ─── PILL ─── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 28px;
}

.pill-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--green-glow);
  flex-shrink: 0;
}

/* ─── HERO ─── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 32px;
  align-items: end;
  padding: 64px 0 28px;
}

.hero-left h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  max-width: 14ch;
  color: var(--text);
}

.hero-lead {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 44ch;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero card */
.hero-card {
  border-radius: var(--radius-xl);
  padding: 28px;
}

.hero-card-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 12px;
}

.hero-card-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.snapshot-item {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.snapshot-key {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}

.snapshot-item strong {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

/* ─── PRINCIPLES ─── */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 20px;
}

.principle {
  display: flex;
  gap: 18px;
  padding: 28px 26px;
  background: var(--bg-2);
  transition: background 150ms;
}

.principle:hover { background: rgba(255,255,255,0.03); }

.principle-num {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--soft);
  padding-top: 3px;
  flex-shrink: 0;
  min-width: 28px;
}

.principle h3 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.3;
}

.principle p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* ─── SECTION HEADER ─── */
.section-header {
  max-width: 44rem;
  margin-bottom: 28px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 14px;
}

.section-header p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

/* ─── NETWORK ─── */
.network-section {
  padding-top: 80px;
}

.wave-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.wave-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--surface);
}

.wave-active {
  border-color: rgba(74, 222, 128, 0.22);
  background: rgba(74, 222, 128, 0.04);
}

.wave-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 14px;
}

.wave-active .wave-label { color: var(--green); }

.wave-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wave-items span {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}

.wave-items span:last-child { border-bottom: none; }

/* ─── SITES ─── */
.sites-section { padding-top: 80px; }

.site-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.site-card {
  display: block;
  padding: 26px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.site-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.site-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-glow);
}

.site-status {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.site-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.site-card p {
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 18px;
}

.site-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ─── CONTACT ─── */
.contact-section {
  margin-top: 80px;
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}

.contact-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 16px;
}

.contact-copy p {
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

.contact-form-wrap { min-height: 100%; }

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border-radius: var(--radius-lg);
}

.success-panel {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.06);
}

.success-panel h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 8px;
}

.success-panel p { color: var(--muted); margin: 0 0 20px; font-size: 0.95rem; }

.form-row { display: grid; gap: 14px; }
.two-up { grid-template-columns: repeat(2, 1fr); }

label { display: grid; gap: 7px; }
label > span, .message-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 400;
}

input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(10,10,12,0.9);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.94rem;
  padding: 13px 15px;
  resize: vertical;
  transition: border-color 130ms, box-shadow 130ms;
}

input::placeholder, textarea::placeholder { color: var(--soft); }

input:focus, textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.26);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}

.message-count { font-size: 0.78rem; color: var(--soft); }
.message-count.warning { color: #fcd34d; }

.field-error {
  font-size: 0.82rem;
  color: #fca5a5;
  margin-top: -2px;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: rgba(251, 113, 133, 0.5);
}

input[aria-invalid="true"]:focus,
textarea[aria-invalid="true"]:focus {
  border-color: rgba(251, 113, 133, 0.7);
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.08);
}

.turnstile-container { min-height: 74px; }

.form-error {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(251,113,133,0.28);
  background: rgba(251,113,133,0.08);
  color: #ffe4e6;
  font-size: 0.9rem;
}

.hidden { display: none !important; }

/* ─── FOOTER ─── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-note {
  font-size: 0.82rem;
  color: var(--soft);
  margin: 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .wave-list { grid-template-columns: 1fr; }
  .contact-section { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .site-wrap { width: min(calc(100% - 28px), var(--max-width)); padding-bottom: 60px; }
  .footer-inner { width: min(calc(100% - 28px), var(--max-width)); }

  .topbar { flex-direction: column; align-items: stretch; gap: 12px; }
  .topbar-nav { flex-wrap: wrap; justify-content: flex-start; }

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

  .hero { padding-top: 36px; }
  .hero-left h1 { font-size: 2.6rem; max-width: 100%; }
  .hero-lead { font-size: 1rem; }

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

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

  .two-up { grid-template-columns: 1fr; }

  .section-header h2 { font-size: 1.8rem; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .hero-left h1 { font-size: 2.2rem; }
  .hero-card { border-radius: 20px; }
  .contact-form { padding: 20px; border-radius: 16px; }
}
