@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #12151C;
  --text-on-dark: #E8EDF2;
  --bg-panel: #1C2130;
  --text-on-panel: #E8EDF2;
  --bg-accent: #E8923A;
  --text-on-accent: #12151C;
  --bg-glass: rgba(28, 33, 48, 0.82);
  --muted: #9CA3AF;
  --border: rgba(255, 255, 255, 0.09);
  --input-bg: #0C0E14;
  --input-text: #E8EDF2;
  --input-border: rgba(255, 255, 255, 0.14);
  --header-h: 64px;
  --accent-soft: rgba(232, 146, 58, 0.12);
  --accent-ring: rgba(232, 146, 58, 0.35);
  --page-pad: clamp(16px, 4vw, 40px);
  --content-w: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.menu-open { overflow: hidden; }

.surface-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.surface-panel { background: var(--bg-panel); color: var(--text-on-panel); }
.surface-accent { background: var(--bg-accent); color: var(--text-on-accent); }
.surface-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-on-dark);
}
.surface-dark *, .surface-panel *, .surface-accent *, .surface-glass * { color: inherit; }

.mono { font-family: 'IBM Plex Mono', monospace; }

a { color: var(--bg-accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--bg-accent);
  color: var(--text-on-accent);
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
}

/* —— Header / nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
  padding: 0 var(--page-pad);
  border-bottom: 1px solid var(--border);
}

.site-logo {
  font-weight: 700;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.site-logo:hover { text-decoration: none; opacity: 0.9; }

.nav-primary {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}
.nav-primary ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: center;
}
.nav-primary a {
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}
.nav-primary a:hover,
.nav-primary a.active {
  color: var(--text-on-dark);
  background: var(--accent-soft);
  border-color: var(--accent-ring);
  text-decoration: none;
}

.header-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-on-dark);
  cursor: pointer;
  padding: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s, opacity 0.2s;
}
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
}
.menu-toggle-bars::before { top: -6px; }
.menu-toggle-bars::after { top: 6px; }
body.menu-open .menu-toggle-bars { background: transparent; }
body.menu-open .menu-toggle-bars::before { top: 0; transform: rotate(45deg); }
body.menu-open .menu-toggle-bars::after { top: 0; transform: rotate(-45deg); }

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 180;
}
.nav-backdrop.show { display: block; }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 190;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 16px var(--page-pad) 28px;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; }
.nav-mobile a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 4px;
  color: var(--text-on-dark);
  font-size: 1rem;
  border: 1px solid transparent;
}
.nav-mobile a:hover,
.nav-mobile a.active {
  background: var(--accent-soft);
  border-color: var(--accent-ring);
  text-decoration: none;
}
.nav-mobile .nav-index { color: var(--muted); font-size: 0.75rem; min-width: 28px; }
.nav-mobile-contact {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}
.nav-mobile-contact a { color: var(--text-on-dark); padding: 0; border: none; display: inline; }

.page-crumb {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 12px var(--page-pad) 0;
  max-width: calc(var(--content-w) + 2 * var(--page-pad));
  margin: 0 auto;
  width: 100%;
}
.page-crumb a { color: var(--muted); }

main { flex: 1; width: 100%; }

.container {
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  width: 100%;
}

section { padding: clamp(40px, 6vw, 72px) 0; }
section.compact { padding: clamp(32px, 4vw, 48px) 0; }

h1 { font-size: clamp(1.75rem, 4.5vw, 3.25rem); font-weight: 700; line-height: 1.15; margin-bottom: 16px; }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 600; margin-bottom: 20px; }
h3 { font-size: clamp(1.05rem, 2vw, 1.15rem); font-weight: 600; margin-bottom: 12px; }
p { margin-bottom: 16px; }
.lead { font-size: clamp(1rem, 2vw, 1.125rem); color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, filter 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--bg-accent); color: var(--text-on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid rgba(232, 237, 242, 0.4);
}
.btn-outline:hover { border-color: var(--bg-accent); color: var(--bg-accent); }

/* —— Hero —— */
.hero-dashboard {
  min-height: min(85vh, 820px);
  padding: clamp(32px, 5vw, 56px) var(--page-pad) clamp(48px, 6vw, 72px);
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(232, 146, 58, 0.08), transparent 55%),
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
}

.hero-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-accent);
  margin-bottom: 20px;
  max-width: var(--content-w);
  margin-left: auto;
  margin-right: auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  max-width: var(--content-w);
  margin: 0 auto;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.stat-block {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  min-width: 0;
}
.stat-block .mono { font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 500; color: var(--bg-accent); }
.stat-block span { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 4px; }

