/* --- VARIABLES & RESET --- */
:root {
  /* Clean Dark Theme */
  --bg-dark: #09090b;
  --bg-card: #18181b;

  --primary: #89b4fa;
  --primary-hover: #b4befe;
  --accent: #a6e3a1;
  --yellow: #f9e2af;

  --text-main: #e4e4e7;
  --text-muted: #a1a1aa;

  --border: #27272a;
  --radius: 8px;

  --font-main:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --font-display: "Jersey 25", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", monospace;
}

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

html,
body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  background-image: url("background.svg");
  background-attachment: scroll;
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center top;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

code,
.cmd,
.hash,
.key {
  font-family: var(--font-mono);
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

ul {
  list-style: none;
}

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

/* --- UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.highlight-text {
  color: var(--primary);
  display: inline-block;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: default;
  padding: 0 4px;
  border-radius: 2px;
}

.highlight-text:hover {
  background: var(--primary);
  color: var(--bg-dark);
  transform: scale(1.05) rotate(-1.5deg);
  box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.1);
}

/* Staggered rotation: every second section's highlight rotates the other way */
section:nth-of-type(even) .highlight-text:hover {
  transform: scale(1.05) rotate(1.5deg);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  gap: 10px;
  font-family: var(--font-main);
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(137, 180, 250, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(137, 180, 250, 0.05);
}

/* Retro Button Style (Like Keys) */
.btn-retro {
  background: #27272a;
  color: var(--text-main);
  padding: 12px 24px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 4px 0 #000;
  border: 1px solid var(--border);
  transform: translateY(0);
  transition: all 0.1s ease;
  text-transform: uppercase;
  font-weight: bold;
}

.btn-retro:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #000;
  background: #313244;
  border-color: var(--text-main);
}

.btn-retro:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #000;
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
}

.btn-retro:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  transform: translateY(2px);
}

/* Retake Button */
.btn-retake {
  background: transparent;
  border: 2px solid var(--yellow);
  color: var(--yellow);
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  min-width: 100px;
}
.btn-retake:hover {
  background: rgba(249, 226, 175, 0.1);
}

/* --- FLOATING HEADER --- */
nav {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content; /* Shrink wrap content on desktop */
  max-width: 95vw;
  padding: 10px 30px; /* Slightly more horizontal padding */
  width: 900px;
  background: rgba(9, 9, 11, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-sizing: border-box;
}

nav.scrolled {
  top: 0;
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: rgba(9, 9, 11, 0.95);
  padding: 16px 40px;
}

.nav-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  width: auto; /* Let flex items define width in floating mode */
  padding: 0;
  max-width: 100%;
  margin: 0 auto;
}

/* Ensure nav-inner expands in scrolled mode */
nav.scrolled .nav-inner {
  width: 100%;
  max-width: 1200px; /* Use container max-width */
}

.logo {
  font-size: 1.8rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
  flex-shrink: 0;
}

.logo img {
  height: 28px;
  width: 28px;
}

.nav-links {
  display: flex;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 99px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

/* Ensure Download button in nav looks right (overrides generic nav link styles) */
.nav-links a.mobile-download-btn {
  background: var(--primary);
  color: var(--bg-dark);
  border: 1px solid var(--primary);
  opacity: 1;
}

.nav-links a.mobile-download-btn:hover {
  background: var(--primary-hover);
  color: var(--bg-dark);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(137, 180, 250, 0.4);
}

.nav-cta .btn {
  height: 38px;
  padding: 0 24px;
  font-size: 0.9rem;
  border-radius: 99px;
}

.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
}

/* --- HERO SECTION --- */
.hero {
  padding: 180px 20px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 90vh;
}

.hero-content {
  max-width: 800px;
  margin-bottom: 60px;
}

.hero-content h1 {
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 24px;
  font-weight: 400;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* Hero Keyboard Shortcut */
.hero-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.hero-shortcut-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-keys {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-keys .key {
  font-size: 1.1rem;
  padding: 10px 20px;
}

.key-plus {
  color: var(--text-muted);
  font-size: 1.2rem;
  font-weight: 300;
}

/* Hero Graphic */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 550px;
  background: #000;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: none;
  overflow: hidden;
}

.workflow-container {
  width: 100%;
  height: 100%;
  position: relative;
}

/* 0. DESKTOP BACKGROUND */
.desktop-screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #1e1e2e;
  padding: 30px;
  display: flex;
  font-family: var(--font-mono);
  font-size: 14px;
  color: #a6adc8;
}

.vscode-window {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.code-line {
  display: flex;
  line-height: 1.4;
  min-height: 1.4em;
}
.line-num {
  display: inline-block;
  color: #585b70;
  margin-right: 12px;
  width: 18px;
  text-align: right;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  line-height: inherit;
}
.kwd {
  color: #cba6f7;
}
.func {
  color: #89b4fa;
}
.str {
  color: #a6e3a1;
}
.obj {
  color: #f9e2af;
}
.comment {
  color: #6c7086;
  font-style: italic;
}

/* 1. CAPTURE OVERLAY */
.capture-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: anim-capture 14s infinite;
  z-index: 10;
}

