/* MaluOS — The Linux for Human and AI Partnership
   Marketing site stylesheet */

:root {
  --bg: #0a0d12;
  --bg-elev: #11161f;
  --bg-card: #141b26;
  --border: #223044;
  --text: #e8edf4;
  --text-dim: #9aa8bd;
  --text-faint: #6b7a91;
  --brand: #4fd1c5;        /* teal — the "AI" current */
  --brand-2: #7c8cff;      /* indigo — the "human" current */
  --accent: #ffb454;       /* amber highlight */
  --glow: rgba(79, 209, 197, 0.25);
  --radius: 14px;
  --maxw: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: #8be9df; }

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

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #07131a;
  box-shadow: 0 8px 30px var(--glow);
}
.btn-primary:hover { color: #07131a; box-shadow: 0 12px 38px var(--glow); }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--text); background: rgba(79,209,197,0.06); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 13, 18, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; color: var(--text); }
.brand .mark { width: 32px; height: 32px; }
.brand .tm { font-size: 0.6rem; color: var(--text-faint); vertical-align: super; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.navlink { color: var(--text-dim); font-weight: 500; font-size: 0.95rem; }
.nav-links a.navlink:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 92px 0 80px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto 0;
  height: 680px;
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(79,209,197,0.18), transparent 70%),
    radial-gradient(55% 45% at 72% 35%, rgba(124,140,255,0.16), transparent 70%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(79,209,197,0.08);
  border: 1px solid rgba(79,209,197,0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  margin-bottom: 18px;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--brand), var(--brand-2) 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.tagline {
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  color: var(--text);
  font-weight: 500;
  margin: 0 auto 20px;
  max-width: 760px;
}
.subcopy {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 26px; color: var(--text-faint); font-size: 0.88rem; font-family: var(--mono); }

/* ---------- Section scaffolding ---------- */
section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-head .kicker { color: var(--brand); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-top: 10px; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.18s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(79,209,197,0.45); }
.card .ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(79,209,197,0.16), rgba(124,140,255,0.16));
  color: var(--brand);
  margin-bottom: 18px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.22rem; }
.card p { color: var(--text-dim); margin: 0; font-size: 0.98rem; }

/* ---------- Split / action sections ---------- */
.band { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.split h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.split p { color: var(--text-dim); font-size: 1.05rem; }
.chiprow { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 28px; }
.chip {
  font-size: 0.82rem; font-weight: 600;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(124,140,255,0.1);
  border: 1px solid rgba(124,140,255,0.3);
  color: #b9c2ff;
}

/* Terminal mock */
.terminal {
  background: #070a0f;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  font-family: var(--mono);
  font-size: 0.86rem;
}
.terminal .bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: #0c1017; }
.terminal .bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.terminal .bar .r { background: #ff5f56; } .terminal .bar .y { background: #ffbd2e; } .terminal .bar .g { background: #27c93f; }
.terminal .body { padding: 18px 18px 22px; color: #cfe8e4; white-space: pre-wrap; line-height: 1.7; }
.terminal .body .pr { color: var(--brand); }
.terminal .body .cm { color: var(--text); }
.terminal .body .ot { color: var(--text-faint); }
.terminal .body .hl { color: var(--accent); }

/* ---------- Pricing / host cards ---------- */
.host-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--brand); box-shadow: 0 10px 40px var(--glow); position: relative; }
.plan.featured .tag { position: absolute; top: -12px; right: 22px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #07131a; font-size: 0.72rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.3rem; margin-bottom: 6px; }
.plan .price { font-size: 2.1rem; font-weight: 800; margin: 8px 0 4px; }
.plan .price span { font-size: 0.95rem; font-weight: 500; color: var(--text-faint); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 26px; }
.plan li { color: var(--text-dim); padding: 7px 0 7px 26px; position: relative; font-size: 0.96rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.plan .btn { margin-top: auto; justify-content: center; }

/* ---------- CTA strip ---------- */
.cta-strip { text-align: center; }
.cta-strip h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.cta-strip p { color: var(--text-dim); font-size: 1.1rem; max-width: 620px; margin: 0 auto 32px; }
.cta-strip .hero-cta { margin-top: 10px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 56px 0 36px;
}
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 36px; }
.foot-brand { max-width: 320px; }
.foot-brand p { color: var(--text-faint); font-size: 0.92rem; margin-top: 12px; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--text-dim); font-size: 0.94rem; margin-bottom: 10px; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.trademark { max-width: 640px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 18px;
  }
  .nav-toggle { display: block; }
  .nav-cta .btn-ghost { display: none; }
}

/* Used to hide sections (e.g. hosting) until ready */
[hidden] { display: none !important; }

/* Hero logo (dark-background version, transparent) */
.hero h1.hero-logo { margin: 0 auto 22px; line-height: 0; display: block; width: fit-content; }
.hero h1.hero-logo img { width: min(460px, 80vw); height: auto; display: block; }
