/* CS Projects website for CS WorkHub.
   Layout: a dark navy hero and footer around light sections; one teal accent; large, calm type. */
:root {
  --navy: #1f3a5f;
  --navy-deep: #12263f;
  --teal: #3aa6a0;
  --teal-deep: #247f7a;
  --teal-soft: #d9efec;
  --bg: #f3f8f7;
  --surface: #ffffff;
  --ink: #0f2a33;
  --muted: #4d6770;
  --line: #c9dcdb;
  --on-dark: #e8f0f6;
  --on-dark-muted: #a9bdd0;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(15, 42, 51, .22);
  --font: "Barlow", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-display: "Barlow Semi Condensed", "Barlow", "Arial Narrow", "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1160px, 100%); margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { width: min(820px, 100%); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; border: 2px solid transparent; font: 700 16px/1 var(--font); padding: 13px 24px; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #05302d; }
.btn-primary:hover { background: #4cbab3; }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-small { padding: 9px 18px; font-size: 15px; }
.btn-large { padding: 16px 30px; font-size: 18px; }

/* Top bar */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(18, 38, 63, .94); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255, 255, 255, .08); padding-top: env(safe-area-inset-top, 0px); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 84px; }
/* Headings use the condensed display face of the brand (the same family as the platform) */
h1, h2, h3, .btn, .nav-links a, .eyebrow, .dl strong, .price .amount, .step-n { font-family: var(--font-display); }
h1, h2 { font-weight: 800; }
h3 { font-weight: 700; }
.nav-brand { display: block; line-height: 0; }
.nav-brand img { width: 200px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) { color: var(--on-dark); text-decoration: none; padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 18px; letter-spacing: .01em; }
.nav-links a:not(.btn):hover { background: rgba(255, 255, 255, .1); }
.nav-links a[aria-current="page"]:not(.btn) { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 -3px 0 var(--teal); }

/* Hero */
.hero { background: radial-gradient(900px 480px at 85% 0%, rgba(58, 166, 160, .30), transparent 70%), linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--on-dark); padding-block: 72px 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.eyebrow { margin: 0 0 16px; font-size: 16px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); }
.eyebrow.dark { color: var(--teal-deep); }
.hero h1 { margin: 0 0 22px; font-size: clamp(42px, 5.8vw, 70px); line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; color: #fff; }
.lead { margin: 0 0 32px; font-size: 21px; color: var(--on-dark-muted); max-width: 52ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.fine { margin: 18px 0 0; font-size: 14px; color: var(--on-dark-muted); }
.hero-shot { margin: 0; }
.hero-shot .frame { transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transform-origin: 0 50%; }

/* Browser-style frame around screenshots */
.frame { background: #0e1c31; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(255, 255, 255, .12); }
.frame-bar { display: flex; gap: 7px; padding: 10px 14px; background: #1b2b43; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b5273; }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; background: #e8f1f0; }

/* Sections */
.section { padding-block: 88px; }
.section.alt { background: #e6f1ef; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { margin: 0 0 14px; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; color: var(--navy); }
.section-lead { margin: 0; color: var(--muted); font-size: 18px; }

/* Tour */
.tour-box { position: relative; background: var(--navy-deep); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); }
.tour-frame { display: block; width: 100%; height: clamp(620px, 78vw, 800px); border: 0; border-radius: 12px; background: var(--navy-deep); }
.tour-poster { display: none; position: relative; border-radius: 12px; overflow: hidden; }
.tour-poster img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: brightness(.55); }
.tour-poster .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; font-weight: 700; font-size: 20px; }
.tour-poster .play svg { background: var(--teal); color: #05302d; border-radius: 50%; padding: 14px; width: 62px; height: 62px; }
.tour-note { margin: 14px 0 0; font-size: 15px; color: var(--muted); }

/* Tools gallery */
.tool-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tool-tabs button { font: 600 15px/1 var(--font); background: var(--surface); color: var(--navy); border: 1.5px solid var(--line); border-radius: 999px; padding: 11px 18px; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.tool-tabs button:hover { border-color: var(--teal); }
.tool-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tool-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.tool-text h3 { margin: 0 0 10px; font-size: 26px; line-height: 1.15; color: var(--navy); }
.tool-text p { margin: 0 0 16px; color: var(--muted); }
.tool-text ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tool-text li, .ticks li { position: relative; padding-left: 28px; }
.tool-text li::before, .ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 3px solid var(--teal-deep); border-bottom: 3px solid var(--teal-deep); transform: rotate(-45deg) translateY(-3px); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 16px; }
.steps h3 { margin: 0 0 8px; font-size: 21px; color: var(--navy); }
.steps p { margin: 0; color: var(--muted); }

/* Price */
.price-section { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--on-dark); }
.price-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--surface); color: var(--ink); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.price-main { padding: 44px 44px 48px; background: linear-gradient(180deg, #ffffff, #eef7f6); }
.price { margin: 0 0 10px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.price .amount { font-size: clamp(56px, 8vw, 84px); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--navy); font-variant-numeric: tabular-nums; }
.price .unit { font-size: 17px; font-weight: 600; color: var(--muted); }
.price-lead { margin: 0 0 26px; color: var(--muted); }
.buy-note { margin: 16px 0 0; padding: 12px 14px; border-left: 4px solid var(--teal); background: var(--teal-soft); border-radius: 6px; font-size: 15px; }
.price-list { padding: 44px; border-left: 1px solid var(--line); }
.price-list h3 { margin: 0 0 16px; font-size: 20px; color: var(--navy); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

/* Downloads */
.downloads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dl { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.dl:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15, 42, 51, .12); }
.dl strong { font-size: 18px; color: var(--navy); }
.dl span:last-child { color: var(--muted); font-size: 15px; }
.dl-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--navy); color: #fff; }
.dl-tag.file { background: var(--teal-soft); color: var(--teal-deep); }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 18px 28px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--teal-deep); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Inner pages: a short dark title band, then the content */
.page-hero { background: radial-gradient(900px 360px at 85% 0%, rgba(58, 166, 160, .26), transparent 70%), linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); color: var(--on-dark); padding-block: 80px 84px; }
.page-hero h1 { margin: 0 0 16px; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; color: #fff; }
.page-hero .lead { margin: 0; font-size: 22px; color: var(--on-dark-muted); max-width: 60ch; }
.section.tight { padding-block: 56px 80px; }
.cta-row.after { margin-top: 36px; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* Home: three things it does, and the call to action band */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.feature { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.feature:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15, 42, 51, .12); }
.feature h3 { margin: 0; font-size: 21px; color: var(--navy); }
.feature p { margin: 0; color: var(--muted); }
.feature .more { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--teal-deep); }
.feature .more::after { content: " \2192"; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); color: var(--navy); }
.cta-band p { margin: 0; color: var(--muted); font-size: 18px; max-width: 52ch; }