.selection-box {
  position: absolute;
  top: 89px;
  left: 40px;
  border: 2px solid #89b4fa;
  background: rgba(137, 180, 250, 0.1);
  animation: anim-selection 14s infinite;
}

/* 2. APP WINDOW */
.app-window {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  background: #1e1e2e;
  border: 1px solid #45475a;
  border-radius: 12px;
  box-shadow: none;
  opacity: 0;
  animation: anim-window 14s infinite;
  overflow: hidden;
  z-index: 20;
  text-align: left;
}

.window-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #313244;
}

.window-title {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  color: #cdd6f4;
  text-transform: none;
  letter-spacing: normal;
}
.window-profile {
  margin-left: auto;
  color: #89b4fa;
  font-size: 12px;
  background: #313244;
  padding: 4px 8px;
  border-radius: 4px;
}

.window-body {
  padding: 24px;
}
.window-prompt {
  font-size: 14px;
  color: #a6adc8;
  margin-bottom: 12px;
}
.preview-area {
  background: #11111b;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #313244;
  overflow: hidden;
  height: 100%;
  max-height: 140px;
}

/* TYPEWRITER SYSTEM */
.fake-input {
  height: 44px;
  background: #313244;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #cdd6f4;
  font-size: 14px;
  position: relative;
}

.typing-text {
  --chars: 15; /* Default char count */
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--primary);
  width: 0;
  display: inline-block;
  font-family: var(--font-mono); /* Required for accurate ch width */
  animation:
    typing-hold 6s steps(var(--chars), end) infinite,
    blink-caret 0.75s step-end infinite;
  animation-fill-mode: both;
}

.app-window .typing-text {
  animation:
    typing-window 14s steps(var(--chars), end) infinite,
    blink-caret 0.75s step-end infinite;
}

.typing-once {
  --chars: 15;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--primary);
  width: 0;
  display: inline-block;
  font-family: var(--font-mono);
  animation:
    typing-once 2s steps(var(--chars), end) forwards,
    blink-caret 0.75s step-end infinite;
}

@keyframes typing-hold {
  0%,
  10% {
    width: 0;
  }
  40%,
  100% {
    width: calc(var(--chars) * 1ch);
  }
}

@keyframes typing-window {
  0%,
  31% {
    width: 0;
  }
  45%,
  100% {
    width: calc(var(--chars) * 1ch);
  }
}

@keyframes typing-once {
  from {
    width: 0;
  }
  to {
    width: calc(var(--chars) * 1ch);
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: var(--primary);
  }
}

.window-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}
.btn-submit {
  background: #89b4fa;
  color: #1e1e2e;
  border: 2px solid transparent;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  min-width: 100px;
}

/* 3. TRELLO BOARD */
.trello-board {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    /* 1. CRT Scanline Texture */
    repeating-linear-gradient(
      to bottom,
      transparent 0px,
      transparent 2px,
      rgba(0, 0, 0, 0.2) 2px,
      rgba(0, 0, 0, 0.2) 4px
    ),
    /* 2. Ocean (Foreground, covers bottom half) */
    linear-gradient(to bottom,
      transparent 0%, transparent 50%,
      #5e2048 50%, #5e2048 52%,     /* Horizon Reflection Highlight */
      #3f1839 52%, #3f1839 60%,     /* Mid Ocean */
      #241226 60%, #241226 80%,     /* Dark Ocean */
      #0f0814 80%, #0f0814 100%     /* Deepest Abyss */
    ),
    /* 3. Sun (Middle Layer) - REMOVED */
    /* 4. Sky (Background Layer) */
    linear-gradient(to bottom,
      #0f0814 0%, #0f0814 20%,      /* Night Sky */
      #241226 20%, #241226 35%,     /* Deep Purple */
      #5e2048 35%, #5e2048 45%,     /* Magenta */
      #d44e52 45%, #d44e52 50%,     /* Sunset Red/Orange */
      #d44e52 100%
    );
  padding: 30px;
  display: flex;
  gap: 20px;
  transform: translateY(100%);
  animation: anim-board 14s infinite;
  z-index: 30;
}

