:root {
  --bg: #07090f;
  --bg-accent-1: rgba(15, 45, 73, 0.55);
  --bg-accent-2: rgba(35, 19, 55, 0.45);
  --card: rgba(14, 18, 27, 0.82);
  --card-strong: rgba(17, 24, 38, 0.92);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --text: #eef3f9;
  --muted: #9ca8b7;
  --brand: #60d6ff;
  --brand-warm: #ffb357;
  --accent: #3cf0c4;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

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

html,
body {
  height: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(140deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.45)),
    url("../images/arbiteria_bg.png"),
    var(--bg);
  background-repeat: no-repeat;
  background-size: auto, cover, auto;
  background-position: center, center, center;
  background-attachment: fixed, fixed, fixed;
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  padding: 8px 14px;
  background: #000;
  color: #fff;
  z-index: 999;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  background: rgba(6, 9, 15, 0.92);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border);
  z-index: 99;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: flex;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  align-items: center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  height: 56px;
  width: auto;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.16em;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-warm));
  color: #041019 !important;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--text);
}

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.hero {
  padding: 56px 0 90px;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 420px at 70% 20%, rgba(96, 214, 255, 0.18), transparent);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  align-items: center;
  position: relative;
}

.hero-media {
  grid-column: 1 / -1;
  margin-bottom: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-copy {
  grid-column: span 7;
  display: grid;
  gap: 18px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1.1;
}

.hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-warm));
  color: #041019;
  box-shadow: 0 18px 36px rgba(96, 214, 255, 0.25);
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn:hover,
.btn:focus,
.btn-secondary:hover,
.btn-secondary:focus {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.24);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin: 12px 0 0;
}

.hero-metrics dt {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-warm);
}

.hero-metrics dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.hero-card {
  grid-column: span 5;
  background: var(--card-strong);
  border-radius: var(--radius-lg);
  padding: 26px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card-head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.card-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--brand);
}

.card-head h2 {
  margin: 0;
  font-size: 24px;
}

.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

@media (max-width: 720px) {
  .card-list {
    grid-template-columns: 1fr;
  }
}

