:root{
  --container: 1160px;

  /* Light (default) */
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #0b1220;
  --muted: rgba(11,18,32,.72);
  --border: rgba(11,18,32,.10);
  --shadow: 0 8px 20px rgba(11,18,32,.08);

  --radius: 14px;
  --header-h: 62px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

html[data-theme="dark"]{
  --bg: #0b0f14;
  --surface: #0f1520;
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --border: rgba(255,255,255,.14);
  --shadow: 0 10px 24px rgba(0,0,0,.45);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

/* Header (Gartner-like) */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: flex-start; /* ensures left alignment */
  gap: 18px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark{
  width: 26px;
  height: 26px;
}
.brand-name{
  font-weight: 700;
  letter-spacing: .2px;
}

.site-nav{
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link{
  text-decoration: none;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
}
.nav-link:hover{
  color: var(--text);
  background: rgba(127,127,127,.08);
}

.header-actions{
  margin-left: auto; /* pushes actions to the far right */
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.icon-btn{
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-btn:hover{
  background: rgba(127,127,127,.08);
}

.burger{
  display: none;
}

.burger-lines,
.burger-lines::before,
.burger-lines::after{
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.burger-lines::before{
  transform: translateY(-6px);
}
.burger-lines::after{
  transform: translateY(4px);
}

.drawer-overlay{
  position: fixed;
  inset: 0;
  background: rgba(11,18,32,.45);
  z-index: 60;
}

.drawer{
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 86vw);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform .25s ease;
  z-index: 70;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.drawer.is-open{
  transform: translateX(0);
}

.drawer-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-title{
  font-weight: 700;
  font-size: 15px;
}

.drawer-nav{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-link{
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}
.drawer-link:hover{
  color: var(--text);
  background: rgba(127,127,127,.08);
}

.segmented{
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(127,127,127,.06);
}

.seg-btn{
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 10px;
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
}
.seg-btn:hover{ color: var(--text); }
.seg-btn.is-active{
  background: rgba(127,127,127,.14);
  color: var(--text);
}

/* Page layout / grid (Gartner-like) */
.page{
  padding: 34px 0 74px;
}

.h1{
  font-size: 42px;
  line-height: 1.08;
  margin: 0 0 12px;
  letter-spacing: -.2px;
}
.lede{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 22px;
  max-width: 72ch;
}

.section{
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.section:first-of-type{ border-top: 0; padding-top: 0; }

.grid{
  display: grid;
  gap: 18px;
}

.grid-2{
  grid-template-columns: 1.2fr .8fr;
  align-items: start;
}

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

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px;
}

.kicker{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}

.h2{
  font-size: 20px;
  margin: 0 0 10px;
  line-height: 1.25;
}

.p{
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  background: rgba(127,127,127,.06);
}
.btn:hover{ background: rgba(127,127,127,.12); }

.btn-primary{
  background: rgba(11,18,32,.08);
}
html[data-theme="dark"] .btn-primary{
  background: rgba(255,255,255,.08);
}

/* Footer */
.site-footer{
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.footer-inner{
  padding: 22px 0;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand{
  font-weight: 800;
  margin-bottom: 4px;
}
.footer-muted{
  color: var(--muted);
  font-size: 13px;
}
.footer-right{
  display: inline-flex;
  gap: 14px;
}
.footer-link{
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  font-size: 13px;
}
.footer-link:hover{ color: var(--text); }

/* Responsive */
@media (max-width: 980px){
  .grid-3{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2{ grid-template-columns: 1fr; }
  .site-nav{ display: none; } /* optional: add burger later */
  .burger{ display: inline-flex; }
}
@media (max-width: 640px){
  .grid-3{ grid-template-columns: 1fr; }
  .h1{ font-size: 34px; }
  .footer-inner{ flex-direction: column; align-items: flex-start; }
}
