/* Winnas EdTech KE website styles */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --surface: #f8fafc;
  --surface-2: #f2f4f7;
  --panel: #ffffff;
  --panel-2: #ffffff;
  --text: #101828;
  --heading: #101828;
  --muted: #667085;
  --muted-2: #8a94a6;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --navy: #0b1220;
  --navy-2: #111b2d;
  --brand: #155eef;
  --brand-dark: #0f49b7;
  --teal: #20c7b5;
  --green: #168a4a;
  --shadow: 0 18px 48px rgba(16, 24, 40, .10);
  --shadow-soft: 0 8px 24px rgba(16, 24, 40, .08);
  --header-bg: rgba(255,255,255,.94);
  --hero-bg: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1180px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --surface: #111827;
  --surface-2: #172033;
  --panel: #111827;
  --panel-2: #0f172a;
  --text: #e5edf8;
  --heading: #f8fafc;
  --muted: #b5c0d0;
  --muted-2: #8fa0b8;
  --line: #243044;
  --line-2: #344054;
  --navy: #050914;
  --navy-2: #0b1220;
  --brand: #6aa6ff;
  --brand-dark: #8bbaff;
  --teal: #2dd4bf;
  --green: #49c27e;
  --shadow: 0 18px 48px rgba(0, 0, 0, .32);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, .24);
  --header-bg: rgba(11,18,32,.92);
  --hero-bg: radial-gradient(circle at 15% 18%, rgba(21,94,239,.20), transparent 330px), radial-gradient(circle at 86% 18%, rgba(45,212,191,.16), transparent 330px), linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
::selection { background: rgba(32, 199, 181, .2); }

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: 12px;
  left: -999px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: #000;
}
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}
.brand img { width: 248px; height: auto; }
.logo-stack {
  position: relative;
  display: block;
  width: 248px;
  height: 46px;
}
.logo-stack img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: auto;
}
.logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 650;
}
.nav-links a {
  padding: 9px 12px;
  border-radius: 10px;
  transition: background .18s ease, color .18s ease;
}
.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  background: var(--surface-2);
  color: var(--heading);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #fff;
  background: var(--heading);
  border-color: var(--heading);
  box-shadow: 0 10px 24px rgba(16,24,40,.12);
}
html[data-theme="dark"] .btn-primary { color: #071426; background: #f8fafc; border-color: #f8fafc; }
.btn-primary:hover { filter: brightness(.94); }
.btn-blue {
  color: #fff;
  background: #155eef;
  border-color: #155eef;
  box-shadow: 0 10px 24px rgba(21, 94, 239, .18);
}
.btn-blue:hover { background: #0f49b7; border-color: #0f49b7; }
.btn-secondary {
  color: var(--heading);
  background: var(--panel);
  border-color: var(--line-2);
}
.btn-secondary:hover { border-color: var(--muted-2); box-shadow: var(--shadow-soft); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand);
  font-weight: 800;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--heading);
  background: var(--panel);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 750;
}
.theme-toggle:hover { box-shadow: var(--shadow-soft); }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: block; }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--heading);
  background: var(--panel);
  cursor: pointer;
}

main { overflow: hidden; }

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: flex;
  align-items: center;
  padding: 52px 0;
  background: var(--hero-bg);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 16%, rgba(21,94,239,.08), transparent 300px),
    radial-gradient(circle at 86% 22%, rgba(32,199,181,.08), transparent 320px);
}
html[data-theme="dark"] .hero::before { opacity: .5; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .02em;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 3px;
  border-radius: 999px;
  background: var(--teal);
}

h1, h2, h3, p { margin-top: 0; }

.hero h1 {
  max-width: 750px;
  margin-bottom: 20px;
  color: var(--heading);
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -.058em;
  font-weight: 850;
}
.hero-copy {
  max-width: 640px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.58;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }

