@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&display=swap');

:root {
  --bg: #020617;
  --fg: #e5e7eb;
  --accent-1: #6d5dfc;
  --accent-2: #00d4ff;
  --accent-3: #ff4fa3;
  --muted: #9ca3af;
  --border-soft: rgba(148, 163, 184, 0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.obsydia {
  min-height: 100vh;
  background: radial-gradient(circle at 12% 0, #111827 0%, #020617 55%, #020617 100%);
  color: var(--fg);
  font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.background-glow {
  display: none;
}

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

a:hover {
  text-decoration: underline;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--fg);
}

.brand-logo {
  width: 42px;
  height: 42px;
}

.brand:hover {
  color: var(--fg);
  text-decoration: none;
}

.brand:hover span,
.brand:hover .brand-sub {
  color: inherit;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
}

.brand-text span:first-child {
  font-size: 0.9rem;
  letter-spacing: 0.22em;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  width: 44px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: radial-gradient(circle at top left, rgba(148, 163, 255, 0.35), rgba(15, 23, 42, 0.95));
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.9);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #e5e7eb;
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #e5e7eb;
}

.menu-toggle span::before {
  top: -5px;
}

.menu-toggle span::after {
  top: 5px;
}

.nav-portal-link {
  display: none;
}

@media (min-width: 640px) {
  .nav-portal-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.8);
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    color: #e5e7eb;
    background: radial-gradient(circle at top left, rgba(148,163,255,0.35), rgba(15,23,42,0.95));
    box-shadow: 0 10px 24px rgba(15,23,42,0.9);
  }

  .nav-portal-link:hover {
    border-color: #a5b4fc;
    color: #a5b4fc;
  }
}

.hero {
  padding: 4rem 20px 3rem;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.1rem, 3.5vw, 2.8rem);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.hero-lead {
  font-size: 1rem;
  color: #e5e7eb;
  opacity: 0.9;
  max-width: 44rem;
  margin: 0 auto 1.8rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  font-size: 0.9rem;
  text-decoration: none;
  color: #e5e7eb;
  background: radial-gradient(circle at top left, rgba(59,130,246,0.4), rgba(15,23,42,0.96));
}

.btn-pill.secondary {
  background: transparent;
}

.section-info {
  padding: 1.5rem 20px 2.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.6;
  margin-bottom: 0.4rem;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.section-text {
  font-size: 0.96rem;
  opacity: 0.9;
}

.card-wrap {
  padding: 3rem 20px 3.5rem;
  flex: 1;
}

.card {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 24px;
  border: 1px solid rgba(148,163,184,0.35);
  background: radial-gradient(circle at top left, rgba(30,64,175,0.6), rgba(15,23,42,0.98));
  box-shadow: 0 24px 60px rgba(0,0,0,0.9);
  padding: 1.8rem 1.6rem 2rem;
}

.card-header {
  margin-bottom: 1.3rem;
}

.card-pill {
  display: inline-flex;
  padding: 0.15rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

.card-title {
  margin: 0.7rem 0 0.3rem;
  font-size: 1.4rem;
}

.card-sub {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0;
}

.prose p {
  margin: 0 0 0.9rem;
  font-size: 0.96rem;
  opacity: 0.9;
}

.site-footer {
  padding: 1.2rem 20px 1.6rem;
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: center;
}

.nav-drawer {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 900;
}

.nav-drawer.open {
  display: flex;
}

.nav-drawer-panel {
  margin: 10px;
  margin-left: auto;
  width: 270px;
  max-width: 80%;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(30, 64, 175, 0.6), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 1.4rem 1.1rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.9);
  position: relative;
  color: #f9fafb;
}

.nav-drawer-title {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.6rem;
}

.nav-drawer-close {
  position: absolute;
  right: 0.75rem;
  top: 0.7rem;
  border: none;
  background: none;
  color: #e5e7eb;
  font-size: 1.1rem;
  cursor: pointer;
}

.nav-drawer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-drawer-links li {
  margin-bottom: 0.2rem;
}

.nav-drawer-link {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: #e5e7eb;
  text-decoration: none;
}

.nav-drawer-link:hover {
  color: var(--accent-2);
}

.nav-drawer-separator {
  border: none;
  border-top: 1px solid rgba(148,163,184,0.6);
  margin: 0.5rem 0;
}

/* FORM LAYOUT + STYLING */

.form-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  align-items: flex-start;
}

.form-main {
  flex: 3 1 260px;
}

.form-side {
  flex: 2 1 220px;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,0.35);
  background: radial-gradient(circle at top left, rgba(30,64,175,0.55), rgba(15,23,42,0.98));
  font-size: 0.9rem;
  opacity: 0.95;
}

.side-title {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.4rem;
}

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

.form-field label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.form-control {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(148,163,184,0.6);
  background: rgba(15,23,42,0.9);
  color: var(--fg);
  font: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 1px rgba(56,189,248,0.5);
}

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

.button-row {
  margin-top: 0.6rem;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  font-size: 0.9rem;
  text-decoration: none;
  color: #f9fafb;
  background-image: linear-gradient(90deg, #6366f1, #22d3ee, #fb7185);
  background-size: 200% 100%;
}

.button-primary:hover {
  cursor: pointer;
  background-position: 100% 0;
}

.turnstile-placeholder {
  margin-top: 0.4rem;
}
