:root {
  --bg: #f7f8fa;
  --bg-soft: #eef2f6;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #5f6b7a;
  --accent: #1a73e8;
  --accent-soft: #d6e6ff;
  --stroke: rgba(15, 23, 42, 0.08);
  --shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: radial-gradient(circle at top left, rgba(26, 115, 232, 0.12), transparent 40%),
    linear-gradient(180deg, #f9fbff 0%, #f7f8fa 55%, #f4f6f8 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.bg-orbit {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 85% 8%, rgba(26, 115, 232, 0.12), transparent 45%);
  background-size: 70px 70px, 70px 70px, 100% 100%;
  opacity: 0.25;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

.site-header {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.logo img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.logo-text {
  display: flex;
  gap: 6px;
  align-items: baseline;
  color: var(--text);
}

.logo-accent {
  color: var(--accent);
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

.cta {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 36px;
  align-items: start;
  padding: 80px 0 48px;
}

.hero-content,
.hero-card {
  min-width: 0;
}

.hero-content h1 {
  font-family: "Newsreader", serif;
  font-weight: 500;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  margin: 16px 0;
}

.role-rotate {
  display: inline-block;
  min-width: 18ch;
  white-space: nowrap;
  border-right: 2px solid rgba(15, 23, 42, 0.35);
  padding-right: 6px;
}

.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
}

.btn.ghost {
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero-meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.hero-card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(circle, rgba(26, 115, 232, 0.18), transparent 60%);
  z-index: -1;
}

.card-list {
  list-style: none;
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.card-list a {
  display: grid;
  gap: 6px;
}

.card-list span {
  font-weight: 600;
}

.card-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.95rem;
}

.section {
  padding: 56px 0;
}

.section-header {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  max-width: 640px;
}

.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-family: "Newsreader", serif;
  font-weight: 500;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.panel {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--stroke);
}

.edu-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.edu-logos img {
  height: 36px;
  width: auto;
  opacity: 0.85;
  object-fit: contain;
}

.post-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: #ffffff;
  display: grid;
  gap: 10px;
}

.post-card.feature {
  background: linear-gradient(140deg, rgba(26, 115, 232, 0.12), rgba(255, 255, 255, 0.9));
}

.nostalgia {
  position: relative;
}

.nostalgia-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
}

.nostalgia-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.nostalgia-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  width: fit-content;
}

.nostalgia-visual img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  display: block;
}

.nostalgia-clients {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  padding-top: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nostalgia-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
}

.nostalgia-clients img {
  height: 24px;
  width: auto;
  opacity: 0.8;
  max-width: 96px;
  object-fit: contain;
  flex: 0 0 auto;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.text-link {
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.link-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.callout {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--stroke);
}

.newsletter {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.newsletter input {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #ffffff;
  color: var(--text);
  min-width: 220px;
}

.newsletter button {
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.footer {
  max-width: var(--max-width);
  margin: 0 auto 40px;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--stroke);
}

.footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 8px;
}

.footer-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(6px);
  z-index: 20;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.post-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.post {
  display: grid;
  gap: 24px;
}

.post h1 {
  font-family: "Newsreader", serif;
  font-weight: 500;
  font-size: clamp(2rem, 3vw, 3rem);
}

.post h2 {
  font-size: 1.5rem;
  margin-top: 8px;
}

.post p {
  color: var(--muted);
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--stroke);
  padding-top: 20px;
}

.blog-hero {
  padding-bottom: 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .nostalgia-clients {
    flex-wrap: wrap;
  }

  .nostalgia-grid {
    grid-template-columns: 1fr;
  }

  .role-rotate {
    min-width: 0;
    white-space: normal;
    border-right: none;
    padding-right: 0;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-wrap: wrap;
  }

  .post-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
