:root {
  color-scheme: light dark;
  --bg: #040407;
  --bg-alt: rgba(255, 255, 255, 0.05);
  --card: rgba(255, 255, 255, 0.08);
  --text: #f3f5ff;
  --accent: #7a5cff;
  --accent-alt: #00e0ff;
  --border: rgba(255, 255, 255, 0.12);
  --muted: rgba(243, 245, 255, 0.7);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, var(--accent-alt), var(--bg)) fixed;
  color: var(--text);
  line-height: 1.6;
}

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(18px);
  background: rgba(4, 4, 7, 0.6);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand img {
  height: 2.25rem;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
  white-space: nowrap;
}

.nav-links a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus {
  background: var(--accent);
  color: var(--bg);
}

.nav-links a.active {
  background: var(--accent);
  color: var(--bg);
  border-color: transparent;
}

.nav-links .auth-actions {
  margin-left: 0.5rem;
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
}

.nav-links a.nav-login {
  border-color: var(--border);
  color: var(--muted);
  background: transparent;
}

.nav-links a.nav-cta {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(122, 92, 255, 0.15);
}

.nav-links a.nav-cta.active,
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta:focus {
  color: var(--bg);
}

.page-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  padding: 1.75rem;
  border-radius: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
}

.subheading {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.btn {
  padding: 0.9rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: var(--bg);
  box-shadow: 0 20px 40px rgba(122, 92, 255, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
}

form {
  display: grid;
  gap: 1rem;
}

label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: rgba(4, 4, 7, 0.65);
  color: inherit;
}

textarea {
  min-height: 140px;
}

.two-column {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

footer {
  margin-top: 3rem;
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  background: rgba(4, 4, 7, 0.75);
}

footer .footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: flex-start;
}

.socials {
  display: flex;
  gap: 1rem;
}

.footer-grid h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.footer-newsletter {
  display: grid;
  gap: 0.6rem;
}

.footer-newsletter form {
  display: grid;
  gap: 0.5rem;
}

.footer-newsletter input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border);
  background: rgba(4, 4, 7, 0.6);
  color: inherit;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 700px) {
  nav {
    padding: 1rem;
  }

  .page-section {
    padding: 4rem 1.25rem;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }
}
