:root {
  --bg-0: #0e1218;
  --bg-1: #151b24;
  --bg-2: #1c2430;
  --ink: #e8eef6;
  --ink-muted: #9aa8ba;
  --accent: #3d8bfd;
  --accent-deep: #1c71d8;
  --accent-soft: rgba(61, 139, 253, 0.18);
  --line: rgba(232, 238, 246, 0.12);
  --radius: 14px;
  --font: "Source Sans 3", system-ui, sans-serif;
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(28, 113, 216, 0.28), transparent 55%),
    radial-gradient(900px 600px at -10% 20%, rgba(234, 98, 234, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 45%, var(--bg-0) 100%);
  background-attachment: fixed;
  line-height: 1.55;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #7eb6ff;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.hero {
  min-height: 100svh;
  display: grid;
  align-content: start;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: 2rem;
  overflow: clip;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  opacity: 0;
  animation: rise 0.8s ease 0.05s forwards;
}

.brand img {
  width: clamp(2.6rem, 6vw, 3.5rem);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 8px 28px rgba(28, 113, 216, 0.35);
}

.hero-copy {
  margin-top: clamp(1.25rem, 3vw, 2rem);
  max-width: 40rem;
  opacity: 0;
  animation: rise 0.85s ease 0.18s forwards;
}

.intro {
  color: var(--ink);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 40rem;
  margin-bottom: 1rem;
}

.note {
  color: var(--ink-muted);
  font-size: 1rem;
  max-width: 40rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  opacity: 0;
  animation: rise 0.85s ease 0.32s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 10px 28px rgba(28, 113, 216, 0.35);
}

.btn-primary:hover {
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: rgba(232, 238, 246, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.hero-visual {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  position: relative;
  opacity: 0;
  animation: rise-soft 1s ease 0.4s forwards;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12% -8% auto;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(61, 139, 253, 0.35), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--line);
  border-bottom: none;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.75rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-soft {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand,
  .hero-copy,
  .cta-row,
  .hero-visual,
  .hero-visual::before {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 1.5rem, var(--max));
  }

  .btn {
    width: 100%;
  }
}