.board-column {
  width: 240px;
  background: rgba(15, 8, 20, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.col-header {
  color: #cdd6f4;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  text-transform: none;
  letter-spacing: normal;
  opacity: 0.9;
}
.board-card {
  background: rgba(49, 50, 68, 0.6);
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #cdd6f4;
  font-family: var(--font-main);
  text-align: left;
}
.board-card.new-item {
  animation: anim-card-appear 14s infinite;
}
.card-label {
  height: 8px;
  width: 40px;
  background: #eb5a46;
  border-radius: 4px;
  margin-bottom: 8px;
}
.card-title {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 500;
  text-align: left;
}
.card-image {
  height: 45px;
  background: #1e1e2e;
  border-radius: 3px;
  margin-top: 8px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.card-image .code-snippet {
  font-size: 5px;
  line-height: 1.2;
}

/* ANIMATION KEYFRAMES */
@keyframes anim-capture {
  0%,
  25% {
    opacity: 1;
  }
  28%,
  100% {
    opacity: 0;
  }
}
@keyframes anim-selection {
  0% {
    width: 0;
    height: 0;
  }
  15%,
  25% {
    width: 500px;
    height: 59px;
    opacity: 1;
  }
  26%,
  100% {
    opacity: 0;
  }
}
@keyframes anim-window {
  0%,
  28% {
    opacity: 0;
    transform: translate(-50%, -45%) scale(0.95);
  }
  32%,
  65% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  68%,
  100% {
    opacity: 0;
    transform: translate(-50%, -55%) scale(0.95);
  }
}
@keyframes anim-window-mobile {
  0%,
  28% {
    opacity: 0;
    transform: translate(-50%, -40%) scale(0.95);
  }
  32%,
  65% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  68%,
  100% {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.95);
  }
}
@keyframes anim-cursor {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes anim-board {
  0%,
  68% {
    transform: translateY(100%);
  }
  72%,
  95% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100%);
  }
}
@keyframes anim-card-appear {
  0%,
  75% {
    opacity: 0;
    transform: translateY(-10px);
  }
  78%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes anim-submit-press {
  0%,
  55% {
    transform: scale(1);
    background-color: #89b4fa;
  }
  58% {
    transform: scale(0.92);
    background-color: #b4befe;
    box-shadow: 0 0 10px rgba(137, 180, 250, 0.6);
  }
  61%,
  100% {
    transform: scale(1);
    background-color: #89b4fa;
  }
}

.app-window .btn-submit {
  animation: anim-submit-press 14s infinite;
}

/* --- TEAM SHOWCASE: OPERATOR CARDS --- */
.team-section {
  padding: 140px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.dev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  justify-content: center;
  margin-top: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.dev-card {
  position: relative;
  background: linear-gradient(145deg, rgba(30, 30, 46, 0.8), rgba(20, 20, 30, 0.9));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2px; /* For inner border effect */
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
}

.dev-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 
              0 0 20px -10px var(--accent);
}

.dev-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.dev-card:hover::before {
  opacity: 1;
}

.dev-content {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 30px;
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header & Avatar */
.dev-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dev-avatar-container {
  position: relative;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.dev-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-dark);
  position: relative;
  z-index: 2;
  background: var(--bg-dark);
}

.avatar-ring {
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  border: 1px dashed var(--text-muted);
  opacity: 0.3;
  transition: all 0.5s ease;
  z-index: 1;
}

.dev-card:hover .avatar-ring {
  border-color: var(--accent);
  opacity: 1;
  transform: rotate(180deg);
}

.dev-identity h3 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--text-main);
  line-height: 1;
}

.dev-role {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin-top: 6px;
  display: block;
  opacity: 0.8;
}

/* Stats */
.dev-stats {
  display: flex;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid var(--border);
  justify-content: space-around;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-main);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Links */
.dev-links {
  margin-top: auto;
}

.dev-links .btn-retro {
  width: 100%;
  text-align: center;
  justify-content: center;
  font-size: 0.85rem;
  padding: 10px;
}

/* Deco Corners */
.card-deco {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent);
  transition: all 0.3s;
  opacity: 0.5;
  z-index: 5;
}

.dev-card:hover .card-deco {
  opacity: 1;
  width: 15px;
  height: 15px;
}

.deco-tl { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.deco-tr { top: 10px; right: 10px; border-left: none; border-bottom: none; }
.deco-bl { bottom: 10px; left: 10px; border-right: none; border-top: none; }
.deco-br { bottom: 10px; right: 10px; border-left: none; border-top: none; }

/* Responsive Grid Fix */
@media (max-width: 768px) {
  .dev-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
}

/* --- SECTIONS (ZIG-ZAG) --- */
.feature-section {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}
.feature-content {
  display: flex;
  align-items: center;
  gap: 80px;
}
.feature-text {
  flex: 1;
}
.feature-text h2 {
  font-size: 3rem;
  margin-bottom: 24px;
}
.feature-text p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 30px;
}
.shortcut-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

code {
  font-family: var(--font-mono);
  background: #27272a;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  white-space: nowrap; /* Prevent line breaks */
  font-size: 0.95em;
  font-weight: 600;
}

/* RETRO KEY STYLING */
.key {
  background: #27272a;
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
  display: inline-block;
  min-width: 32px;
  text-align: center;
  box-shadow: 0 4px 0 #000;
  border: 1px solid var(--border);
  transform: translateY(-2px);
  transition: all 0.1s ease;
}
.key:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 0 #000;
  background: #313244;
}
.key:active,
.key.pressed {
  transform: translateY(2px);
  box-shadow: 0 0 0 #000;
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
}

