* {
  box-sizing: border-box;
}

:root {
  --bg: #050816;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: #0f172a;
  --border: rgba(148, 163, 184, 0.16);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #8b5cf6;
  --danger: #ef4444;
  --success: #22c55e;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 8, 22, 0.82);
  backdrop-filter: blur(18px);
}

.nav-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #020617;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 36px rgba(56, 189, 248, 0.28);
  font-size: 0.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  color: #020617 !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 800;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  display: grid;
  place-items: center;
  padding: 88px 18px;
}

.hero-bg {
  position: absolute;
  inset: 70px 18px 0;
  pointer-events: none;
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.hero-content {
  position: relative;
  width: min(940px, 100%);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero h1 {
  margin: 22px auto 0;
  max-width: 880px;
  font-size: clamp(2.8rem, 7vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
}

.hero-copy {
  margin: 24px auto 0;
  max-width: 650px;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid var(--border);
}

.btn-primary {
  color: #020617;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 60px rgba(56, 189, 248, 0.18);
}

.btn-secondary {
  color: var(--text);
  background: rgba(15, 23, 42, 0.82);
}

.feature-grid,
.container,
main.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 0 0 80px;
}

.feature-card,
.card,
.bg-secondary {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.feature-card {
  padding: 26px;
}

.feature-card span {
  color: var(--accent);
  font-weight: 900;
}

.feature-card h2 {
  margin: 16px 0 8px;
  font-size: 1.4rem;
}

.feature-card p,
.text-gray-400,
.text-gray-500 {
  color: var(--muted);
}

main {
  flex: 1;
}

form {
  margin: 0;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  background: #020617;
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

button {
  cursor: pointer;
  border: 0;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.9rem;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 40px auto 0;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 32px;
}

.error-card {
  width: min(560px, 100%);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 34px;
  text-align: center;
}

.error-card h1 {
  font-size: 2.4rem;
  margin: 12px 0;
}

/* Tailwind-like compatibility classes already used in your EJS */
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.min-h-screen { min-height: 100vh; }
.h-screen { height: 100vh; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-auto { margin-top: auto; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.my-2 { margin-top: .5rem; margin-bottom: .5rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.mb-1 { margin-bottom: .25rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.p-2 { padding: .5rem; }
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.rounded { border-radius: 14px; }
.rounded-lg { border-radius: 22px; }
.rounded-full { border-radius: 999px; }
.shadow,
.shadow-md,
.shadow-lg {
  box-shadow: 0 24px 80px rgba(0,0,0,.24);
}
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-x-2 > * + * { margin-left: .5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-semibold { font-weight: 700; }
.font-bold { font-weight: 800; }
.font-extrabold { font-weight: 900; }
.underline { text-decoration: underline; }
.bg-primary { background: var(--bg); }
.bg-secondary,
.bg-secondary\/80 {
  background: var(--panel);
  border: 1px solid var(--border);
}
.bg-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #020617;
}
.bg-red-500,
.bg-red-600 {
  background: var(--danger);
}
.text-white { color: white; }
.text-black { color: var(--text); }
.text-accent { color: var(--accent); }
.border-gray-600,
.border-gray-700 {
  border-color: var(--border);
}
.max-h-96 { max-height: 24rem; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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

  .nav-inner {
    height: auto;
    padding: 16px 0;
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }

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