:root {
  --bg: #0a0a14;
  --fg: #f2f2f7;
  --muted: #9a9ab0;
  --accent: #7c5cff;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

/* Animated shapes canvas sits behind everything */
#bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* Full-screen frosted glass over the whole animated background. */
.glass {
  position: fixed;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: rgba(10, 10, 20, 0.1);
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  animation: fade-up 1.2s ease both;
}

.name {
  font-size: clamp(3rem, 14vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, #fff 20%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  margin-top: 1.25rem;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  color: var(--muted);
  font-weight: 400;
}

.links {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.links a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.6rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s ease, background 0.25s ease,
    transform 0.25s ease;
}

.links a:hover {
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.12);
  transform: translateY(-2px);
}

.footer {
  position: fixed;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---- Contact form ---- */
.card {
  position: relative;
  z-index: 1;
  width: min(440px, 90vw);
  padding: 2.5rem;
  border-radius: 24px;
  background: rgba(18, 18, 32, 0.45);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  animation: fade-up 1s ease both;
  text-align: left;
}

.card h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-align: center;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: rgba(124, 92, 255, 0.1);
}

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

/* Honeypot — hidden from humans, catches bots. */
.hp {
  position: absolute;
  left: -9999px;
}

button.submit {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.8rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(120deg, var(--accent), #41c7ff);
  border: none;
  border-radius: 10px;
  transition: transform 0.2s ease, filter 0.2s ease;
}

button.submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.note {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.note.ok {
  background: rgba(61, 220, 151, 0.15);
  border: 1px solid rgba(61, 220, 151, 0.4);
  color: #8af0c4;
}

.note.err {
  background: rgba(255, 106, 106, 0.12);
  border: 1px solid rgba(255, 106, 106, 0.4);
  color: #ff9d9d;
}

.back {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
}

.back:hover {
  color: var(--fg);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .content {
    animation: none;
  }
}
