/* InstallOS landing page — no frameworks, no web fonts, system font stack. */

:root {
  --bg: #ffffff;
  --surface: #f4f3fa;
  --text: #211d2e;
  --muted: #565064;
  --border: #e2dff0;
  --accent: #6d28d9;        /* purple — primary brand color */
  --accent-dark: #581c9e;
  --accent-soft: #ede9fe;
  --link: #6326c4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120f1a;
    --surface: #1b1726;
    --text: #ebe8f2;
    --muted: #aaa3bd;
    --border: #2e2841;
    --accent: #6d28d9;
    --accent-dark: #7e3ff2;
    --accent-soft: #271c3d;
    --link: #c4b5fd;
  }
  /* Hero scene: darken backdrop and floor, dim the cloud; server, console
     and devices keep their hardcoded readable colors. */
  .hero-svg .backdrop { fill: #181527; }
  .hero-svg .floor    { fill: #100e1c; }
  .hero-svg .cloud    { fill: #6366a8; }
  .hero-svg .lbl      { fill: #d2cee0; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }

a { color: var(--link); }

:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 10;
}
.skip-link:focus { left: 0; }

/* Header / nav — links wrap on narrow screens, so no JS menu is needed. */
.site-header { border-bottom: 1px solid var(--border); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}
.brand span { color: var(--accent-dark); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { text-decoration: none; font-weight: 500; }
.nav-links a:hover { text-decoration: underline; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
}
.nav-cta:hover { background: var(--accent-dark); text-decoration: none !important; }

/* Hero — stacked on mobile (text first), two columns from 860px up. */
.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 56px;
}

@media (min-width: 860px) {
  .hero { grid-template-columns: 1.05fr 1fr; }
}

.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  letter-spacing: -0.02em;
}

.subhead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 1.6em;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
}
.btn:hover { background: var(--accent-dark); }

.link-secondary { font-weight: 500; }

.hero-svg { width: 100%; height: auto; display: block; }

/* Features */
.features { padding: 56px 0; background: var(--surface); }
.features h2 { font-size: 1.7rem; margin-bottom: 1.2em; }

.feature-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 720px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.feature h3 { font-size: 1.1rem; margin-top: 0.8em; }
.feature p { color: var(--muted); margin-bottom: 0; }

.icon {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--accent-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: var(--accent-soft);
  border-radius: 9px;
  padding: 6px;
}

/* About / trust */
.about { padding: 56px 0; }
.about h2 { font-size: 1.7rem; }
.about p { max-width: 52em; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); }

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 22px;
  padding-bottom: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-row p { margin: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
