:root {
  --bg: #f4f8ff;
  --surface: #ffffff;
  --surface-strong: #edf5ff;
  --primary: #2d6df6;
  --primary-dark: #1d4fd0;
  --text: #1a2433;
  --muted: #56657d;
  --border: #dfeaff;
  --shadow: 0 18px 45px rgba(29, 79, 208, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.narrow {
  max-width: 760px;
}

.site-header {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
}

.hero {
  padding: 80px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 32px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 18px;
}

.lead {
  font-size: 1.1rem;
  max-width: 620px;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.2s ease;
}

.button:hover {
  text-decoration: none;
}

.button.primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.hero-card,
article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 30px 28px;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.features {
  padding: 36px 0 90px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

article {
  padding: 24px;
}

article p {
  color: var(--muted);
  margin: 0;
}

.content-page {
  padding: 70px 0 90px;
}

.content-page h1 {
  margin-bottom: 20px;
}

.content-page h2 {
  margin-top: 28px;
  font-size: 1.3rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: white;
}

.footer-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.invite-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #edf5ff 0%, #f4f8ff 100%);
}

.invite-shell {
  width: min(90vw, 560px);
}

.invite-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.loader {
  width: 42px;
  height: 42px;
  margin: 24px auto 0;
  border: 4px solid #dfeaff;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 700px) {
  .hero-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }

  .nav-links {
    justify-content: center;
  }
}