.card-list li {
  position: relative;
  padding: 16px 18px 16px 70px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.card-list li:nth-child(2)::before {
  background: linear-gradient(135deg, var(--brand), var(--brand-warm));
}

.card-list li:nth-child(3)::before {
  background: linear-gradient(135deg, var(--brand-warm), var(--accent));
}

.card-list li:nth-child(4)::before {
  background: linear-gradient(135deg, var(--brand), rgba(255, 255, 255, 0.4));
}

.card-list li::after {
  content: "";
  position: absolute;
  left: 37px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.8 15.6 6.9 11.7l1.2-1.2 2.7 2.7 4.8-5 1.2 1.1-6 6.3Z'/%3E%3C/svg%3E");
  background: rgba(0, 0, 0, 0.85);
}

.card-list strong {
  display: block;
  font-size: 16px;
}

.card-list li > span {
  color: var(--muted);
  font-size: 14px;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.pillar {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.pillar h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.pillar p {
  margin: 0;
  color: var(--muted);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.program-card {
  background: linear-gradient(160deg, rgba(10, 14, 20, 0.9), rgba(17, 30, 45, 0.95));
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow);
}

.program-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.program-card h3 {
  margin: 0;
  font-size: 22px;
}

.program-tag {
  align-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--brand);
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.journey-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.journey-card h3 {
  margin: 0;
  font-size: 22px;
}

.journey-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.journey-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.journey-week {
  min-width: 88px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--brand);
}

.journey-topic {
  flex: 1;
  color: var(--muted);
  font-size: 14px;
}

.journey-optional {
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.journey-subhead {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.journey-footnote {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.scale-figure {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 7, 12, 0.85);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.scale-figure img {
  width: 100%;
  display: block;
}

.scale-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.future-visual {
  width: 100%;
  background: rgba(4, 6, 10, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0 6px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
  margin-bottom: 16px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.future-visual img {
  width: min(1100px, 90%);
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.future-caption {
  width: min(960px, 88%);
  margin: 12px auto 8px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.story-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.story-list li {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.tag::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--brand);
  display: inline-block;
}

.tag--mesh::before { background: #66d2ff; }
.tag--builders::before { background: #ffb357; }
.tag--frontier::before { background: #c793ff; }

.story-list strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.scale-note {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  border-left: 3px solid var(--brand);
  padding-left: 14px;
}

.hero-card-wrapper {
  margin-top: 32px;
}

.hero-copy-block .hero-copy {
  grid-column: 1 / -1;
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  filter: blur(8px);
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate],
  [data-animate].is-visible {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 920px) {
  .future-caption {
    text-align: left;
  }
}

.section-pathways {
  background: rgba(7, 10, 16, 0.95);
  border-top: 1px solid var(--border);
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.pathway-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 22px;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.pathway-card h3 {
  margin: 0;
}

.pathway-card p {
  margin: 0;
  color: var(--muted);
}

.pathway-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.link-arrow {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.link-arrow::after {
  content: "→";
  font-size: 16px;
}

.pathway-cta {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  background: rgba(5, 8, 13, 0.9);
}

.pathway-cta p {
  flex: 1;
  margin: 0;
  color: var(--muted);
}

.about-tabs {
  display: grid;
  gap: 20px;
}

details.about-tabs {
  margin-top: 20px;
}

.about-tab-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  width: fit-content;
}

summary.about-tab-list {
  cursor: pointer;
  list-style: none;
}

summary.about-tab-list::-webkit-details-marker {
  display: none;
}

.about-tab {
  border: 0;
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  background: linear-gradient(135deg, rgba(255, 101, 0, 0.14), rgba(35, 195, 180, 0.12));
  color: var(--brand);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0;
}

.about-tab:hover,
.about-tab:focus-visible {
  color: var(--accent-teal);
  outline: 2px solid rgba(35, 195, 180, 0.32);
  outline-offset: 2px;
}

.about-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent-teal));
  box-shadow: 0 10px 24px rgba(255, 101, 0, 0.18);
}

details.about-tabs[open] .about-tab {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent-teal));
  box-shadow: 0 10px 24px rgba(255, 101, 0, 0.18);
}

.about-panel[hidden] {
  display: none;
}

.about-panel {
  margin-top: 20px;
}

.team-section {
  display: grid;
  gap: 24px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.team-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.team-card h3,
.team-card p {
  margin: 0;
}

.team-card p {
  color: var(--muted);
}

.team-role {
  color: var(--brand) !important;
  font-weight: 800;
}

.mentor-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mentor-list li {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

.mentor-list strong {
  color: var(--text);
  font-size: 16px;
}

.mentor-list span {
  color: var(--muted);
}

.flyer-page {
  background: #f5f8fb;
}

.flyer-viewer {
  padding: 28px 0 48px;
}

.flyer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid rgba(28, 43, 64, 0.1);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.flyer-toolbar h1,
.flyer-toolbar p {
  margin: 0;
}

.flyer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.flyer-image {
  display: block;
  width: min(100%, 980px);
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 50px rgba(28, 43, 64, 0.2);
  background: #fff;
}

@media print {
  .flyer-toolbar {
    display: none;
  }

  .flyer-viewer {
    padding: 0;
  }

  .flyer-image {
    width: 100%;
    max-width: none;
    box-shadow: none;
    border-radius: 0;
  }
}

.section-road {
  background: rgba(6, 9, 15, 0.92);
}

.road-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: center;
}

.road-story ul {
  margin: 16px 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.road-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.road-logos .partner-logos {
  margin-top: 0;
}

.difference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.difference-card {
  background: rgba(12, 18, 26, 0.88);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32);
}

.difference-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.difference-card p {
  margin: 0;
  color: var(--muted);
}

.section-partners {
  position: relative;
}

.partners-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.partner-logos {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.partner-logos figure {
  margin: 0;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--partner-bg, rgba(11, 16, 24, 0.85));
  border: 1px solid var(--partner-border, rgba(255, 255, 255, 0.08));
  display: grid;
  gap: 12px;
  place-items: center;
  min-height: 160px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.partner-logos figure::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.04), transparent 55%);
  pointer-events: none;
}

.partner-card {
  --partner-bg: rgba(11, 16, 24, 0.85);
  --partner-border: rgba(255, 255, 255, 0.08);
}

.partner-card--appstorm {
  --partner-bg: linear-gradient(140deg, rgba(96, 214, 255, 0.32), rgba(60, 240, 196, 0.24));
  --partner-border: rgba(96, 214, 255, 0.46);
}

.partner-card--maxbyte {
  --partner-bg: linear-gradient(140deg, rgba(196, 240, 139, 0.72), rgba(132, 206, 255, 0.54));
  --partner-border: rgba(196, 240, 139, 0.62);
}

.partner-card--zero2ai {
  --partner-bg: linear-gradient(140deg, rgba(123, 130, 255, 0.34), rgba(210, 130, 255, 0.3));
  --partner-border: rgba(173, 140, 255, 0.46);
}

.partner-logos img {
  width: auto;
  max-width: clamp(140px, 20vw, 220px);
  max-height: clamp(54px, 6vw, 74px);
  height: auto;
  filter: saturate(105%);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.faq-item {
  background: rgba(12, 18, 27, 0.88);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.faq-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(96, 214, 255, 0.3), rgba(60, 240, 196, 0.3));
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.faq-item.is-open::before {
  opacity: 1;
}

.faq-question {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  background: transparent;
  color: inherit;
  border: none;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.faq-question:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.faq-icon::before {
  width: 12px;
  height: 2px;
}

.faq-icon::after {
  width: 2px;
  height: 12px;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-item.is-open .faq-icon::after {
  opacity: 0;
}

.faq-answer {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 15px;
  animation: faq-reveal 0.3s ease forwards;
}

@keyframes faq-reveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-cta {
  padding: 72px 0 96px;
}

.cta-inner {
  background: linear-gradient(140deg, rgba(10, 34, 54, 0.92), rgba(31, 20, 40, 0.9));
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.cta-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 36px);
}

.cta-copy p {
  margin: 0;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 0 40px;
  background: rgba(5, 8, 13, 0.9);
}

.footer-inner {
  display: grid;
  gap: 18px;
  align-items: center;
  justify-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.footer-text {
  display: grid;
  gap: 2px;
  font-size: 14px;
}

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

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

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

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

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-privacy {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.footer-privacy:hover,
.footer-privacy:focus {
  color: var(--text);
  text-decoration: underline;
}

.link-bright {
  color: var(--brand);
  font-weight: 600;
}

.link-bright:hover,
.link-bright:focus {
  color: var(--text);
  text-decoration: underline;
}

/* Case study page */
.page-case .case-intro .container {
  display: grid;
  gap: 22px;
}

.page-case .case-intro h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 48px);
}

.case-intro-lead {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
}

.case-banner {
  margin: 12px 0 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.case-banner img {
  width: 100%;
  display: block;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}

.case-card {
  background: rgba(10, 16, 24, 0.88);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
}

.case-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.case-card-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.case-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.case-logo {
  display: inline-flex;
  width: 68px;
  height: 68px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.25s ease;
}

.case-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.case-logo:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(96, 214, 255, 0.35);
}

.case-card-banner {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.case-card p {
  margin: 0;
  color: var(--muted);
}

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

.case-card ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 15px;
}

.case-card-media {
  margin: 4px 0 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.case-card-media img {
  width: 100%;
  display: block;
}

.case-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  background: rgba(10, 16, 24, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}

.case-copy {
  display: grid;
  gap: 12px;
}

.case-copy h3 {
  margin: 0;
  font-size: 24px;
}

.case-copy ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.case-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-self: center;
}

.case-media img {
  width: 100%;
  display: block;
}

/* Lesson iframe modal */
.lesson-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 15, 0.88);
  display: none;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  z-index: 1100;
}

.lesson-modal-backdrop[open] {
  display: flex;
}

.lesson-modal {
  width: 100vw;
  height: 100vh;
  background: var(--card-strong);
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  overflow: hidden;
}

.lesson-modal-header {
  position: relative;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(7, 9, 15, 0.9);
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-shrink: 0;
}

.lesson-modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lesson-modal-close {
  background: linear-gradient(135deg, #ff7f99, #ff4f6a);
  border: none;
  color: #05070c;
  border-radius: var(--radius-sm);
  padding: 6px 13px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}

.lesson-modal-close:hover {
  opacity: 0.85;
}

.lesson-modal-iframe {
  flex: 1;
  width: 100%;
  border: none;
  display: block;
}

/* New Arbiteria brand palette: orange wordmark, blue-to-teal mark */
:root {
  --bg: #fff8f3;
  --bg-accent-1: rgba(255, 101, 0, 0.12);
  --bg-accent-2: rgba(32, 190, 178, 0.14);
  --card: rgba(255, 255, 255, 0.86);
  --card-strong: rgba(255, 255, 255, 0.96);
  --border: rgba(28, 43, 64, 0.1);
  --border-strong: rgba(28, 43, 64, 0.16);
  --text: #172033;
  --muted: #5e6c7f;
  --brand: #ff6500;
  --brand-warm: #ff8a1d;
  --accent: #23c3b4;
  --accent-blue: #1f5fae;
  --shadow: 0 18px 44px rgba(31, 48, 78, 0.14);
}

body {
  background:
    radial-gradient(760px 480px at 14% -10%, rgba(255, 101, 0, 0.18), transparent 64%),
    radial-gradient(760px 520px at 86% 4%, rgba(35, 195, 180, 0.2), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #fff8f3 48%, #f3fbfb 100%);
  color: var(--text);
}

.site-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(255, 101, 0, 0.18);
  box-shadow: 0 12px 30px rgba(31, 48, 78, 0.08);
}

.brand {
  color: var(--text);
}

.brand-logo {
  height: 58px;
  max-width: min(270px, 58vw);
  object-fit: contain;
}

.brand-tagline {
  color: #7a4d33;
}

.nav a {
  color: #425269;
}

.nav a:hover,
.nav a:focus {
  color: var(--brand);
}

.btn-nav,
.btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-warm));
  color: #ffffff !important;
  box-shadow: 0 16px 30px rgba(255, 101, 0, 0.24);
}

.btn-secondary {
  color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(31, 95, 174, 0.22);
}

.btn-secondary:hover,
.btn-secondary:focus {
  border-color: rgba(255, 101, 0, 0.45);
  color: var(--brand);
}

.hero::after {
  background:
    radial-gradient(560px 360px at 14% 18%, rgba(255, 101, 0, 0.16), transparent 64%),
    radial-gradient(680px 420px at 78% 10%, rgba(35, 195, 180, 0.2), transparent 66%);
}

.eyebrow,
.card-eyebrow,
.program-tag,
.journey-week,
.journey-subhead,
.link-arrow,
.footer-privacy,
.link-bright,
.tag {
  color: var(--brand);
}

.hero-copy p,
.section-head p,
.card-list li > span,
.pillar p,
.program-card ul,
.journey-topic,
.journey-footnote,
.future-caption,
.story-list li,
.pathway-card p,
.pathway-card ul,
.pathway-cta p,
.road-story ul,
.difference-card p,
.faq-answer,
.cta-copy p,
.footer-brand,
.footer-copy,
.case-intro-lead,
.case-card p,
.case-card ul,
.case-copy ul {
  color: var(--muted);
}

.hero-card,
.pillar,
.journey-card,
.pathway-card,
.difference-card,
.faq-item,
.case-card,
.case-highlight,
.modal {
  background: var(--card-strong);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.card-list li,
.journey-list li,
.story-list li {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(28, 43, 64, 0.1);
}

.card-list li::before {
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

.card-list li:nth-child(2)::before {
  background: linear-gradient(135deg, var(--brand), var(--accent-blue));
}

.card-list li:nth-child(3)::before {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent));
}

.card-list li:nth-child(4)::before {
  background: linear-gradient(135deg, var(--brand-warm), #ffd3a8);
}

.card-list li::after {
  background: #ffffff;
}

.program-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 246, 239, 0.94));
  border-color: rgba(255, 101, 0, 0.14);
}

.scale-figure,
.future-visual {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(28, 43, 64, 0.1);
  box-shadow: 0 16px 36px rgba(31, 48, 78, 0.1);
}

.future-visual img,
.case-banner,
.case-card-banner,
.case-card-media,
.case-media {
  border-color: rgba(28, 43, 64, 0.12);
}

.tag--mesh::before {
  background: var(--accent-blue);
}

.tag--builders::before {
  background: var(--brand);
}

.tag--frontier::before {
  background: var(--accent);
}

.scale-note {
  border-left-color: var(--brand);
}

.section-pathways {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 246, 239, 0.84));
  border-top-color: rgba(255, 101, 0, 0.12);
}