.hero-card {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-card figcaption { padding: 12px 16px; font-size: 0.8rem; color: var(--muted); }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.trust-strip { font-size: 0.8rem; color: var(--muted); font-family: 'IBM Plex Mono', monospace; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.stats-row > div { padding: clamp(16px, 3vw, 24px); background: var(--bg-panel); min-width: 0; }
.stats-row .mono { font-size: clamp(1.15rem, 2.5vw, 1.5rem); color: var(--bg-accent); word-break: break-word; }

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pillar-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.2s, background 0.2s;
  min-width: 0;
}
.pillar-card:hover { border-color: var(--accent-ring); background: rgba(255,255,255,0.02); }
.pillar-card img { border-radius: 4px; margin-bottom: 16px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.pillar-card .mono { color: var(--bg-accent); font-size: 0.75rem; margin-bottom: 8px; }

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.module-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 0;
}
.module-card .mono { color: var(--bg-accent); margin-bottom: 8px; }

.program-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.program-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.program-table th, .program-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.program-table th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
}

.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: 16px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.accordion-panel { padding: 0 0 16px; color: var(--muted); display: none; }
.accordion-item.open .accordion-panel { display: block; }

.cta-band { text-align: center; padding: clamp(56px, 8vw, 80px) var(--page-pad); }
.cta-band h2 { margin-bottom: 16px; }

.page-media {
  max-width: 560px;
  width: 100%;
  margin: 0 0 28px;
  border-radius: 6px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.page-media.inline { margin: 28px 0; }

.program-detail {
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.program-detail img {
  border-radius: 6px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
}
.program-meta { font-size: 0.85rem; color: var(--muted); margin-top: 12px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.service-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.service-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.service-card .body { padding: 20px; flex: 1; }
.price-tag { font-family: 'IBM Plex Mono', monospace; color: var(--bg-accent); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}
.contact-grid > div { min-width: 0; }
.contact-studio-img {
  border-radius: 6px;
  aspect-ratio: 4/3;
  object-fit: cover;
  width: 100%;
  max-height: 320px;
  margin-bottom: 20px;
}

.contact-form label { display: block; margin-bottom: 16px; font-size: 0.9rem; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 4px;
  color: var(--input-text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--bg-accent);
}
.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%239CA3AF' stroke-width='1.5' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.contact-form option { background: var(--input-bg); color: var(--input-text); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #6B7280; }
.contact-form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.checkbox-label { display: flex; gap: 10px; align-items: flex-start; }
.checkbox-label input {
  width: auto;
  margin-top: 4px;
  accent-color: var(--bg-accent);
}

.faq-item { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.legal-content { max-width: 720px; }
.legal-content h2 { margin-top: 32px; }
.legal-content ul, .legal-content ol { margin: 16px 0 16px 24px; }

.site-footer { border-top: 1px solid var(--border); margin-top: auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: clamp(24px, 4vw, 32px);
  padding: clamp(36px, 5vw, 48px) var(--page-pad);
  max-width: var(--content-w);
  margin: 0 auto;
  width: 100%;
}
.footer-bottom {
  padding: 20px var(--page-pad);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  max-width: var(--content-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.footer-bottom a { color: var(--muted); }
.disclaimer { font-size: 0.8rem; color: var(--muted); margin-top: 12px; line-height: 1.5; }

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  padding: 20px var(--page-pad);
  border-top: 1px solid var(--border);
  display: none;
  max-width: 100%;
}
.cookie-banner.show { display: block; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cookie-custom { margin-top: 16px; display: none; }
.cookie-custom.show { display: block; }

.error-page {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(32px, 5vw, 48px) var(--page-pad);
}

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Tablet */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr minmax(220px, 300px); }
  .program-detail { grid-template-columns: minmax(140px, 200px) minmax(0, 1fr); }
}

/* Mobile / small tablet */
@media (max-width: 860px) {
  .nav-primary,
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .hero-dashboard { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .hero-stats { grid-template-columns: 1fr; }

  .pillars,
  .module-grid,
  .stats-row,
  .service-grid,
  .contact-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .program-detail { grid-template-columns: 1fr; }
  .program-detail img { max-width: 360px; }

  .page-media { max-width: 100%; max-height: 220px; }

  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .header-bar { gap: 12px; }
  .btn { padding: 10px 16px; font-size: 0.85rem; }
  .cookie-actions .btn { flex: 1 1 auto; }
  .stat-block { padding: 12px; }
}
