/* Magic Library — "Midnight Library" landing page
   Chapter rhythm: dark hero → parchment workshop → dark pipeline → parchment gallery → dark finale */

:root {
  --night-deep: #080D1A;
  --night: #0C1426;
  --night-soft: #16203A;
  --ethereal: #9F7AEA;
  --ethereal-soft: #B89AF0;
  --wood-dark: #1A140F;
  --parchment-deep: #EADDC0;
  --parchment: #F3E9D2;
  --parchment-light: #FAF3E2;
  --agent-lore: #3E5C36;
  --agent-writer: #7C5CC4;
  --agent-critic: #A36B25;
  --ink: #1A140F;
  --ink-soft: #4A3C2E;
  --gold: #C9A24B;
  --gold-bright: #E3C880;
  --crimson: #8B2E2A;
  --moonlight: #EDE6F7;

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 10px;
  --shadow-soft: 0 4px 16px rgba(26, 20, 15, 0.08);
  --shadow-deep: 0 16px 48px rgba(8, 13, 26, 0.35);
  --shadow-glow: 0 0 48px rgba(159, 122, 234, 0.3);
  --shadow-gold: 0 8px 32px rgba(201, 162, 75, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--night);
  min-height: 100vh;
  overflow-x: hidden;
}

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

a,
button {
  touch-action: manipulation;
}

:focus-visible {
  outline: 2px solid var(--ethereal);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============== NAVIGATION ============== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 13, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201, 162, 75, 0.18);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--parchment-light);
}

.nav-brand-icon {
  color: var(--gold-bright);
  filter: drop-shadow(0 0 5px rgba(227, 200, 128, 0.6))
    drop-shadow(0 0 12px rgba(159, 122, 234, 0.6));
}

.nav-brand-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(243, 233, 210, 0.75);
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.nav-links a:hover {
  color: var(--gold-bright);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.nav-download {
  padding: 7px 16px;
  border: 1px solid rgba(201, 162, 75, 0.45);
  border-radius: 100px;
  color: var(--gold-bright);
}

.nav-links a.nav-download::after {
  display: none;
}

.nav-links a.nav-download:hover {
  background: rgba(201, 162, 75, 0.12);
  border-color: var(--gold);
}

.lang-switcher {
  position: relative;
}

.lang-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(243, 233, 210, 0.8);
  background: rgba(159, 122, 234, 0.1);
  border: 1px solid rgba(159, 122, 234, 0.3);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-button:hover {
  background: rgba(159, 122, 234, 0.2);
  color: var(--moonlight);
}

.lang-button::after {
  content: "▾";
  font-size: 10px;
  opacity: 0.6;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: var(--night-soft);
  border: 1px solid rgba(159, 122, 234, 0.3);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  display: none;
}

.lang-menu.open {
  display: block;
  animation: slideDown 0.2s ease-out;
}

.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 9px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(243, 233, 210, 0.85);
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

.lang-menu button:hover {
  background: rgba(159, 122, 234, 0.15);
}

.lang-menu button.active {
  color: var(--ethereal-soft);
  font-weight: 600;
  background: rgba(159, 122, 234, 0.1);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============== HERO (dark chapter) ============== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 130px 32px 90px;
  position: relative;
  overflow: hidden;
  color: var(--parchment-light);
  background:
    radial-gradient(ellipse 900px 600px at 70% 20%, rgba(159, 122, 234, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 700px 500px at 15% 85%, rgba(201, 162, 75, 0.1) 0%, transparent 60%),
    linear-gradient(180deg, var(--night-deep) 0%, var(--night) 70%, #11192E 100%);
}

/* star dust — tiny repeating specks, transform/opacity only */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(243, 233, 210, 0.7) 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 64%, rgba(184, 154, 240, 0.6) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 56% 14%, rgba(243, 233, 210, 0.5) 50%, transparent 51%),
    radial-gradient(1px 1px at 73% 48%, rgba(227, 200, 128, 0.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 76%, rgba(243, 233, 210, 0.55) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 24% 88%, rgba(184, 154, 240, 0.45) 50%, transparent 51%);
  background-size: 480px 480px;
  pointer-events: none;
  opacity: 0.8;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 22px;
  padding: 5px 14px;
  background: rgba(201, 162, 75, 0.08);
  border: 1px solid rgba(201, 162, 75, 0.35);
  border-radius: 100px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 600;
  line-height: 1.04;
  color: var(--parchment-light);
  margin-bottom: 24px;
  letter-spacing: -1px;
  text-shadow: 0 2px 24px rgba(8, 13, 26, 0.6);
}

.hero-title .glyph {
  display: inline-block;
  font-style: italic;
  background: linear-gradient(110deg, var(--gold-bright) 10%, var(--ethereal-soft) 60%, var(--ethereal) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 21px;
  line-height: 1.6;
  color: rgba(243, 233, 210, 0.78);
  margin-bottom: 40px;
  max-width: 520px;
  font-style: italic;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--night-deep);
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 55%, #B68A33 100%);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold), var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary[aria-disabled="true"] {
  filter: saturate(0.55) brightness(0.9);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 26px;
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(243, 233, 210, 0.85);
  background: transparent;
  border: 1px solid rgba(243, 233, 210, 0.3);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: var(--ethereal-soft);
  color: var(--moonlight);
  background: rgba(159, 122, 234, 0.08);
}

.coming-soon-badge {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #5A2320;
  background: rgba(139, 46, 42, 0.14);
  border: 1px solid rgba(139, 46, 42, 0.35);
  border-radius: 100px;
  margin-left: 8px;
}

.coming-soon-badge.available {
  color: #2C4226;
  background: rgba(62, 92, 54, 0.15);
  border-color: rgba(62, 92, 54, 0.4);
}

/* hero screenshot in a macOS window frame */
.hero-shot {
  position: relative;
}

.shot-window {
  border-radius: 14px;
  overflow: hidden;
  background: var(--night-soft);
  box-shadow:
    var(--shadow-deep),
    0 0 0 1px rgba(159, 122, 234, 0.25),
    0 0 80px rgba(159, 122, 234, 0.18);
  transform: perspective(1400px) rotateY(-3deg) rotateX(1.5deg);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.hero-shot:hover .shot-window {
  transform: perspective(1400px) rotateY(0deg) rotateX(0deg);
  box-shadow:
    var(--shadow-deep),
    0 0 0 1px rgba(159, 122, 234, 0.4),
    0 0 100px rgba(159, 122, 234, 0.28);
}

.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #1D2840, var(--night-soft));
  border-bottom: 1px solid rgba(159, 122, 234, 0.15);
}

.shot-bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-r { background: #FF5F57; }
.dot-y { background: #FEBC2E; }
.dot-g { background: #28C840; }

.shot-bar-title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(243, 233, 210, 0.5);
}

.shot-window img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-shot-caption {
  margin-top: 14px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  color: rgba(243, 233, 210, 0.55);
}

/* ============== SECTIONS (shared) ============== */
section {
  padding: 100px 32px;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--agent-writer);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-soft);
  font-style: italic;
}

.divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 32px auto;
  position: relative;
}

.divider::before {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: inherit;
  padding: 0 12px;
  color: var(--gold);
  font-size: 12px;
  background: var(--parchment);
}

/* ============== AGENTS (parchment chapter) ============== */
.agents {
  background: var(--parchment);
  background-image:
    url("assets/textures/paper.png"),
    radial-gradient(at 50% 0%, rgba(26, 20, 15, 0.05) 0%, transparent 50%);
  background-size: 400px, auto;
  border-top: 1px solid rgba(201, 162, 75, 0.4);
}

.agents-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.agent-card {
  background: var(--parchment-light);
  border: 1px solid rgba(26, 20, 15, 0.1);
  border-radius: 16px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
  box-shadow: var(--shadow-soft);
}

.agent-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--agent-color);
}

