/* MajaOS website: the same evening landscape and glass as the dashboard. Dark is evening, light is morning mist. */
:root {
  color-scheme: light;
  --sky-top: #b9d4e2; --sky-mid: #dbe8e9; --sky-low: #efe9d8;
  --glow-in: rgba(255, 214, 150, .55); --glow-out: rgba(255, 214, 150, 0);
  --land-far: #a9c1bd; --land-mid: #7fa39a; --land-near: #5b8077; --star: transparent;
  --bg: #dbe8e9;
  --text: #15222c; --muted: #4f6272; --faint: #7a8a97;
  --glass: rgba(255, 255, 255, .58); --glass-strong: rgba(255, 255, 255, .82);
  --glass-line: rgba(255, 255, 255, .85);
  --shade: 0 12px 34px -18px rgba(30, 60, 70, .45);
  --accent: #12786b; --accent-ink: #ffffff; --warn: #9a5a00;
  --radius: 22px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --sky-top: #0b1330; --sky-mid: #1a2c52; --sky-low: #3b4a66;
  --glow-in: rgba(255, 163, 92, .38); --glow-out: rgba(255, 163, 92, 0);
  --land-far: #1d2a40; --land-mid: #141f31; --land-near: #0c1422; --star: rgba(255, 255, 255, .75);
  --bg: #101a33;
  --text: #f1f5f9; --muted: #aab7c8; --faint: #7e8ca0;
  --glass: rgba(18, 28, 52, .46); --glass-strong: rgba(20, 30, 56, .86);
  --glass-line: rgba(255, 255, 255, .12);
  --shade: 0 18px 40px -20px rgba(0, 0, 0, .7);
  --accent: #6fd3c3; --accent-ink: #082a26; --warn: #f2b35b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --sky-top: #0b1330; --sky-mid: #1a2c52; --sky-low: #3b4a66;
    --glow-in: rgba(255, 163, 92, .38); --glow-out: rgba(255, 163, 92, 0);
    --land-far: #1d2a40; --land-mid: #141f31; --land-near: #0c1422; --star: rgba(255, 255, 255, .75);
    --bg: #101a33;
    --text: #f1f5f9; --muted: #aab7c8; --faint: #7e8ca0;
    --glass: rgba(18, 28, 52, .46); --glass-strong: rgba(20, 30, 56, .86);
    --glass-line: rgba(255, 255, 255, .12);
    --shade: 0 18px 40px -20px rgba(0, 0, 0, .7);
    --accent: #6fd3c3; --accent-ink: #082a26; --warn: #f2b35b;
  }
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text); background: var(--bg);
  line-height: 1.55; -webkit-font-smoothing: antialiased;
  min-height: 100vh; overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.wallpaper { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; }
.sky-top { stop-color: var(--sky-top); } .sky-mid { stop-color: var(--sky-mid); } .sky-low { stop-color: var(--sky-low); }
.glow-in { stop-color: var(--glow-in); } .glow-out { stop-color: var(--glow-out); }
.land.far { fill: var(--land-far); } .land.mid { fill: var(--land-mid); } .land.near { fill: var(--land-near); }
.trees path { fill: var(--land-mid); stroke: var(--land-mid); stroke-width: 2; }
.stars circle { fill: var(--star); }

/* Glass panels */
.card, .nav, .shot, .stack-list li, .pill {
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shade);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
}

/* Navigation */
.nav {
  position: sticky; top: 12px; z-index: 10;
  width: min(1120px, calc(100% - 32px)); margin: 12px auto 0;
  display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 18px; border-radius: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -.01em; text-decoration: none; font-size: 1.05rem; }
.brand svg { width: 24px; height: 24px; fill: currentColor; }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 500; font-size: .95rem; }
.nav nav a:hover { color: var(--text); background: var(--glass-strong); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 14px; font-weight: 600; text-decoration: none;
  background: var(--glass-strong); border: 1px solid var(--glass-line); color: var(--text);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shade); }
