/* CrossDriver Files — product site.
   Design tokens follow www.crossdriver.com (primary #3567ff, slate greys, lavender hero,
   orange accent, black header, dark footer). No JavaScript; works with a strict CSP
   (default-src 'none'; style-src 'self'; img-src 'self'). */

:root {
  --blue: #3567ff;
  --blue-dark: #2450d8;
  --blue-soft: #e7eeff;
  --orange-1: #ff8a00;
  --orange-2: #ff5a3d;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #f8fafc;
  --footer: #141518;
  --radius: 18px;
  --shadow: 0 30px 80px rgba(15, 35, 95, 0.18), 0 6px 18px rgba(15, 35, 95, 0.08);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
[id] { scroll-margin-top: 84px; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 10; background: #000; }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { height: 30px; width: auto; }
.brand .product { padding-left: 14px; border-left: 1px solid #ffffff33; font-size: 16px; letter-spacing: .2px; }
.site-nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.site-nav a { color: #cbd5e1; }
.site-nav a:hover { color: #fff; text-decoration: none; }
.lang-switch { position: relative; font-size: 13px; }
.lang-switch summary {
  list-style: none; cursor: pointer; color: #cbd5e1; border: 1px solid #ffffff33; border-radius: 999px;
  padding: 5px 12px; display: inline-flex; align-items: center; gap: 6px; line-height: 1.2;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after { content: "▾"; font-size: 10px; }
.lang-switch[open] summary, .lang-switch summary:hover { background: #ffffff1a; color: #fff; }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; margin: 0; padding: 6px;
  list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(2, 6, 23, .18); min-width: 185px; max-height: 70vh; overflow: auto;
}
.lang-switch li a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--ink); white-space: nowrap; }
.lang-switch li a:hover { background: #eef2f7; text-decoration: none; }
.lang-switch li a[aria-current] { background: var(--blue); color: #fff; font-weight: 600; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 12px;
  font-weight: 650; font-size: 17px; line-height: 1; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(53, 103, 255, .35); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-small { padding: 9px 16px; font-size: 14px; border-radius: 9px; box-shadow: none; }
.btn svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; text-align: center; padding: 72px 0 0;
  background:
    radial-gradient(900px 480px at 85% 0%, rgba(53, 103, 255, .18), transparent 70%),
    radial-gradient(800px 420px at 0% 30%, rgba(255, 138, 0, .10), transparent 70%),
    linear-gradient(180deg, var(--blue-soft) 0%, #f5f8ff 62%, #fff 100%);
}
.badge {
  display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 650; color: #fff;
  background: linear-gradient(135deg, var(--orange-1) 0%, var(--orange-2) 100%); box-shadow: 0 6px 16px rgba(255, 90, 61, .3);
}
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); line-height: 1.08; letter-spacing: -1.5px; color: var(--ink); margin: 22px auto 18px; max-width: 980px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue) 0%, #7b5cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: #475569; max-width: 760px; margin: 0 auto 32px; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero .fineprint { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.hero .fineprint span + span::before { content: "·"; margin: 0 10px; color: #94a3b8; }
.hero-shot { margin: 56px auto 0; max-width: 1180px; padding: 0 28px; }
.hero-shot img { border-radius: 16px; box-shadow: var(--shadow); }
/* The window's empty lower part fades into the page. */
.hero-shot { max-height: 700px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }

/* A single app window as the hero (ExePeek): shown whole, at its own width. */
.hero .app-icon { width: 112px; height: 112px; margin: 0 auto 18px; filter: drop-shadow(0 12px 24px rgba(15, 35, 95, .18)); }
.hero-shot.window-shot { max-width: 956px; max-height: none; -webkit-mask-image: none; mask-image: none; padding-bottom: 72px; }

/* ---------------------------------------------------------------- the ten highlights at a glance */
.toc { border-bottom: 1px solid var(--line); background: #fff; }
.toc ol { list-style: none; margin: 0; padding: 28px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.toc a {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px; border-radius: 12px;
  font-size: 14.5px; line-height: 1.35; font-weight: 600; color: #334155; transition: background .15s, color .15s;
}
.toc a:hover { background: #eef2ff; color: var(--blue); text-decoration: none; }
.toc b {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font-size: 14px;
  color: #fff; background: linear-gradient(135deg, var(--blue) 0%, #7b5cff 100%);
}

/* ---------------------------------------------------------------- sections */
section.block { padding: 104px 0; }
section.tint { background: var(--panel); }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
.eyebrow { display: block; color: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 12px; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -.8px; color: var(--ink); margin: 0 0 16px; }
.section-head p { color: #475569; font-size: 19px; margin: 0; }

.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
.feature + .feature { margin-top: 120px; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .text { order: 2; }
.feature h3 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.2; letter-spacing: -.5px; color: var(--ink); margin: 0 0 16px; }
.feature p { color: #475569; margin: 0 0 18px; }
.feature ul { margin: 0; padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 30px; margin: 10px 0; color: #334155; }
.feature li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.6L12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.shot { position: relative; }
.shot img { border-radius: 14px; box-shadow: var(--shadow); }
.shot::before {
  content: ""; position: absolute; inset: 8% -6% -6% 8%; border-radius: 28px; z-index: -1;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
}
.feature.flip .shot::before { inset: 8% 8% -6% -6%; }
.num {
  display: inline-block; margin-right: 12px; font-size: 15px; font-weight: 800; letter-spacing: .5px; vertical-align: 2px;
  background: linear-gradient(90deg, var(--orange-1) 0%, var(--orange-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head .num { display: block; margin: 0 0 6px; font-size: 18px; }
.feature .aside { font-size: 15px; color: var(--muted); margin: 18px 0 0; }

/* Text panels standing in for a screenshot (03 formats, 09 drives). */
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 30px; box-shadow: 0 12px 40px rgba(15, 35, 95, .07); }
.panel-title { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.fgroup + .fgroup { margin-top: 18px; }
.flabel { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; color: #334155; }
.formats-panel .formats { justify-content: flex-start; gap: 8px; max-width: none; }
.formats-panel .formats span { padding: 8px 14px; font-size: 15px; }
.drives-panel dl { margin: 0; }
.drives-panel dl div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.drives-panel dl div:first-child { border-top: 0; padding-top: 0; }
.drives-panel dt { font-weight: 700; color: var(--ink); font-size: 15px; }
.drives-panel dd { margin: 0; color: #475569; font-size: 15px; }
.pill { display: inline-block; font-size: 13px; font-weight: 700; color: var(--blue); background: #eef2ff; border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }

/* ---------------------------------------------------------------- keyboard */
.keys { background: radial-gradient(1000px 500px at 80% 0%, #1e3a8a 0%, transparent 60%), #0b1022; color: #e2e8f0; }
.keys h2, .keys .section-head p { color: #fff; }
.keys .section-head p { color: #cbd5e1; }
.keygrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.key { background: #111a35; border: 1px solid #ffffff14; border-radius: 16px; padding: 22px 22px 20px; }
.key kbd {
  display: inline-block; min-width: 46px; padding: 9px 12px; margin: 0 6px 6px 0; text-align: center;
  font: 650 17px/1 system-ui, -apple-system, sans-serif; color: #0f172a; background: linear-gradient(180deg, #fff 0%, #e2e8f0 100%);
  border-radius: 9px; box-shadow: 0 3px 0 #94a3b8, 0 6px 14px rgba(0, 0, 0, .35);
}
.key span { display: block; margin-top: 12px; color: #cbd5e1; font-size: 15px; }
.keys .note { text-align: center; margin-top: 40px; color: #94a3b8; font-size: 15px; }

/* ---------------------------------------------------------------- format chips */
.formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; margin: 0 auto; }
.formats span {
  padding: 12px 20px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-weight: 700; color: var(--ink);
  box-shadow: 0 4px 10px rgba(15, 35, 95, .05);
}
.formats span.hot { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--blue) 0%, #7b5cff 100%); }

/* ---------------------------------------------------------------- trust cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.card b { display: block; font-size: 30px; color: var(--blue); margin-bottom: 8px; }
.card h3 { margin: 0 0 8px; font-size: 19px; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------------------------------------------------------------- dark showcase */
.dark-show { background: linear-gradient(180deg, #0b1022 0%, #1b1f4a 100%); color: #fff; text-align: center; padding: 104px 0 0; overflow: hidden; }
.dark-show h2 { color: #fff; }
.dark-show p { color: #cbd5e1; font-size: 19px; margin: 0 0 48px; }
.dark-show img { max-width: 1100px; margin: 0 auto -6px; border-radius: 16px 16px 0 0; box-shadow: 0 -10px 80px rgba(123, 92, 255, .35); }
.dark-show.window-dark img { max-width: 900px; width: calc(100% - 56px); }

/* ---------------------------------------------------------------- FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 18px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #475569; margin: 12px 0 0; }

/* ---------------------------------------------------------------- final call to action */
.cta { text-align: center; padding: 96px 0; background: linear-gradient(135deg, #2450d8 0%, #3567ff 45%, #7b5cff 100%); color: #fff; }
.cta h2 { color: #fff; }
.cta p { color: #e0e7ff; font-size: 19px; margin: 0 0 32px; }
.cta .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.cta .meta { margin-top: 18px; font-size: 14px; color: #c7d2fe; }
.cta .meta a { color: #fff; }

/* ---------------------------------------------------------------- footer (as www.crossdriver.com) */
.site-footer { background: var(--footer); color: #cbd5e1; padding: 64px 0 28px; font-size: 15px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.site-footer h4 { color: #fff; font-size: 16px; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 10px 0; }
.site-footer a { color: #cbd5e1; }
.site-footer .legal { border-top: 1px solid #ffffff1f; margin-top: 44px; padding-top: 22px; text-align: center; color: #94a3b8; font-size: 13.5px; }
.site-footer .legal p { margin: 6px 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .site-nav { display: none; }
  .lang-switch { margin-left: auto; }
  .toc ol { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .text { order: 0; }
  .keygrid, .cards { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .badge { font-size: 13px; padding: 6px 12px; max-width: 100%; }
  .brand .product { display: none; }
  .header-download { display: none; }
  section.block { padding: 72px 0; }
  .cards { grid-template-columns: 1fr; }
  .keygrid { gap: 10px; }
  .key { padding: 16px 14px 14px; }
  .key kbd { min-width: 32px; padding: 7px 8px; margin: 0 4px 4px 0; font-size: 14px; }
  .toc ol { grid-template-columns: 1fr; gap: 2px; padding: 16px 0; }
  .toc a { padding: 8px 10px; }
  .panel { padding: 22px; }
  .drives-panel dl div { grid-template-columns: 1fr; gap: 4px; }
}
