/* StarDesk download page.
   Layout: one column of quiet bands on true black; the hero pairs a heavy slanted headline (echoing the STAR DESK
   wordmark) with a mock of the app receiving a connection request. StarDesk red appears only where it means
   something: the star, Allow, and the glow behind the app. The footer is light so StarTech's logo shows as-is. */

@font-face {
  font-family: "Archivo";
  src: url("/site/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/site/fonts/archivo-latin-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  --black: #000000;
  --text: #ededed;
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --line: rgba(255, 255, 255, 0.09);
  --red: #e30613;
  --red-bright: #ff2a36;
  --paper: #f4f4f5;
  --paper-ink: #3f3f46;

  /* the app's own colours, for the mock */
  --app-page: #101014;
  --app-card: #17171c;
  --app-side: #09090b;
  --app-line: #26262e;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column; /* the footer stays at the bottom on tall screens */
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

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

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

main { flex: 1 0 auto; }

/* ---------- top bar ---------- */

.topbar { position: relative; z-index: 2; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { width: 140px; height: auto; }
.topnav { display: flex; gap: 28px; font-size: 15px; }
.topnav a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.topnav a:hover { color: var(--text); }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 120px;
}

h1 {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 820;
  font-style: italic;
  font-stretch: 110%;
  line-height: 1;
  letter-spacing: -0.025em;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 45%, #a1a1a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em; /* keep the italic overhang inside the clip */
}

.lede {
  margin-top: 28px;
  max-width: 32rem;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-icon { width: 18px; height: 18px; fill: currentColor; flex: none; }

.btn-primary { background: #ffffff; color: #000000; border: 1px solid #ffffff; }
.btn-primary:hover { background: #e4e4e7; border-color: #e4e4e7; }

.btn-secondary { background: rgba(255, 255, 255, 0.04); color: var(--text); border: 1px solid rgba(255, 255, 255, 0.14); }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.24); }

.meta { margin-top: 18px; max-width: 34rem; color: var(--faint); font-size: 14px; }
.meta a { color: var(--muted); text-underline-offset: 3px; }
.meta a:hover { color: var(--text); }
.unavailable { color: var(--muted); font-size: 15px; max-width: 30rem; }

.mobile-note {
  display: none;
  margin-top: 28px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
}
.is-mobile .mobile-note { display: block; }

/* ---------- hero visual: the app, receiving a request ---------- */

.hero-visual { position: relative; padding-bottom: 64px; }

.glow {
  position: absolute;
  inset: -22% -14% -8% -14%;
  background: radial-gradient(closest-side, rgba(227, 6, 19, 0.55), rgba(227, 6, 19, 0.12) 55%, rgba(227, 6, 19, 0) 100%);
  filter: blur(48px);
  pointer-events: none;
}

.appwin {
  position: relative;
  border-radius: 14px;
  background: var(--app-page);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.appwin-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  background: var(--app-side);
  border-bottom: 1px solid var(--app-line);
  color: #c9cad1;
  font-size: 12px;
}
.appwin-bar img { width: 14px; height: 14px; }
.appwin-controls { margin-left: auto; display: flex; gap: 14px; }
.appwin-controls i { display: block; width: 9px; height: 9px; border: 1px solid #6b6b76; border-radius: 2px; }
.appwin-controls i:first-child { height: 0; border-width: 1px 0 0; margin-top: 4px; }

.appwin-body { display: grid; grid-template-columns: 64px minmax(0, 1fr); min-height: 250px; }
.appwin-side { background: var(--app-side); border-right: 1px solid var(--app-line); padding: 22px 14px; display: grid; gap: 12px; align-content: start; }
.appwin-side b { display: block; height: 8px; border-radius: 4px; background: #1c1c22; }
.appwin-side b:first-child { background: rgba(227, 6, 19, 0.55); width: 70%; }

.appwin-card {
  margin: 26px;
  padding: 24px 24px 22px;
  border-radius: 12px;
  background: var(--app-card);
  border: 1px solid var(--app-line);
}
.appwin-label { color: #6b6b76; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
.appwin-id {
  margin-top: 8px;
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 700;
  font-stretch: 105%;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  background: linear-gradient(180deg, #ffffff 0%, #e3e5e9 55%, #a9aeb8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.appwin-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #0f2a1a;
  color: #d9f7e3;
  font-size: 12px;
  font-weight: 500;
}
.appwin-status span { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }

.request {
  position: absolute;
  right: -18px;
  bottom: 0;
  width: min(380px, 92%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 14px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(23, 23, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  animation: request-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 0.9s both;
}
.request-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(227, 6, 19, 0.16);
}
.request-mark svg { width: 18px; height: 18px; fill: var(--red-bright); }
.request-title { font-size: 14px; font-weight: 600; line-height: 1.35; color: #f4f4f6; }
.request-sub { margin-top: 3px; font-size: 12.5px; color: #9a9aa6; line-height: 1.45; }
.request-actions { grid-column: 2; display: flex; gap: 8px; justify-content: flex-end; }
.request-actions span {
  padding: 7px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  background: #22222a;
  border: 1px solid #34343e;
  color: #f4f4f6;
}
.request-actions .allow { background: var(--red); border-color: var(--red); color: #ffffff; }

@keyframes request-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

/* ---------- content bands ---------- */

.band { border-top: 1px solid var(--line); padding: 96px 0; }

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h3 { font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--text); }

.section-lede { margin-top: 14px; max-width: 22rem; color: var(--muted); font-size: 17px; line-height: 1.55; }

.steps {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}
.step-num {
  display: block;
  margin-bottom: 18px;
  font-size: 64px;
  font-weight: 250;
  font-style: italic;
  font-stretch: 115%;
  line-height: 1;
  color: #3a3a40;
}
.steps p, .facts p, .help p { margin-top: 8px; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 30rem; }

.control { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.facts li { padding: 26px 28px 28px 0; border-bottom: 1px solid var(--line); }
.facts li:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }

.help { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; }
.help article { padding: 4px 32px 4px 0; }
.help article + article { padding-left: 32px; border-left: 1px solid var(--line); }
.help strong { color: var(--text); font-weight: 600; }

/* ---------- footer: light, so StarTech's logo shows in its own colours ---------- */

.footer { background: var(--paper); color: var(--paper-ink); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; }
.footer img { width: 280px; height: auto; }
.footer p { font-size: 14px; line-height: 1.6; text-align: right; }

/* ---------- smaller screens ---------- */

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 64px; padding-top: 40px; padding-bottom: 88px; }
  .hero-visual { max-width: 560px; }
  .control { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .topnav { display: none; }
  .lede { font-size: 17px; }
  .btn { width: 100%; justify-content: center; }
  .band { padding: 72px 0; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .step-num { font-size: 48px; margin-bottom: 10px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts li, .facts li:nth-child(even) { padding: 22px 0; border-left: 0; }
  .help { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .help article, .help article + article { padding: 0; border-left: 0; }
  .hero-visual { padding-bottom: 0; }
  .appwin-body { grid-template-columns: 40px minmax(0, 1fr); min-height: 0; }
  .appwin-side { padding: 18px 10px; }
  .appwin-card { margin: 16px; padding: 18px 16px; }
  .appwin-id { font-size: clamp(1.45rem, 7.4vw, 2rem); letter-spacing: 0.03em; }
  .request { position: relative; right: auto; width: 100%; margin-top: 14px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .request { animation: none; }
  .btn, .topnav a { transition: none; }
}