.agent-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--agent-color) 0%, transparent 60%);
  opacity: 0.08;
  transition: opacity 0.4s;
}

.agent-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(26, 20, 15, 0.18);
}

.agent-card:hover::after {
  opacity: 0.18;
}

.agent-card.lore { --agent-color: var(--agent-lore); }
.agent-card.writer { --agent-color: var(--agent-writer); }
.agent-card.critic { --agent-color: var(--agent-critic); }

.agent-glyph {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 14px;
  color: var(--agent-color);
  background: color-mix(in srgb, var(--agent-color) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--agent-color) 30%, transparent);
}

.agent-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--agent-color);
  margin-bottom: 8px;
}

.agent-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.agent-desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ============== TOOLS (parchment, deeper) ============== */
.tools {
  background: var(--parchment-deep);
  background-image: url("assets/textures/paper.png");
  background-size: 400px;
}

.tools .divider::before {
  background: var(--parchment-deep);
}

.tools-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tool-card {
  padding: 28px 24px;
  background: var(--parchment-light);
  border: 1px solid rgba(26, 20, 15, 0.1);
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  text-align: left;
}

.tool-card:hover {
  border-color: var(--agent-writer);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.tool-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(124, 92, 196, 0.12);
  border: 1px solid rgba(124, 92, 196, 0.25);
  border-radius: 10px;
  margin-bottom: 16px;
  color: var(--agent-writer);
}

.tool-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.tool-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ============== PIPELINE (dark chapter) ============== */
.pipeline {
  background: linear-gradient(180deg, #11182B 0%, var(--wood-dark) 100%);
  color: var(--parchment-light);
  position: relative;
  overflow: hidden;
}

.pipeline::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/textures/dark-leather.png");
  background-size: 400px;
  opacity: 0.35;
  pointer-events: none;
}

.pipeline .section-eyebrow,
.pipeline .section-subtitle {
  color: var(--gold-bright);
}

.pipeline .section-title {
  color: var(--parchment-light);
}

.pipeline .divider::before {
  background: #14140F;
}

