@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Caveat:wght@600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-cursive: 'Caveat', cursive;
  --font-mono: 'JetBrains Mono', Consolas, monospace;

  --ink-primary: #0f172a;
  --ink-secondary: #334155;
  --ink-muted: #64748b;
  --ink-light: #94a3b8;

  --card-bg: #ffffff;
  --card-border: rgba(255, 255, 255, 0.85);
  --card-shadow: 0 24px 70px -15px rgba(25, 45, 75, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;

  --sky-overlay: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 30%,
    rgba(246, 249, 252, 0.6) 65%,
    rgba(246, 249, 252, 0.95) 90%,
    #f6f9fc 100%
  );
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink-primary);
  background-color: #1d7af2;
  min-height: 100vh;
  letter-spacing: -0.015em;
  position: relative;
  overflow-x: hidden;
  transition: background-color 1.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.5s ease;
}

body.theme-sunset {
  background-color: #2a2455;
  color: #ffffff;
}

body.theme-night {
  background-color: #050811;
  color: #ffffff;
}

/* Background Atmosphere */
.sky-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  pointer-events: none;
}

.sky-gradient-mask {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: var(--sky-overlay);
  pointer-events: none;
  transition: opacity 1.2s ease, background 1.2s ease;
}

body.theme-sunset .sky-gradient-mask {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(42, 36, 85, 0.1) 40%,
    rgba(42, 36, 85, 0.6) 75%,
    rgba(42, 36, 85, 0.95) 100%
  );
}

body.theme-night .sky-gradient-mask {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(5, 8, 17, 0.15) 40%,
    rgba(5, 8, 17, 0.65) 75%,
    rgba(5, 8, 17, 0.98) 100%
  );
}

.site-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Typography Utilities */
.font-cursive { font-family: var(--font-cursive); }
.font-mono { font-family: var(--font-mono); }

/* ============================================================
   PROGRESSIVE AIR MORPHING HEADER (Top Navigation)
============================================================ */
.air-header-morph {
  position: sticky;
  top: 0;
  z-index: 900;
  width: 100%;
  height: 68px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  background: transparent;
  border: none;
  box-shadow: none;
}

.air-header-morph::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  pointer-events: none;
  z-index: -1;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.22) 0%,
    rgba(0, 0, 0, 0.10) 45%,
    rgba(0, 0, 0, 0.03) 75%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 35%,
    rgba(0, 0, 0, 0.6) 65%,
    rgba(0, 0, 0, 0) 100%
  );
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 35%,
    rgba(0, 0, 0, 0.6) 65%,
    rgba(0, 0, 0, 0) 100%
  );
  transition: background 0.4s ease;
}

body.theme-sunset .air-header-morph::before {
  background: linear-gradient(
    180deg,
    rgba(35, 20, 45, 0.28) 0%,
    rgba(35, 20, 45, 0.12) 45%,
    rgba(35, 20, 45, 0.03) 75%,
    transparent 100%
  );
}

body.theme-day .air-header-morph::before {
  background: linear-gradient(
    180deg,
    rgba(10, 40, 90, 0.22) 0%,
    rgba(10, 40, 90, 0.10) 45%,
    rgba(10, 40, 90, 0.02) 75%,
    transparent 100%
  );
}

body.theme-night .air-header-morph::before {
  background: linear-gradient(
    180deg,
    rgba(10, 15, 30, 0.50) 0%,
    rgba(10, 15, 30, 0.25) 45%,
    rgba(10, 15, 30, 0.05) 75%,
    transparent 100%
  );
}

body.theme-dawn .air-header-morph::before {
  background: linear-gradient(
    180deg,
    rgba(25, 35, 60, 0.22) 0%,
    rgba(25, 35, 60, 0.10) 45%,
    rgba(25, 35, 60, 0.02) 75%,
    transparent 100%
  );
}

