/* CrossDriver Files — product page (v2).
   All selectors are scoped under <main> so the site header/footer rendered by
   app/index/view/layout/default.html keep the global style.css look untouched.
   Design tokens follow www.crossdriver.com (primary #3567ff, slate greys, lavender hero,
   orange accent). No JavaScript; works with a strict CSP
   (default-src 'none'; style-src 'self'; img-src 'self'). */

html { scroll-behavior: smooth; }

main {
  --blue: #3567ff;
  --blue-dark: #2450d8;
  --blue-soft: #e7eeff;
  --orange-1: #ff8a00;
  --orange-2: #ff5a3d;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --panel: #f8fafc;
  --radius: 18px;
  --shadow: 0 30px 80px rgba(15, 35, 95, 0.18), 0 6px 18px rgba(15, 35, 95, 0.08);
  --max: 1200px;
  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;
}
main * { box-sizing: border-box; }
main img { max-width: 100%; height: auto; display: block; }
main [id] { scroll-margin-top: 84px; }
main h1, main h2, main h3 { text-wrap: balance; }
main p, main li, main dd { text-wrap: pretty; }
main a { color: var(--blue); text-decoration: none; }
main a:hover { text-decoration: underline; }
main .wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------------------------------------------------------------- buttons */
main .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;
}
main .btn:hover { text-decoration: none; transform: translateY(-1px); }
main .btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(53, 103, 255, .35); }
main .btn-primary:hover { background: var(--blue-dark); }
main .btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
main .btn svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- hero */
main .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%);
}
main .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);
}
main .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; }
main .hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue) 0%, #7b5cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
main .hero .lead { font-size: clamp(18px, 2vw, 21px); color: #475569; max-width: 760px; margin: 0 auto 32px; }
main .hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
main .hero .fineprint { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
main .hero .fineprint span + span::before { content: "·"; margin: 0 10px; color: #94a3b8; }
main .hero-shot { margin: 56px auto 0; max-width: 1180px; padding: 0 28px; }
main .hero-shot img { border-radius: 16px; box-shadow: var(--shadow); }
/* The window's empty lower part fades into the page. */
main .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%); }

/* ---------------------------------------------------------------- the ten highlights at a glance */
main .toc { border-bottom: 1px solid var(--line); background: #fff; }
main .toc ol { list-style: none; margin: 0; padding: 28px 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
main .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;
}
main .toc a:hover { background: #eef2ff; color: var(--blue); text-decoration: none; }
main .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 */
main section.block { padding: 104px 0; }
main section.tint { background: var(--panel); }
main .section-head { text-align: center; max-width: 820px; margin: 0 auto 56px; }
main .eyebrow { display: block; color: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 12px; }
main h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.15; letter-spacing: -.8px; color: var(--ink); margin: 0 0 16px; }
main .section-head p { color: #475569; font-size: 19px; margin: 0; }

main .feature { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: center; }
main .feature + .feature { margin-top: 120px; }
main .feature.flip { grid-template-columns: 7fr 5fr; }
main .feature.flip .text { order: 2; }
main .feature h3 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.2; letter-spacing: -.5px; color: var(--ink); margin: 0 0 16px; }
main .feature p { color: #475569; margin: 0 0 18px; }
main .feature ul { margin: 0; padding: 0; list-style: none; }
main .feature li { position: relative; padding-left: 30px; margin: 10px 0; color: #334155; }
main .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;
}
main .shot { position: relative; }
main .shot img { border-radius: 14px; box-shadow: var(--shadow); }
main .shot::before {
  content: ""; position: absolute; inset: 8% -6% -6% 8%; border-radius: 28px; z-index: -1;
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
}
main .feature.flip .shot::before { inset: 8% 8% -6% -6%; }
main .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;
}
main .section-head .num { display: block; margin: 0 0 6px; font-size: 18px; }
main .feature .aside { font-size: 15px; color: var(--muted); margin: 18px 0 0; }

/* Text panels standing in for a screenshot (03 formats, 09 drives). */
main .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); }
main .panel-title { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
main .fgroup + .fgroup { margin-top: 18px; }
main .flabel { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; color: #334155; }
main .formats-panel .formats { justify-content: flex-start; gap: 8px; max-width: none; }
main .formats-panel .formats span { padding: 8px 14px; font-size: 15px; }
main .drives-panel dl { margin: 0; }
main .drives-panel dl div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
main .drives-panel dl div:first-child { border-top: 0; padding-top: 0; }
main .drives-panel dt { font-weight: 700; color: var(--ink); font-size: 15px; }
main .drives-panel dd { margin: 0; color: #475569; font-size: 15px; }
main .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 */
main .keys { background: radial-gradient(1000px 500px at 80% 0%, #1e3a8a 0%, transparent 60%), #0b1022; color: #e2e8f0; }
main .keys h2, main .keys .section-head p { color: #fff; }
main .keys .section-head p { color: #cbd5e1; }
main .keygrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
main .key { background: #111a35; border: 1px solid #ffffff14; border-radius: 16px; padding: 22px 22px 20px; }
main .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);
}
main .key span { display: block; margin-top: 12px; color: #cbd5e1; font-size: 15px; }
main .keys .note { text-align: center; margin-top: 40px; color: #94a3b8; font-size: 15px; }

/* ---------------------------------------------------------------- format chips */
main .formats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 900px; margin: 0 auto; }
main .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);
}
main .formats span.hot { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--blue) 0%, #7b5cff 100%); }

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

/* ---------------------------------------------------------------- dark showcase */
main .dark-show { background: linear-gradient(180deg, #0b1022 0%, #1b1f4a 100%); color: #fff; text-align: center; padding: 104px 0 0; overflow: hidden; }
main .dark-show h2 { color: #fff; }
main .dark-show p { color: #cbd5e1; font-size: 19px; margin: 0 0 48px; }
main .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); }

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

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

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