.section-road {
  background: linear-gradient(180deg, rgba(246, 252, 252, 0.86), rgba(255, 255, 255, 0.9));
}

.pathway-cta {
  background: linear-gradient(135deg, rgba(255, 101, 0, 0.1), rgba(35, 195, 180, 0.1));
  border-color: rgba(255, 101, 0, 0.16);
}

.partner-logos figure {
  background: var(--partner-bg, rgba(255, 255, 255, 0.88));
  border-color: var(--partner-border, rgba(28, 43, 64, 0.1));
}

.partner-card--appstorm {
  --partner-bg: linear-gradient(140deg, rgba(255, 101, 0, 0.16), rgba(35, 195, 180, 0.14));
  --partner-border: rgba(255, 101, 0, 0.24);
}

.partner-card--maxbyte {
  --partner-bg: linear-gradient(140deg, rgba(35, 195, 180, 0.16), rgba(31, 95, 174, 0.12));
  --partner-border: rgba(35, 195, 180, 0.26);
}

.partner-card--zero2ai {
  --partner-bg: linear-gradient(140deg, rgba(31, 95, 174, 0.15), rgba(255, 138, 29, 0.14));
  --partner-border: rgba(31, 95, 174, 0.24);
}

.faq-item::before {
  background: linear-gradient(135deg, rgba(255, 101, 0, 0.34), rgba(35, 195, 180, 0.32));
}

