:root {
  --star-blue: #0677bd;
  --star-deep: #062f5b;
  --star-orange: #f36f21;
  --star-ink: #172b42;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--star-ink);
  overflow-x: hidden;
}

.glass { background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); }
.nav-link { position: relative; }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -8px; width: 0; height: 2px; background: var(--star-blue); transition: width .25s ease; }
.nav-link:hover::after, .nav-active::after { width: 100%; }

.star-banner {
  background: #052a54;
  overflow: hidden;
}

.star-banner img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 220px;
  object-fit: cover;
  object-position: center;
  animation: star-banner-enter .8s cubic-bezier(.2, .7, .2, 1) both;
}

.star-kicker { letter-spacing: .16em; }
.star-accent { color: var(--star-orange); }
.star-rule { width: 46px; height: 3px; background: var(--star-orange); border-radius: 999px; }

.star-goal {
  transition: transform .22s ease, color .22s ease;
}

.star-goal:hover { transform: translateX(6px); }
.star-goal:hover h3 { color: var(--star-blue); }

.star-number {
  color: rgba(6, 119, 189, .16);
  font-variant-numeric: tabular-nums;
}

.star-module {
  position: relative;
  transition: background-color .25s ease, transform .25s ease;
}

.star-module:hover { background: #f0f8ff; transform: translateY(-3px); }

.star-cta {
  background:
    radial-gradient(circle at 85% 25%, rgba(243, 111, 33, .34), transparent 28%),
    linear-gradient(135deg, #052c58 0%, #0677bd 100%);
}

.form-field:focus {
  border-color: var(--star-blue);
  box-shadow: 0 0 0 4px rgba(6, 119, 189, .12);
  outline: none;
}

.form-field[aria-invalid="true"] { border-color: #dc2626; }

@keyframes star-banner-enter {
  from { opacity: 0; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 767px) {
  .star-banner img { min-height: 168px; object-fit: cover; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .star-banner img { animation: none; }
  .star-goal, .star-module { transition: none; }
}
