/* Homepage-only layout; typography and glass surfaces inherit the toolkit theme. */
:root {
  --cyan: #22d3ee;
}

.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.cyan { color: var(--cyan); }
.blue { color: #60a5fa; }
.amber { color: #fbbf24; }
.positive { color: #34d399; }
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Hero Section */
.hero {
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  overflow: hidden;
  position: relative;
  background: linear-gradient(105deg, #0f172a 25%, #0b1b2e 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-copy {
  padding: 34px 36px;
  z-index: 1;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 600;
  color: #67e8f9;
}

.line {
  display: none;
}

.hero h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -1.4px;
  font-weight: 700;
  margin: 16px 0 12px;
  color: #f8fafc;
}

.hero-copy > p {
  max-width: 380px;
  font-size: 12px;
  line-height: 1.7;
  color: #94a3b8;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.hero-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  touch-action: manipulation;
}

.hero-actions .button:active {
  transform: scale(0.98);
}

.hero-actions .button .icon {
  width: 15px;
  height: 15px;
}

.hero-actions .primary {
  background: #0891b2;
  border: 1px solid #22d3ee44;
  box-shadow: 0 3px 15px #06b6d41a;
  color: white;
}

.hero-actions .primary:hover {
  background: #06b6d4;
  transform: translateY(-1px);
}

.hero-actions .secondary {
  background: #1e293b88;
  border: 1px solid #334155;
  color: #cbd5e1;
}

.hero-actions .secondary:hover {
  background: #334155;
  color: white;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 10px;
  color: #64748b;
}

.hero-note .icon {
  width: 12px;
  height: 12px;
  color: #34d399;
}

/* Network Globe Art */
.network-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 24px 16px 0;
  min-width: 0;
}

.network-globe {
  width: 100%;
  max-height: 286px;
}

.map-caption {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: #647f93;
  font-size: 8px;
  letter-spacing: 1.5px;
  position: absolute;
  right: 25px;
  top: 21px;
}

.map-caption .dot {
  color: #22d3ee;
  width: 4px;
  height: 4px;
}

.map-footer {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  color: #557083;
  letter-spacing: 0.8px;
  margin: 0 3px 0 19px;
}

/* Planning Toolkit Tools Section */
.tool-section {
  margin-top: 28px;
}

.subtle {
  font-size: 10px;
  color: #64748b;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  letter-spacing: -0.2px;
  margin: 0;
  font-weight: 600;
  color: #f8fafc;
}

.section-heading p {
  font-size: 11px;
  margin-top: 4px;
  color: #94a3b8;
  margin-bottom: 0;
}

/* A quiet, first-party support link beside the planning section heading. */
.tool-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.tool-section-header > .space-y-1 {
  min-width: 0;
}

.kofi-support {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 13px 15px;
  border: 1px solid rgba(251, 113, 133, 0.24);
  border-radius: 12px;
  background: radial-gradient(ellipse at 0% 50%, rgba(251, 113, 133, 0.10), transparent 75%), #0f172a;
  color: #f8fafc;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.kofi-support:hover {
  border-color: rgba(251, 113, 133, 0.6);
  box-shadow: 0 6px 24px rgba(251, 113, 133, 0.10);
  transform: translateY(-2px);
}

.kofi-support:focus-visible {
  outline: 2px solid #fda4af;
  outline-offset: 4px;
}

.kofi-support-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 1px solid rgba(251, 113, 133, 0.18);
  border-radius: 10px;
  background: rgba(251, 113, 133, 0.08);
  color: #fda4af;
}

.kofi-support-icon svg {
  width: 28px;
  height: 28px;
}

.kofi-support-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kofi-support-title {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.15px;
}

.kofi-support-description {
  color: #94a3b8;
  font-size: 10px;
  line-height: 1.4;
}

.kofi-support-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  color: #fda4af;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.kofi-support-cta svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 1000px) {
  .tool-section-header {
    flex-wrap: wrap;
    gap: 16px;
  }
}