.proof-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.proof-list span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}
.proof-list span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.hero-preview {
  position: relative;
  min-height: auto;
}
.preview-panel,
.preview-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.preview-panel.primary { margin-left: auto; width: min(100%, 670px); }
.panel-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.panel-caption strong { color: var(--heading); font-size: 14px; letter-spacing: -.01em; }
.panel-caption span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.browser-frame { background: var(--surface-2); }
.browser-bar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.dot-set { display: flex; gap: 6px; }
.dot-set i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.browser-address {
  flex: 1;
  max-width: 340px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--panel);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.screen {
  aspect-ratio: 1366 / 646;
  overflow: hidden;
  background: var(--surface-2);
}
.screen img,
.screen .theme-shot {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}
.preview-card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(390px, 58%);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(16,24,40,.16);
}
html[data-theme="dark"] .preview-card { box-shadow: 0 24px 60px rgba(0,0,0,.38); }
.project-meta {
  display: grid;
  gap: 3px;
  padding: 13px 16px 15px;
}
.project-meta small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.project-meta strong { color: var(--heading); font-size: 15.5px; line-height: 1.25; }

.theme-shot-dark { display: none; }
html[data-theme="dark"] .theme-shot-light { display: none; }
html[data-theme="dark"] .theme-shot-dark { display: block; }

.showcase-board {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px;
}
.showcase-tile {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel-2);
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.showcase-tile .browser-frame {
  border-bottom: 1px solid var(--line);
}
.showcase-tile .project-meta {
  min-height: 88px;
}
.showcase-tile .project-meta strong {
  font-size: 14.5px;
}
.showcase-tile .project-meta small {
  color: var(--brand);
}

.page-hero {
  padding: 74px 0 62px;
  background: var(--hero-bg);
  border-bottom: 1px solid var(--line);
}
.page-hero-content { max-width: 820px; }
.page-hero h1 {
  margin: 0 0 18px;
  color: var(--heading);
  font-size: clamp(42px, 5.6vw, 70px);
  line-height: 1.04;
  letter-spacing: -.056em;
}
.page-hero p { margin: 0; color: var(--muted); font-size: clamp(18px, 1.7vw, 21px); max-width: 760px; }

.section { padding: 84px 0; }
.section-surface {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.section-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 410px);
  gap: 46px;
  align-items: end;
  margin-bottom: 36px;
}
.kicker {
  display: block;
  margin-bottom: 11px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.section-header h2,
.section-title {
  margin: 0;
  color: var(--heading);
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 850;
}
.section-header p { margin: 0; color: var(--muted); font-size: 17px; }

.work-list { display: grid; gap: 28px; }
.case-study {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.case-study:nth-child(even) { grid-template-columns: .92fr 1.08fr; }
.case-study:nth-child(even) .case-media { order: 2; }
.case-media {
  padding: 26px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-right: 1px solid var(--line);
}
.case-study:nth-child(even) .case-media { border-right: 0; border-left: 1px solid var(--line); }
.case-media .browser-frame {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 14px 35px rgba(16,24,40,.12);
}
html[data-theme="dark"] .case-media .browser-frame { box-shadow: 0 14px 35px rgba(0,0,0,.32); }
.case-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px;
}
.case-content h3 {
  margin-bottom: 12px;
  color: var(--heading);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -.04em;
}
.case-content p { color: var(--muted); font-size: 16.5px; margin-bottom: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tags span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 800;
}
.case-points,
.clean-list {
  display: grid;
  gap: 9px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-weight: 650;
}
.case-points li,
.clean-list li { display: flex; gap: 10px; align-items: flex-start; }
.case-points li::before,
.clean-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--teal);
  flex: 0 0 auto;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-soft);
}
.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 14px;
  color: var(--heading);
  background: var(--surface-2);
}
.service-card h3 { color: var(--heading); margin-bottom: 10px; font-size: 20px; line-height: 1.25; letter-spacing: -.025em; }
.service-card p { margin-bottom: 20px; color: var(--muted); font-size: 15.5px; }
.service-card ul {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
}
.service-card li { display: flex; gap: 9px; align-items: flex-start; }
.service-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex: 0 0 auto;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.detail-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.detail-card h2,
.detail-card h3 { color: var(--heading); margin-bottom: 12px; line-height: 1.15; letter-spacing: -.035em; }
.detail-card h2 { font-size: 32px; }
.detail-card h3 { font-size: 24px; }
.detail-card p { color: var(--muted); }

