/* GenBasic — genbasic.com
   Light-committed by design: a single deliberate look, every colour painted
   explicitly rather than inherited from the visitor's theme. */

:root {
  --bg:        #ffffff;
  --bg-tint:   #f6f8fa;
  --surface:   #ffffff;
  --surface-2: #f2f5f8;
  --line:      #e0e5ec;
  --line-soft: #edf0f4;

  --ink:       #0d1117;
  --fg:        #1c232e;
  --fg-dim:    #525c6b;
  --fg-mute:   #6d7787;

  --accent:    #0b7a68;
  --accent-lo: #e6f4f1;
  --accent-hi: #095f51;

  --shadow: 0 1px 2px rgba(13, 17, 23, .04), 0 4px 12px rgba(13, 17, 23, .05);

  --radius: 12px;
  --shell: 74rem;
  --gutter: max(1.5rem, calc((100% - var(--shell)) / 2));
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
}

/* ---- header --------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0.95rem 1.5rem;
}

.wordmark {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.wordmark:hover { text-decoration: none; }

.tm {
  font-size: 0.55em;
  font-weight: 600;
  vertical-align: super;
  color: var(--fg-mute);
  margin-left: 0.08em;
}

.site-head nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }

.site-head nav a {
  color: var(--fg-mute);
  font-size: 0.92rem;
  font-weight: 500;
}
.site-head nav a:hover { color: var(--ink); text-decoration: none; }

/* ---- shell ---------------------------------------------------------- */

main { display: block; }

/* Full-bleed sections whose content still lines up on the shell, so a tinted
   band can run edge to edge without extra markup. */
section {
  padding: 5rem var(--gutter) 0;
}

#power, #support {
  background: var(--bg-tint);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-top: 5rem;
  padding-bottom: 5rem;
}

#linux { padding-top: 5rem; }
section:last-of-type { margin-bottom: 0; }

.sec-head { margin-bottom: 2.25rem; }

.sec-head h2, .split h2 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.sec-head p {
  margin: 0;
  max-width: 52ch;
  color: var(--fg-mute);
  font-size: 1.02rem;
}

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

.hero {
  position: relative;
  padding-top: 5.5rem;
  padding-bottom: 1rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -35% 25% auto -12%;
  height: 42rem;
  background: radial-gradient(58% 55% at 30% 42%,
              rgba(11, 122, 104, 0.09), transparent 70%);
  pointer-events: none;
}

.hero-inner { position: relative; }

.eyebrow {
  margin: 0 0 1.1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-mute);
}

.hero h1 {
  margin: 0 0 1.4rem;
  font-size: clamp(2.4rem, 6.2vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--ink);
}

.grad { color: var(--accent); }

.lede {
  max-width: 54ch;
  margin: 0;
  font-size: 1.15rem;
  color: var(--fg-mute);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1px;
  margin-top: 3rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-stats div { background: var(--bg); padding: 1.25rem 1.35rem; }

.hero-stats b {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero-stats span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--fg-mute);
}

/* ---- product cards -------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.grid.two { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.card:hover {
  border-color: #ccd4de;
  box-shadow: 0 2px 4px rgba(13,17,23,.05), 0 10px 24px rgba(13,17,23,.07);
  transform: translateY(-2px);
}

.card.feature {
  border-color: #bfe0d8;
  background: linear-gradient(180deg, var(--accent-lo), transparent 42%), var(--surface);
}

.pn {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.card h3 {
  margin: 0 0 1.2rem;
  font-size: 1.08rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.spec { margin: 0 0 1.2rem; }

.spec > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.52rem 0;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
}
.spec > div:first-child { border-top: 0; padding-top: 0; }

.spec dt { color: var(--fg-mute); }
.spec dd { margin: 0; text-align: right; color: var(--ink); font-weight: 550; }

.dim { color: var(--fg-mute); font-weight: 400; }
.yes { color: var(--accent); font-weight: 600; }
.none { color: var(--fg-mute); }

.card-note {
  margin: 0 0 1rem;
  padding-top: 0.35rem;
  font-size: 0.89rem;
  line-height: 1.6;
  color: var(--fg-mute);
}

.card > p:last-child { margin: auto 0 0; padding-top: 0.35rem; }
.card > p:last-child .cta { margin-right: 0.4rem; }

/* ---- callout -------------------------------------------------------- */

.callout {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.callout h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
}

.callout p {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--fg-dim);
}
.callout p:last-child { margin-bottom: 0; }

/* ---- comparison table ----------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  white-space: nowrap;
}

thead th {
  text-align: left;
  padding: 0.85rem 1.15rem;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--fg-mute);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

tbody th, tbody td {
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--line-soft);
  text-align: left;
  font-weight: 400;
  color: var(--fg-dim);
}

tbody th { color: var(--ink); font-weight: 600; }
tbody tr:first-child th, tbody tr:first-child td { border-top: 0; }
tbody tr:hover th, tbody tr:hover td { background: var(--bg-tint); }

.fineprint {
  margin: 1.15rem 0 0;
  max-width: 68ch;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--fg-mute);
}

/* ---- split ---------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

.split p { color: var(--fg-mute); max-width: 54ch; }

.split .big {
  font-size: 1.24rem;
  line-height: 1.5;
  color: var(--ink);
  margin-top: 0;
  font-weight: 500;
}

.panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}

.panel hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.05rem 0;
}

.panel-label {
  margin: 0 0 0.2rem;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
}

.panel-value {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* ---- buttons -------------------------------------------------------- */

.cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.78rem 1.4rem;
  border-radius: 9px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}
.cta:hover { background: #23293a; border-color: #23293a; text-decoration: none; }

.cta.ghost {
  background: var(--bg);
  border-color: var(--line);
  color: var(--ink);
}
.cta.ghost:hover { background: var(--bg-tint); border-color: #ccd4de; }

.cta.small { padding: 0.55rem 1rem; font-size: 0.88rem; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  color: var(--ink);
}

/* ---- footer --------------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 2.25rem 1.5rem;
}

.foot-brand { margin: 0; font-weight: 700; color: var(--ink); }

.site-foot nav { display: flex; gap: 1.5rem; }
.site-foot nav a { color: var(--fg-mute); font-size: 0.92rem; }
.site-foot nav a:hover { color: var(--ink); text-decoration: none; }

.foot-legal {
  margin: 0 0 0 auto;
  font-size: 0.86rem;
  color: var(--fg-mute);
}

/* ---- responsive ----------------------------------------------------- */

@media (max-width: 46rem) {
  section { padding-top: 3.5rem; }
  .hero { padding-top: 3.5rem; }
  #power, #support { margin-top: 3.5rem; padding-bottom: 3.5rem; }
  .split { grid-template-columns: 1fr; gap: 1.75rem; }
  .foot-legal { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .card:hover { transform: none; }
}