/* Highlighted Tab Key - Yellow by default */
.key.key-highlighted {
  background: var(--yellow);
  color: var(--bg-dark);
  border-color: var(--yellow);
  box-shadow:
    0 4px 0 #b45309,
    0 0 12px rgba(249, 226, 175, 0.4);
}

.key.key-highlighted:hover {
  background: #fef3c7;
  border-color: #fef3c7;
  box-shadow:
    0 5px 0 #b45309,
    0 0 16px rgba(249, 226, 175, 0.5);
}

/* Blue when pressed or captured */
.key.key-highlighted:active,
.key.key-highlighted.pressed,
.key.key-highlighted.captured {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
  box-shadow:
    0 0 0 #1e40af,
    0 0 12px rgba(137, 180, 250, 0.5);
  transform: translateY(2px);
}

/* Browser-only hint for shortcut */
.shortcut-hint-hoverable {
  position: relative;
}

/* Expanded hover area (400% wider) */
.shortcut-hint-hoverable::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -100%;
  right: -200%;
  bottom: -40px;
  pointer-events: auto;
}

.browser-only-hint {
  position: absolute;
  top: -24px;
  right: -120px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--yellow);
  white-space: nowrap;
  transform: rotate(8deg);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.shortcut-hint-hoverable:hover .browser-only-hint {
  opacity: 1;
  transform: rotate(8deg) translateY(-2px);
}

.feature-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ZIG-ZAG VARIATIONS */
.zigzag-left {
  flex-direction: row-reverse;
}
.zigzag-right {
  flex-direction: row;
}

.visual-caption {
  margin-top: 30px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  opacity: 0.8;
  font-family: var(--font-mono);
}

/* Static Windows */
.app-window-static,
.selector-window,
.editor-window-mini {
  width: 100%;
  max-width: 400px;
  background: #1e1e2e;
  border-radius: 12px;
  box-shadow: none;
  position: relative;
  z-index: 10;
}

.app-window-static {
  border: 1px solid #45475a;
  overflow: hidden;
}
.selector-window {
  border: 1px solid #45475a;
  padding: 20px;
}
.editor-window-mini {
  border: 1px solid #45475a;
  overflow: hidden;
}

/* Profile Items */
.profile-list-static {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.profile-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  background: #262637;
  border: 1px solid transparent;
  gap: 14px;
  transition: 0.2s;
}
.profile-item.selected {
  background: #313244;
  border-color: #89b4fa;
  box-shadow: 0 0 10px rgba(137, 180, 250, 0.2);
}
.p-item-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #45475a;
  border-radius: 6px;
  font-weight: bold;
}

/* Switch Indicator (Hand) */
.switch-indicator {
  margin-top: 20px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s;
}
.switch-indicator.flash {
  opacity: 1;
  transform: translateY(0);
}

.switch-hint-pop {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: scale(0.8);
  font-weight: 500;
}

.switch-hint-pop.active {
  opacity: 1;
  color: var(--primary);
  transform: scale(1);
}

/* --- HOW IT WORKS --- */
.steps {
  padding: 140px 0;
  background: #0b0b0f;
  border-top: 1px solid var(--border);
}
.section-header {
  text-align: center;
  margin-bottom: 80px;
}
.section-header h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step-card {
  padding: 40px 30px;
  border-left: 2px solid var(--border);
  transition: 0.2s;
}
.step-card:hover {
  border-left-color: var(--primary);
  padding-left: 35px;
  background: rgba(255, 255, 255, 0.02);
}
.step-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 24px;
}
.step-card h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.step-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* --- ADAPTERS (RETRO) --- */
.adapters-section {
  padding: 140px 0;
}
.adapter-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 60px;
}
.adapter-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: 0.1s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 4px 4px 0 var(--border);
}
.adapter-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--primary);
  border-color: var(--primary);
  transition-delay: 0s !important; /* FIX HOVER DELAY */
}
.adapter-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  border: 2px solid rgba(0, 0, 0, 0.1);
}
.adapter-card h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
  text-transform: uppercase;
}

/* --- LOCAL MODE --- */
.local-mode {
  padding: 140px 0;
  border-top: 1px solid var(--border);
}
.local-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.local-text p {
  margin-bottom: 40px;
} /* Added margin */

/* --- ARC VISUALIZATION --- */
.arc-images-container {
  position: relative;
  height: 250px; /* Space for the arc */
  width: 100%;
  max-width: 500px;
  margin: 0 auto -20px; /* Negative margin to overlap/connect with terminal */
  perspective: 1000px;
  pointer-events: none;
}

.arc-img {
  position: absolute;
  width: 200px;
  height: 130px;
  border-radius: 8px;
  background: #1e1e2e;
  overflow: hidden;
  transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: bottom center;
  left: 50%; /* Center anchor for JS calculation */
  bottom: 40px; /* Base bottom */
  /* Initial state will be set by JS */
}