.air-header-morph__inner {
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* Brand */
.morph-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.morph-brand__logo {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.05em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.morph-brand:hover .morph-brand__logo {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.morph-brand__name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.morph-brand__tag {
  font-family: var(--font-cursive);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* Navigation Links (Center, Always Clean & Pure) */
.morph-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.morph-nav a {
  position: relative;
  padding: 7px 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  border-radius: 9999px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.morph-nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

.morph-nav a.is-active {
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

/* Actions */
.morph-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.morph-btn-github {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  padding: 6px 12px;
  border-radius: 9999px;
  transition: all 0.22s ease;
}

.morph-btn-github:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.morph-btn-contact {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.morph-btn-contact:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Pill Buttons */
.btn-white-pill {
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 600;
  border-radius: 9999px;
  padding: 9px 20px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.btn-white-pill:hover {
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.btn-glass-pill {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  border-radius: 9999px;
  padding: 8px 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-glass-pill:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #ffffff;
}

/* Hero Section */
.hero-section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-mark {
  font-family: var(--font-cursive);
  font-size: 54px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  text-shadow: 0 4px 20px rgba(0, 45, 120, 0.4);
}

.hero-title {
  color: #ffffff;
  font-size: clamp(40px, 6.2vw, 76px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  text-shadow: 0 4px 24px rgba(0, 35, 100, 0.35);
}

.hero-title .hero-amp {
  font-family: var(--font-sans);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 8px;
}

.hero-title .cursive-word {
  font-family: var(--font-cursive);
  font-size: 1.15em;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.7), 0 4px 20px rgba(0, 45, 120, 0.4);
}

.hero-subtext {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  max-width: 600px;
}

.hero-cta-wrap {
  margin-bottom: 24px;
}

.hero-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 34px;
  border-radius: 9999px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 12px 35px -6px rgba(0, 30, 80, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-pill-btn:hover {
  background: #f8fafc;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 42px -6px rgba(0, 30, 80, 0.42);
}
.hero-pill-btn:active {
  transform: translateY(0) scale(0.98);
}

.hero-prompt-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

/* Central Workspace Window */
.workspace-window {
  width: 100%;
  max-width: 980px;
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  overflow: hidden;
  text-align: left;
}

/* Window Header */
.window-topbar {
  padding: 14px 22px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.window-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot-active {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.window-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.window-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.window-search-container {
  position: relative;
  flex: 1;
  max-width: 380px;
  margin: 0 18px;
}

.window-search {
  width: 100%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.window-search:focus-within {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
  color: var(--ink-main);
}

.window-search .search-icon {
  font-size: 13px;
  color: #94a3b8;
  user-select: none;
}

.window-search input {
  border: 0;
  background: transparent;
  width: 100%;
  outline: none;
  font-family: inherit;
  font-size: 12px;
  color: var(--ink-main);
}

.window-search input::placeholder {
  color: #94a3b8;
  font-size: 12px;
}

.search-clear-btn {
  border: 0;
  background: rgba(148, 163, 184, 0.2);
  color: #64748b;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 10px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s ease;
}

.search-clear-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.window-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.window-actions .btn-outline {
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: background 0.15s;
}

.window-actions .btn-outline:hover {
  background: #f8fafc;
}

.window-actions .btn-primary {
  padding: 6px 14px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
  transition: background 0.15s;
}

.window-actions .btn-primary:hover {
  background: #1d4ed8;
}

/* Window Body Grid */
.window-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 440px;
  background: #fafaf9;
}

/* Window Sidebar */
.window-sidebar {
  background: #ffffff;
  border-right: 1px solid #f1f5f9;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  margin-bottom: 8px;
  padding-left: 6px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.sidebar-btn:hover {
  background: #f8fafc;
  color: var(--ink-primary);
}

.sidebar-btn.is-active {
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 700;
}

.badge-count {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 9999px;
  background: #2563eb;
  color: #ffffff;
}

.badge-gray {
  background: #e2e8f0;
  color: var(--ink-secondary);
}

.focus-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.focus-item {
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* Window Content Panel */
.window-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 14px;
}

.panel-head h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
}

.panel-head p {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* Project Cards */
.project-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.project-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-title-group h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
}

.card-title-group .card-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-light);
  margin-top: 2px;
}

.tag-status {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.tag-verified {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-secondary);
}

.card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.card-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--ink-muted);
}

/* Articles List */
.article-stack {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
}

.article-row {
  padding: 16px 20px;
  display: block;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}

.article-row:last-child {
  border-bottom: 0;
}

.article-row:hover {
  background: #f8fafc;
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.article-row h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-primary);
  line-height: 1.45;
}

.article-row:hover h4 {
  color: #2563eb;
}

/* Pedigree Grid */
.pedigree-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pedigree-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pedigree-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-primary);
}

.pedigree-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.pedigree-card p {
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* Window Footer Tabs */
.window-footer {
  padding: 14px 20px;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-tab-btn {
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.footer-tab-btn:hover {
  color: var(--ink-primary);
}

.footer-tab-btn.is-active {
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

/* Floating Right Side Dock */
.side-dock {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.side-dock a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.side-dock a:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-primary);
}

/* Footer */
.site-footer {
  width: 100%;
  max-width: 980px;
  margin: 60px auto 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.site-footer a {
  color: inherit;
  text-decoration: none;
  margin-left: 20px;
}

.site-footer a:hover {
  color: #ffffff;
}

/* Dynamic Tab Panes */
.tab-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tab-pane.is-hidden {
  display: none;
}

/* ================= Instant Search Dropdown Palette ================= */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 360px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 200;
  transform-origin: top center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-dropdown.is-hidden {
  display: none;
}

.search-group {
  margin-bottom: 6px;
}

.search-group:last-child {
  margin-bottom: 0;
}

.search-group-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.06em;
  padding: 6px 10px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 12px;
  border-radius: 9px;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-item:hover,
.search-item.is-selected {
  background: #f1f5f9;
}

.search-item.is-selected {
  outline: 1px solid #cbd5e1;
}

.search-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.search-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.search-item-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f0f9ff;
  color: #0284c7;
  white-space: nowrap;
}

.search-item-desc {
  font-size: 11px;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-highlight {
  background: rgba(254, 240, 138, 0.7);
  color: #854d0e;
  font-weight: 700;
  padding: 0 2px;
  border-radius: 2px;
}

.search-empty {
  padding: 24px 16px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.search-empty b {
  color: #0f172a;
}

/* Card Search Filtered State */
.is-search-hidden {
  display: none !important;
}

.card-search-highlight {
  animation: cardPulse 1.2s ease;
}

@keyframes cardPulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.2); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* ================= Upcoming Writing Card ================= */
.article-upcoming-card {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.95) 100%);
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 6px;
  transition: border-color 0.2s;
}

.article-upcoming-card:hover {
  border-color: #94a3b8;
}

.upcoming-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.upcoming-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.upcoming-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.05em;
}

.upcoming-title {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.upcoming-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* ================= Air Frosted Glass Modal ================= */
.air-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px;
}

.air-modal-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.air-modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 24px 26px;
  text-align: left;
  transform: scale(0.95) translateY(8px);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.air-modal-overlay.is-active .air-modal-dialog {
  transform: scale(1) translateY(0);
}

.air-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.air-modal-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.air-modal-close {
  background: #f1f5f9;
  border: none;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.air-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.air-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.contact-dot-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.air-modal-copybox {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.air-modal-copybox code {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.02em;
}

.air-modal-copy-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.air-modal-copy-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.air-modal-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 18px;
}

.air-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.air-modal-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #2563eb;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
  transition: background 0.15s ease;
}

.air-modal-btn-primary:hover {
  background: #1d4ed8;
}

.air-modal-btn-subtle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}

.air-modal-btn-subtle:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* ================= Global Air Toast ================= */
.air-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.air-toast.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #10b981;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

/* Contact Button Copied Feedback */
[data-contact-btn].is-copied {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

/* Responsive */
@media (max-width: 860px) {
  .window-body {
    grid-template-columns: 1fr;
  }
  .window-sidebar {
    border-right: 0;
    border-bottom: 1px solid #f1f5f9;
  }
  .window-topbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .window-search-container {
    order: 3;
    max-width: 100%;
    margin: 0;
    width: 100%;
  }
  .search-dropdown {
    min-width: 100%;
  }
  .pedigree-grid {
    grid-template-columns: 1fr;
  }
  .side-dock {
    display: none;
  }
}

@media (max-width: 960px) {
  .air-header-morph {
    padding: 0 20px;
  }
  .morph-nav {
    gap: 4px;
  }
  .morph-nav a {
    padding: 6px 10px;
    font-size: 13.5px;
  }
  .morph-btn-github {
    display: none;
  }
}

@media (max-width: 640px) {
  .air-header-morph {
    padding: 0 16px;
    height: 56px;
  }
  .morph-nav {
    display: none;
  }
  .morph-btn-github {
    display: none;
  }
  .hero-section {
    padding: 24px 16px 40px;
  }
  .hero-title {
    margin-bottom: 32px;
  }
  .window-actions {
    gap: 6px;
  }
  .site-footer {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .site-footer a {
    margin: 0 8px;
  }
}

/* ==========================================================================
   DYNAMIC LIVING SKY & DRIFTING CLOUDS (Air Official 1:1 System)
   ========================================================================== */
.sky-viewport {
  position: fixed;
  inset: 0;
  z-index: 0;
  transition: background 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  pointer-events: none;
}

/* 0. DAWN / SUNRISE MODE (🌄) */
body.theme-dawn .sky-viewport {
  background: linear-gradient(180deg, #c7dbf2 0%, #d8e6f8 35%, #f6e8e2 70%, #fde6d8 100%);
}
body.theme-dawn .cloud-billow {
  background: radial-gradient(ellipse at 50% 50%, #fffbf8 30%, rgba(255, 245, 235, 0.9) 58%, rgba(255, 255, 255, 0) 72%);
  filter: blur(20px);
  opacity: 0.92;
}
body.theme-dawn .sun-flare {
  background: radial-gradient(circle at 50% 30%, rgba(255, 235, 215, 0.6) 0%, rgba(255, 210, 180, 0.2) 45%, rgba(0, 0, 0, 0) 70%);
  opacity: 1;
}
body.theme-dawn {
  background-color: #c7dbf2;
}
body.theme-dawn .sky-gradient-mask {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(215, 230, 248, 0.1) 40%,
    rgba(246, 232, 226, 0.5) 75%,
    rgba(253, 230, 216, 0.9) 100%
  );
}

/* 1. DAYTIME MODE (☀️) */
body.theme-day .sky-viewport,
body:not(.theme-dawn):not(.theme-sunset):not(.theme-night) .sky-viewport {
  background: linear-gradient(180deg, #1d7af2 0%, #2b85fa 30%, #5ba2fd 65%, #8ec0ff 100%);
}
body.theme-day .cloud-billow,
body:not(.theme-dawn):not(.theme-sunset):not(.theme-night) .cloud-billow {
  background: radial-gradient(ellipse at 50% 50%, #ffffff 32%, rgba(255, 255, 255, 0.92) 58%, rgba(255, 255, 255, 0) 72%);
  filter: blur(20px);
  opacity: 0.96;
}
body.theme-day .sun-flare,
body:not(.theme-dawn):not(.theme-sunset):not(.theme-night) .sun-flare {
  background: radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.1) 45%, rgba(0, 0, 0, 0) 70%);
  opacity: 1;
}

/* 2. SUNSET / GOLDEN HOUR MODE (🌅) */
body.theme-sunset .sky-viewport {
  background: linear-gradient(180deg, #2a2455 0%, #6d335f 30%, #b84f56 55%, #df784b 75%, #f6b26b 100%);
}
body.theme-sunset .cloud-billow {
  background: radial-gradient(ellipse at 50% 50%, #ffe3d3 30%, rgba(255, 185, 160, 0.88) 58%, rgba(255, 255, 255, 0) 72%);
  filter: blur(20px);
  opacity: 0.88;
}
body.theme-sunset .sun-flare {
  background: radial-gradient(circle at 50% 65%, rgba(255, 178, 107, 0.65) 0%, rgba(220, 90, 80, 0.22) 40%, rgba(0, 0, 0, 0) 70%);
  opacity: 1;
}

/* 3. STARRY NIGHT MODE (🌙) */
body.theme-night .sky-viewport {
  background: linear-gradient(180deg, #050811 0%, #0a1122 35%, #0f1c36 70%, #152648 100%);
}
body.theme-night .cloud-billow {
  background: radial-gradient(ellipse at 50% 50%, #1e2c4a 30%, rgba(20, 32, 58, 0.75) 58%, rgba(0, 0, 0, 0) 72%);
  filter: blur(22px);
  opacity: 0.82;
}
body.theme-night .sun-flare {
  background: radial-gradient(circle at 75% 20%, rgba(220, 235, 255, 0.35) 0%, rgba(100, 160, 255, 0.08) 35%, rgba(0, 0, 0, 0) 65%);
  opacity: 1;
}

/* Base Cloud Billow Definitions & Physical Placements */
.cloud-billow {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  transition: background 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cloud-layer-back,
.cloud-layer-mid,
.cloud-layer-front {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sun-flare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.2s ease;
}

.billow-b1 { top: -10vh; left: -10vw; width: 75vw; height: 60vh; max-width: 950px; }
.billow-b2 { top: -12vh; right: -10vw; width: 75vw; height: 60vh; max-width: 950px; }
.billow-b3 { bottom: -18vh; left: 20vw; width: 80vw; height: 58vh; max-width: 1100px; }

.billow-m1 { top: 22vh; left: -15vw; width: 60vw; height: 52vh; max-width: 800px; }
.billow-m2 { top: 28vh; right: -15vw; width: 60vw; height: 52vh; max-width: 800px; }

.billow-f1 { bottom: -14vh; left: -10vw; width: 65vw; height: 50vh; max-width: 850px; }
.billow-f2 { bottom: -14vh; right: -10vw; width: 65vw; height: 50vh; max-width: 850px; }

/* CONTINUOUS DYNAMIC DRIFTING CLOUDS KEYFRAMES */
.cloud-layer-back {
  animation: driftBack 48s ease-in-out infinite alternate;
  will-change: transform;
}
.cloud-layer-mid {
  animation: driftMid 34s ease-in-out infinite alternate;
  will-change: transform;
}
.cloud-layer-front {
  animation: driftFront 26s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes driftBack {
  0% { transform: translate3d(-35px, 0, 0) scale(1); }
  50% { transform: translate3d(25px, -18px, 0) scale(1.03); }
  100% { transform: translate3d(45px, 12px, 0) scale(0.98); }
}
@keyframes driftMid {
  0% { transform: translate3d(45px, 0, 0) scale(1); }
  50% { transform: translate3d(-30px, 14px, 0) scale(1.025); }
  100% { transform: translate3d(-55px, -10px, 0) scale(0.97); }
}
@keyframes driftFront {
  0% { transform: translate3d(-25px, 0, 0) scale(1); }
  50% { transform: translate3d(35px, -12px, 0) scale(1.04); }
  100% { transform: translate3d(60px, 18px, 0) scale(0.99); }
}

/* ==========================================================================
   SCROLL-SCALING DYNAMIC AIR / GOTYOO LOGO
   ========================================================================== */
.hero-scroll-logo-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
  transform-origin: center top;
  will-change: transform, opacity;
  transition: transform 0.08s ease-out;
}

.hero-inflatable-logo {
  width: clamp(200px, 24vw, 320px);
  height: auto;
  fill: none;
  stroke: #ffffff;
  stroke-width: 74;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 15px 35px rgba(0, 45, 120, 0.35));
  transition: filter 0.3s ease;
}
body.theme-sunset .hero-inflatable-logo {
  filter: drop-shadow(0 15px 35px rgba(120, 30, 50, 0.45));
}
body.theme-night .hero-inflatable-logo {
  filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.7));
}

/* ==========================================================================
   RIGHT-SIDE 4-STATE TIME SWITCHER VERTICAL DOCK (Air Official 1:1)
   ========================================================================== */
.time-dock {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 9999px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.25);
  transition: background 0.3s, border-color 0.3s;
}

body.theme-night .time-dock {
  background: rgba(15, 25, 45, 0.65);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Smooth sliding white pill background */
.time-dock-slider {
  position: absolute;
  left: 6px;
  top: 6px;
  width: 38px;
  height: 38px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

.time-btn {
  position: relative;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.time-btn:hover {
  color: #ffffff;
  transform: scale(1.08);
}
.time-btn.is-active {
  color: #0f172a;
}

.time-dock-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  background: #f43f5e;
  color: #ffffff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.4);
  border: 2px solid #ffffff;
  pointer-events: none;
}

.time-dock-divider {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  margin: 2px 0;
}
body.theme-night .time-dock-divider {
  background: rgba(255, 255, 255, 0.2);
}

.time-btn--nav {
  font-size: 13px;
  opacity: 0.85;
}

/* ==========================================================================
   PROMPT CAPSULE & 3-CARD INTERACTIVE SHOWCASE (1:1 from Video Demo)
   ========================================================================== */
.hero-prompt-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto 34px;
  padding: 0 16px;
  box-sizing: border-box;
}

.prompt-capsule {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 36px -8px rgba(0, 50, 140, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
  border-radius: 9999px;
  padding: 12px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  width: auto;
  max-width: min(92vw, 840px);
  box-sizing: border-box;
  text-decoration: none;
  user-select: none;
}

.prompt-capsule:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 20px 45px -8px rgba(0, 50, 140, 0.35), 0 0 0 1.5px rgba(255, 255, 255, 0.45) inset;
}

.prompt-sparkle {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.prompt-text-wrapper {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  min-height: 20px;
  flex-shrink: 1;
  min-width: 0;
}

.prompt-text {
  white-space: nowrap;
  letter-spacing: -0.01em;
  font-size: 15px;
  line-height: 1.35;
}

.prompt-cursor {
  display: inline-block;
  width: 2px;
  height: 15px;
  background-color: #ffffff;
  margin-left: 2px;
  vertical-align: middle;
  border-radius: 1px;
  animation: promptCursorBlink 0.75s ease-in-out infinite;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.prompt-cursor.is-hidden {
  opacity: 0;
  animation: none;
}

@keyframes promptCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.prompt-arrow {
  font-size: 14px;
  line-height: 1;
  opacity: 0.85;
  transition: transform 0.25s ease, opacity 0.25s ease;
  flex-shrink: 0;
}

.prompt-capsule:hover .prompt-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
}

@media (max-width: 640px) {
  .prompt-capsule {
    padding: 10px 18px;
    gap: 8px;
    font-size: 13px;
  }
  .prompt-text {
    font-size: 13px;
  }
  .prompt-text-ruler {
    font-size: 13px;
  }
  .prompt-cursor {
    height: 13px;
  }
}

/* 3-Card Interactive Showcase */
.air-cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto 60px;
}

@media (max-width: 992px) {
  .air-cards-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.air-card-item {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 32px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 48px -12px rgba(0, 30, 80, 0.18);
  opacity: 0.75;
}

.air-card-item:hover {
  opacity: 0.92;
  transform: translateY(-4px);
}

.air-card-item.is-active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 64px -12px rgba(0, 40, 100, 0.32), 0 0 0 1.5px rgba(255, 255, 255, 0.8) inset;
  transform: translateY(-6px) scale(1.02);
}

.air-card-media {
  width: 100%;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.air-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.air-card-item:hover .air-card-img {
  transform: scale(1.03);
}

.air-card-caption {
  text-align: left;
}

.air-card-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.air-card-desc {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Signature Air Night Meadow Showcase */
.air-meadow-section {
  width: 100%;
  max-width: 1180px;
  margin: 70px auto 40px;
  padding: 0 20px;
  box-sizing: border-box;
}

.air-meadow-card {
  position: relative;
  width: 100%;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.45);
  background: #021226;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.meadow-bg-img {
  width: 100%;
  height: auto;
  min-height: 380px;
  max-height: 560px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.air-meadow-card:hover .meadow-bg-img {
  transform: scale(1.02);
}

.meadow-overlay-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 15, 38, 0.05) 0%, rgba(3, 15, 38, 0.75) 100%);
  pointer-events: none;
}

.meadow-content-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #ffffff;
  z-index: 2;
}

.meadow-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.meadow-title {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 850;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.meadow-subtitle {
  font-size: clamp(14px, 1.8vw, 17px);
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 24px;
  max-width: 640px;
  line-height: 1.5;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.meadow-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.meadow-btn-primary {
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}
.meadow-btn-primary:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.meadow-btn-subtle {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 9999px;
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.25s ease;
}
.meadow-btn-subtle:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .meadow-content-overlay {
    padding: 24px 20px;
  }
}
.showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 32px 64px -12px rgba(0, 40, 120, 0.32);
}

.showcase-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  filter: brightness(0.92);
}
.showcase-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  z-index: 1;
}
.showcase-card__content {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.glass-pill {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #0f172a;
  border-radius: 18px;
  padding: 14px;
}

.card-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.card-summary-text {
  font-size: 13px;
  line-height: 1.45;
  color: #1e293b;
  margin-bottom: 10px;
}
.card-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 8px;
  font-size: 12px;
}
.card-metric-tag {
  color: #0284c7;
}
.card-metric-status {
  font-size: 11px;
  color: #10b981;
  font-weight: 600;
}

/* Card 2: Stack preview */
.card-stack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.card-stack-header .card-kicker {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}
.card-action-link {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}
.asset-stack-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.asset-stack-item {
  background: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 13px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.asset-stack-item:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateX(3px);
}
.asset-icon {
  font-size: 15px;
}
.asset-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-size: 12px;
}
.asset-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 7px;
  border-radius: 6px;
}
.showcase-stack-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #1e293b;
}
.stack-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: dotPulse 2s infinite;
}
@keyframes dotPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Card 3: Canvas Tool */
.canvas-preview-box {
  height: 170px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
}
.canvas-dashed-frame {
  width: 140px;
  height: 120px;
  border: 2px dashed rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.canvas-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.canvas-dot.top-left { top: -4px; left: -4px; }
.canvas-dot.top-right { top: -4px; right: -4px; }
.canvas-dot.bottom-left { bottom: -4px; left: -4px; }
.canvas-dot.bottom-right { bottom: -4px; right: -4px; }
.canvas-center-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: 9999px;
  color: #ffffff;
}

.canvas-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aspect-chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.format-chip {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #0f172a;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.format-chip:hover {
  background: #ffffff;
  transform: translateY(-1px);
}
.format-chip.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}
.btn-canvas-generate {
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  background: #0f172a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
  transition: all 0.2s ease;
}
.btn-canvas-generate:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* Night mode card theme adaptation */
body.theme-night .workspace-window {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 70px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}
body.theme-night .window-topbar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
body.theme-night .window-title {
  color: #ffffff;
}
body.theme-night .window-sidebar {
  background: rgba(10, 16, 30, 0.85);
  border-right-color: rgba(255, 255, 255, 0.08);
}
body.theme-night .sidebar-btn {
  color: #cbd5e1;
}
body.theme-night .sidebar-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
body.theme-night .sidebar-btn.is-active {
  background: rgba(2, 132, 199, 0.2);
  color: #38bdf8;
}
body.theme-night .project-card,
body.theme-night .article-row,
body.theme-night .pedigree-card {
  background: rgba(30, 41, 59, 0.7);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}
body.theme-night .project-card:hover,
body.theme-night .pedigree-card:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: rgba(56, 189, 248, 0.4);
}
body.theme-night .project-card__title,
body.theme-night .article-title,
body.theme-night .pedigree-degree {
  color: #ffffff;
}
body.theme-night .project-card__desc,
body.theme-night .article-snippet,
body.theme-night .pedigree-focus {
  color: #94a3b8;
}
body.theme-night .window-search {
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
}
body.theme-night .window-search input {
  color: #ffffff;
}
body.theme-night .site-footer {
  color: #94a3b8;
  border-top-color: rgba(255, 255, 255, 0.12);
}
body.theme-night .site-footer a {
  color: #cbd5e1;
}

body.theme-night .prompt-capsule {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}
body.theme-night .prompt-capsule:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
}
body.theme-night .air-card-item {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.4);
}
body.theme-night .air-card-item.is-active {
  background: rgba(30, 41, 59, 0.65);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 28px 64px -12px rgba(0, 0, 0, 0.6), 0 0 0 1.5px rgba(255, 255, 255, 0.25) inset;
}

@media (max-width: 768px) {
  .time-dock {
    right: 8px;
    padding: 6px 4px;
    gap: 4px;
  }
  .time-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
}

