:root {
  --bg: #05040a;
  --bg-elevated: #0f0a18;
  --text: #f1f0f7;
  --muted: #9b95ad;
  --accent: #aa41fe;
  --accent-mid: #9333ea;
  --accent-deep: #6d28d9;
  --accent-dim: rgba(170, 65, 254, 0.2);
  --accent-2: #818cf8;
  --navy: #0f172a;
  --border: rgba(255, 255, 255, 0.09);
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  position: relative;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 2;
}

.grid-bg {
  position: fixed;
  inset: -50%;
  background-image:
    linear-gradient(rgba(170, 65, 254, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(500px) rotateX(12deg);
  animation: grid-drift 80s linear infinite;
  z-index: 0;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

@keyframes grid-drift {
  from {
    transform: perspective(500px) rotateX(12deg) translateY(0);
  }
  to {
    transform: perspective(500px) rotateX(12deg) translateY(64px);
  }
}

body::before {
  content: "";
  position: fixed;
  top: -20%;
  left: 50%;
  width: 120%;
  max-width: 900px;
  height: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, var(--accent-dim) 0%, transparent 65%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.top,
.hero,
.foot {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(1.25rem, 5vh, 2.5rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s var(--ease);
}

.brand:hover {
  opacity: 0.92;
}

.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 11px;
  box-shadow: 0 0 28px rgba(170, 65, 254, 0.38);
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.08em;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(0.78rem, 2.8vw, 0.95rem);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.brand-tag.bracket-open,
.brand-tag.bracket-close {
  background: linear-gradient(
    165deg,
    #f5f3ff 0%,
    #c084fc 28%,
    #a855f7 52%,
    #4c1d95 78%,
    #1e1b4b 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-name {
  color: var(--text);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding-bottom: 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.title {
  margin: 0 0 1.25rem;
  font-weight: 700;
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.title-line {
  display: block;
  color: var(--text);
}

.title-accent {
  display: block;
  background: linear-gradient(105deg, #e9d5ff 0%, var(--accent) 42%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 auto clamp(2.35rem, 5vh, 3rem);
  max-width: 36ch;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.actions .btn-primary {
  min-height: 3rem;
  min-width: min(100%, 12.5rem);
  padding: 0.85rem 1.85rem;
  font-size: 0.875rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  color: #fafafa;
  background: linear-gradient(135deg, #c084fc 0%, var(--accent) 38%, var(--accent-mid) 100%);
  border-color: rgba(196, 181, 253, 0.35);
  box-shadow: 0 0 0 0 rgba(170, 65, 254, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 0 36px rgba(170, 65, 254, 0.45);
  border-color: rgba(233, 213, 255, 0.45);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: rgba(196, 181, 253, 0.28);
  background: rgba(170, 65, 254, 0.06);
}

.contact-dialog {
  padding: 0;
  border: none;
  background: transparent;
  max-width: calc(100vw - 2rem);
  width: min(100%, 400px);
}

.contact-dialog::backdrop {
  background: rgba(6, 6, 10, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-dialog-panel {
  position: relative;
  padding: 1.6rem 1.4rem 1.4rem;
  background: linear-gradient(165deg, rgba(170, 65, 254, 0.08) 0%, transparent 45%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow:
    0 0 0 1px rgba(170, 65, 254, 0.14),
    0 28px 72px rgba(0, 0, 0, 0.55);
}

.contact-dialog-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.contact-dialog-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.contact-dialog-title {
  margin: 0 2rem 0.4rem 0;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.contact-dialog-lead {
  margin: 0 0 1.35rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 28ch;
}

.contact-dialog-choices {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.contact-choice {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 3.35rem;
  padding: 0.65rem 1rem;
  justify-content: flex-start;
  text-align: left;
  text-decoration: none;
  border-radius: var(--radius);
}

.contact-choice:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.contact-choice-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.contact-choice.btn-primary .contact-choice-icon {
  background: rgba(15, 10, 30, 0.28);
  color: #fff;
}

.contact-choice.btn-ghost .contact-choice-icon {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-2);
}

.contact-choice-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.contact-choice-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  min-width: 0;
  text-align: left;
}

.contact-choice-kicker {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.contact-choice.btn-primary .contact-choice-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.contact-choice.btn-ghost .contact-choice-kicker {
  color: var(--muted);
}

.contact-choice-main {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.contact-choice.btn-primary .contact-choice-main {
  color: #fff;
}

.contact-choice.btn-ghost .contact-choice-main {
  color: var(--text);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.mono {
  font-family: var(--font-mono);
}

.foot-sep {
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  .grid-bg {
    animation: none;
  }

  .pulse {
    animation: none;
    opacity: 0.85;
  }
}
