/* zedtek.com — one shared stylesheet, no build step, no framework.
   Tokens, header, buttons, hero, quotes and cards match ztree.com so the two sites read as one family. */

:root {
  --navy: #1d4a7a;
  --navy-deep: #12304f;
  --sage: #7a9378;
  --sage-soft: #e7eee6;
  --term-bg: #0b1a8c;      /* the classic XTree blue */
  --term-fg: #e8f0ff;
  --term-hi: #6ee7ff;
  --term-dim: #9fb4ff;

  --bg: #fbfbf8;
  --surface: #ffffff;
  --surface-2: #f2f4f1;
  --text: #1b2430;
  --muted: #5a6573;
  --line: #dfe3e0;
  --accent: var(--navy);
  --accent-text: #ffffff;
  --link: #1d5ea8;
  --code-bg: #eef1f6;

  --radius: 12px;
  --max: 1120px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, ui-monospace, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f141b;
    --surface: #161d27;
    --surface-2: #1b2430;
    --text: #e4e9ef;
    --muted: #9aa6b4;
    --line: #2a3442;
    --accent: #5b8fd0;
    --accent-text: #0b1220;
    --link: #8cb8ff;
    --code-bg: #1f2937;
    --sage-soft: #1e2a20;
  }
}
:root[data-theme="dark"] {
  --bg: #0f141b;
  --surface: #161d27;
  --surface-2: #1b2430;
  --text: #e4e9ef;
  --muted: #9aa6b4;
  --line: #2a3442;
  --accent: #5b8fd0;
  --accent-text: #0b1220;
  --link: #8cb8ff;
  --code-bg: #1f2937;
  --sage-soft: #1e2a20;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* the filters hide with it; layout rules must not undo that */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
code, kbd, pre { font-family: var(--mono); font-size: 0.92em; }
code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 4px; }
kbd {
  display: inline-block; padding: 0.05em 0.45em; border-radius: 5px;
  border: 1px solid var(--line); border-bottom-width: 2px;
  background: var(--surface); font-size: 0.85em; white-space: nowrap;
}
pre { background: var(--code-bg); padding: 14px 16px; border-radius: 8px; overflow-x: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 0.5em; }
h3 { font-size: 1.15rem; margin: 0 0 0.3em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--surface-2); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 46em; }
.muted { color: var(--muted); }
.eyebrow {
  font: 600 0.8rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 12px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.15rem; }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px 2px 9px 2px;
  background: var(--sage); color: var(--navy-deep);
  display: grid; place-items: center; font: 800 1.2rem/1 Georgia, serif;
}
.brand small { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 0.95rem;
}
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; color: var(--text); font: inherit; }
.theme-toggle { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; color: var(--muted); cursor: pointer; font-size: 0.9rem; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; padding: 12px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; text-decoration: none;
  background: var(--accent); color: var(--accent-text); border: 1px solid transparent;
  transition: transform 0.08s ease, filter 0.15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.small { padding: 7px 14px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--sage) 25%, transparent), transparent 70%),
    radial-gradient(900px 400px at -10% 10%, color-mix(in srgb, var(--navy) 18%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--sage); }
.hero .meta { margin-top: 18px; font-size: 0.9rem; color: var(--muted); }
.hero .meta b { color: var(--text); }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* Terminal window frame around the screenshot */
.term {
  border-radius: 12px; overflow: hidden; background: #000;
  box-shadow: 0 30px 60px -20px rgba(10, 30, 80, 0.45), 0 0 0 1px rgba(0,0,0,0.25);
}
.term-bar {
  display: flex; align-items: center; gap: 7px; padding: 9px 12px;
  background: #1e2430; color: #9aa6b4; font: 12px var(--mono);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4352; display: block; }
.term-bar span { margin-left: 10px; }
.term img { width: 100%; }

/* Fake live-terminal typing strip under the hero */
.keys-strip {
  margin-top: 40px; padding: 14px 18px; border-radius: 10px;
  background: var(--term-bg); color: var(--term-fg); font: 14px/1.6 var(--mono);
}
.keys-strip .ks-keys { display: flex; flex-wrap: wrap; gap: 2px 22px; }
.keys-strip .ks-keys span { white-space: nowrap; }
.keys-strip .ks-tag { margin-top: 6px; opacity: 0.7; }
.keys-strip b { color: var(--term-hi); font-weight: 400; }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.quote {
  margin: 0; padding: 28px 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); position: relative;
}
.quote::before {
  content: "\201C"; position: absolute; top: -6px; left: 18px;
  font: 700 4.5rem/1 Georgia, serif; color: var(--sage); opacity: 0.6;
}
.quote p { font-size: 1.15rem; margin: 18px 0 16px; }
.quote footer { color: var(--muted); font-size: 0.92rem; }
.quote footer b { color: var(--text); }
@media (max-width: 760px) { .quotes { grid-template-columns: 1fr; } }
/* ---------- Feature cards ---------- */
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 20px;
}
.card .ico {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  background: var(--sage-soft); color: var(--sage); margin-bottom: 14px;
  font: 700 0.95rem var(--mono);
}
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.card .keys { margin-top: 10px; font-size: 0.85rem; }
/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff; border-radius: 18px; padding: 44px 40px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; opacity: 0.85; }
.cta-band .btn { background: #fff; color: var(--navy-deep); }
.cta-band .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 56px 0 28px; border-bottom: 1px solid var(--line); }
.page-head p { margin: 0; }

