/* AI Desk — preview for desk.aireadyhub.tech
   Dark editorial canvas aligned with AI Ready Hub's futuristic palette. */

:root {
  --bg: #070b14;
  --bg-raise: #101726;
  --bg-card: #121a2b;
  --ink: #e7eef8;
  --ink-soft: #c5d0e2;
  --muted: #9aabc4;
  --line: rgba(168, 190, 220, 0.16);
  --line-strong: rgba(125, 211, 252, 0.45);
  --brand: #1d4ed8;
  --brand-deep: #1e3a8a;
  --accent: #7dd3fc;
  --accent-dim: #0ea5e9;
  --warm: #fdba74;
  --ok: #6ee7b7;
  --danger-quiet: #fecaca;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: Outfit, "Segoe UI", system-ui, sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(ellipse 72% 42% at 8% -12%, rgba(29, 78, 216, 0.28), transparent 58%),
    radial-gradient(ellipse 36% 28% at 100% 0%, rgba(251, 146, 60, 0.09), transparent 52%),
    linear-gradient(180deg, #070b14 0%, #0b1220 42%, #070b14 100%);
  line-height: 1.6;
  font-size: 1.05rem;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.8rem;
  z-index: 40;
  border-radius: 0.4rem;
}
.skip:focus { top: 0.6rem; }

.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin: 0 auto; }
.narrow { width: min(720px, 100%); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--accent-dim);
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}
h1, h2, h3 { font-weight: 400; letter-spacing: -0.02em; }
h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 0.98;
  margin: 0 0 1rem;
}
h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.1;
  margin: 0 0 0.7rem;
}
h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0 0 0.4rem;
}
p { margin: 0 0 0.9rem; }
.lede {
  color: var(--ink-soft);
  font-size: 1.12rem;
  max-width: 40rem;
}
.muted { color: var(--muted); }
.small { font-size: 0.92rem; color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 11, 20, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.mark {
  position: relative;
  width: 52px;
  height: 52px;
  flex: none;
}
.mark-float {
  display: block;
  width: 100%;
  height: 100%;
  animation: desk-idle 7.5s ease-in-out infinite;
}
.mark img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.28));
  transition: filter 0.45s ease;
}
.mark::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color 0.45s ease, box-shadow 0.45s ease;
}
.brand:hover .mark img,
.brand:focus-visible .mark img {
  filter:
    drop-shadow(0 0 12px rgba(14, 165, 233, 0.5))
    drop-shadow(0 8px 10px rgba(251, 146, 60, 0.16));
}
.brand:hover .mark::after,
.brand:focus-visible .mark::after {
  border-color: rgba(125, 211, 252, 0.45);
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.22);
}
@keyframes desk-idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.wordmark {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.byline {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
.nav-btn {
  display: none;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.nav-btn-bars,
.nav-btn-bars::before,
.nav-btn-bars::after {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  content: "";
}
.nav-btn-bars::before { position: absolute; top: -5px; }
.nav-btn-bars::after { position: absolute; top: 5px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.05rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent-dim);
}

.nav { position: relative; }
@media (max-width: 860px) {
  .nav-btn { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    left: 50%;
    right: auto;
    top: calc(100% + 0px);
    transform: translateX(-50%);
    width: 100vw;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.35rem 1.25rem 1rem;
    background: rgba(7, 11, 20, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav-check:checked ~ .nav-links { display: flex; }
  .nav-links a { padding: 0.55rem 0; width: 100%; }
}

/* Hero */
.hero { padding: 4.2rem 0 2.5rem; }
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: end;
}
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.35fr 0.75fr; align-items: center; }
}
.hero-mark {
  width: 92px;
  height: 92px;
  margin-bottom: 1.25rem;
}
.hero-mark .mark,
.hero-mark .mark img { width: 92px; height: 92px; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.78rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn-primary { background: var(--brand); color: #f8fbff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-quiet:hover { border-color: var(--line-strong); }
.slip {
  background: rgba(18, 26, 43, 0.8);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.15rem 1.2rem 0.5rem;
  box-shadow: var(--shadow);
}
.slip-date {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--warm);
}
.slip ol { list-style: none; margin: 0; padding: 0; }
.slip li {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.72rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}
.slip a { text-decoration: none; }
.slip a:hover { color: var(--accent); }
.slip span {
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  min-width: 1.6rem;
}

section { padding: 3.2rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.3rem;
}
.section-head p { margin: 0; max-width: 36rem; }
.section-head a.more {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
  border-bottom: 1px solid rgba(125, 211, 252, 0.35);
}
.section-head a.more:hover { border-bottom-color: var(--accent); }

.grid {
  display: grid;
  gap: 0.9rem;
}
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: rgba(18, 26, 43, 0.72);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.15rem 1.15rem 1.05rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(125, 211, 252, 0.35); }
.kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.card p:last-child { margin-bottom: 0; }
.card a.out {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(125, 211, 252, 0.3);
}
.card a.out:hover { border-bottom-color: var(--accent); }
.lane-rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.7), rgba(253, 186, 116, 0.45), transparent 80%);
  margin: 0 0 1.4rem;
}

.note {
  border-left: 2px solid var(--warm);
  padding: 0.2rem 0 0.2rem 0.9rem;
  color: var(--ink-soft);
}
.disclosure {
  background: rgba(253, 186, 116, 0.08);
  border: 1px solid rgba(253, 186, 116, 0.28);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
}
.disclosure strong { color: var(--warm); font-weight: 600; }

.ad-slot {
  margin-top: 1.5rem;
  border: 1px dashed rgba(154, 171, 196, 0.45);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.02);
}
.ad-slot p { margin: 0; }
.ad-slot .kicker { color: var(--muted); }

.partner {
  border-style: dashed;
}
.partner .kicker { color: var(--warm); }

.page-intro { padding: 3rem 0 0.5rem; }
.dated {
  font-variant-numeric: tabular-nums;
  color: var(--warm);
  letter-spacing: 0.04em;
}

footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding: 2.2rem 0 2.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.foot {
  display: grid;
  gap: 1.4rem;
}
@media (min-width: 800px) {
  .foot { grid-template-columns: 1.3fr 0.8fr 1fr; }
}
footer a { color: var(--ink-soft); }
footer .wordmark { font-size: 1.3rem; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.foot h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.55rem;
  font-weight: 600;
}
.disclaimer { margin-top: 1.3rem; max-width: 48rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mark-float { animation: none; }
  .card, .btn, .mark img, .mark::after { transition: none; }
}

.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;
}