.mission-band {
  color: #fff;
  background: var(--navy);
}
.mission-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 54px;
  align-items: center;
}
.mission-grid .kicker { color: var(--teal); }
.mission-grid h2 {
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.mission-grid p { color: #cdd9e8; font-size: 18px; }
.principle-grid { display: grid; gap: 14px; }
.principle-card {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: rgba(255,255,255,.055);
}
.principle-card strong { display: block; margin-bottom: 7px; color: #fff; font-size: 18px; }
.principle-card span { display: block; color: #c8d5e6; }

.training-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.training-card {
  min-height: 245px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.course-code {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 40px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.training-card h3 { color: var(--heading); margin-bottom: 9px; font-size: 20px; line-height: 1.25; }
.training-card p { margin: 0; color: var(--muted); font-size: 15px; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.process-card {
  position: relative;
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.process-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 42px;
  border-radius: 14px;
  color: #fff;
  background: var(--navy);
  font-weight: 850;
}
.process-card::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  top: 86px;
  height: 1px;
  background: var(--line);
}
.process-card h3 { color: var(--heading); margin-bottom: 10px; font-size: 23px; line-height: 1.2; letter-spacing: -.03em; }
.process-card p { margin: 0; color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 28px;
  align-items: stretch;
}
.contact-copy {
  padding: 38px;
  border-radius: 28px;
  color: #fff;
  background: var(--navy);
}
.contact-copy .kicker { color: var(--teal); }
.contact-copy h2 {
  margin-bottom: 15px;
  color: #fff;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.07;
  letter-spacing: -.045em;
}
.contact-copy p { color: #d1deee; font-size: 18px; }
.contact-list { display: grid; gap: 14px; margin-top: 34px; }
.contact-list a,
.contact-list div {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-weight: 700;
}
.contact-list svg { color: var(--teal); flex: 0 0 auto; }

.request-form {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { color: var(--text); font-size: 14px; font-weight: 750; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  color: var(--text);
  background: var(--panel-2);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 136px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(21,94,239,.12);
}
.form-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }

.policy-content {
  max-width: 880px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.policy-content h2 { color: var(--heading); margin: 34px 0 10px; font-size: 28px; letter-spacing: -.035em; }
.policy-content h2:first-child { margin-top: 0; }
.policy-content p,
.policy-content li { color: var(--muted); }
.policy-content ul { padding-left: 1.25rem; }
.policy-content .updated { color: var(--text); font-weight: 750; }

.cta-strip {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}
.cta-strip h2 { color: var(--heading); margin: 0 0 6px; font-size: clamp(26px, 3vw, 38px); letter-spacing: -.04em; }
.cta-strip p { margin: 0; color: var(--muted); }

.site-footer {
  padding: 46px 0 26px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 34px;
  margin-bottom: 34px;
}
.footer-grid .brand img { width: 238px; }
.footer-grid .logo-stack { width: 238px; height: 45px; }
.footer-grid p { max-width: 380px; margin: 14px 0 0; font-size: 14px; }
.footer-grid h4 { margin: 0 0 14px; color: var(--heading); font-size: 15px; }
.footer-grid ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer-grid a { color: var(--muted); font-size: 14px; }
.footer-grid a:hover { color: var(--brand); text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

@media (max-height: 760px) and (min-width: 1041px) {
  .hero { padding: 36px 0; }
  .hero h1 { font-size: clamp(40px, 5vw, 60px); }
  .hero-preview { min-height: auto; }
  .preview-card { width: min(360px, 56%); }
}

@media (max-width: 1040px) {
  .hero { min-height: auto; }
  .hero-grid,
  .mission-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-preview { max-width: 760px; min-height: auto; }
  .case-study,
  .case-study:nth-child(even) { grid-template-columns: 1fr; }
  .case-study:nth-child(even) .case-media { order: initial; }
  .case-media,
  .case-study:nth-child(even) .case-media { border-right: 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .training-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-header { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 840px) {
  .container { width: min(var(--max), calc(100% - 34px)); }
  .nav { min-height: 68px; }
  .brand img { width: 218px; }
  .logo-stack { width: 218px; height: 41px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; }
  .nav-actions .btn { display: none; }
  .theme-toggle span { display: none; }
  .theme-toggle { width: 44px; padding: 0; }
  .menu-button { display: grid; }
  .hero { padding: 58px 0; }
  .cta-strip { display: block; }
  .cta-strip .btn { margin-top: 18px; }
}

@media (max-width: 640px) {
  .container { width: min(var(--max), calc(100% - 26px)); }
  .brand img { width: 198px; }
  .logo-stack { width: 198px; height: 37px; }
  .hero h1 { font-size: 40px; }
  .hero-copy { font-size: 17px; }
  .hero-actions .btn { width: 100%; }
  .hero-preview { min-height: auto; }
  .browser-address { display: none; }
  .preview-card { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 14px; }
  .service-grid,
  .training-grid,
  .form-row,
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .page-hero { padding: 56px 0 48px; }
  .case-media { padding: 16px; }
  .case-content,
  .contact-copy,
  .request-form,
  .policy-content { padding: 24px; }
  .footer-bottom { display: block; }
  .footer-bottom span { display: block; margin-bottom: 8px; }
}


.breadcrumbs {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 650;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs li + li::before {
  content: "/";
  color: var(--muted-2);
}
.breadcrumbs a {
  color: var(--muted);
}
.breadcrumbs a:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumbs [aria-current="page"] {
  color: var(--heading);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.policy-content h3 {
  color: var(--heading);
  margin: 24px 0 8px;
  font-size: 21px;
  letter-spacing: -.02em;
}
.policy-content a {
  color: var(--brand);
  font-weight: 750;
}
.policy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.seo-note {
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
}

/* Legal pages refinement */
.legal-section {
  padding-top: 58px;
}
.legal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 104px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.legal-toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--heading);
  font-size: 15px;
  letter-spacing: -.01em;
}
.legal-toc nav {
  display: grid;
  gap: 4px;
}
.legal-toc a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
}
.legal-toc a:hover,
.legal-toc a:focus-visible {
  background: var(--surface-2);
  color: var(--brand);
}
.legal-layout .policy-content {
  width: 100%;
  max-width: none;
  padding: clamp(24px, 4vw, 46px);
}
.legal-layout .policy-content h2 {
  scroll-margin-top: 110px;
}
.legal-layout .policy-content p,
.legal-layout .policy-content li {
  font-size: 16px;
  line-height: 1.75;
}
.policy-actions {
  align-items: center;
}
.policy-actions .btn {
  min-width: 210px;
  min-height: 48px;
  padding: 13px 20px;
  text-align: center;
  box-shadow: none;
}
.policy-actions .btn-blue {
  background: #155eef !important;
  border-color: #155eef !important;
  color: #ffffff !important;
}
.policy-actions .btn-blue:hover,
.policy-actions .btn-blue:focus-visible {
  background: #0f49b7 !important;
  border-color: #0f49b7 !important;
  color: #ffffff !important;
  box-shadow: 0 12px 26px rgba(21, 94, 239, .22);
}
.policy-actions .btn-secondary {
  background: var(--panel-2) !important;
  border-color: var(--line-2) !important;
  color: var(--heading) !important;
}
.policy-actions .btn-secondary:hover,
.policy-actions .btn-secondary:focus-visible {
  border-color: var(--brand) !important;
  color: var(--brand) !important;
  box-shadow: var(--shadow-soft);
}
html[data-theme="dark"] .policy-actions .btn-blue {
  background: #8bbaff !important;
  border-color: #8bbaff !important;
  color: #06101f !important;
}
html[data-theme="dark"] .policy-actions .btn-blue:hover,
html[data-theme="dark"] .policy-actions .btn-blue:focus-visible {
  background: #a9ccff !important;
  border-color: #a9ccff !important;
  color: #06101f !important;
}
html[data-theme="dark"] .policy-actions .btn-secondary {
  background: #172033 !important;
  border-color: #52637a !important;
  color: #f8fafc !important;
}
html[data-theme="dark"] .policy-actions .btn-secondary:hover,
html[data-theme="dark"] .policy-actions .btn-secondary:focus-visible {
  color: #8bbaff !important;
  border-color: #8bbaff !important;
}

@media (max-width: 980px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
  }
  .legal-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .legal-section {
    padding-top: 42px;
  }
  .legal-toc nav {
    grid-template-columns: 1fr;
  }
  .policy-actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
  .showcase-tile .project-meta {
    min-height: auto;
  }
}
