:root {
  --bg0: #070A12;
  --bg1: #0B1224;

  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.08);

  --text: #F5F7FF;
  --muted: rgba(245, 247, 255, 0.72);
  --border: rgba(255, 255, 255, 0.12);

  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow2: 0 12px 40px rgba(0, 0, 0, 0.35);

  --accent: #7C3AED;  /* purple */
  --accent2: #22D3EE; /* cyan */
  --btnText: #0B0F1B;

  --max: 980px;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(124, 58, 237, 0.22), transparent 55%),
    radial-gradient(900px 700px at 80% 15%, rgba(34, 211, 238, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 16px 72px;
}

/* ===== HERO ===== */
.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 18px;
  padding: 10px 0 8px;
  align-items: stretch;
}

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

.heroInner { padding: 6px 0 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 247, 255, 0.78);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
}

h1 {
  margin: 14px 0 10px;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.sub {
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--muted);
  max-width: 62ch;
}

.btnrow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin: 12px 0 0;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;

  background: linear-gradient(135deg, rgba(124,58,237,1), rgba(34,211,238,1));
  color: var(--btnText);

  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 750;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  box-shadow: 0 14px 40px rgba(124, 58, 237, 0.28);
  transform: translateY(0);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease, opacity 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 52px rgba(34, 211, 238, 0.20);
  filter: saturate(1.05);
  text-decoration: none;
}

.btn:active { transform: translateY(0); }

.btn.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn.secondary:hover {
  box-shadow: 0 16px 50px rgba(0,0,0,0.25);
}

.btnIcon {
  font-weight: 900;
  opacity: 0.9;
}

/* focus states (keyboard) */
.btn:focus-visible,
.iconBtn:focus-visible,
.dot:focus-visible,
.carousel:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.55);
  outline-offset: 3px;
}

.heroStats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

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

.stat {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 12px 12px 10px;
  box-shadow: var(--shadow2);
  backdrop-filter: blur(10px);
}

.statTop {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,247,255,0.74);
}

.statBig {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.01em;
}

.statBot {
  margin-top: 2px;
  font-size: 13px;
  color: rgba(245,247,255,0.70);
}

.heroArt {
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 420px at 40% 20%, rgba(124,58,237,0.35), transparent 65%),
    radial-gradient(520px 380px at 70% 70%, rgba(34,211,238,0.22), transparent 60%),
    rgba(255,255,255,0.03);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  min-height: 240px;
}

@media (max-width: 880px) {
  .heroArt { display: none; }
}

.heroArt::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), transparent 45%, rgba(255,255,255,0.08));
  pointer-events: none;
  mix-blend-mode: overlay;
}

.glassCard {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(12px);
  padding: 14px 14px 12px;
}

.glassTitle {
  font-weight: 850;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.glassLine {
  font-size: 13px;
  color: rgba(245,247,255,0.72);
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.glassLine:first-of-type { border-top: 0; }

/* ===== SECTIONS ===== */
.divider {
  margin: 28px 0;
  height: 1px;
  background: rgba(255,255,255,0.10);
}

.sectionTitle {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 14px;
  box-shadow: var(--shadow2);
  backdrop-filter: blur(10px);
}

.card.center { text-align: center; }

.hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(245,247,255,0.70);
}

/* ===== CAL EMBED ===== */
/* wrapper looks like a premium frame */
.calShell {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background:
    radial-gradient(700px 260px at 20% 10%, rgba(124,58,237,0.18), transparent 60%),
    rgba(255,255,255,0.04);
  overflow: hidden;
}

/* embed container */
.calFrame {
  width: 100%;
  min-height: 720px;  /* JS will keep it sensible */
  height: auto;
  overflow: auto;
  background: rgba(255,255,255,0.02);
}

/* if Cal renders inside an iframe, make sure it fills */
.calFrame iframe {
  width: 100% !important;
  min-height: 720px !important;
  border: 0 !important;
  display: block;
}

@media (max-width: 520px) {
  .calFrame { min-height: 860px; }
  .calFrame iframe { min-height: 860px !important; }
}

/* ===== CAROUSEL ===== */
.carouselBlock {
  margin-top: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  border-radius: 22px;
  padding: 14px;
  box-shadow: var(--shadow2);
  backdrop-filter: blur(10px);
}

.carouselHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.carouselTitle {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.carouselControls { display: flex; gap: 8px; }

.iconBtn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 140ms ease, background 140ms ease, opacity 140ms ease;
}

.iconBtn:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.09);
}

.iconBtn:active { transform: translateY(0); }

.carousel {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.18);
  position: relative;
  outline: none;
}

.carouselTrack {
  display: flex;
  width: 100%;
  will-change: transform;
  transition: transform 240ms ease;
  touch-action: pan-y; /* smoother swipe */
}

.carouselTrack.dragging {
  transition: none;
  cursor: grabbing;
}

.slide {
  min-width: 100%;
  margin: 0;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.03);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* subtle shine overlay */
.carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), transparent 40%, rgba(255,255,255,0.06));
  mix-blend-mode: overlay;
}

.dots {
  display: flex;
  gap: 8px;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  justify-content: center;
  pointer-events: auto;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.14);
  cursor: pointer;
  padding: 0;
}

.dot.active {
  background: linear-gradient(135deg, rgba(124,58,237,1), rgba(34,211,238,1));
  border-color: rgba(255,255,255,0.35);
}

.carouselHint {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(245,247,255,0.68);
}

/* ===== BOTTOM CTA ===== */
.bottomCta {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.small {
  font-size: 13px;
  color: rgba(245,247,255,0.72);
  margin-top: 6px;
  text-align: center;
}

/* ===== MOBILE POLISH ===== */
@media (max-width: 520px) {
  .wrap { padding-bottom: 64px; }
  .divider { margin: 22px 0; }
  .card { padding: 12px; border-radius: 16px; }
  .carouselBlock { padding: 12px; border-radius: 18px; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .carouselTrack, .iconBtn { transition: none !important; }
}