.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 40px; font-size: 0.92rem; color: var(--muted); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: var(--text); margin: 0 0 10px; font-size: 0.9rem; }
.site-footer a { color: var(--muted); text-decoration: none; display: block; padding: 2px 0; }
.site-footer a:hover { color: var(--text); }
.site-footer .fine { margin-top: 28px; font-size: 0.82rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* Grid children may shrink below their content width (stops sideways scroll on phones) */
.hero-grid > *, .grid > *, .story > * { min-width: 0; }
.term-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a.btn { color: var(--accent-text); }
.nav a.btn:hover { background: var(--accent); }

/* ---------- zedtek.com only ---------- */

/* Product cards: logo beside the text */
.product { display: grid; grid-template-columns: 84px 1fr; gap: 20px; align-items: start; padding: 26px; }
.product img { width: 84px; border-radius: 8px; background: #fff; padding: 4px; }
.product h3 { font-size: 1.35rem; }
.product .tagline { color: var(--accent); font-weight: 600; margin: 0 0 8px; font-size: 0.95rem; }
.product .btn-row { margin-top: 16px; }
@media (max-width: 480px) { .product { grid-template-columns: 1fr; } }

/* Press strip */
.press { display: flex; flex-wrap: wrap; gap: 10px 34px; align-items: baseline; justify-content: center; margin-top: 8px; }
.press span { font: 700 1.05rem/1.2 Georgia, "Times New Roman", serif; color: var(--muted); white-space: nowrap; }
.press-label { text-align: center; }

/* Story: timeline beside a pull quote */
.story { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .story { grid-template-columns: 1fr; } }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px var(--bg);
}
.section.alt .timeline li::before { box-shadow: 0 0 0 4px var(--surface-2); }
.timeline .yr { font: 700 0.85rem/1 var(--mono); color: var(--accent); letter-spacing: 0.06em; }
.timeline h3 { margin: 6px 0 4px; }
.timeline p { margin: 0; color: var(--muted); }
.big-num {
  font: 700 clamp(2.4rem, 6vw, 3.6rem)/1 var(--mono); color: var(--accent);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}

/* Testimonials and press reviews */
.wall { columns: 2 360px; column-gap: 24px; }
.wall .quote { break-inside: avoid; margin-bottom: 24px; }
.wall .quote p { font-size: 1.02rem; margin: 14px 0; }
.wall .quote p + p { margin-top: -4px; }
.review { margin: 0 0 24px; break-inside: avoid; }
.review .quote { margin-bottom: 0; }
.review .src { font-weight: 700; color: var(--text); }
.review .date { color: var(--muted); font-size: 0.9rem; }
.review h3 { margin: 4px 0 0; font-size: 1.05rem; font-weight: 600; color: var(--accent); }
.more summary { cursor: pointer; color: var(--link); font-weight: 600; font-size: 0.95rem; margin: 4px 0 10px; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " ▾"; }
.more[open] summary::after { content: " ▴"; }
.more[open] summary { margin-bottom: 0; }
.read-link { font-weight: 600; font-size: 0.95rem; }

/* Archived articles */
.article { max-width: 44em; margin: 0 auto; }
.article p { margin: 0 0 1.1em; overflow-wrap: anywhere; }
.section .article > p:first-of-type::first-letter {
  float: left; font: 700 3.4em/0.85 Georgia, serif; margin: 0.06em 0.08em 0 0; color: var(--accent);
}
.byline { color: var(--muted); }
.note {
  margin: 32px 0 0; padding: 14px 18px; border-radius: 10px;
  background: var(--sage-soft); color: var(--text); font-size: 0.92rem;
}
.back { display: inline-block; margin-bottom: 18px; font-size: 0.95rem; }

/* Partners */
.partner { display: flex; flex-direction: column; gap: 14px; padding: 26px; }
.partner .logo-box {
  background: #fff; border-radius: 8px; padding: 14px; display: grid; place-items: center; min-height: 96px;
  border: 1px solid var(--line);
}
.partner .logo-box img { max-height: 60px; width: auto; }
.partner .btn-row { margin-top: auto; padding-top: 6px; }
