/* CopyCatOS.com — by Kyle Blizzard at Blizzard.show */
/* Modern marketing site. Snow Leopard's *palette* — white, blue, grey,
   depth — meets a 2026 layout: big type, soft shadows, generous space.
   Inspired by, not copying. No traffic lights. No fake window chrome. */

:root {
  /* surfaces */
  --bg:           #FFFFFF;
  --bg-soft:      #F6F8FB;
  --bg-tint:      #EEF3FB;
  --border:       rgba(15, 23, 42, 0.08);
  --border-strong:rgba(15, 23, 42, 0.16);

  /* ink */
  --ink:          #0B1220;
  --ink-muted:    #475569;
  --ink-subtle:   #6B7280;
  --ink-on-dark:  #FFFFFF;

  /* brand — Snow Leopard's selection blue, nudged for modern displays */
  --blue:         #2F6FE0;
  --blue-strong:  #1F4FB0;
  --blue-light:   #DCE7F8;
  --blue-glow:    rgba(47, 111, 224, 0.30);

  /* hero gradient — deep blue/space, layered radials */
  --hero-bg:
    radial-gradient(ellipse 60% 80% at 25% 10%, #4A6FA8 0%, transparent 55%),
    radial-gradient(ellipse 70% 65% at 80% 30%, #2A4781 0%, transparent 55%),
    radial-gradient(ellipse 100% 80% at 50% 100%, #050A14 0%, transparent 60%),
    linear-gradient(180deg, #1A2B47 0%, #060B16 100%);

  /* type */
  --font-sans: "Inter", "Inter Tight", system-ui, -apple-system,
               "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "Menlo", "Consolas", monospace;

  /* shadow */
  --shadow-1:    0 1px 2px rgba(15,23,42,.04),  0 4px 12px rgba(15,23,42,.06);
  --shadow-2:    0 1px 3px rgba(15,23,42,.05),  0 12px 32px rgba(15,23,42,.08);
  --shadow-glow: 0 24px 60px rgba(47,111,224,.22), 0 4px 16px rgba(47,111,224,.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-decoration: none; transition: color 120ms ease; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ===================================================================
   Sticky nav — frosted glass, subtle pill tabs.
   No menubar gradient, no fake-Aqua chrome. Just a clean top bar.
   =================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  position: relative;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand img { width: 26px; height: 26px; border-radius: 8px; }

.tabs {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}
.tab {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  border-radius: 8px;
  transition: color 120ms ease, background 120ms ease;
}
.tab:hover {
  color: var(--ink);
  background: rgba(15,23,42,.04);
  text-decoration: none;
}
.tab.is-active {
  color: var(--blue-strong);
  background: var(--blue-light);
}

.nav-cta {
  margin-left: auto;
}

/* responsive: collapse the tab list into a popup-button */
.tab-popup { display: none; position: relative; }
.tab-popup summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(15,23,42,.04);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.tab-popup summary::-webkit-details-marker { display: none; }
.tab-popup ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  min-width: 220px;
  z-index: 60;
}
.tab-popup li a {
  display: block;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 14px;
  border-radius: 6px;
}
.tab-popup li a:hover {
  background: var(--blue-light);
  color: var(--blue-strong);
  text-decoration: none;
}

@media (max-width: 880px) {
  .tabs { display: none; }
  .tab-popup { display: block; margin-left: auto; }
  .nav-cta { display: none; }
}

/* ===================================================================
   Buttons.
   =================================================================== */

.btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 120ms ease, box-shadow 160ms ease,
              background 120ms ease, color 120ms ease, filter 120ms ease;
  user-select: none;
  white-space: nowrap;
}
.btn-primary {
  color: #FFFFFF;
  background: linear-gradient(180deg, #4A89F0 0%, var(--blue) 50%, var(--blue-strong) 100%);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 28px 70px rgba(47,111,224,.30), 0 6px 18px rgba(47,111,224,.18);
}
.btn-primary:active { transform: translateY(0); filter: brightness(.96); }

.btn-ghost {
  color: var(--ink);
  background: #FFFFFF;
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  text-decoration: none;
}

.nav-cta .btn {
  padding: 8px 14px;
  font-size: 13px;
}

/* ===================================================================
   Hero.
   =================================================================== */

.hero {
  position: relative;
  padding: 64px 24px 72px;
  text-align: center;
  color: var(--ink-on-dark);
  background: var(--hero-bg);
  overflow: hidden;
  isolation: isolate;
}

/* faint starfield */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 18% 32%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1px 1px at 78% 68%, rgba(255,255,255,.40), transparent 60%),
    radial-gradient(1px 1px at 62% 22%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 38% 78%, rgba(255,255,255,.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 88% 42%, rgba(255,255,255,.32), transparent 60%),
    radial-gradient(1px 1px at 12% 64%, rgba(255,255,255,.28), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
/* soft glow behind the logo — scales with the logo so it always feathers
   the edge of the cat regardless of viewport size. */
.hero::after {
  content: "";
  position: absolute; left: 50%; top: 42%;
  width: min(80vh, 85vw); height: min(80vh, 85vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(110,160,230,.32) 0%, transparent 65%);
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

/* Logo dominates the hero — basically full-viewport on most screens.
   min(80vh, 88vw) keeps the cat visible on both tall and narrow displays. */
.hero-logo {
  width: min(56vh, 62vw);
  max-width: 770px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 30px 80px rgba(0,0,0,.55));
}

.hero h1 {
  margin: 24px 0 12px;
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  background: linear-gradient(180deg, #FFFFFF 0%, #C8D6EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .tagline {
  margin: 0 auto 12px;
  max-width: 720px;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
  color: rgba(255,255,255,.86);
}
.hero .tagline-tech {
  font-size: clamp(14px, 1.4vw, 16px);
  color: rgba(255,255,255,.62);
  margin-top: 14px;
}

.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-cta .btn-ghost {
  color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.20);
  backdrop-filter: blur(10px);
}
.hero-cta .btn-ghost:hover {
  background: rgba(255,255,255,.16);
}

/* ===================================================================
   Sections — open, no card chrome. Alternating soft tint for rhythm.
   =================================================================== */

main { background: var(--bg); }

.section {
  padding: 130px 24px;
  position: relative;
}
.section.alt { background: var(--bg-soft); }

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}

.section h2 {
  margin: 0 0 22px;
  font-size: clamp(32px, 4.6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
  max-width: 18ch;
}

.section .lede {
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 400;
  max-width: 720px;
  margin: 0 0 24px;
}

.section p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 720px;
  margin: 0 0 16px;
}

.section h3 {
  margin: 36px 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.section ul {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 720px;
  padding-left: 22px;
  margin: 0 0 16px;
}
.section ul li { margin-bottom: 6px; }

.section code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-tint);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
  border: 1px solid rgba(47,111,224,.12);
}

.section .callout {
  margin-top: 28px;
  padding: 18px 22px;
  background: var(--blue-light);
  border-radius: 12px;
  border-left: 3px solid var(--blue);
  max-width: 720px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.section .callout strong { color: var(--blue-strong); }

/* split-layout for sections that pair an image + copy */
.section.split .section-inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: center;
}
.section.split .visual img {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 22%;
  box-shadow: var(--shadow-2);
  margin: 0 auto;
}
@media (max-width: 880px) {
  .section.split .section-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* download form */
.notify-form {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
  position: relative;
  max-width: 540px;
}
.notify-form input[type="email"] {
  flex: 1 1 240px;
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.notify-form input[type="email"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-glow);
}
.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px; height: 1px; opacity: 0;
}
.form-status {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-subtle);
  min-height: 1.2em;
}
.repo-links {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink-subtle);
}
.repo-links a { color: var(--blue); }

/* ===================================================================
   Blog.
   =================================================================== */

.blog-main {
  background: var(--bg);
  padding: 80px 24px 100px;
}

.blog-header {
  max-width: 720px;
  margin: 0 auto 56px;
}

.blog-list-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--ink);
}

