/* Bold Gradient theme — palette is substituted at generate time via string.Template. */
:root {
  --bg: #23345B;
  --fg: #F9FAFB;
  --muted: #9CA3AF;
  --card: #2E3E63;
  --accent: #4E75CC;
  --grad-a: #4E75CC;
  --grad-b: #C6CFD9;
  --cta-bg: #FFFFFF;
  --cta-fg: #0F172A;
  --radius: 14px;
  --border: 1px solid rgba(255,255,255,0.08);
  --shadow: 0 12px 48px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--fg); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  border-bottom: var(--border);
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.brand-icon { border-radius: 8px; }
.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--fg); }

.hero {
  text-align: center;
  padding: 96px 24px 64px;
  max-width: 920px;
  margin: 0 auto;
}
.hero-icon { border-radius: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 800;
}
.gradient-text {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.subhead {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 620px;
  margin: 0 auto 32px;
}
.cta {
  display: inline-block;
  background: var(--cta-bg);
  color: var(--cta-fg);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.cta:hover { transform: translateY(-1px); }
.cta[aria-disabled="true"] { opacity: 0.7; pointer-events: none; }
.cta-disabled { opacity: 0.8; cursor: default; }
.cta-disabled:hover { transform: none; }

.screens {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 28px;
}
.screen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
/* iPad shots are 3:4, so give them a wider min and fewer columns. */
.screen-grid-ipad {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  max-width: 940px;
  margin: 0 auto;
}
/* Class display:grid beats the UA [hidden] rule, so restore it for the toggle. */
.screen-grid[hidden] { display: none; }
.screen-card {
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}
.screen-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
.screen-card.placeholder {
  aspect-ratio: 9 / 16;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  color: var(--cta-fg);
  font-weight: 600;
}

.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.feature-card h3 { margin: 0 0 8px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); }

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.page h1 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 24px; }
.page h2 { margin-top: 32px; }
.prose p { color: var(--muted); }
.prose a { color: var(--fg); text-decoration: underline; }

/* News timeline */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}
.news-card {
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.news-card.upcoming {
  background:
    radial-gradient(130% 160% at 0% 0%, rgba(78,117,204,0.34), transparent 58%),
    var(--card);
}
.news-card .news-date {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.news-card h2 { margin: 0 0 8px; font-size: 20px; }
.news-card p { margin: 0; color: var(--muted); }
.news-card .badge { margin-bottom: 12px; }

/* Announcements */
.announcements {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px 32px;
}
.announce-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.announce-card {
  position: relative;
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  padding: 24px;
  overflow: hidden;
}
.announce-card.lead {
  grid-column: 1 / -1;
  background:
    radial-gradient(130% 160% at 0% 0%, rgba(78,117,204,0.38), transparent 58%),
    var(--card);
  box-shadow: var(--shadow);
}
.announce-card.lead h3 { font-size: clamp(22px, 3vw, 30px); }
/* The two "what's new" cards sit centered below the lead, not edge-to-edge. */
.announce-pair {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.announce-pair .announce-card {
  flex: 1 1 320px;
  max-width: 420px;
}
.announce-card h3 { margin: 12px 0 8px; font-size: 19px; }
.announce-card p { margin: 0; color: var(--muted); }
.announce-card p + p { margin-top: 10px; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.badge-new {
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  color: var(--cta-fg);
}
.badge-new-sm {
  background: rgba(78,117,204,0.22);
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.14);
}

/* Videos */
.videos {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px;
}
.video-toggle-row,
.screen-toggle-row {
  display: flex;
  justify-content: center;
  margin: 0 0 28px;
}
.video-toggle,
.screen-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(0,0,0,0.28);
  border: var(--border);
  border-radius: 999px;
}
.video-toggle button,
.screen-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.video-toggle button[aria-pressed="true"],
.screen-toggle button[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.video-card {
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow);
}
.video-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-poster {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 66px;
  height: 66px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  transition: transform .15s ease, background .15s ease;
}
.video-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
}
.video-thumb:hover .video-play,
.video-thumb:focus-visible .video-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--accent);
}
.video-thumb:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.video-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 6px 4px;
}
.video-meta h3 { margin: 0; font-size: 16px; }

/* Video modal (lightbox) */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal[hidden] { display: none; }
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.video-modal-dialog {
  position: relative;
  width: min(94vw, 1100px, 153vh);
}
.video-modal-video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border-radius: var(--radius);
  background: #000;
  box-shadow: var(--shadow);
}
.video-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: var(--border);
  background: var(--card);
  color: var(--fg);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.video-modal-close:hover { transform: scale(1.08); }
@media (max-width: 540px) {
  .video-modal { padding: 12px; }
  .video-modal-close { top: -6px; right: -6px; }
}

.site-footer {
  border-top: var(--border);
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.site-footer a { color: var(--muted); }