.btn .gh { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.small { padding: 8px 14px; border-radius: 11px; font-size: .92rem; }
.btn.wide { width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

/* Layout */
main { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
section { padding: 72px 0; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.1rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; letter-spacing: -.025em; font-weight: 650; margin-bottom: 14px; }
h3 { font-size: 1.08rem; font-weight: 650; margin-bottom: 6px; letter-spacing: -.01em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 640px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 650; color: var(--accent); margin-bottom: 10px; }
.small { font-size: .92rem; }
.muted { color: var(--muted); }
p a, .small a { color: var(--accent); text-underline-offset: 3px; }

/* Hero */
.hero { text-align: center; padding-top: 64px; display: flex; flex-direction: column; align-items: center; }
.hero h1 { margin: 18px 0 18px; }
.hero .lead { margin: 0 auto; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--muted); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }
.hint { margin-top: 12px; font-size: .9rem; color: var(--faint); }
.shot { border-radius: var(--radius); overflow: hidden; padding: 6px; }
.shot img { border-radius: calc(var(--radius) - 6px); }
.hero-shot { margin-top: 48px; width: 100%; max-width: 1040px; }

/* Why MajaOS */
.why { padding-top: 40px; }
.why .cards { margin-top: 0; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Stack */
.stack { text-align: center; padding-top: 40px; }
.stack-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 18px; }
.stack-list li { padding: 10px 16px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; min-width: 120px; }
.stack-list b { font-weight: 650; }
.stack-list span { font-size: .82rem; color: var(--muted); }
.stack-note { color: var(--muted); max-width: 620px; margin: 0 auto; }

/* Features */
.features { display: grid; gap: 96px; }
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-text { order: 2; }
.feature p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 8px; }
.ticks li { padding-left: 28px; position: relative; color: var(--text); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}
.ticks li::after {
  content: ""; position: absolute; left: 6px; top: calc(.32em + 4px); width: 5px; height: 9px;
  border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Example chat (AI) */
.chat-demo { display: flex; flex-direction: column; gap: 10px; padding: 18px 22px 22px; }
.chat-tag { font-size: .75rem; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.chat-demo .msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .97rem; line-height: 1.5; }
.chat-demo .msg.user { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.chat-demo .msg.ai { align-self: flex-start; background: var(--glass-strong); border: 1px solid var(--glass-line); border-bottom-left-radius: 6px; }
.chat-demo .tools { display: flex; gap: 6px; flex-wrap: wrap; align-self: flex-start; }
.chat-demo .tools span {
  font: 600 .78rem ui-monospace, "SF Mono", Menlo, monospace; padding: 3px 9px; border-radius: 999px;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent);
}
.chat-demo .tools span::before { content: "⚙ "; }

/* Cards */
.grid-section h2, .help h2 { text-align: center; }
.help .lead { text-align: center; margin: 0 auto 28px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.card { border-radius: var(--radius); padding: 22px 22px 20px; }
.card p { color: var(--muted); font-size: .97rem; }
.card.link { text-decoration: none; display: flex; flex-direction: column; transition: transform .15s ease; }
.card.link:hover { transform: translateY(-2px); }
.card .more { margin-top: auto; padding-top: 14px; color: var(--accent); font-weight: 600; font-size: .95rem; }
.card .more::after { content: " →"; }

/* Install */
.install { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: start; }
.steps { padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; margin: 22px 0; }
.steps li { counter-increment: step; padding-left: 46px; position: relative; color: var(--muted); }
.steps li b { color: var(--text); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; font-weight: 700; background: var(--accent); color: var(--accent-ink);
}
.install-text > .small { color: var(--muted); }
.download { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 96px; }
.download .version { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.download .warn { border-top: 1px solid var(--glass-line); padding-top: 12px; margin-top: 6px; color: var(--muted); }
.download .warn b { color: var(--warn); }

/* Ko-fi: quiet, never a banner */
.tip { text-align: center; margin-top: 22px; color: var(--faint); font-size: .92rem; }
.tip a { color: var(--muted); }
.footer .kofi span { color: #ff5e5b; }

/* Footer */
.footer {
  width: min(1120px, calc(100% - 32px)); margin: 40px auto 0; padding: 28px 0 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; color: var(--muted); font-size: .9rem;
  border-top: 1px solid var(--glass-line);
}
.footer .brand { color: var(--text); font-size: .95rem; }
.footer .brand svg { width: 20px; height: 20px; }
.footer p { flex: 1 1 320px; }
.footer nav { display: flex; gap: 16px; }
.footer a { color: inherit; }

/* Phone and tablet */
@media (max-width: 900px) {
  .feature, .feature.flip, .install { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .feature-text { order: 0; }
  .cards, .cards.four { grid-template-columns: 1fr 1fr; }
  .download { position: static; }
  section { padding: 56px 0; }
  .features { gap: 64px; }
}
@media (max-width: 640px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  .cards, .cards.three, .cards.four { grid-template-columns: 1fr; }
  .stack-list li { min-width: calc(50% - 5px); }
  .cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card.link { transition: none; }
}