.pipeline-flow {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

.pipeline-stage {
  flex: 1;
  background: rgba(243, 233, 210, 0.05);
  border: 1px solid rgba(201, 162, 75, 0.25);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}

.pipeline-stage:hover {
  border-color: rgba(201, 162, 75, 0.55);
  background: rgba(243, 233, 210, 0.08);
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  flex-shrink: 0;
  color: var(--gold);
  opacity: 0.7;
}

.stage-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--gold-bright);
  margin-bottom: 12px;
}

.stage-glyph {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--gold-bright);
  background: rgba(201, 162, 75, 0.1);
  border: 1px solid rgba(201, 162, 75, 0.35);
}

.stage-lore .stage-glyph { color: #9DC18F; }
.stage-writer .stage-glyph { color: var(--ethereal-soft); }
.stage-critic .stage-glyph { color: #E0AC62; }

.stage-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--parchment-light);
  margin-bottom: 8px;
}

.stage-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: rgba(243, 233, 210, 0.7);
}

.pipeline-features {
  max-width: 1100px;
  margin: 64px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.pipeline-feature {
  padding: 24px;
  background: rgba(243, 233, 210, 0.04);
  border-left: 2px solid var(--gold);
  border-radius: 0 8px 8px 0;
}

.pipeline-feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold-bright);
  margin-bottom: 8px;
}

.pipeline-feature-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(243, 233, 210, 0.7);
}

/* ============== GALLERY (parchment chapter) ============== */
.gallery {
  background: var(--parchment);
  background-image: url("assets/textures/paper.png");
  background-size: 400px;
}

.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(26, 20, 15, 0.12);
  background: var(--parchment-light);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s, box-shadow 0.4s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(26, 20, 15, 0.18);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: top;
  display: block;
  border-bottom: 1px solid rgba(26, 20, 15, 0.1);
}

/* caption always visible — hover-only overlays are invisible on touch devices */
.gallery-item-caption {
  display: block;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: var(--parchment-light);
}

/* ============== CTA (dark finale) ============== */
.cta {
  background:
    radial-gradient(ellipse 700px 420px at 50% 30%, rgba(159, 122, 234, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, var(--wood-dark) 0%, var(--night-deep) 100%);
  text-align: center;
  padding: 120px 32px;
}

.cta-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 48px;
  background: rgba(243, 233, 210, 0.04);
  border: 1px solid rgba(201, 162, 75, 0.3);
  border-radius: 20px;
  box-shadow: 0 0 80px rgba(159, 122, 234, 0.12);
  position: relative;
  overflow: hidden;
}

.cta-card::before,
.cta-card::after {
  content: "✦";
  position: absolute;
  font-size: 24px;
  color: var(--gold);
  opacity: 0.5;
}

.cta-card::before {
  top: 20px;
  left: 24px;
}

.cta-card::after {
  bottom: 20px;
  right: 24px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  color: var(--parchment-light);
  margin-bottom: 16px;
}

.cta-desc {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: rgba(243, 233, 210, 0.75);
  margin-bottom: 32px;
  font-style: italic;
}

.cta-requirements {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(243, 233, 210, 0.12);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(243, 233, 210, 0.55);
}

/* ============== FOOTER ============== */
.footer {
  background: var(--night-deep);
  color: rgba(243, 233, 210, 0.6);
  padding: 48px 32px 24px;
  text-align: center;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--parchment-light);
  margin-bottom: 8px;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(243, 233, 210, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(243, 233, 210, 0.4);
  padding-top: 24px;
  border-top: 1px solid rgba(243, 233, 210, 0.1);
}

/* ============== ANIMATIONS ============== */
/* Default (no JS): content is fully visible so nothing is ever lost. */
.fade-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* Only hide-then-reveal when JS is active (the <html class="js"> flag). */
.js .fade-in {
  opacity: 0;
  transform: translateY(24px);
}

.js .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-shot {
    max-width: 620px;
    margin: 0 auto;
  }
  .shot-window {
    transform: none;
  }
  .agents-grid,
  .tools-grid,
  .gallery-grid,
  .pipeline-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav {
    padding: 12px 16px;
  }
  .nav-links {
    gap: 12px;
  }
  .nav-links a:not(.nav-download) {
    display: none;
  }
  .nav-brand-text {
    font-size: 18px;
  }
  section {
    padding: 60px 16px;
  }
  .hero {
    padding: 110px 16px 60px;
    min-height: auto;
  }
  .agents-grid,
  .tools-grid,
  .gallery-grid,
  .pipeline-features {
    grid-template-columns: 1fr;
  }
  .pipeline-flow {
    flex-direction: column;
    gap: 12px;
  }
  .pipeline-arrow {
    transform: rotate(90deg);
    height: 32px;
    width: auto;
  }
  .cta-card {
    padding: 40px 24px;
  }
}

@media (max-width: 400px) {
  .nav-brand-text {
    display: none;
  }
}

/* ============== REDUCED MOTION ============== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
  .shot-window {
    transform: none !important;
  }
}
