/* ManoVersa Hosting – Base Styles */
/* Color palette */
:root {
  --orange: #f97316;
  --blue: #3b82f6;
  --bg-0: #0f0f0f;
  --bg-1: #1a1a1a;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --card: #161616;
  --card-border: #2a2a2a;
  --success: #22c55e;
  --error: #ef4444;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: Inter, Segoe UI, Roboto, Helvetica, Arial, system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

p { line-height: 1.7; }

/* Background canvas (subtle starfield) */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
  pointer-events: none;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Navigation */
header.site-header {
  position: sticky;
  top: var(--banner-offset, 0);
  z-index: 10;
  background: #121212;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Top banner */
.top-banner { position: sticky; top: 0; z-index: 12; width: 100%; background: linear-gradient(180deg, rgba(249,115,22,0.12), rgba(249,115,22,0.06)); border-bottom: 1px solid rgba(249,115,22,0.25); color: #ffd9c2; text-align: center; padding: 8px 12px; font-weight: 700; letter-spacing: 0.2px; backdrop-filter: blur(4px); }
.top-banner a { color: #ffd9c2; text-decoration: none; }
.top-banner a:hover { text-decoration: underline; }

body.has-banner { --banner-offset: 40px; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: transparent;
  border: 1px solid var(--card-border);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}

.nav-cta {
  color: #0b0b0b;
  background: var(--orange);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
}

.hamburger {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 22px;
  padding: 8px;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 86px 0 40px;
}

.hero-inner {
  display: grid;
  gap: 16px;
  text-align: center;
}

.hero-inner .subhead { max-width: 72ch; margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.4px;
}

.headline {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.05;
  font-weight: 800;
}

.subhead {
  color: #e5e7eb;
  font-size: clamp(16px, 2.2vw, 20px);
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn-primary {
  background: var(--orange);
  color: #0b0b0b;
  font-weight: 700;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0,0,0,0.35); }
.btn:active { transform: translateY(0); }

.btn-secondary { background: rgba(255,255,255,0.04); color: var(--text); }
.btn-secondary:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }

/* Sections */
section { position: relative; z-index: 1; }
.site-header { flex: 0 0 auto; }
main { flex: 1 0 auto; position: relative; z-index: 1; }
.section {
  padding: 40px 0;
}

.section h2 { font-size: 28px; margin: 0 0 14px; }
.section p.lead { color: var(--muted); margin-top: 0; }

/* Cards */
.grid {
  display: grid;
  gap: 16px;
}

.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 960px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .cards-3, .cards-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 20px;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  border-color: rgba(249,115,22,0.6);
  background: #141414;
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(0,0,0,0.35);
}

.card .title { font-weight: 700; font-size: 18px; margin: 0 0 8px; }
.card .muted { color: var(--muted); margin: 0; }

/* Pricing */
.pricing-grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
@media (max-width: 960px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.plan .btn { margin-top: auto; }

.plan .price { font-size: 28px; font-weight: 800; margin: 8px 0; color: #fff; }
.plan .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center; /* prevent flex stretch */
  font-size: 12px;
  color: #111;
  background: var(--orange);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 10px;
}

ul.checklist { list-style: none; padding: 0; margin: 12px 0; }
ul.checklist li { margin: 8px 0; color: var(--muted); }
ul.checklist li::before { content: "✔"; margin-right: 8px; color: var(--orange); }

/* Blog */
.post-list { display: grid; gap: 16px; }
.post-list a { text-decoration: none; color: var(--text); }
.post-meta { color: var(--muted); font-size: 14px; }

/* Footer */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, #141414 0%, #111111 100%);
  padding: 18px 0;
  box-shadow: inset 0 2px 0 rgba(249,115,22,0.12);
}

footer .cols { display: grid; gap: 18px; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 720px) { footer .cols { grid-template-columns: 1fr; } }

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

footer h4 { margin: 0 0 10px; font-size: 14px; color: #e5e7eb; letter-spacing: 0.3px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer-tagline { color: var(--muted); margin: 8px 0 10px; font-size: 14px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); color: #cbd5e1; background: rgba(255,255,255,0.03); font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; margin-top: 14px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 13px; color: var(--muted); }
.footer-bottom .link { margin-left: 12px; }
.footer-bottom a.link { color: var(--muted); }
.footer-bottom a.link:hover { color: var(--text); }

/* Wishlist voting */
.vote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #d1d5db;
  cursor: pointer;
  user-select: none;
}
.vote.active {
  background: rgba(249,115,22,0.18);
  border-color: rgba(249,115,22,0.45);
  color: #ffd9c2;
}

/* Countdown (Wishlist) */
.countdown { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.countdown .unit {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 110px;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.25), 0 12px 28px rgba(0,0,0,0.35);
  transition: transform 140ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.countdown .num {
  display: block;
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 900;
  background: linear-gradient(180deg, var(--orange), #ffb25b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 24px rgba(249,115,22,0.25);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "pnum" 0;
  min-height: 1.2em; /* keep vertical size stable */
}
.countdown .unit[data-k="d"] .num { width: 3ch; display: inline-block; }
.countdown .unit[data-k="h"] .num,
.countdown .unit[data-k="m"] .num,
.countdown .unit[data-k="s"] .num { width: 2ch; display: inline-block; }
.countdown .label { display: block; font-size: 13px; color: var(--muted); letter-spacing: 0.4px; }
.countdown .unit.tick {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(249,115,22,0.18), 0 12px 28px rgba(0,0,0,0.35);
  border-color: rgba(249,115,22,0.35);
}

/* Countdown title */
.countdown-title { text-align: center; margin: 0 0 6px; font-weight: 800; letter-spacing: 0.3px; }

/* Markdown/Code blocks */
.card pre {
  background: #0d0d0d;
  border: 1px solid #2a2a2a;
  padding: 12px;
  border-radius: 8px;
  overflow: auto;
}
.card code {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 1px 4px;
  border-radius: 4px;
}

/* Utilities */
.note {
  display: inline-block;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.12);
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  max-width: 80ch;
  margin-left: auto; margin-right: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 14px;
  top: 14px;
  width: auto;
  height: auto;
  padding: 10px 12px;
  background: #111;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  z-index: 50;
}

.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(59,130,246,0.18); color: #cfe1ff; border: 1px solid rgba(59,130,246,0.35); font-weight: 600; font-size: 12px; }

.sparkle {}

/* Tasteful micro-interactions */
.brand-logo { transition: transform 180ms ease; }
.brand-logo:hover { transform: rotate(-6deg) scale(1.02); }

@media (prefers-reduced-motion: reduce) {
  .btn, .card, .brand-logo { transition: none; }
}

/* Links */
a { color: var(--blue); }
a:hover { color: #98c7ff; }

/* Responsive nav */
@media (max-width: 880px) {
  .nav-links { display: none; position: absolute; right: 20px; top: 58px; background: rgba(15,15,15,0.95); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 10px; flex-direction: column; gap: 6px; }
  .nav-links.show { display: flex; }
  .hamburger { display: inline-block; }
}

/* Forms */
input, textarea, select {
  width: 100%;
  background: #0d0d0d;
  color: var(--text);
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
}

label { display: block; font-weight: 600; margin: 10px 0 6px; }
.form-row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .form-row { grid-template-columns: 1fr; } }

.form-hint { color: var(--muted); font-size: 13px; }
.form-error { color: var(--error); font-size: 14px; display: none; }
.form-success { color: var(--success); font-weight: 700; display: none; }

/* Tables (Legal) */
.legal {
  color: var(--muted);
}
.legal h2 { color: var(--text); }
.legal a { color: #9bcbff; }


