:root {
  --bg: #0b0f19;
  --panel: rgba(255, 255, 255, 0.06);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --border: rgba(255, 255, 255, 0.12);
  --brand: #7c5cff;
  --brand2: #22d3ee;
  --shadow: 0 12px 50px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(900px 600px at 85% 15%, rgba(34, 211, 238, 0.18), transparent 55%),
    radial-gradient(900px 800px at 35% 85%, rgba(255, 255, 255, 0.06), transparent 55%),
    var(--bg);
}

a {
  color: inherit;
}

.container {
  width: min(1040px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 25, 0.55);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}

.nav {
  display: flex;
  gap: 0.8rem;
}

.nav-link {
  text-decoration: none;
  color: var(--muted);
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
}

.nav-link[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.hero {
  padding: 3.5rem 0 2.2rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 0.8rem;
}

.subtitle {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
}

.button.primary {
  border-color: rgba(124, 92, 255, 0.5);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.32), rgba(34, 211, 238, 0.22));
}

.button:hover {
  transform: translateY(-1px);
  transition: transform 120ms ease;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 2.5rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.1rem 1.2rem;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(11, 15, 25, 0.4);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 0;
  color: var(--muted);
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--text);
}

.page {
  padding: 2.8rem 0;
}

.page h1 {
  margin: 0 0 0.8rem;
}

.page p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 70ch;
}

.form {
  display: grid;
  gap: 0.9rem;
  max-width: 520px;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.input {
  display: grid;
  gap: 0.4rem;
}

.input label {
  color: var(--muted);
  font-size: 0.95rem;
}

.input input,
.input textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  outline: none;
}

.input input:focus,
.input textarea:focus {
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.16);
}

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

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}