.faq-question:focus-visible,
.input:focus,
.textarea:focus {
  outline-color: rgba(255, 101, 0, 0.34);
}

.cta-inner {
  background:
    radial-gradient(520px 240px at 12% 0%, rgba(255, 255, 255, 0.32), transparent 64%),
    linear-gradient(135deg, #ff6500, #ff8a1d 46%, #23c3b4);
  border: none;
  color: #ffffff;
}

.cta-inner .cta-copy p,
.cta-inner .btn-secondary {
  color: rgba(255, 255, 255, 0.9);
}

.cta-inner .btn {
  background: #ffffff;
  color: var(--brand) !important;
  box-shadow: 0 16px 34px rgba(117, 45, 0, 0.2);
}

.cta-inner .btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
}

.site-footer {
  background: #ffffff;
  border-top-color: rgba(255, 101, 0, 0.12);
}

.footer-copy {
  color: #7a8798;
}

.case-logo {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 101, 0, 0.14);
}

.case-logo:hover {
  box-shadow: 0 12px 26px rgba(31, 48, 78, 0.16), 0 0 0 2px rgba(255, 101, 0, 0.22);
}

.lesson-modal-backdrop,
.modal-backdrop {
  background: rgba(23, 32, 51, 0.48);
}

.lesson-modal-header,
.modal header {
  background: rgba(255, 255, 255, 0.92);
}