.arc-img-inner {
  width: 100%;
  height: 100%;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-code {
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  width: 100%;
}

/* Hover States (controlled by JS classes) */
.arc-img.active {
  z-index: 100;
  box-shadow: 0 0 30px var(--primary);
  border: 2px solid var(--primary);
}

/* Interactive File Rows */
.file-row {
  cursor: pointer;
  transition: all 0.2s;
  color: #cdd6f4;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block; /* Ensure padding works nicely */
  width: 100%;
}
.file-row:hover {
  color: var(--primary);
  background: rgba(137, 180, 250, 0.1);
}

/* RETRO FEATURE LIST */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feature-list li {
  background: var(--bg-card);
  border: 2px solid var(--border);
  padding: 20px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--text-main);
  font-family: var(--font-mono);
  box-shadow: 4px 4px 0 var(--border);
  transition: 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.feature-list li:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--primary);
  border-color: var(--primary);
  background: #1e1e2e;
}
.feature-list i {
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 4px;
}
.feature-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

/* --- SUPPORT & DOWNLOAD --- */
.support-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 60px;
  flex-wrap: wrap;
}
.support-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  width: 360px;
  text-align: left;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 4px 4px 0 var(--border);
}
.support-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--accent);
  border-color: var(--accent);
}
.s-icon {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.support-card h3 {
  font-size: 1.8rem;
}
.support-card p {
  font-size: 1.05rem;
  line-height: 1.6;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 80px;
}
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  transition: 0.2s;
}
.download-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}
.download-card i {
  margin-bottom: 24px;
  color: var(--text-main);
}
.download-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.hash {
  margin-top: 20px;
  display: inline-block;
}

