:root {
  --bg: #020813;
  --text: #edf3ff;
  --muted: #9eb2d6;
  --accent: #6d9dff;
  --accent-soft: #84d4ff;
  --glass: rgba(8, 16, 32, 0.66);
  --line: rgba(149, 178, 228, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  min-height: 100%;
}

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% -10%, rgba(76, 112, 183, 0.26), transparent 38%),
    radial-gradient(circle at 85% 2%, rgba(57, 93, 160, 0.18), transparent 33%),
    radial-gradient(circle at 50% 120%, rgba(24, 54, 108, 0.33), transparent 45%),
    linear-gradient(180deg, #01050e 0%, #020813 52%, #040f20 100%);
  overflow: hidden;
}

.page-scroll {
  height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}

.night-sky {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -3;
}

.star {
  position: absolute;
  width: var(--size);
  height: var(--size);
  top: var(--top);
  left: var(--left);
}

.star-drift {
  animation: drift-star var(--drift) ease-in-out infinite;
}

.star::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.86),
    0 0 22px rgba(146, 195, 255, 0.36);
  animation: twinkle var(--blink) ease-in-out infinite alternate;
}

.star::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(191, 217, 255, 0.56) 0%, rgba(191, 217, 255, 0) 72%);
  filter: blur(2.8px);
  opacity: 0.82;
  animation: twinkle var(--blink) ease-in-out infinite alternate-reverse;
}

.s1 { --top: 9%; --left: 8%; --size: 2px; --drift: 26s; --dx: 34px; --dy: -20px; --blink: 2.1s; }
.s2 { --top: 14%; --left: 29%; --size: 3px; --drift: 30s; --dx: -28px; --dy: 18px; --blink: 2.8s; }
.s3 { --top: 22%; --left: 46%; --size: 2px; --drift: 24s; --dx: 26px; --dy: -16px; --blink: 1.8s; }
.s4 { --top: 11%; --left: 66%; --size: 2px; --drift: 32s; --dx: -30px; --dy: 20px; --blink: 2.4s; }
.s5 { --top: 18%; --left: 84%; --size: 3px; --drift: 28s; --dx: 22px; --dy: -18px; --blink: 2.2s; }
.s6 { --top: 33%; --left: 12%; --size: 2px; --drift: 25s; --dx: -26px; --dy: 17px; --blink: 2.7s; }
.s7 { --top: 41%; --left: 35%; --size: 2px; --drift: 34s; --dx: 29px; --dy: -17px; --blink: 2.5s; }
.s8 { --top: 29%; --left: 57%; --size: 3px; --drift: 27s; --dx: -24px; --dy: 14px; --blink: 2s; }
.s9 { --top: 47%; --left: 78%; --size: 2px; --drift: 36s; --dx: 27px; --dy: -15px; --blink: 2.9s; }
.s10 { --top: 59%; --left: 17%; --size: 2px; --drift: 29s; --dx: 31px; --dy: -17px; --blink: 2.4s; }
.s11 { --top: 67%; --left: 39%; --size: 3px; --drift: 33s; --dx: -25px; --dy: 17px; --blink: 2.6s; }
.s12 { --top: 74%; --left: 60%; --size: 2px; --drift: 31s; --dx: 24px; --dy: -16px; --blink: 2.2s; }
.s13 { --top: 82%; --left: 82%; --size: 2px; --drift: 26s; --dx: -22px; --dy: 12px; --blink: 1.9s; }
.s14 { --top: 88%; --left: 27%; --size: 3px; --drift: 37s; --dx: 28px; --dy: -18px; --blink: 2.7s; }
.s15 { --top: 53%; --left: 92%; --size: 2px; --drift: 35s; --dx: -18px; --dy: 14px; --blink: 2.3s; }
.s16 { --top: 63%; --left: 71%; --size: 2px; --drift: 30s; --dx: 20px; --dy: -13px; --blink: 2.1s; }

.bg-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
  z-index: -2;
}

.bg-glow-1 {
  width: 380px;
  height: 380px;
  top: -120px;
  left: -110px;
  background: rgba(57, 95, 166, 0.22);
}

.bg-glow-2 {
  width: 340px;
  height: 340px;
  right: -80px;
  top: 35vh;
  background: rgba(66, 122, 190, 0.2);
}

.bg-glow-3 {
  width: 300px;
  height: 300px;
  left: 40%;
  bottom: -120px;
  background: rgba(31, 67, 133, 0.22);
}

.topbar {
  width: min(1120px, 92vw);
  margin: 1rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  color: var(--text);
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 800;
  font-size: clamp(1.16rem, 2vw, 1.48rem);
  letter-spacing: 0.015em;
}

main {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 4.5rem 0 5.5rem;
}

.hero {
  display: grid;
  gap: 1.25rem;
  min-height: 72vh;
  align-content: center;
}

.eyebrow {
  margin: 0;
  color: #a9c0eb;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  max-width: 880px;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.08;
  text-wrap: balance;
}

.hero-title {
  display: block;
}

.typewriter-text {
  opacity: 0;
  transform: translate3d(0, 20px, 0) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease,
    filter 0.65s ease;
}

