/* EduConnect — app hub landing. Static: HTML + CSS + JS. */

:root {
  --chalk: #EEF3F7;
  --chalk-2: #E2E9F0;
  --ink: #12213A;
  --ink-2: #4A5A75;
  --line: #C9D4E0;
  --white: #FFFFFF;
  --gold: #D99A1E;

  --display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  --body: "Manrope", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --measure: 62ch;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  margin: 0;
}

/* ---------- header ---------- */

.top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--gutter);
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.brand-mark { width: 30px; height: 30px; }

.top-nav { display: flex; gap: 28px; }

.top-nav a {
  text-decoration: none;
  font-weight: 600;
  opacity: 0.85;
}
.top-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  background: radial-gradient(120% 90% at 80% 10%, #1F3A63 0%, var(--ink) 55%, #0B1527 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 110px var(--gutter) 72px;
  max-width: 44rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  max-width: 15ch;
}

.hero-lead {
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  max-width: 40ch;
  margin: 24px 0 32px;
  color: #C9D6EA;
}

.hero-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform .15s ease, background .15s ease;
}
.hero-cta:hover { background: #F0AF2E; transform: translateY(-1px); }

.hero-chips {
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  --hue: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #DCE6F5;
  transition: border-color .15s ease, background .15s ease;
}
.chip::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hue);
  box-shadow: 0 0 0 0 var(--hue);
  transition: box-shadow .15s ease;
}
.chip:hover, .chip:focus-visible {
  border-color: var(--hue);
  background: rgba(255,255,255,0.06);
  color: var(--white);
}
.chip:hover::before, .chip:focus-visible::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--hue) 35%, transparent); }

.hero-hint {
  position: absolute;
  right: var(--gutter);
  bottom: 24px;
  margin: 0;
  font-size: 0.85rem;
  color: #8FA3C2;
  z-index: 2;
}

/* ---------- app grid ---------- */

.apps {
  padding: 88px var(--gutter) 64px;
  max-width: 1280px;
  margin: 0 auto;
}

.apps-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.apps-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }

.apps-head p {
  margin: 0;
  color: var(--ink-2);
  max-width: 40ch;
}

.grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
}

.card {
  --hue: var(--gold);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: var(--hue);
  box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--hue) 60%, transparent);
}

.card-band {
  height: 116px;
  background: var(--hue);
  display: grid;
  place-items: center;
  color: var(--white);
}

.card-band svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.1;
  margin: 0;
}

.card-title a {
  text-decoration: none;
}
/* Whole card clickable via the title link. */
.card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.card-tagline {
  margin: 0;
  color: var(--hue);
  font-weight: 600;
  font-size: 0.95rem;
}

.card-desc {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 0.97rem;
}

.card-meta {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--ink-2);
}

.card-kind {
  background: var(--chalk-2);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 600;
  color: var(--ink);
}

.card-open {
  font-weight: 700;
  color: var(--ink);
}

/* ---------- about ---------- */

.about {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 72px var(--gutter);
}

.about-inner {
  max-width: var(--measure);
  margin: 0 auto;
}

.about h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 18px; }
.about p { margin: 0 0 16px; color: var(--ink-2); }

/* ---------- footer ---------- */

.foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 28px var(--gutter) 40px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

/* ---------- responsive ---------- */

@media (max-width: 1099px) {
  /* 3D planet takes the top; copy moves below. */
  .hero-copy { padding-top: 46svh; }
}

@media (max-width: 720px) {
  .top { padding: 16px var(--gutter); }
  .top-nav { gap: 18px; font-size: 0.95rem; }
  .hero { min-height: 92svh; }
  .hero-copy { padding-bottom: 56px; }
  .hero-hint { display: none; }
  .apps { padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .hero-cta { transition: none; }
  .card:hover { transform: none; }
}