/* --- FOOTER --- */
footer {
  padding: 100px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* --- ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 {
  transition-delay: 0.1s;
}
.delay-200 {
  transition-delay: 0.2s;
}
.delay-300 {
  transition-delay: 0.3s;
}

/* --- RESPONSIVE --- */

@media (max-width: 1000px) {
  .team-name {
    font-size: 5rem;
  }
}

@media (max-width: 1100px) {
  nav {
    max-width: 95%;
    width: 700px;
    padding: 10px 16px;
  }
  .nav-links {
    gap: 4px;
  }
  .nav-links a {
    font-size: 0.82rem;
    padding: 6px 10px;
  }
  .nav-cta .btn {
    padding: 0 16px;
    font-size: 0.82rem;
  }
  .logo {
    font-size: 1.6rem;
  }
  .nav-inner {
    gap: 12px;
  }
}

@media (max-width: 900px) {
  .hide-mobile {
    display: none !important;
  }

  #mobile-menu-btn {
    display: block !important;
  }

  /* Mobile Nav: Top by default */
  nav {
    position: fixed;
    top: 20px; /* Start at top */
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(9, 9, 11, 0.9);
    padding: 10px 20px;
    justify-content: space-between;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-sizing: border-box;
  }

  /* Mobile Nav Scrolled: Stays at Top */
  nav.scrolled {
    top: 20px;
    bottom: auto;
    width: 90%;
    max-width: 400px;
    border-radius: 99px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
  }

  /* Adjust inner container */
  .nav-inner {
    justify-content: space-between;
    width: 100%;
  }

  /* Navigation Menu: Opens DOWNWARDS */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; /* Pop down */
    bottom: auto;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
    background: #09090b;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 20px;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px; /* Gap from nav */
    margin-bottom: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .hide-on-mobile {
    display: none !important;
  }

  /* Style the download button inside mobile menu */
  .nav-links .mobile-download-btn {
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }

  /* Navigation Menu: Opens DOWNWARDS when nav is at top */
  nav.scrolled .nav-links {
    top: 100%; /* Pop down */
    bottom: auto;
    margin-top: 14px;
    margin-bottom: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    display: flex;
  }

  /* Hero Mobile */
  .hero {
    padding: 60px 20px;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically */
    align-items: center; /* Center horizontally */
    text-align: center;
  }

  .hero-content {
    margin: 0;
    width: 100%;
  }

  .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-visual {
    display: none !important; /* Skipping the first animation section in the hero on phone */
  }

  .visual-caption {
    margin-top: 12px; /* Fixed big gap between animation and caption */
  }

  .reveal {
    transform: none !important; /* Disable vertical reveal translation on mobile */
    transition: opacity 0.6s ease !important;
  }

  /* Team Section Mobile Fixes - Static Cards */
  .team-split {
    margin-top: 100px;
    padding: 0 20px; /* Added horizontal margin/padding for mobile */
    flex-direction: column;
    height: auto;
    gap: 40px; /* Gap between the two profile cards */
    border: none;
    background: transparent;
  }

  .team-side {
    width: 100%;
    height: auto;
    min-height: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #0a0a0f;
    overflow: hidden;
    padding: 30px 0;
  }

  .team-name {
    display: none !important; /* Hide the giant background name on mobile */
  }

  .team-split::after {
    display: none;
  }

  .slide-panel {
    position: relative;
    width: 100%;
    height: auto;
    transform: none !important;
    opacity: 1 !important;
    display: block !important;
    background: transparent;
    box-shadow: none;
    pointer-events: auto;
    transition: none !important;
  }

  .team-side.left .slide-panel,
  .team-side.right .slide-panel {
    border: none;
    transform: none !important;
    left: auto;
    right: auto;
  }

  .panel-content {
    transform: none !important;
    width: 100%;
    padding: 0 20px;
    max-width: 100%;
    transition: none !important;
  }

  .panel-header {
    gap: 20px;
    margin-bottom: 20px;
  }

  .panel-header h3 {
    font-size: 2.2rem;
  }
  .panel-header img {
    width: 70px;
    height: 70px;
    border-width: 2px;
  }
  .panel-header span {
    font-size: 1rem;
  }

  .panel-stats {
    padding: 15px;
    gap: 15px;
    margin-bottom: 20px;
  }

  .p-stat strong {
    font-size: 1.8rem;
  }

  .team-side:hover .team-name {
    display: none !important;
  }
  .team-side:hover .slide-panel {
    transform: none !important;
  }
  .team-side:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
  }
  .team-side.right:hover {
    border-color: var(--accent);
  }

  /* General Content Mobile */
  .local-content,
  .feature-content {
    display: flex;
    flex-direction: column; /* Changed to standard column */
    text-align: center;
    align-items: center;
    width: 100%;
  }

  .local-visual,
  .feature-visual {
    order: -1; /* Ensure visual is at the top */
    width: 100%;
    margin-bottom: 20px;
  }

  /* Hero Animations Mobile Scale */
  .app-window {
    width: 95%;
    max-width: 380px;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50%; /* Center it better */
    min-height: auto; /* Allow auto height */
    height: auto;
    font-size: 0.85em;
    animation: anim-window-mobile 14s infinite;
  }

  /* Adjust animation to not go too low/high */
  @keyframes anim-window-mobile {
    0%,
    28% {
      opacity: 0;
      transform: translate(-50%, -40%) scale(0.95);
    }
    32%,
    65% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
    68%,
    100% {
      opacity: 0;
      transform: translate(-50%, -60%) scale(0.95);
    }
  }

  .trello-board {
    padding: 15px;
    gap: 10px;
    overflow: hidden; /* Prevent scroll inside simulation */
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
  }

  .board-column {
    flex: 1 1 45%;
    width: auto;
    min-width: 0;
  }

  .board-card {
    padding: 8px;
  }

  .feature-section {
    padding: 80px 0;
  }

  .feature-content {
    gap: 20px;
  }

  .local-content {
    gap: 40px;
  }

  .feature-text h2 {
    font-size: 2.2rem;
    margin-bottom: 16px;
  }

  .feature-text p {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .step-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .step-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 30px;
  }
  .zigzag-left,
  .zigzag-right {
    flex-direction: column;
  }

  .section-header h2 {
    font-size: 2.5rem;
  }

  /* Updates Window Mobile */
  .updates-window {
    width: 95% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: 60px !important;
    max-height: 80vh;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .profile-selector {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    margin: 0;
    box-sizing: border-box;
    transform: translateY(-50%) scale(0.95);
  }

  .profile-selector.active {
    transform: translateY(-50%) scale(1);
  }

  .sim-window-fixed {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    margin: 0;
    box-sizing: border-box;
    transform: translateY(-50%) scale(0.95);
  }

  .sim-window-fixed.active {
    transform: translateY(-50%) scale(1);
  }

  .captures-row {
    flex-direction: column;
  }

  .updates-column.shortcuts-row {
    display: none; /* Hide shortcuts on mobile to save space */
  }

  /* Show Mobile Test Button */
  #mobile-test-capture {
    display: flex !important;
  }

  /* Disable Dragging Visuals on Mobile */
  .updates-header {
    cursor: default !important;
  }
}

@media (max-width: 480px) {
  /* Smaller mobile adjustments */
  .hero-visual {
    height: 250px;
  }
  .desktop-screen {
    transform: translateX(-50%) scale(0.5);
  }
  .capture-overlay {
    transform: translateX(-50%) scale(0.5);
  }
  .trello-board {
    flex-direction: column;
    align-content: stretch;
  }

  .board-column {
    flex: 1 1 auto;
    width: 100%;
  }

  .app-window-static,
  .selector-window,
  .editor-window-mini {
    width: 95% !important;
    max-width: 400px !important;
    margin: 10px 0 !important; /* Let flex parent center it */
    left: auto !important;
    top: auto !important;
    transform: none !important;
    border-radius: 12px !important;
    overflow: hidden !important; /* Ensure content stays inside */
  }

  .profile-selector {
    top: 50% !important;
    transform: translate(-50%, -50%) scale(1) !important;
    width: 95%;
    max-width: 400px;
    left: 50%;
    margin: 0;
    box-sizing: border-box;
  }

  .sim-window-fixed {
    width: 95%;
    max-width: 400px;
    left: 50%;
    margin: 0;
    box-sizing: border-box;
    transform: translate(-50%, -50%) scale(0.95);
  }

  /* Ensure container padding doesn't break layout */
  .container {
    padding: 0 15px;
  }

  /* Hide complex simulation hints on very small screens */
  .sim-hint {
    display: none;
  }
}

