/*
 * Orkyo marketing — shared site stylesheet
 * ------------------------------------------------------------------------
 * Served at the web root as /site.css (Dockerfile root-copy + the vite dev
 * MIME map). Holds the blocks that were duplicated across all 10 marketing
 * pages: reset, body base, .container, the header/nav (now with a responsive
 * hamburger), the footer, and the .demo-banner.
 *
 * Unified breakpoints — DO NOT add new stops in page-level <style> blocks:
 *   phone   : @media (max-width: 767px)
 *   tablet  : @media (max-width: 1023px)   (nav collapses to a hamburger below 1024px)
 *   desktop : default (>= 1024px)  — inline link row, unchanged
 * ------------------------------------------------------------------------
 */

/* ── Reset ─────────────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Body base ─────────────────────────────────────────────────────────── */
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #020817;
  background: #fff;
}

/* ── Layout container ──────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ── Header / nav ──────────────────────────────────────────────────────── */
header {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #020817 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.header-content { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.logo a { font-size: 1.5rem; font-weight: bold; color: white; text-decoration: none; }

.site-nav { display: flex; align-items: center; }
.site-nav a { color: white; text-decoration: none; margin-left: 2rem; transition: opacity 0.2s; }
.site-nav a:hover { opacity: 0.8; }
/* The in-nav "Sign In" link renders as a pill on desktop. */
.site-nav .nav-signin { background: rgba(255, 255, 255, 0.2); padding: 0.5rem 1rem; border-radius: 6px; }

/* Header-level "Sign In" pill — only surfaced on small screens (see tablet stop). */
.nav-signin-pill {
  display: none;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* Hamburger toggle — hidden on desktop, shown (JS-enabled) below 1024px. */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
footer { background: #0f172a; color: white; padding: 2rem 0; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, 0.7); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }
footer p { opacity: 0.7; font-size: 0.9rem; }

/* ── Demo banner ───────────────────────────────────────────────────────── */
.demo-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fef5e7;
  color: #78350f;
  border-bottom: 1px solid #fbd89d;
  text-align: center;
  padding: 1rem 2rem;
}
.demo-banner .demo-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.demo-banner .demo-body { font-size: 0.9rem; opacity: 0.85; }

/* ── Tablet & phone: hamburger nav (below 1024px) ──────────────────────── */
@media (max-width: 1023px) {
  /* No-JS fallback: the link row wraps under the logo — degraded but usable. */
  .site-nav { flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem 0; }
  .site-nav a { margin-left: 1.25rem; font-size: 0.92rem; }

  /* JS-enabled: hamburger + a visible header Sign In pill + a slide-down panel.
     The panel nav is position:absolute (out of flow), so push the pill + toggle
     to the right edge, next to each other. */
  .nav-js .nav-toggle { display: inline-flex; }
  .nav-js .nav-signin-pill { display: inline-block; margin-left: auto; }

  .nav-js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    background: linear-gradient(135deg, #0f172a 0%, #020817 100%);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    z-index: 900;
  }
  .nav-js .site-nav.open { display: flex; }
  .nav-js .site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 0 2rem;
    font-size: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  /* The header pill already carries Sign In on small screens. */
  .nav-js .site-nav .nav-signin { display: none; }
}

/* ── Phone (below 768px) ───────────────────────────────────────────────── */
@media (max-width: 767px) {
  .container { padding: 0 1rem; }
  .demo-banner { padding: 0.85rem 1rem; }
  .demo-banner .demo-title { font-size: 1.1rem; }
  .footer-links { gap: 1rem; }
}
