:root {
  --bg-main: #030906;
  --bg-soft: #07150f;
  --line: #1a3f2f;
  --text-main: #ecfff5;
  --text-soft: #9fd9ba;
  --glow: #28ff9e;
  --glow-strong: #52ffb2;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(1200px 650px at 10% -10%, #123824 0%, transparent 55%),
    radial-gradient(900px 600px at 90% 5%, #0f2c20 0%, transparent 58%),
    linear-gradient(145deg, #010302 0%, #030906 45%, #020705 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(40, 255, 158, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 255, 158, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 100%);
  pointer-events: none;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(650px 350px at 80% 80%, rgba(40, 255, 158, 0.08), transparent 70%),
    radial-gradient(600px 350px at 20% 90%, rgba(82, 255, 178, 0.08), transparent 72%);
  filter: blur(5px);
  pointer-events: none;
}

.cursor-glow {
  --x: 50vw;
  --y: 40vh;
  position: fixed;
  width: 520px;
  height: 520px;
  left: calc(var(--x) - 260px);
  top: calc(var(--y) - 260px);
  z-index: -1;
  background: radial-gradient(circle, rgba(40, 255, 158, 0.24) 0%, rgba(40, 255, 158, 0.07) 38%, transparent 72%);
  filter: blur(12px);
  pointer-events: none;
  transition: transform 120ms ease-out;
}

.site-header {
  width: min(1160px, 92vw);
  margin: 1.5rem auto 0;
  padding: 0.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  letter-spacing: 0.04em;
  color: var(--text-main);
}

.login-link {
  text-decoration: none;
  color: var(--glow-strong);
  border: 1px solid #1f5b42;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-weight: 600;
  transition: box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.login-link:hover,
.login-link:focus-visible {
  border-color: #4cffaf;
  box-shadow: 0 0 22px rgba(40, 255, 158, 0.35);
  transform: translateY(-1px);
}

.hero-wrap {
  min-height: calc(100vh - 86px);
  display: grid;
  place-items: center;
  padding: 1.5rem 0 2.5rem;
}

.site-footer {
  width: min(1160px, 92vw);
  margin: 0 auto 1.2rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  opacity: 0.65;
  text-shadow: 0 0 10px rgba(40, 255, 158, 0.15);
}

.site-footer a {
  color: var(--glow-strong);
  text-decoration: none;
  border-bottom: 1px solid rgba(82, 255, 178, 0.3);
  transition: color 160ms ease, border-color 160ms ease, text-shadow 160ms ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
  border-color: rgba(82, 255, 178, 0.7);
  text-shadow: 0 0 12px rgba(40, 255, 158, 0.55);
}

.hero-card {
  width: min(1160px, 92vw);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(8, 25, 18, 0.92) 0%, rgba(2, 10, 7, 0.92) 100%);
  box-shadow:
    0 0 0 1px rgba(82, 255, 178, 0.12) inset,
    0 30px 90px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(40, 255, 158, 0.12);
  padding: clamp(1.4rem, 4vw, 3.2rem);
  animation: rise-in 720ms ease-out both;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 1.05rem;
  padding: 0.25rem 0.85rem;
  border: 1px solid #1d6447;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #b1ffdb;
  background: rgba(26, 82, 58, 0.25);
}

h1 {
  margin: 0;
  max-width: 18ch;
  font-family: "Sora", sans-serif;
  font-size: clamp(2rem, 6.5vw, 4.3rem);
  line-height: 1.05;
  text-shadow: 0 0 26px rgba(40, 255, 158, 0.25);
}

.lead {
  margin: 1.1rem 0 0;
  max-width: 64ch;
  font-size: clamp(1rem, 2.1vw, 1.22rem);
  color: var(--text-soft);
}

.lead strong {
  color: #ccffe8;
}

.feature-grid {
  margin-top: 1.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.feature-grid article {
  border: 1px solid #1a4935;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(7, 22, 16, 0.78), rgba(4, 12, 9, 0.76));
  padding: 1rem;
}

.feature-grid h2 {
  margin: 0;
  font-size: 1rem;
  color: #c8ffe5;
}

.feature-grid p {
  margin: 0.55rem 0 0;
  color: #8cd0ad;
  font-size: 0.95rem;
  line-height: 1.45;
}

.cta-row {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.68rem 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.btn.primary {
  background: linear-gradient(180deg, #37ffaa, #14bf76);
  color: #00210f;
  box-shadow: 0 0 24px rgba(40, 255, 158, 0.32);
}

.btn.ghost {
  color: #9deec7;
  border: 1px solid #296a4c;
  background: rgba(10, 37, 25, 0.45);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  box-shadow: 0 0 34px rgba(40, 255, 158, 0.48);
}

.btn.ghost:hover,
.btn.ghost:focus-visible {
  border-color: #4cffaf;
  box-shadow: 0 0 18px rgba(40, 255, 158, 0.2);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    margin-top: 0.9rem;
  }

  .hero-wrap {
    padding-top: 0.5rem;
  }

  .hero-card {
    border-radius: 22px;
  }

  .cursor-glow {
    width: 320px;
    height: 320px;
    left: calc(var(--x) - 160px);
    top: calc(var(--y) - 160px);
  }
}
