:root {
  --blue: #2868df;
  --ink: #10203f;
  --muted: #657287;
  --line: #e7edf6;
  --soft: #eef7ff;
  --rose: #e84c74;
  --mint: #2ea97d;
  --shadow: 0 24px 70px rgba(35, 91, 184, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 14px clamp(20px, 5vw, 64px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; gap: 12px; align-items: center; }
.brand img, .brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 14px 28px rgba(40,104,223,.24);
}
.brand-mark {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #164fc8, #4b88ff);
}
.brand strong { display: block; font-size: 17px; }
.brand small { color: var(--blue); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; }
.site-nav { display: flex; gap: 30px; align-items: center; font-weight: 700; color: #35405a; }
.site-nav a { font-size: 14px; }
.nav-button, .primary-button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  color: #fff !important;
  background: var(--blue);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(40,104,223,.25);
}
.menu-toggle { display: none; border: 0; background: transparent; font-size: 26px; }
.hero {
  position: relative;
  min-height: 640px;
  padding: 110px clamp(20px, 7vw, 90px) 80px;
  overflow: hidden;
  background: linear-gradient(110deg, #f2f9ff 0%, #f7fbff 54%, #fff 100%);
}
.hero::before {
  position: absolute;
  inset: auto 8% 8% auto;
  width: 120px;
  height: 120px;
  content: "";
  background: #ffd5df;
  border-radius: 50%;
  opacity: .8;
}
.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 50px;
}
.hero-slider .hero-slide {
  display: none;
}
.hero-slider .hero-slide.is-active {
  display: grid;
  animation: heroSlideIn .45s ease both;
}
.hero-slide.is-image-only {
  grid-template-columns: 1fr;
}
.hero-slide.is-image-only .hero-visual {
  min-height: 0;
  aspect-ratio: 16 / 5;
}
.hero-slide.is-image-only .hero-orbit {
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
}
.hero-slide.is-image-only .hero-orbit span {
  color: #fff;
}
.eyebrow {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.hero h1, .section-heading h2, .showcase-copy h2, .cta-section h2, .article-page h1 {
  margin: 0;
  color: #102044;
  font-weight: 800;
  line-height: .98;
}
.hero h1 { max-width: 680px; font-size: clamp(46px, 6vw, 78px); }
.hero h1 span { color: var(--blue); }
.hero-text {
  max-width: 640px;
  margin: 28px 0 34px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.play-link { display: inline-flex; gap: 12px; align-items: center; font-weight: 800; }
.play-link span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--blue);
  border: 1px solid #dbe7f7;
  border-radius: 50%;
}
.hero-checks { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; color: var(--muted); font-size: 14px; }
.hero-checks span { color: #69788f; }
.hero-visual { position: relative; min-height: 460px; }
.hero-orbit {
  position: absolute;
  top: 60px;
  right: 26px;
  display: grid;
  place-items: center;
  width: 305px;
  height: 305px;
  color: rgba(255,255,255,.26);
  font-size: 88px;
  font-weight: 900;
  background: linear-gradient(145deg, #367df3, #104ab3);
  border-radius: 36% 48% 44% 40%;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-orbit img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide.is-image-only .hero-orbit img {
  object-fit: contain;
  background: #07162c;
}
.floating-card {
  position: absolute;
  z-index: 2;
  padding: 22px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.card-main { top: 105px; left: 10px; width: 360px; }
.card-main small { color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; }
.card-main strong { display: block; margin-top: 22px; font-size: 30px; }
.card-main p { color: var(--muted); }
.card-main i { display: block; width: 68%; height: 7px; background: linear-gradient(90deg, var(--blue), #6fc1ff); border-radius: 99px; }
.card-top { top: 38px; right: 0; }
.card-bottom { left: -58px; bottom: 80px; }
.floating-card strong { color: var(--blue); font-size: 28px; }
.hero-dots {
  position: absolute;
  left: clamp(20px, 7vw, 90px);
  bottom: 38px;
  z-index: 5;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #bfd2ee;
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.hero-dots button.is-active {
  width: 34px;
  background: var(--blue);
}
.portal-section, .showcase-section, .news-section, .cta-section, .article-page {
  padding: 86px clamp(20px, 7vw, 90px);
}
.section-heading { max-width: 640px; margin-bottom: 40px; }
.section-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 900;
}
.section-heading h2, .showcase-copy h2, .cta-section h2 { font-size: clamp(34px, 4vw, 56px); }
.section-heading p:not(.eyebrow), .showcase-copy > p, .cta-section p, .article-body {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}
.link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.quick-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 162px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(16,32,68,.07);
}
.quick-card span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--blue);
  font-weight: 900;
  background: var(--soft);
  border-radius: 10px;
}
.quick-card strong { font-size: 20px; }
.quick-card small { color: var(--muted); }
.quick-card i { position: absolute; right: 22px; top: 22px; color: var(--blue); font-style: normal; }
.showcase-section {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1fr);
  gap: 60px;
  background: #f7fbff;
}
.showcase-list { display: grid; gap: 18px; margin-top: 30px; }
.showcase-list div { display: flex; gap: 18px; align-items: center; font-weight: 800; }
.showcase-list span { color: var(--blue); font-weight: 900; }
.showcase-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.showcase-panel article {
  min-height: 170px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.showcase-panel small { color: var(--rose); font-weight: 900; text-transform: uppercase; }
.showcase-panel strong { display: block; margin: 12px 0; font-size: 22px; }
.showcase-panel p { color: var(--muted); line-height: 1.6; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.news-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(16,32,68,.07);
}
.news-card img, .news-placeholder { width: 100%; height: 190px; object-fit: cover; }
.news-placeholder { display: grid; place-items: center; color: #fff; font-size: 40px; font-weight: 900; background: linear-gradient(135deg, var(--blue), var(--mint)); }
.news-card small, .news-card h3, .news-card p, .news-card a { display: block; margin-left: 22px; margin-right: 22px; }
.news-card small { margin-top: 22px; color: var(--blue); font-weight: 900; text-transform: uppercase; }
.news-card h3 { font-size: 22px; }
.news-card p { color: var(--muted); line-height: 1.6; }
.news-card a { margin-bottom: 22px; color: var(--blue); font-weight: 800; }
.cta-section { color: #fff; background: linear-gradient(135deg, #164fc8, #2b75ee); }
.cta-section h2, .cta-section p, .cta-section .eyebrow { color: #fff; }
.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  padding: 52px clamp(20px, 7vw, 90px);
  color: #dce8ff;
  background: #0f1f3d;
}
.site-footer strong { color: #fff; }
.site-footer small { grid-column: 1 / -1; color: #9fb0ca; }
.article-page { max-width: 920px; margin: 0 auto; }
.news-page {
  padding: 82px clamp(20px, 7vw, 90px);
}
.news-page-head {
  max-width: 760px;
  margin-bottom: 38px;
}
.news-page-head h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
}
.news-page-head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.7;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
.pagination a, .pagination span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}
.pagination a {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}
.article-page > a { color: var(--blue); font-weight: 800; }
.article-page img { width: 100%; max-height: 430px; object-fit: cover; margin: 30px 0; border-radius: 8px; }
.article-body { white-space: pre-wrap; }
.article-gallery { margin-top: 44px; }
.article-gallery h2 { margin: 0 0 18px; font-size: 28px; }
.article-gallery div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.article-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(16,32,68,.08);
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 24px 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: grid; }
  .hero-slide, .showcase-section { grid-template-columns: 1fr; }
  .hero { padding-top: 70px; }
  .hero-visual { min-height: 380px; }
  .hero-slide.is-image-only .hero-visual {
    min-height: 0;
    aspect-ratio: 16 / 7;
  }
  .link-grid, .news-grid, .showcase-panel, .site-footer { grid-template-columns: 1fr; }
  .card-main { left: 0; width: min(100%, 360px); }
  .card-bottom { left: 0; }
}
@keyframes heroSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 43px; }
  .portal-section, .showcase-section, .news-section, .news-page, .cta-section, .article-page { padding: 62px 20px; }
  .hero-slide.is-image-only .hero-visual { aspect-ratio: 4 / 5; }
  .pagination { align-items: stretch; flex-direction: column; }
  .pagination a, .pagination span { justify-content: center; }
}

/* Embed link viewer */
:root { --embed-bar-height: 46px; }
.embed-body { margin: 0; height: 100vh; overflow: hidden; background: #0b0c10; }
.embed-page { position: relative; height: 100vh; width: 100vw; }
.embed-bar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--embed-bar-height);
  display: flex; align-items: center; gap: 16px; box-sizing: border-box;
  padding: 0 16px; background: #12131a; color: #fff;
  font-size: 14px; box-shadow: 0 1px 0 rgba(255,255,255,0.06); z-index: 2;
}
.embed-back, .embed-open { color: #fff; text-decoration: none; opacity: 0.85; white-space: nowrap; }
.embed-back:hover, .embed-open:hover { opacity: 1; }
.embed-title { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.embed-frame {
  position: fixed; top: var(--embed-bar-height); left: 0; right: 0; bottom: 0;
  width: 100vw; height: calc(100vh - var(--embed-bar-height));
  border: 0; background: #fff; display: block;
}
