:root {
  --ink: #0c1020;
  --ink-deep: #0a0e1a;
  --panel: rgba(255, 255, 255, 0.045);
  --fog: #eef0f8;
  --fog-dim: #8a9cbf;
  --accent: #6a5ae0;
  --accent-soft: #8b7cf0;
  --accent-glow: rgba(106, 90, 224, 0.4);
  --cta-text: #ffffff;
  --line: rgba(138, 156, 191, 0.2);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--fog);
  background: var(--ink-deep);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

a {
  color: var(--accent-soft);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 18% 35%, rgba(106, 90, 224, 0.34), transparent 58%),
    radial-gradient(ellipse 50% 40% at 92% 80%, rgba(100, 181, 246, 0.1), transparent 50%),
    linear-gradient(165deg, #0a0e1a 0%, #12182b 45%, #0c1020 100%);
  animation: glow-drift 18s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  from {
    filter: hue-rotate(0deg) saturate(1);
    transform: scale(1);
  }
  to {
    filter: hue-rotate(10deg) saturate(1.06);
    transform: scale(1.02);
  }
}

.page {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(1.25rem, 4vw, 2.5rem) clamp(1.5rem, 5vw, 3.5rem);
  gap: 1rem;
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(17rem, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: 0;
  width: min(1100px, 100%);
  margin: 0 auto;
  animation: rise-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.intro {
  max-width: 30rem;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 0.85rem;
}

.app-icon {
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.9rem;
  box-shadow:
    0 10px 28px rgba(106, 90, 224, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 4.75rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.headline {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--fog);
}

.lede {
  margin: 0 0 1.5rem;
  max-width: 26rem;
  font-size: 1.02rem;
  color: var(--fog-dim);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.45rem;
  border-radius: 0.65rem;
  background: var(--accent);
  color: var(--cta-text);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 0 var(--accent-glow);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.35s ease;
  animation: cta-pulse 3.2s ease-in-out 1.1s infinite;
}

.cta:hover,
.cta:focus-visible {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--accent-glow);
  outline: none;
  animation: none;
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }
  50% {
    box-shadow: 0 0 0 10px transparent;
  }
}

.features {
  padding: clamp(1.15rem, 2.8vw, 1.75rem) clamp(1.2rem, 2.8vw, 1.85rem);
  border-radius: 1.15rem;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  min-height: 0;
}

.features h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2rem);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.features-intro {
  margin: 0 0 1.15rem;
  color: var(--fog-dim);
  font-size: 0.95rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.feature-list li {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.feature-list strong {
  font-weight: 600;
  font-size: 1.05rem;
  color: #f4f6fc;
}

.feature-list span {
  color: var(--fog-dim);
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  align-items: center;
  font-size: 0.88rem;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.site-footer a {
  text-decoration: none;
  color: var(--fog-dim);
  transition: color 0.15s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent-soft);
  outline: none;
}

.copy {
  margin: 0;
  margin-left: auto;
  color: rgba(138, 156, 191, 0.7);
  font-size: 0.8rem;
}

@media (max-width: 860px) {
  body {
    overflow: auto;
  }

  .page {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .stage {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1.75rem;
    padding-top: 1rem;
  }

  .intro {
    max-width: none;
  }

  .brand {
    font-size: clamp(2.6rem, 12vw, 3.5rem);
  }

  .copy {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-height: 700px) and (min-width: 861px) {
  .brand {
    font-size: 3rem;
  }

  .app-icon {
    width: 2.85rem;
    height: 2.85rem;
  }

  .lede,
  .features-intro {
    margin-bottom: 0.85rem;
  }

  .feature-list {
    gap: 0.6rem;
  }

  .feature-list li {
    padding-top: 0.6rem;
  }

  .feature-list span {
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .stage,
  .cta {
    animation: none !important;
  }

  .cta:hover,
  .cta:focus-visible {
    transform: none;
  }
}