.lesson-modal-close,
.modal .close {
  background: linear-gradient(135deg, var(--brand), var(--brand-warm));
  color: #ffffff;
}

.input,
.textarea {
  background: #ffffff;
  border-color: rgba(28, 43, 64, 0.14);
  color: var(--text);
}

.nav-toggle {
  border-color: rgba(28, 43, 64, 0.16);
}

.nav-toggle-bar {
  background: var(--brand);
}

#lessons-row > div {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 101, 0, 0.18) !important;
  box-shadow: 0 16px 34px rgba(31, 48, 78, 0.12) !important;
}

#lessons-row > div:first-child {
  background: linear-gradient(135deg, rgba(255, 101, 0, 0.14), rgba(35, 195, 180, 0.12)) !important;
  border-color: rgba(255, 101, 0, 0.34) !important;
}

#lessons-row h2 {
  color: var(--text) !important;
}

#lessons-row p {
  color: var(--brand) !important;
}

#lessons-row a {
  border-color: rgba(28, 43, 64, 0.08) !important;
}

#lessons-row span {
  color: var(--accent-blue) !important;
}

#lessons-row span:first-child {
  color: #ffffff !important;
  background: var(--brand) !important;
}

@media (max-width: 760px) {
  .nav {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(255, 101, 0, 0.16);
    box-shadow: 0 18px 34px rgba(31, 48, 78, 0.16);
  }
}

/* Mobile accessibility and usability pass */
a,
button,
summary {
  touch-action: manipulation;
}

.btn,
.btn-secondary,
.btn-nav,
.nav a,
.about-tab,
.lesson-modal-close,
.modal .close {
  min-height: 44px;
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll, scroll, scroll;
  }

  .container {
    width: min(100% - 32px, 1100px);
  }

  .main-offset {
    padding-top: 76px;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    gap: 12px;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    height: 42px;
    max-width: min(52vw, 220px);
    object-fit: contain;
  }

  .brand-tagline {
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  .nav-toggle {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .nav {
    inset: calc(100% + 6px) 16px auto;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
  }

  .nav a,
  .btn-nav {
    width: 100%;
    min-height: 44px;
    align-items: center;
  }

  .section,
  .hero {
    padding-block: 44px;
  }

  .hero-copy h1,
  .section-head h1,
  .section-head h2 {
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .road-actions,
  .cta-actions,
  .flyer-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .hero-actions .btn-secondary,
  .road-actions .btn,
  .road-actions .btn-secondary,
  .cta-actions .btn,
  .cta-actions .btn-secondary,
  .flyer-actions .btn,
  .flyer-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  #lessons-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  #lessons-row > div {
    width: 100% !important;
    flex: 1 1 auto !important;
    padding: 22px 18px !important;
  }

  #lessons-row h2 {
    font-size: 22px !important;
  }

  #lessons-row a {
    min-height: 44px;
  }

  .pathway-grid,
  .team-grid,
  .mentor-list,
  .road-grid {
    grid-template-columns: 1fr;
  }

  .pathway-card,
  .team-card,
  .journey-card,
  .hero-card {
    padding: 18px;
  }

  .about-tab-list {
    width: 100%;
  }

  .about-tab {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .flyer-viewer {
    padding: 16px 0 32px;
  }

  .flyer-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .flyer-toolbar h1 {
    font-size: 24px;
  }

  .flyer-image {
    width: 100%;
    border-radius: 8px;
  }

  .modal {
    width: 100%;
    max-height: 94vh;
  }

  .modal-backdrop {
    padding: 12px;
  }
}

