:root {
  --bg-color: #040914;
  --bg-gradient: radial-gradient(circle at top, rgba(66, 118, 255, 0.08), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 86, 140, 0.2), transparent 40%),
    #040914;
  --card-bg: rgba(9, 17, 34, 0.92);
  --accent: #4afa9a;
  --accent-soft: rgba(74, 250, 154, 0.18);
  --text-primary: #f5f6ff;
  --text-secondary: rgba(245, 246, 255, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --error: #ff6f91;
  --success: #42ffb0;
  --transition: 200ms ease;
  --font-body: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--bg-gradient);
  color: var(--text-primary);
  font-family: var(--font-body);
}

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

a:hover {
  color: #63ffbc;
}

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

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.brand {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a,
.nav-links button {
  font-size: 0.95rem;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links button:hover {
  background: rgba(74, 250, 154, 0.1);
  color: var(--text-primary);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.hero {
  text-align: center;
  margin: 3rem auto 4rem;
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-buttons {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  border-radius: 999px;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(74, 250, 154, 0.95), rgba(90, 205, 255, 0.95));
  color: #03151f;
  box-shadow: 0 14px 30px rgba(74, 250, 154, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(74, 250, 154, 0.32);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

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

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  box-shadow: 0 18px 45px rgba(3, 10, 28, 0.55);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: -40% 30% 60% -30%;
  background: linear-gradient(120deg, rgba(74, 250, 154, 0.25), transparent 70%);
  opacity: 0.4;
  transform: rotate(8deg);
  pointer-events: none;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.text-muted {
  color: var(--text-secondary);
}

.form-card {
  max-width: 420px;
  margin: 0 auto;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

input[type='text'],
input[type='email'],
input[type='password'] {
  background: rgba(8, 16, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-size: 1rem;
  transition: border var(--transition), box-shadow var(--transition);
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.alert {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}

.alert-success {
  background: rgba(66, 255, 176, 0.12);
  border: 1px solid rgba(66, 255, 176, 0.35);
  color: var(--success);
}

.alert-error {
  background: rgba(255, 111, 145, 0.12);
  border: 1px solid rgba(255, 111, 145, 0.35);
  color: var(--error);
}

.helper-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.profile-card {
  display: grid;
  gap: 2rem;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tablet {
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1rem 1.5rem;
  background: rgba(5, 12, 27, 0.8);
}

.hidden {
  display: none !important;
}

footer {
  margin-top: 4rem;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  main {
    padding-top: 2rem;
  }

  .hero {
    margin-top: 2rem;
  }
}