.blog-list-sub {
  font-size: 17px;
  color: var(--ink-muted);
  margin: 0;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 720px;
}

.post-list li {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.post-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.post-list a {
  display: block;
  color: var(--ink);
  text-decoration: none;
  transition: color 120ms ease;
}
.post-list a:hover { text-decoration: none; }
.post-list a:hover .post-list-title { color: var(--blue); }

.post-date {
  display: block;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--ink-subtle);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.post-list-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  line-height: 1.25;
  transition: color 120ms ease;
}

.post-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0;
}

.blog-post {
  max-width: 720px;
  margin: 0 auto;
}

.post-meta {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--ink-subtle);
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}
.post-meta a { color: var(--ink-muted); }
.post-meta a:hover { color: var(--blue); text-decoration: none; }

.post-title {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--ink);
}

.post-section-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 56px 0 18px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.post-section-heading:first-of-type {
  margin-top: 36px;
  padding-top: 0;
  border-top: none;
}

.post-body p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 18px;
}
.post-body ul {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  padding-left: 22px;
  margin: 0 0 18px;
}
.post-body ul li { margin-bottom: 6px; }
.post-body code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-tint);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink);
  border: 1px solid rgba(47,111,224,.10);
}

/* Subtle visual separation for the AI perspective half of each post —
   tinted background, slightly muted text. Same content weight, just
   marked as "this is a different voice." */
.post-body-ai {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 24px 28px;
  margin-top: -4px;
}
.post-body-ai p { color: var(--ink-muted); }

.post-meta-bottom {
  margin: 56px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-subtle);
  letter-spacing: 0.02em;
}
.post-meta-bottom a { color: var(--ink-muted); }
.post-meta-bottom a:hover { color: var(--blue); text-decoration: none; }

/* ===================================================================
   Footer.
   =================================================================== */

.site-foot {
  padding: 36px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-subtle);
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.site-foot a { color: var(--ink-muted); }

/* ===================================================================
   Scroll-fade reveal (progressive enhancement: only when JS is on).
   =================================================================== */

body.uses-fade .section {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}
body.uses-fade .section.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.uses-fade .section { opacity: 1; transform: none; transition: none; }
  .btn-primary:hover { transform: none; }
}

/* ===================================================================
   Small-screen tweaks.
   =================================================================== */

@media (max-width: 640px) {
  .hero { padding: 32px 18px 48px; }
  /* hero-logo width is already viewport-scaled — no override needed */
  .section { padding: 88px 18px; }
  .section h2 { max-width: none; }
}