/* --- SIMULATED CAPTURE V2 --- */
.sim-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3); /* Dimmed */
  z-index: 999999;
  cursor: none; /* Hide default cursor */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease-out;
}

.sim-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Crosshair Lines */
.sim-crosshair-line {
  position: fixed;
  background: none;
  pointer-events: none;
  z-index: 1000000;
  display: none; /* Hidden until active */
}

.sim-overlay.active .sim-crosshair-line {
  display: block;
}

.h-line {
  height: 0;
  width: 100%;
  left: 0;
  top: 0;
  border-top: 1px dotted var(--primary);
}
.v-line {
  width: 0;
  height: 100%;
  top: 0;
  left: 0;
  border-left: 1px dotted var(--primary);
}

.sim-crosshair-center {
  position: fixed;
  width: 12px;
  height: 12px;
  pointer-events: none;
  z-index: 1000002;
  display: none;
}

.sim-overlay.active .sim-crosshair-center {
  display: block;
}

.sim-crosshair-center::before,
.sim-crosshair-center::after {
  content: "";
  position: absolute;
  background: var(--primary);
}

.sim-crosshair-center::before {
  top: 50%;
  left: -6px;
  right: -6px;
  height: 1px;
  transform: translateY(-50%);
}

.sim-crosshair-center::after {
  left: 50%;
  top: -6px;
  bottom: -6px;
  width: 1px;
  transform: translateX(-50%);
}

/* Selection Rect */
.sim-selection-rect {
  position: fixed;
  border: 1px solid var(--primary);
  background-color: rgba(137, 180, 250, 0.1);
  display: none;
  pointer-events: none;
  z-index: 1000001; /* Above crosshair overlay */
}

.sim-dim-size {
  position: absolute;
  bottom: -25px;
  right: 0;
  background: var(--primary);
  color: #000;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 2px;
  font-weight: bold;
}

.sim-hint {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-main);
  font-size: 14px;
  pointer-events: none;
}

/* Hidden Window */
.sim-window-fixed {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999999;
  box-shadow: none;
}

.sim-window-fixed.active {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* --- UPDATES NAV BUTTON --- */
.updates-nav-btn {
  position: relative;
}

.updates-nav-btn::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: #a6e3a1;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

/* --- UPDATES WINDOW (Trello-style Board) --- */
.updates-window {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  width: 720px;
  max-width: 95%;
  background: linear-gradient(135deg, #1e1e2e 0%, #181825 100%);
  border: 1px solid #313244;
  border-radius: 12px;
  box-shadow: none;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.updates-window.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

/* When being dragged or already positioned */
.updates-window.dragging,
.updates-window.positioned {
  transition: opacity 0.3s ease;
  transform: none !important;
}

/* Header (Draggable) */
.updates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid #313244;
  cursor: grab;
  user-select: none;
}

.updates-header:active {
  cursor: grabbing;
}

.updates-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #cdd6f4;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.updates-title i {
  color: var(--primary);
  font-size: 0.95rem;
}

.updates-close {
  background: transparent;
  border: none;
  color: #6c7086;
  font-size: 1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.updates-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #cdd6f4;
}

/* Board Container */
.updates-board {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  max-height: 520px;
}

/* Captures Row (horizontal columns) */
.captures-row {
  display: flex;
  gap: 12px;
}

/* Columns */
.updates-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.updates-column.capture-column {
  flex: 1;
  min-width: 0;
}

/* Shortcuts row (horizontal cards) */
.updates-column.shortcuts-row {
  flex-direction: row;
  flex-wrap: wrap;
}

.updates-column.shortcuts-row .updates-col-header {
  width: 100%;
}

.updates-column.shortcuts-row .updates-card {
  flex: 1;
  min-width: 150px;
}

.updates-column.shortcuts-row .card-shortcut {
  margin-top: 8px;
  padding-top: 8px;
}

.updates-col-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  color: #cdd6f4;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  border: 1px solid #313244;
}

.col-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Cards */
.updates-card {
  background: #262637;
  border: 1px solid #313244;
  border-radius: 8px;
  padding: 12px;
  transition: all 0.2s ease;
}

.updates-card:hover {
  border-color: #45475a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.updates-card.highlight-card {
  border-color: #a6e3a1;
  background: linear-gradient(
    135deg,
    rgba(166, 227, 161, 0.08) 0%,
    #262637 100%
  );
}

