/* DreamCommander landing site.
   Colours come from the program icon: the night panel (blue, moon) and the
   day panel (coral, sun). System fonts only: nothing is loaded from third
   parties. */

:root {
  --night-900: #0a1228;
  --night-800: #0d1630;
  --night-700: #16224a;
  --night-600: #22336b;
  --blue: #3f73d1;
  --blue-soft: #a9c0ea;
  --coral: #ef7466;
  --coral-soft: #f8c0ba;
  --sun: #ffe06b;
  --cream: #fff1b8;
  --paper: #fbf8f3;
  --paper-2: #f3eee6;
  --ink: #18203a;
  --ink-soft: #4a5370;
  --line: #e3dccf;

  --radius: 14px;
  --wrap: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .8em 1.35em; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; text-decoration: none; white-space: nowrap;
  color: var(--night-900); background: var(--sun);
  box-shadow: 0 6px 20px -8px rgba(255, 224, 107, .8);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn .icon { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-1px); background: #ffe88c; }
.btn-ghost {
  color: #fff; background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-ghost-dark {
  color: var(--ink); background: transparent; box-shadow: inset 0 0 0 2px var(--ink);
}
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }
.btn-small { padding: .5em 1.05em; font-size: .92rem; }
.btn-disabled {
  cursor: default; color: var(--ink-soft); background: var(--paper-2); box-shadow: none;
}
.btn-disabled:hover { transform: none; background: var(--paper-2); }
.btn-disabled small { font-weight: 500; opacity: .8; }