/* Contact modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 15, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal-backdrop[open] {
  display: flex;
}

.modal {
  width: min(820px, 95vw);
  max-height: 92vh;
  background: var(--card-strong);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.modal header {
  position: sticky;
  top: 0;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(7, 9, 15, 0.85);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.modal h2 {
  margin: 0;
  font-size: 20px;
}

.modal .close {
  background: linear-gradient(135deg, #ff7f99, #ff4f6a);
  border: none;
  color: #05070c;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.modal .content {
  padding: 20px;
  overflow: auto;
  position: relative;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.input,
.textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 10px 12px;
  background: rgba(6, 9, 15, 0.65);
  color: var(--text);
}

.input:focus,
.textarea:focus {
  outline: 2px solid rgba(96, 214, 255, 0.35);
  outline-offset: 2px;
}

.input.error,
.textarea.error {
  border-color: rgba(255, 79, 106, 0.8);
}

.error-text {
  color: rgba(255, 159, 159, 0.9);
  font-size: 12px;
  margin-top: 6px;
}

.mt {
  margin-top: 16px;
}

.block {
  display: block;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.status {
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
}

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

  .hero-copy {
    grid-column: 1 / -1;
  }

  .hero-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    position: absolute;
    inset: calc(100% + 8px) 16px auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    background: rgba(8, 12, 18, 0.96);
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .btn-nav {
    width: 100%;
    justify-content: center;
  }

  .cta-inner {
    justify-items: start;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.bug-form-modal {
  width: min(900px, 95vw);
}

/* Bug tracker landing page */
.bug-page {
  background:
    radial-gradient(680px 420px at 8% -8%, rgba(35, 195, 180, 0.18), transparent 64%),
    radial-gradient(740px 460px at 92% 2%, rgba(255, 101, 0, 0.16), transparent 64%),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 44%, #fff8f3 100%);
}

.bug-main {
  padding-bottom: 56px;
}

.internal-nav-label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(31, 95, 174, 0.18);
  border-radius: 8px;
  background: rgba(31, 95, 174, 0.08);
  color: var(--accent-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bug-hero {
  padding: 48px 0 28px;
}

.bug-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

.bug-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 320px;
}

.bug-hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  color: #172033;
}

.bug-hero-copy p {
  max-width: 680px;
  margin: 0;
  color: #506076;
  font-size: 18px;
}

.bug-hero-actions,
.bug-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.bug-focus-panel,
.bug-panel,
.bug-stat {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(28, 43, 64, 0.12);
  box-shadow: 0 18px 44px rgba(31, 48, 78, 0.12);
}

.bug-focus-panel {
  border-radius: 8px;
  padding: 24px;
  display: grid;
  gap: 14px;
}

.bug-panel-kicker {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bug-focus-panel h2,
.bug-panel h2 {
  margin: 0;
  color: #172033;
  line-height: 1.15;
}

.bug-focus-panel p {
  margin: 0;
  color: #506076;
}

.bug-pulse-list {
  display: grid;
  gap: 10px;
}

.bug-pulse {
  display: grid;
  gap: 4px;
  border-left: 4px solid #1f5fae;
  background: #f5f8fc;
  border-radius: 8px;
  padding: 12px;
}

.bug-pulse strong {
  color: #172033;
}

.bug-pulse span {
  color: #5e6c7f;
  font-size: 13px;
}

.bug-pulse.is-hot {
  border-left-color: #e03131;
}

.bug-pulse.is-ready {
  border-left-color: #0f9f7f;
}

.bug-pulse.is-closed {
  border-left-color: #7a8798;
}

.bug-dashboard,
.bug-workspace {
  display: grid;
  gap: 22px;
}

.bug-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 14px;
}