/* FAQ contact card */
.contact-card { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-align: center; }
.contact-card h2 { margin: 0 0 6px; font-size: 24px; color: var(--navy); }
.contact-card p { margin: 0 0 14px; color: var(--muted); }

/* Footer */
.foot { background: var(--navy-deep); color: var(--on-dark-muted); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 28px 40px; align-items: start; }
.foot-brand { display: grid; gap: 12px; justify-items: start; }
.foot-links { display: grid; gap: 8px; }
.foot-links a, .foot-contact a { color: var(--on-dark); text-decoration: none; font-weight: 600; }
.foot-links a:hover, .foot-contact a:hover { text-decoration: underline; color: #fff; }
.foot-contact { color: var(--on-dark-muted); }
.foot-contact a { display: inline-block; margin-top: 4px; font-size: 18px; }
.foot .foot-small { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
.foot p { margin: 0; }
.foot-small { font-size: 14px; }

/* Guide pages (quick start, installation, templates) */
.doc-page { background: var(--bg); }
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--navy-deep); padding: 14px max(20px, env(safe-area-inset-left, 0px)); }
.doc-brand { line-height: 0; }
.doc-brand img { width: 170px; height: auto; }
.doc-back { color: var(--on-dark); text-decoration: none; font-weight: 600; }
.doc-back:hover { text-decoration: underline; }
.doc { width: min(860px, 100%); margin: 0 auto; padding: 48px max(20px, env(safe-area-inset-left, 0px)) 64px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.12; color: var(--navy); margin: 0 0 18px; letter-spacing: -.015em; }
.doc h2 { font-size: 26px; color: var(--navy); margin: 40px 0 12px; }
.doc h3 { font-size: 20px; color: var(--navy); margin: 28px 0 10px; }
.doc p, .doc li { max-width: 70ch; }
.doc li { margin-bottom: 6px; }
.doc code { background: #dcebe9; padding: 2px 6px; border-radius: 5px; font: 0.92em/1.4 Consolas, "Cascadia Mono", monospace; }
.doc pre { background: var(--navy-deep); color: #e8f0f6; padding: 16px 20px; border-radius: 10px; overflow-x: auto; }
.doc pre code { background: none; padding: 0; color: inherit; }
.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.doc table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.doc th, .doc td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: #e6f1ef; color: var(--navy); }
.doc tr:last-child td { border-bottom: 0; }
.doc-foot { text-align: center; color: var(--muted); padding: 24px; font-size: 14px; }

/* Tablet and phone */
@media (max-width: 980px) {
  .hero { padding-block: 48px 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-shot .frame { transform: none; }
  .tool-panel { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr; }
  .price-card { grid-template-columns: 1fr; }
  .price-list { border-left: 0; border-top: 1px solid var(--line); }
  .downloads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .tour-frame { display: none; }
  .tour-poster { display: block; }
  .section { padding-block: 64px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-row { flex-wrap: wrap; row-gap: 4px; padding-block: 8px; }
  .nav-links { width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; flex: none; }
  .page-hero { padding-block: 48px 52px; }
  .nav-brand img { width: 160px; }
  .downloads { grid-template-columns: 1fr; }
  .price-main, .price-list { padding: 30px 22px; }
  .btn-large { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .dl { transition: none; }
}
