/* Calbert Foundation – modern dark material theme */

/* Reset & base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --max-width: 1200px;

  --bg-page: radial-gradient(circle at top, #101528 0%, #050712 42%, #02030a 100%);
  --bg-header: rgba(3, 6, 18, 0.92);
  --bg-surface: rgba(11, 16, 34, 0.98);
  --bg-surface-soft: rgba(17, 24, 48, 0.96);
  --bg-elevated: linear-gradient(145deg, #111827, #020617);

  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.18);
  --accent-strong: #fb923c;
  --accent-secondary: #38bdf8;

  --border-subtle: rgba(148, 163, 184, 0.24);
  --shadow-soft: 0 22px 70px rgba(0, 0, 0, 0.65);

  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;

  --radius-lg: 24px;
  --radius-xl: 30px;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  line-height: 1.6;
}

/* Layout shell */

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header / nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, var(--bg-header), rgba(3, 7, 18, 0.7));
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-logo {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6));
}

.nav-title {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.94rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  padding-block: 0.2rem;
  transition: color 0.18s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent));
  transition: width 0.22s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text-main);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-links a.nav-cta {
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent));
  color: #020617;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
  border: none;
}

.nav-links a.nav-cta::after {
  display: none;
}

.nav-links a.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.85);
}

/* Hero */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.2rem 1.75rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.1fr);
  gap: 2.75rem;
  align-items: center;
}

.hero-text kbd {
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #e0f2fe;
}

.hero-text kbd::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-title {
  font-size: 2.6rem;
  letter-spacing: 0.02em;
  margin: 1.1rem 0 0.65rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 38rem;
}

.hero-cta-row {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-meta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.86rem;
  color: var(--text-soft);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent));
  color: #020617;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.7);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.85);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(148, 163, 184, 0.3);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: rgba(31, 41, 55, 0.95);
}

/* Hero media */

.hero-media {
  position: relative;
  min-height: 260px;
}

.hero-image-shell {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.22), rgba(3, 7, 18, 0.98));
  box-shadow: var(--shadow-soft);
}

.hero-image-shell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-video-badge {
  position: absolute;
  left: 1.7rem;
  bottom: 1.6rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: rgba(3, 7, 18, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-video-badge .play-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
}

/* Sections */

section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

.section-block {
  margin-bottom: 3rem;
  padding: 2.1rem 2.1rem 2.3rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(3, 7, 18, 1));
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
}

.section-block.alt {
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.07), rgba(15, 23, 42, 0.98));
}

.section-heading {
  margin: 0 0 0.6rem;
  font-size: 1.4rem;
}

.section-lead {
  margin: 0 0 1.4rem;
  color: var(--text-muted);
  max-width: 44rem;
}

/* Grids & cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}

.card {
  background: var(--bg-elevated);
  border-radius: 20px;
  padding: 1.35rem 1.4rem 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover::before {
  opacity: 1;
}

.card-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.7);
  font-size: 0.95rem;
}

.card h3 {
  position: relative;
  z-index: 1;
  margin: 0.45rem 0 0.4rem;
  font-size: 1rem;
}

.card p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Framework cards */

.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
}

.framework-card {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0.98));
  border-radius: 22px;
  padding: 1.6rem 1.7rem 1.8rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.75);
}

.framework-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}

.framework-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
}

.framework-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.framework-card ul {
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 1.3rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.framework-card ul li {
  margin-bottom: 0.3rem;
}

.framework-card ul li::before {
  content: "•";
  color: var(--accent-strong);
  margin-right: 0.5rem;
}

.framework-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.framework-footer a.btn-ghost {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

/* Download pill */

.download-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.8rem;
  text-decoration: none;
  color: var(--accent-secondary);
}

.download-pill:hover {
  border-color: var(--accent-secondary);
  color: #e0f2fe;
}

/* Stat + link panels */

.stat-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: stretch;
}

.stat-panel {
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.28), rgba(15, 23, 42, 0.98));
  border-radius: 22px;
  padding: 1.8rem 1.9rem 2rem;
  border: 1px solid rgba(248, 113, 22, 0.5);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
}

.stat-caption {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
}

.stat-body {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.links-panel {
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.24), rgba(15, 23, 42, 0.98));
  border-radius: 22px;
  padding: 1.8rem 1.9rem 2rem;
  border: 1px solid rgba(56, 189, 248, 0.55);
}

.links-panel h4 {
  margin: 0 0 0.5rem;
}

.links-panel p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.links-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.links-list a {
  color: #e0f2fe;
  text-decoration: none;
}

.links-list a:hover {
  text-decoration: underline;
}

/* Generic layout helpers */

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: flex-start;
}

.vertical-media-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vertical-media-stack img,
.vertical-media-stack video {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.9);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
  background: #020617;
}

/* Video cards */

.video-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(3, 7, 18, 0.98));
  border-radius: 20px;
  padding: 1.2rem 1.35rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.8);
}

.video-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.video-card-title strong {
  font-size: 0.98rem;
}

.video-card-tag {
  font-size: 0.78rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* Google Forms */

.form-frame {
  width: 100%;
  min-height: 640px;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

/* Social row */

.social-row {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.social-row a {
  color: var(--text-muted);
  text-decoration: none;
}

.social-row a:hover {
  color: var(--text-main);
}

/* Footer */

.site-footer {
  margin-top: auto;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), #020617);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.7rem 1.75rem 2.1rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand img {
  height: 34px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.8));
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-links {
  justify-self: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-main);
}

/* Utilities */

.highlight-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--accent-strong);
}

.text-accent {
  color: var(--accent-strong);
}

/* Responsive tweaks */

@media (max-width: 1024px) {
  .hero,
  .split-layout,
  .stat-layout,
  .framework-grid,
  .card-grid,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.4rem;
  }

  .hero-media {
    order: -1;
  }
}

@media (max-width: 720px) {
  .navbar {
    padding-inline: 1.1rem;
    flex-wrap: wrap;
  }

  section {
    padding-inline: 1.1rem;
  }

  .section-block {
    padding-inline: 1.4rem;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .card-grid,
  .framework-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* Accessibility: focus outlines */
a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--accent-secondary);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0.25rem;
  padding: 0.5rem 0.9rem;
  background: #020617;
  color: #e5e7eb;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 0.85rem;
  z-index: 999;
  text-decoration: none;
}
.skip-link:focus {
  left: 1rem;
}

/* Motion & animation (respects user preference) */
@media (prefers-reduced-motion: no-preference) {
  .hero,
  .section-block {
    animation: fade-up 0.6s ease both;
  }
  .section-block:nth-of-type(2) {
    animation-delay: 0.06s;
  }
  .section-block:nth-of-type(3) {
    animation-delay: 0.1s;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