.bug-stat {
  border-radius: 8px;
  padding: 18px;
  min-height: 112px;
}

.bug-stat span {
  display: block;
  color: #5e6c7f;
  font-size: 13px;
  font-weight: 700;
}

.bug-stat strong {
  display: block;
  margin-top: 8px;
  color: #172033;
  font-size: 34px;
  line-height: 1;
}

.bug-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  display: grid;
  gap: 22px;
}

.bug-workspace {
  grid-template-columns: 1fr;
  display: grid;
  gap: 22px;
}

.bug-panel {
  border-radius: 8px;
  padding: 22px;
}

.bug-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.bug-panel-head .eyebrow {
  margin: 0 0 6px;
}

.bug-form-status {
  min-width: 110px;
  margin: 0;
  color: #0f766e;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.bug-bars {
  display: grid;
  gap: 12px;
}

.bug-bar-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 32px;
  gap: 12px;
  align-items: center;
  color: #425269;
  font-size: 14px;
  font-weight: 700;
}

.bug-bar-track {
  height: 10px;
  background: #e9eef5;
  border-radius: 999px;
  overflow: hidden;
}

.bug-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f5fae, #23c3b4);
}

.bug-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.bug-form label {
  color: #425269;
  font-size: 13px;
  font-weight: 800;
}

.bug-form .input,
.bug-form .textarea,
.bug-filters .input,
.bug-row-select {
  margin-top: 6px;
}

.bug-file-input {
  padding-block: 8px;
}

.bug-file-note,
.bug-attachment-count {
  display: block;
  margin-top: 6px;
  color: #6b788b;
  font-size: 12px;
  font-weight: 700;
}

.bug-attachment-count {
  color: var(--accent-blue);
}

.bug-attachment-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.bug-attachment-links a {
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.bug-attachment-links a:hover,
.bug-attachment-links a:focus {
  text-decoration: underline;
}

.bug-span-2 {
  grid-column: 1 / -1;
}

.bug-log {
  min-width: 0;
}

.bug-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 160px 160px;
  gap: 10px;
  margin-bottom: 14px;
}

.bug-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(28, 43, 64, 0.1);
  border-radius: 8px;
}

.bug-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: #ffffff;
}

.bug-table th,
.bug-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(28, 43, 64, 0.08);
  text-align: left;
  vertical-align: top;
}

.bug-table th {
  background: #f5f8fc;
  color: #425269;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bug-table td {
  color: #425269;
  font-size: 14px;
}

.bug-title-cell {
  display: grid;
  gap: 3px;
  min-width: 260px;
}

.bug-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.bug-title-row strong {
  color: #172033;
  flex: 1;
}

.bug-edit-btn {
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(28, 43, 64, 0.18);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 13px;
  cursor: pointer;
  color: #5e6c7f;
  line-height: 1.6;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.bug-edit-btn:hover {
  background: rgba(255, 101, 0, 0.08);
  border-color: var(--brand);
  color: var(--brand);
}

.bug-title-cell strong {
  color: #172033;
}

.bug-title-cell span,
.bug-priority {
  color: #6b788b;
  font-size: 12px;
}

.bug-date-line,
.bug-resolution-summary {
  display: block;
  color: #6b788b;
  font-size: 12px;
  font-weight: 700;
}

.bug-resolution-summary {
  color: #0f766e;
}

.bug-resolution-summary em {
  display: block;
  margin-top: 2px;
  color: #425269;
  font-style: normal;
  font-weight: 600;
}

.bug-overdue-flag {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff0f0;
  color: #c92a2a;
  font-size: 12px;
  font-weight: 800;
}

.bug-tat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  border-radius: 999px;
  padding: 5px 8px;
  background: #eef4fb;
  color: #1f5fae;
  font-size: 12px;
  font-weight: 800;
}

.bug-tat.is-overdue {
  background: #fff0f0;
  color: #c92a2a;
}

.bug-chip {
  display: inline-flex;
  min-width: 74px;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 8px;
  margin-right: 6px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.bug-chip-critical {
  background: #c92a2a;
}

.bug-chip-high {
  background: #e8590c;
}

.bug-chip-medium {
  background: #1f5fae;
}

.bug-chip-low {
  background: #0f9f7f;
}

.bug-row-select {
  min-width: 130px;
}

.bug-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: #e9eef5;
  color: #425269;
}

