/* ===== CrossOver landing — palette mirrors the real CrossOver app =====
   Sources: CrossOver hex-mark icon (black + white + yellow #F5B324),
   marketing teal (#16a394), macOS system blue (#0A84FF), star gold. */
:root {
  --bg: #0E0E10;          /* deeper than before — closer to the app's near-black */
  --bg-2: #16161A;
  --panel: #1C1C20;       /* cards / main panel */
  --panel-2: #26262C;     /* sidebar / hover */
  --border: #2E2E36;
  --ink: #F4F6F7;
  --ink-soft: #A3A7AE;
  --ink-dim: #6F747C;

  --teal: #16A394;        /* CrossOver marketing teal */
  --teal-dark: #0F7D72;
  --teal-darker: #0B5A52;
  --teal-glow: rgba(22,163,148,0.35);
  --blue: #0A84FF;        /* macOS system blue from the install button */
  --yellow: #F5B324;      /* the CrossOver icon's accent triangle / star gold */
  --yellow-soft: rgba(245,179,36,0.16);
  --gold: #F5B324;        /* legacy alias */

  --radius: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  --max: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #3b9bff; }

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

/* ===== Header / nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 20, 22, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.3rem; color: var(--ink);
  letter-spacing: 0.02em;
}
.brand:hover { color: var(--ink); }
.brand .logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: block;
  object-fit: cover;
  background: #000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  color: var(--ink-soft); font-weight: 600; font-size: 0.98rem;
  padding: 8px 14px; border-radius: 8px;
}
.nav-links a:hover { color: var(--ink); background: var(--panel-2); }
.nav-links a.active { color: #fff; }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; background: var(--teal-dark); }

.btn {
  display: inline-block; font-weight: 700; font-size: 0.98rem;
  padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
}
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22,163,148,0.35); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--panel-2); color: #fff; border-color: var(--ink-dim); }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 78% -5%, rgba(22,163,148,0.22), transparent 60%),
    radial-gradient(700px 500px at 15% 120%, rgba(10,132,255,0.12), transparent 60%),
    var(--bg);
  padding: 90px 0 80px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.76rem; font-weight: 800; color: var(--yellow);
  background: var(--yellow-soft); border: 1px solid rgba(245,179,36,0.3);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px rgba(245,179,36,0.6);
}
.hero h1 { font-size: 3rem; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 20px; }
.hero h1 .accent {
  background: linear-gradient(135deg, #2BD0BC 0%, var(--teal) 50%, var(--teal-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: 1.18rem; color: var(--ink-soft); margin-bottom: 30px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 0.9rem; color: var(--ink-dim); }

/* ===== Hero visual — real CrossOver app screenshot in a macOS window frame ===== */
.hero-card {
  position: relative;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700;
  color: var(--teal);
  background: rgba(22,163,148,0.12);
  border: 1px solid rgba(22,163,148,0.32);
  padding: 6px 12px; border-radius: 999px;
  margin-bottom: 14px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ADE80;
  box-shadow: 0 0 8px rgba(74,222,128,0.7);
}

.window-frame {
  position: relative;
  background: #1F1F23;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(0,0,0,0.55),
    0 0 0 1px rgba(22,163,148,0.18),
    0 0 80px -20px var(--teal-glow);
  transform: perspective(1800px) rotateY(-6deg) rotateX(2deg);
  transform-origin: left center;
  transition: transform .3s ease;
}
.window-frame:hover { transform: perspective(1800px) rotateY(-3deg) rotateX(1deg); }
.window-titlebar {
  display: flex; align-items: center; gap: 12px;
  height: 32px; padding: 0 14px;
  background: linear-gradient(180deg, #2D2D33 0%, #25252B 100%);
  border-bottom: 1px solid #1A1A1E;
}
.window-titlebar .lights { display: flex; gap: 6px; }
.window-titlebar .lights i {
  width: 11px; height: 11px; border-radius: 50%; display: block;
}
.window-titlebar .lights i:nth-child(1) { background: #FF5F57; }
.window-titlebar .lights i:nth-child(2) { background: #FEBC2E; }
.window-titlebar .lights i:nth-child(3) { background: #28C840; }
.window-titlebar .window-title {
  flex: 1; text-align: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  margin-right: 51px; /* offset traffic lights for true centering */
}
.window-frame img { display: block; width: 100%; height: auto; }

.hero-card h3 {
  margin-top: 26px;
  font-size: 1.25rem;
  color: #fff;
}
.hero-card small {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Inline screenshots used elsewhere */
.screenshot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.screenshot-frame {
  margin: 40px auto 0;
  max-width: 920px;
  border-radius: 12px;
  overflow: hidden;
  background: #1F1F23;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.screenshot-frame .window-titlebar { background: linear-gradient(180deg, #2D2D33 0%, #25252B 100%); }
.screenshot-frame img { display: block; width: 100%; height: auto; }
.screenshot-caption {
  text-align: center;
  margin-top: 14px;
  color: var(--ink-dim);
  font-size: 0.88rem;
}

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section.tint { background: var(--bg-2); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section-head h2 { font-size: 2.2rem; letter-spacing: -0.02em; margin-bottom: 14px; color: #fff; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

.prose { max-width: 760px; margin: 0 auto; }
.prose p { margin-bottom: 18px; color: var(--ink-soft); }
.prose h2 { font-size: 1.8rem; margin: 36px 0 14px; letter-spacing: -0.02em; color: #fff; }
.prose h3 { font-size: 1.25rem; margin: 26px 0 10px; color: #fff; }

/* ===== Feature grid ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(22,163,148,0.14); border: 1px solid rgba(22,163,148,0.3);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 16px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; color: #fff; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }

/* ===== Popular apps showcase (home) ===== */
.app-showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; max-width: 920px; margin: 0 auto; }
.show-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px;
}
.show-item .app-ico { width: 46px; height: 46px; }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat .num { font-size: 2.4rem; font-weight: 800; color: var(--teal); letter-spacing: -0.02em; }
.stat .label { color: var(--ink-soft); font-size: 0.95rem; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { text-align: center; }
.step .badge {
  width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--teal); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.step h3 { font-size: 1.12rem; margin-bottom: 6px; color: #fff; }
.step p { color: var(--ink-soft); font-size: 0.96rem; }

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-darker));
  color: #fff; text-align: center; padding: 70px 0;
}
.cta-band h2 { font-size: 2.2rem; margin-bottom: 14px; letter-spacing: -0.02em; }
.cta-band p { color: #d6f3ee; font-size: 1.1rem; margin-bottom: 26px; }
.cta-band .btn-primary { background: #fff; color: var(--teal-darker); }
.cta-band .btn-primary:hover { background: #eafaf7; color: var(--teal-darker); }

/* ===== Download page ===== */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.dl-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; text-align: center; background: var(--panel);
}
.dl-card .os { font-size: 2.6rem; margin-bottom: 12px; }
.dl-card h3 { font-size: 1.3rem; margin-bottom: 4px; color: #fff; }
.dl-card .req { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 20px; }
.dl-card.featured { border-color: var(--teal); box-shadow: var(--shadow); position: relative; }
.dl-card.featured::before {
  content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px;
}

/* ===== Footer ===== */
.site-footer { background: #0e0e10; color: var(--ink-soft); padding: 56px 0 30px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--ink-soft); font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 12px; }
.footer-brand .logo-mark {
  width: 32px; height: 32px; border-radius: 8px;
  display: block;
  object-fit: cover;
  background: #000;
}
.footer-about { font-size: 0.95rem; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: 0.88rem; color: var(--ink-dim);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .app-window { transform: none; order: -1; }
  .grid-3, .steps, .dl-grid, .app-showcase { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 12px 24px; gap: 4px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-links .btn { text-align: center; margin-top: 6px; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 2.2rem; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
