:root {
  /* Exact Pinway IDE palette from Screenshot 1 */
  --bg-base: #111214;
  --bg-dot: #22252a;
  --surface-1: #17191c;
  --surface-2: #1c1f24;
  --surface-hover: #1f2329;

  --border-subtle: #24272d;
  --border-strong: #2f343d;

  --text-primary: #f0f3f6;
  --text-secondary: #9aa1ac;
  --text-muted: #656d78;

  /* Signature Pinway logo green accents */
  --accent-blue: #5cd68d;
  --btn-blue-bg: #122d20;
  --btn-blue-border: #2a6347;
  --btn-blue-hover: #173a29;
  --status-green: #5cd68d;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-base);
  /* Subtle dot-grid matching Pinway IDE's main canvas */
  background-image: radial-gradient(var(--bg-dot) 1px, transparent 1px);
  background-size: 22px 22px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.1em 0.4em;
  border-radius: 5px;
  color: #cbd5e1;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.accent-dot {
  color: var(--accent-blue);
}

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.icon-sm {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(44px, 5.8vw, 66px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero-subtitle {
  margin: 0 0 30px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-pinway-primary,
.btn-pinway-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-pinway-primary {
  background: var(--btn-blue-bg);
  border: 1px solid var(--btn-blue-border);
  color: var(--text-primary);
}
.btn-pinway-primary:hover {
  background: var(--btn-blue-hover);
  border-color: var(--accent-blue);
  transform: translateY(-1px);
}

.btn-pinway-secondary {
  background: var(--surface-1);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}
.btn-pinway-secondary:hover {
  background: var(--surface-hover);
  border-color: #414854;
  transform: translateY(-1px);
}

.btn-plus {
  font-size: 16px;
  line-height: 1;
  color: var(--accent-blue);
}

.kbd-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

/* Right Hero Card ("Останні проєкти" replica) */
.projects-card {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.projects-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
  font-weight: 600;
}

.projects-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.projects-list {
  display: flex;
  flex-direction: column;
}

.project-row {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition: background 0.15s ease;
}
.project-row:last-child {
  border-bottom: 0;
}
.project-row:hover {
  background: var(--surface-hover);
}
.project-row:hover .project-chevron {
  transform: translateX(3px);
  color: var(--accent-blue);
}

.project-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.project-icon svg {
  width: 100%;
  height: 100%;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.project-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.project-path {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-chevron {
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 0.15s ease, color 0.15s ease;
}

/* Hero Bottom Meta Bar */
.hero-meta-bar {
  margin-top: 84px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.meta-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.meta-sep {
  color: var(--border-strong);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--status-green);
  display: inline-block;
  box-shadow: 0 0 8px rgba(63, 185, 80, 0.6);
}

/* SECTIONS */
.section {
  padding: 72px 0;
}

.section-header {
  max-width: 740px;
  margin-bottom: 36px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-lead {
  margin: 0;
  font-size: 16px;
  color: var(--text-secondary);
}

/* Pipeline Strip */
.pipeline-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 28px;
}

.pipeline-step {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.pipeline-step h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 600;
}

.pipeline-step p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 18px;
}

/* Cards Grids */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.panel-card {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.panel-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.panel-card.compact {
  padding: 20px;
}

.panel-tag,
.mono-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.panel-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  font-weight: 600;
}

.panel-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* MODULE SHOWCASE */
.module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.module-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.module-tab:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.module-tab.is-active {
  background: var(--btn-blue-bg);
  border-color: var(--btn-blue-border);
  color: var(--text-primary);
}

.tab-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-blue);
}

.tab-badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
}

.module-tab.is-active .tab-badge {
  border-color: var(--btn-blue-border);
  color: var(--accent-blue);
}

.module-stage {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.window-frame {
  background: #0d0e10;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.stage-panel {
  display: none;
}
.stage-panel.is-active {
  display: block;
}

.stage-img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

.stage-caption {
  margin: 12px 4px 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Muted / Coming Soon styles for Pinway Web */
.is-muted {
  opacity: 0.62;
}

.project-row.is-muted:hover {
  opacity: 0.85;
}

.muted-pill,
.muted-pill-lg {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  vertical-align: middle;
  margin-left: 6px;
}

.muted-pill-lg {
  font-size: 11px;
  padding: 4px 10px;
  margin-left: 0;
  margin-bottom: 14px;
  display: inline-block;
}

.module-tab.is-muted.is-active {
  background: var(--surface-2);
  border-color: var(--border-strong);
  opacity: 0.92;
}

.module-tab.is-muted.is-active .tab-index,
.module-tab.is-muted.is-active .tab-badge {
  color: var(--text-secondary);
  border-color: var(--border-strong);
}

.panel-tag.muted {
  color: var(--text-muted);
}

.detail-panel.is-muted .detail-list li::before {
  color: var(--text-muted);
}

.web-coming-soon {
  min-height: 360px;
  padding: 48px 32px;
  background: var(--surface-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.web-coming-soon h3 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-secondary);
}

.web-coming-soon p {
  margin: 0;
  max-width: 460px;
  font-size: 14.5px;
  color: var(--text-muted);
}

/* Stage Details Panel */
.stage-details {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.detail-panel {
  display: none;
}
.detail-panel.is-active {
  display: block;
}

.detail-head h3 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 700;
}

.detail-desc {
  margin: 0 0 20px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.detail-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
}

.detail-list strong {
  color: var(--text-primary);
}

/* CREATOR CARD */
.creator-card {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.creator-main {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 660px;
}

.creator-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  object-fit: cover;
  flex-shrink: 0;
}

.creator-name {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.creator-handle {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-blue);
  margin-left: 6px;
}

.creator-bio {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.creator-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

/* FOOTER STATUS BAR (matching Screenshot 1) */
.statusbar {
  border-top: 1px solid var(--border-subtle);
  background: rgba(17, 18, 20, 0.9);
  padding: 12px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.statusbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.status-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.status-right a:hover {
  color: var(--text-primary);
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 11, 13, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: min(1240px, 95vw);
  max-height: 90vh;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.7);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-1);
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
}

/* DOWNLOAD PAGE */
.download-page {
  min-height: calc(100vh - 45px);
  padding: 64px 0 80px;
}

.download-back-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 42px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.back-link:hover {
  color: var(--text-primary);
}

.version-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--btn-blue-bg);
  border: 1px solid var(--btn-blue-border);
  color: var(--accent-blue);
}

.download-header {
  max-width: 680px;
  margin-bottom: 40px;
}

.download-title {
  margin: 0 0 14px;
  font-size: clamp(36px, 4.8vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.download-subtitle {
  margin: 0;
  font-size: 16px;
  color: var(--text-secondary);
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.download-card {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.download-card-top .panel-tag {
  margin-bottom: 0;
}

.file-meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.download-card h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.download-desc {
  margin: 0 0 6px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.download-cta {
  align-self: flex-start;
  margin-top: auto;
}

.download-reqs {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Subtle / Low-emphasis Docker Box */
.docker-box {
  background: rgba(23, 25, 28, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.docker-info {
  max-width: 620px;
}

.docker-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.docker-info h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

.docker-info p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.docker-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.docker-tar-link {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.docker-tar-link:hover {
  color: var(--text-secondary);
}

.download-footer-links {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.download-footer-links a:hover {
  color: var(--text-primary);
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero-grid,
  .module-stage,
  .creator-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .pipeline-strip {
    grid-template-columns: 1fr;
  }
  .pipeline-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }

  .cards-grid-3,
  .cards-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: auto;
    padding: 56px 0 72px;
  }

  .cards-grid-3,
  .cards-grid-4,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .docker-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .docker-actions {
    align-items: flex-start;
  }

  .creator-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-meta-bar,
  .statusbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