.hero-title.is-visible .typewriter-text {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.typewriter-text::after {
  content: "";
  display: inline-block;
  width: 0.09em;
  height: 1.05em;
  margin-left: 0.08em;
  border-radius: 999px;
  background: linear-gradient(180deg, #d4e7ff, #83c2ff);
  box-shadow:
    0 0 10px rgba(114, 182, 255, 0.75),
    0 0 18px rgba(114, 182, 255, 0.3);
  opacity: 0;
  transform: translate3d(0, 0.16em, 0);
  vertical-align: baseline;
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.hero-title.is-visible .typewriter-text::after {
  opacity: 1;
  transform: translate3d(0, 0.04em, 0);
  animation: caret-blink 1s steps(1, end) infinite;
}

.subtitle {
  margin: 0;
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.25rem);
  line-height: 1.65;
}

.actions {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.18rem;
  border-radius: 0.78rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.button-primary {
  border: 1px solid rgba(122, 164, 238, 0.52);
  background: #4d78d6;
  color: #f3f8ff;
  box-shadow: 0 10px 20px rgba(20, 39, 74, 0.4);
}

.button-primary:hover {
  background: #5b87e6;
  border-color: rgba(150, 189, 255, 0.75);
  box-shadow: 0 12px 24px rgba(23, 44, 84, 0.5);
}

.button-secondary {
  border: 1px solid var(--line);
  color: #d6e4ff;
  background: rgba(13, 24, 45, 0.66);
}

.button-secondary:hover {
  border-color: rgba(170, 199, 255, 0.56);
  background: rgba(19, 33, 60, 0.8);
}

.button-login {
  border: 1px solid rgba(138, 171, 234, 0.55);
  color: #dce9ff;
  background: rgba(7, 16, 33, 0.84);
  font-weight: 700;
  padding: 0.58rem 0.95rem;
  border-radius: 0.62rem;
  box-shadow: 0 6px 14px rgba(7, 13, 27, 0.35);
}

.button-login:hover {
  border-color: rgba(165, 197, 255, 0.85);
  color: #f1f6ff;
  background: rgba(13, 25, 48, 0.95);
}

.hero-cards {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.glass-card,
.week-card {
  padding: 1.2rem;
  border-radius: 1rem;
  border: 1px solid rgba(137, 167, 220, 0.23);
  background: var(--glass);
  box-shadow: 0 10px 22px rgba(4, 10, 23, 0.35);
  backdrop-filter: blur(10px);
}

.card h2 {
  font-size: 1.02rem;
}

.card p,
.glass-card p,
.week-card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.section {
  margin-top: 5.2rem;
}

.section-head {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
}

.section h2 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(1.45rem, 4vw, 2.3rem);
  line-height: 1.2;
  max-width: 760px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.glass-card h3,
.week-card h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
}

.section-detail .detail-layout {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 1rem;
}

.big-card {
  padding: 1.35rem;
}

.feature-list {
  margin: 0.85rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
  line-height: 1.65;
  display: grid;
  gap: 0.45rem;
}

.side-card {
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.cta-section {
  margin-top: 5.2rem;
  padding: 2rem;
  border-radius: 1.1rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 20%, rgba(76, 118, 194, 0.17), transparent 38%),
    radial-gradient(circle at 80% 70%, rgba(53, 123, 199, 0.13), transparent 40%),
    rgba(6, 13, 28, 0.82);
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.cta-section h2 {
  max-width: 740px;
}

.site-footer {
  width: 100%;
  margin: 4rem 0 0;
  padding-bottom: 0;
}

.footer-inner {
  width: 100%;
  border-radius: 0;
  padding: 2rem clamp(1rem, 3vw, 2.2rem);
  background:
    radial-gradient(circle at 14% 12%, rgba(72, 114, 194, 0.1), transparent 35%),
    radial-gradient(circle at 82% 78%, rgba(51, 114, 186, 0.12), transparent 38%),
    rgba(4, 10, 22, 0.84);
  backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: 1.25fr 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.footer-left {
  display: grid;
  gap: 0.6rem;
}

.footer-brand {
  color: #ffffff;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-decoration: none;
}

.footer-left p {
  margin: 0;
  color: #a7badb;
  font-weight: 600;
  font-size: clamp(0.82rem, 1.1vw, 0.96rem);
}

.footer-center {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}

.footer-nav a,
.footer-email {
  color: #c7d8f7;
  text-decoration-color: rgba(199, 216, 247, 0.36);
  font-weight: 600;
  font-size: clamp(1rem, 1.7vw, 1.15rem);
}

.spot-groups {
  justify-self: end;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(1.45rem, 2.8vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.spot-word {
  color: #ffffff;
}

.groups-word {
  color: #64ac58;
}

@keyframes twinkle {
  from {
    opacity: 0.28;
    transform: scale(0.7);
  }

  to {
    opacity: 1;
    transform: scale(1.18);
  }
}

@keyframes drift-star {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(var(--dx), var(--dy), 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes caret-blink {
  0% {
    opacity: 1;
  }

  45% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }

  95% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@media (max-width: 960px) {
  main {
    padding-top: 3.2rem;
  }

  .hero {
    min-height: auto;
  }

  .hero-cards,
  .service-grid,
  .week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-detail .detail-layout {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .spot-groups {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .topbar {
    margin-top: 0.8rem;
  }

  main {
    padding: 2.2rem 0 3.3rem;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .button-login {
    width: auto;
  }

  .hero-cards,
  .service-grid,
  .week-grid {
    grid-template-columns: 1fr;
  }

  .section {
    margin-top: 4rem;
  }

  .cta-section {
    padding: 1.35rem;
  }

  .site-footer {
    margin-top: 3rem;
    width: 100%;
    padding-bottom: 0;
  }

  .footer-inner {
    border-radius: 0;
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .footer-center,
  .spot-groups {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .star,
  .star::before,
  .star::after {
    animation: none;
  }

  .typewriter-text {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .typewriter-text::after,
  .hero-title.is-visible .typewriter-text::after {
    transition: none;
    animation: none;
    opacity: 1;
    transform: none;
  }
}