.bug-status-new         { background: #e8f0fe; color: #1a56db; }
.bug-status-open        { background: #fff3e0; color: #b45309; }
.bug-status-in-progress { background: #ede9fe; color: #6d28d9; }
.bug-status-fixed       { background: #d1fae5; color: #065f46; }
.bug-status-retest      { background: #fef3c7; color: #92400e; }
.bug-status-reopened    { background: #fee2e2; color: #991b1b; }
.bug-status-closed      { background: #f1f5f9; color: #64748b; }
.bug-status-won-t-fix   { background: #fce7f3; color: #9d174d; }
.bug-status-duplicate   { background: #f3f4f6; color: #6b7280; }

.bug-empty {
  text-align: center !important;
  color: #6b788b !important;
  padding: 28px !important;
}

.bug-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 2px 2px;
}

.bug-page-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(28, 43, 64, 0.2);
  border-radius: 8px;
  background: #fff;
  color: #425269;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.bug-page-btn:hover:not(:disabled) {
  background: rgba(255, 101, 0, 0.08);
  border-color: var(--brand);
  color: var(--brand);
}

.bug-page-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.bug-page-info {
  color: #425269;
  font-size: 13px;
  font-weight: 700;
  min-width: 80px;
  text-align: center;
}

@media (max-width: 980px) {
  .bug-hero-grid,
  .bug-split,
  .bug-workspace {
    grid-template-columns: 1fr;
  }

  .bug-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .bug-hero-copy {
    min-height: 0;
  }

  .bug-stat-grid,
  .bug-form-grid,
  .bug-filters {
    grid-template-columns: 1fr;
  }

  .bug-panel-head {
    display: grid;
  }

  .bug-form-status {
    text-align: left;
  }

  .bug-hero-actions,
  .bug-form-actions {
    display: grid;
  }
}
.main-offset {
  padding-top: 96px;
}
.fade-block,
[data-fade] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-fade].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-fade],
  [data-fade].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ── Lesson iframe modal ─────────────────────────────────────── */
.lesson-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 15, 0.88);
  display: none;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
  z-index: 1100;
}
.lesson-modal-backdrop[open] {
  display: flex;
}
.lesson-modal {
  width: 100vw;
  height: 100vh;
  background: var(--card-strong);
  border: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  overflow: hidden;
}
.lesson-modal-header {
  position: relative;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(7, 9, 15, 0.9);
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-shrink: 0;
}
.lesson-modal-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lesson-modal-close {
  background: linear-gradient(135deg, #ff7f99, #ff4f6a);
  border: none;
  color: #05070c;
  border-radius: var(--radius-sm);
  padding: 6px 13px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}
.lesson-modal-close:hover { opacity: 0.85; }
.lesson-modal-iframe {
  flex: 1;
  width: 100%;
  border: none;
  display: block;
}

/* Final Arbiteria brand cascade guard */
body {
  background:
    radial-gradient(760px 480px at 14% -10%, rgba(255, 101, 0, 0.18), transparent 64%),
    radial-gradient(760px 520px at 86% 4%, rgba(35, 195, 180, 0.2), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #fff8f3 48%, #f3fbfb 100%);
  color: var(--text);
}

.site-header,
.modal header,
.lesson-modal-header {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 101, 0, 0.16);
}

.nav a {
  color: #425269;
}

.nav a:hover,
.nav a:focus,
.footer-privacy,
.link-bright,
.link-arrow,
.eyebrow,
.card-eyebrow {
  color: var(--brand);
}

.btn,
.btn-nav,
.lesson-modal-close,
.modal .close {
  background: linear-gradient(135deg, var(--brand), var(--brand-warm));
  color: #ffffff !important;
  box-shadow: 0 16px 30px rgba(255, 101, 0, 0.24);
}

.btn-secondary {
  color: var(--accent-blue);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(31, 95, 174, 0.22);
}

.hero-card,
.pillar,
.journey-card,
.pathway-card,
.difference-card,
.faq-item,
.case-card,
.case-highlight,
.modal {
  background: var(--card-strong);
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.lesson-modal-backdrop,
.modal-backdrop {
  background: rgba(23, 32, 51, 0.48);
}

.input,
.textarea {
  background: #ffffff;
  border-color: rgba(28, 43, 64, 0.14);
  color: var(--text);
}

.input:focus,
.textarea:focus,
.faq-question:focus-visible {
  outline-color: rgba(255, 101, 0, 0.34);
}

@media (max-width: 760px) {
  .nav {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(255, 101, 0, 0.16);
    box-shadow: 0 18px 34px rgba(31, 48, 78, 0.16);
  }
}