@media (max-width: 580px) {
  .kofi-support {
    width: 100%;
    gap: 10px;
    padding: 12px;
  }
  .kofi-support-cta {
    margin-left: auto;
    font-size: 10px;
  }
  .kofi-support-description {
    max-width: 155px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kofi-support {
    transition: none;
  }
  .kofi-support:hover {
    transform: none;
  }
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tool-card {
  padding: 20px 18px 0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.75);
  touch-action: manipulation;
}

.tool-card:hover {
  border-color: rgba(var(--tool-rgb), 0.5);
  background: linear-gradient(145deg, rgba(var(--tool-rgb), 0.08), #0f172a);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.45);
}

.tool-card:active {
  transform: scale(0.99);
}

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

.tool-icon {
  border: 1px solid rgba(var(--tool-rgb), 0.25);
  background: rgba(var(--tool-rgb), 0.1);
  color: var(--tool-color);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.tool-icon .icon {
  width: 18px;
  height: 18px;
}

.tool-number,
.tool-category {
  font-size: 9px;
  letter-spacing: 0.8px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
}

.tool-card h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 16px 0 7px;
  color: #f8fafc;
}

.tool-card > p {
  font-size: 11px;
  line-height: 1.8;
  flex: 1;
  color: #94a3b8;
  margin: 0;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 17px 0 19px;
}

.tool-tags span {
  background: #1e293b66;
  border: 1px solid #33415550;
  color: #94a3b8;
  font-size: 8px;
  border-radius: 4px;
  padding: 3px 5px;
}

.tool-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #1e293b;
  padding: 13px 0;
  font-weight: 500;
  font-size: 10px;
  color: var(--tool-color);
}

.tool-link .icon {
  width: 14px;
  height: 14px;
}

/* Responsive Media Queries */
@media (min-width: 1450px) {
  .hero-copy { padding: 40px; }
  .network-globe { max-height: 310px; }
  .hero h1 { font-size: 40px; }
}

@media (max-width: 1050px) {
  .hero h1 { font-size: 32px; }
  .hero-copy { padding: 28px; }
  .tool-number { font-size: 7px; letter-spacing: 0; }
  .tool-card { padding: 16px 13px 0; }
  .map-coordinates { display: none; }
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1.25fr 1fr; }
  .hero-copy { padding: 27px 23px; }
  .hero h1 { font-size: 29px; }
  .network-art { padding-right: 10px; }
  .map-caption { font-size: 6px; letter-spacing: 0.8px; right: 15px; }
  .map-footer { font-size: 6px; margin-left: 0; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-card { padding: 20px 20px 0; }
  .tool-card > p { max-width: 260px; }
  .tool-tags { margin-top: 14px; }
  .subtle { display: none; }
}

@media (max-width: 580px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 25px 23px; }
  .hero h1 { font-size: 33px; }
  .hero-copy > p { max-width: 300px; }
  .network-art { height: 230px; padding: 0 25px 15px; margin-top: -6px; }
  .network-globe { height: 220px; }
  .map-caption { top: 9px; right: 20px; font-size: 6px; }
  .map-footer { font-size: 6px; margin-top: -3px; }
  .hero-note { font-size: 9px; }
  .tools-grid { gap: 10px; }
  .section-heading h2 { font-size: 12px; }
  .tool-card { padding: 15px 13px 0; }
  .tool-number { font-size: 6px; }
  .tool-icon { width: 31px; height: 31px; }
  .tool-icon .icon { width: 17px; height: 17px; }
  .tool-card h3 { font-size: 13px; }
  .tool-card > p { font-size: 10px; }
  .tool-tags span { font-size: 7px; }
  .tool-link { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ========================================================================= */
/* HERO CAROUSEL & SLIDESHOW                                                 */
/* ========================================================================= */
.hero-carousel {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(105deg, #0f172a 25%, #0b1b2e 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 380px;
}

.slide {
  display: none;
  opacity: 0;
  transition: opacity 0.45s ease-in-out;
  width: 100%;
  height: 100%;
}

.slide.active {
  display: block;
  opacity: 1;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: rgba(148, 163, 184, 0.4);
  transition: all 0.25s ease;
  cursor: pointer;
}
.slide-dot.active {
  width: 24px;
  background-color: #22d3ee;
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}

.highlight-flash {
  animation: flash-border 1.5s ease;
}
@keyframes flash-border {
  0% { border-color: #10b981; box-shadow: 0 0 14px rgba(16, 185, 129, 0.8); }
  70% { border-color: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
  100% { border-color: rgba(255, 255, 255, 0.08); box-shadow: none; }
}

/* ========================================================================= */
/* HOMEPAGE GITHUB COMMIT CHANGELOG (OPTION 1: COMPACT GLASS FEED)            */
/* ========================================================================= */
.badge-feat {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.badge-fix {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.badge-release {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.badge-perf {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(251, 113, 133, 0.35);
}
.badge-refactor {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.35);
}
.badge-docs {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(129, 140, 248, 0.35);
}
.badge-chore {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

@keyframes spin-sync {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin-active {
  animation: spin-sync 0.8s linear infinite;
}

.skeleton-box {
  background: linear-gradient(90deg, rgba(30, 41, 59, 0.4) 25%, rgba(51, 65, 85, 0.5) 50%, rgba(30, 41, 59, 0.4) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