/* ------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 18, 40, .82);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 800; font-size: 1.1rem;
}
.main-nav { display: flex; gap: 22px; margin-right: auto; }
.main-nav a { color: rgba(255, 255, 255, .78); text-decoration: none; font-size: .95rem; font-weight: 500; }
.main-nav a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; gap: 2px; font-size: .8rem; font-weight: 700; letter-spacing: .05em; }
.lang-switch a, .lang-switch span {
  padding: 4px 8px; border-radius: 6px; color: rgba(255, 255, 255, .6); text-decoration: none;
}
.lang-switch a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lang-switch span[aria-current] { color: var(--night-900); background: var(--cream); }

/* --------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 520px at 85% 8%, rgba(239, 116, 102, .30), transparent 60%),
    radial-gradient(800px 600px at 0% 100%, rgba(63, 115, 209, .35), transparent 60%),
    linear-gradient(180deg, var(--night-900) 0%, var(--night-800) 60%, var(--night-700) 100%);
}
.sky {
  position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 22% 62%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 35% 30%, var(--cream), transparent),
    radial-gradient(1px 1px at 46% 12%, #fff, transparent),
    radial-gradient(1px 1px at 8% 82%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 28% 88%, var(--blue-soft), transparent),
    radial-gradient(1px 1px at 52% 74%, #fff, transparent),
    radial-gradient(1px 1px at 4% 40%, var(--cream), transparent),
    radial-gradient(1px 1px at 40% 50%, #fff, transparent);
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 56px; align-items: center;
  padding-top: 88px; padding-bottom: 104px;
}
.eyebrow {
  display: inline-block; margin-bottom: 1.2em;
  font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sun);
}
.hero h1 { margin-bottom: .4em; }
.hero .lead { font-size: 1.15rem; color: rgba(255, 255, 255, .8); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 2em 0 1.6em; }
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0;
  font-size: .9rem; color: rgba(255, 255, 255, .62);
}
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--coral);
}
.hero-facts li:first-child::before { background: var(--sun); }

/* Window illustration */
.mock {
  font-family: var(--mono); font-size: 12.5px; line-height: 1;
  color: var(--ink);
  background: #e9e5de; border-radius: 12px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08);
  transform: perspective(1600px) rotateY(-7deg) rotateX(3deg);
  transform-origin: left center;
  container-type: inline-size;
}
.mock-titlebar {
  display: flex; align-items: center; gap: 7px; padding: 10px 12px;
  background: #d9d3c9; font-family: var(--font); font-size: 12px; font-weight: 600; color: #6a6559;
}
.mock-titlebar .dot { width: 11px; height: 11px; border-radius: 50%; background: #c5bdb0; }
.mock-titlebar .dot:first-child { background: var(--coral); }
.mock-titlebar .dot:nth-child(2) { background: var(--sun); }
.mock-title { margin-left: 8px; }
.mock-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; }
.mock-panel { background: #fff; border-radius: 4px; overflow: hidden; }
.mock-path { padding: 7px 9px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-panel.night .mock-path { background: var(--blue); }
.mock-panel.day .mock-path { background: var(--coral); }
.mock-row {
  display: grid; grid-template-columns: 1.5fr .8fr .9fr 1.25fr; gap: 6px;
  padding: 5px 9px; white-space: nowrap;
}
.mock-row span { overflow: hidden; text-overflow: ellipsis; }
.mock-row span:nth-child(3) { text-align: right; }
.mock-head { color: #8a8577; border-bottom: 1px solid #eee8de; font-size: 11.5px; }
.mock-row.dir span:first-child { font-weight: 700; }
.mock-row.marked { color: #d0392b; }
.mock-panel.night .mock-row.cursor { background: #dce6f8; box-shadow: inset 0 0 0 1px var(--blue); }
.mock-panel.day .mock-row.cursor { background: #fde3df; box-shadow: inset 0 0 0 1px var(--coral); }
@container (max-width: 600px) {
  .mock-row { grid-template-columns: 1.6fr .8fr 1fr; }
  .mock-row span:nth-child(4) { display: none; }
}
.mock-status { padding: 6px 10px; font-family: var(--font); font-size: 11.5px; color: #6a6559; }
.mock-keys { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; padding: 0 4px 4px; }
.mock-keys span {
  padding: 6px 4px; text-align: center; background: #f6f3ee; border-radius: 3px;
  font-family: var(--font); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-keys b { margin-right: 4px; color: var(--blue); }

.hero-small .not-found {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: 110px; padding-bottom: 130px;
}
.not-found img { margin-bottom: 28px; }

/* ----------------------------------------------------------- sections */
.section { padding: 104px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--ink-soft); }
.section-dark { background: var(--night-800); color: #fff; }
.section-dark .section-head p { color: rgba(255, 255, 255, .7); }
.section-tint { background: var(--paper-2); }

/* Features */
.features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  list-style: none; margin: 0; padding: 0;
}
.feature {
  padding: 28px 26px 22px; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(24, 32, 58, .35); }
.feature .icon {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 18px; border-radius: 12px;
  color: var(--blue); background: #e7eefb;
}
.feature:nth-child(even) .icon { color: #c84f41; background: #fde6e2; }
.feature p { margin: 0; color: var(--ink-soft); font-size: .97rem; }

/* Keys */
.keys {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  list-style: none; margin: 0; padding: 0;
}
.keys li {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: var(--night-700); border-radius: 12px; border: 1px solid rgba(255, 255, 255, .06);
}
.combo { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.plus { color: rgba(255, 255, 255, .45); font-size: .85rem; }
kbd {
  display: inline-block; min-width: 2.3em; padding: .32em .55em; text-align: center;
  font-family: var(--mono); font-size: .86rem; font-weight: 700;
  color: var(--night-900); background: var(--cream);
  border-radius: 7px; box-shadow: 0 3px 0 #d8c17a;
}
.keys li:nth-child(4n+2) kbd, .keys li:nth-child(4n+4) kbd { background: var(--coral-soft); box-shadow: 0 3px 0 #d98e85; }
.keys li span:last-child { color: rgba(255, 255, 255, .85); font-size: .95rem; }

/* Platforms */
.platforms {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  list-style: none; margin: 0; padding: 0;
}
.platform {
  position: relative; display: flex; flex-direction: column;
  padding: 30px 28px 26px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.platform::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--blue);
}
.platform-windows::before { background: linear-gradient(90deg, var(--blue), var(--coral)); }
.platform-haiku::before { background: var(--coral); }
.platform h3 { font-size: 1.4rem; }
.platform p { color: var(--ink-soft); flex: 1; }
.packages {
  align-self: flex-start; padding: 4px 12px; border-radius: 999px;
  font-family: var(--mono); font-size: .85rem; background: var(--paper-2);
}
.languages {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 40px 0 0; color: var(--ink-soft);
}
.languages .icon { color: var(--blue); }

/* Licence */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.plan { padding: 34px 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.plan h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.plan .price { font-size: 2.2rem; font-weight: 800; margin-bottom: .4em; letter-spacing: -0.02em; }
.plan p:last-of-type { color: var(--ink-soft); }
.plan-private { background: var(--night-800); color: #fff; border-color: var(--night-800); }
.plan-private h3 { color: var(--sun); }
.plan-private .price { color: var(--cream); }
.plan-private p:last-of-type { color: rgba(255, 255, 255, .78); }
.plan .btn { margin-top: .6em; }

/* Download */
.downloads {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  list-style: none; margin: 0; padding: 0;
}
.download {
  display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 10px;
  padding: 26px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
}
.download h3 { flex-basis: 100%; font-size: 1.3rem; }
.note { margin-top: 28px; text-align: center; color: var(--ink-soft); font-size: .92rem; }

/* ------------------------------------------------------------- footer */
.site-footer { background: var(--night-900); color: rgba(255, 255, 255, .65); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-top: 36px; padding-bottom: 36px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.footer-by { display: flex; align-items: center; gap: 10px; }
.ddo-logo { height: 19px; width: auto; }
.footer-copy { margin: 0 0 0 auto; }

/* --------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 80px; }
  .mock { transform: none; }
  .features, .platforms, .downloads { grid-template-columns: 1fr 1fr; }
  .keys { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .main-nav { display: none; }
  .header-actions { margin-left: auto; }
  .section { padding: 72px 0; }
  .features, .platforms, .downloads, .plans { grid-template-columns: 1fr; }
  .keys { grid-template-columns: 1fr 1fr; }
  .mock { font-size: 10.5px; }
  .mock-keys { grid-template-columns: repeat(3, 1fr); }
  .footer-copy { margin-left: 0; }
}
@media (max-width: 520px) {
  .header-inner { gap: 12px; }
  .header-actions .btn { display: none; }
}
@media (max-width: 420px) {
  .keys { grid-template-columns: 1fr; }
  .mock-panels { grid-template-columns: 1fr; }
  .mock-panel.day { display: none; }
}