.updates-card.dimmed {
  opacity: 0.6;
}

.updates-card.dimmed:hover {
  opacity: 0.8;
}

.card-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 3px;
  color: #1e1e2e;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.card-content h4 {
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  color: #cdd6f4;
  margin-bottom: 4px;
  text-transform: none;
  letter-spacing: normal;
}

.card-content p {
  font-size: 0.75rem;
  color: #a6adc8;
  line-height: 1.4;
  margin: 0;
}

.card-content code {
  font-size: 0.7rem;
  padding: 1px 4px;
}

.card-shortcut {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #313244;
}

.key-mini {
  background: #1e1e2e;
  color: #cdd6f4;
  padding: 3px 8px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  border: 1px solid #45475a;
  box-shadow: 0 2px 0 #000;
  transition: all 0.1s ease;
}

.key-mini.pressed {
  transform: translateY(2px);
  box-shadow: 0 0 0 #000;
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
}

.try-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.try-list li {
  font-size: 0.7rem;
  color: #a6adc8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.try-list li code {
  font-size: 0.65rem;
}

/* Capture Card (Dynamic) */
.capture-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: cardSlideIn 0.3s ease-out;
}

.capture-card.updating {
  animation: cardPulse 0.6s ease-in-out;
}

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

@keyframes cardPulse {
  0%,
  100% {
    border-color: #313244;
  }
  50% {
    border-color: #fab387;
    box-shadow: 0 0 12px rgba(250, 179, 135, 0.3);
  }
}

.capture-thumb {
  width: 60px;
  height: 40px;
  border-radius: 4px;
  background: #1e1e2e;
  border: 1px solid #45475a;
  overflow: hidden;
  flex-shrink: 0;
}

.capture-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capture-info {
  flex: 1;
  min-width: 0;
}

.capture-info .capture-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cdd6f4;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.capture-info .capture-time {
  font-size: 0.65rem;
  color: #6c7086;
}

.capture-info .capture-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  color: #a6e3a1;
  margin-top: 4px;
}

.capture-info .capture-status.updated {
  color: #fab387;
}

.capture-info .capture-status i {
  font-size: 0.55rem;
}

/* Empty state */
.captures-empty {
  text-align: center;
  padding: 16px;
  color: #6c7086;
  font-size: 0.75rem;
  font-style: italic;
}

/* Local capture card with upload button */
.capture-card.local-card {
  flex-direction: column;
  gap: 8px;
}

.capture-card.local-card .capture-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.capture-upload-btn {
  width: 100%;
  padding: 6px 10px;
  background: #313244;
  border: 1px solid #45475a;
  border-radius: 6px;
  color: #cdd6f4;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.capture-upload-btn:hover {
  background: #89b4fa;
  border-color: #89b4fa;
  color: #1e1e2e;
}

.capture-upload-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.capture-upload-btn i {
  font-size: 0.65rem;
}

/* Profile badge on capture card */
.capture-profile-badge {
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  margin-left: auto;
}

.capture-profile-badge.trello {
  background: rgba(0, 121, 191, 0.2);
  color: #0079bf;
}

.capture-profile-badge.jira {
  background: rgba(0, 82, 204, 0.2);
  color: #89b4fa;
}

/* Profile switch hint during capture */
.sim-profile-hint {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #313244;
  padding: 10px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-main);
  font-size: 13px;
  color: #cdd6f4;
  z-index: 1000002;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.sim-profile-hint.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sim-profile-hint .profile-icon {
  font-size: 16px;
}

.sim-profile-hint .profile-icon.none {
  color: #6c7086;
}
.sim-profile-hint .profile-icon.trello {
  color: #0079bf;
}
.sim-profile-hint .profile-icon.jira {
  color: #89b4fa;
}

.sim-profile-hint .hint-keys {
  display: flex;
  gap: 4px;
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid #45475a;
}

.sim-profile-hint .hint-keys .key-mini {
  font-size: 9px;
  padding: 2px 6px;
}

/* --- GLOBAL PROFILE SELECTOR (Ctrl+Alt+P) --- */
.profile-selector {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: linear-gradient(135deg, #1e1e2e 0%, #181825 100%);
  border: 1px solid #313244;
  border-radius: 12px;
  padding: 20px;
  min-width: 280px;
  box-shadow: none;
  z-index: 1000003;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.profile-selector.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.profile-selector-header {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #cdd6f4;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.profile-selector-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-selector-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #262637;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.profile-selector-item:hover {
  background: #313244;
  border-color: #45475a;
}

.profile-selector-item.selected {
  background: #313244;
  border-color: #89b4fa;
  box-shadow: 0 0 12px rgba(137, 180, 250, 0.2);
}

.profile-selector-item.focused {
  border-color: #f9e2af;
  background: #313244;
}

.profile-selector-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 6px;
}

.profile-selector-icon.none {
  background: #45475a;
  color: #cdd6f4;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 16px;
}

