/* Zynkbot pages — shared stylesheet for zynkbot/ and its detail pages */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #282a36 0%, #1a1d28 100%);
    color: #f8f8f2;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 20px; }

header { padding: 40px 20px; border-bottom: 1px solid #44475a; }

.breadcrumb { font-size: 0.9rem; color: #6272a4; margin-bottom: 20px; }
.breadcrumb a { color: #8be9fd; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.logo {
    font-size: 3rem;
    font-weight: 700;
    color: #f8f8f2;
    margin-bottom: 10px;
}

.tagline { font-size: 1.3rem; color: #ccd4ec; margin-bottom: 30px; }

/* Hero */
.hero { padding: 40px 20px; text-align: center; }

.hero-text { max-width: 800px; margin: 0 auto 40px; }

.hero-text h2 { font-size: 2rem; color: #f8f8f2; margin-bottom: 20px; }

.hero-text p { font-size: 1.2rem; color: #ccd4ec; margin-bottom: 15px; }

.platform-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.badge { padding: 8px 16px; background: #44475a; border-radius: 6px; font-size: 0.9rem; font-weight: 600; }
.badge.supported { color: #50fa7b; }
.badge.planned { color: #6272a4; }

.cta-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #8be9fd;
    color: #282a36;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #50fa7b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 233, 253, 0.3);
}

.cta-button.secondary { background: #44475a; color: #8be9fd; }
.cta-button.secondary:hover { background: #6272a4; }

/* Long-form content sections */
.content-section {
    padding: 60px 20px;
    max-width: 860px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2rem;
    color: #8be9fd;
    margin-bottom: 30px;
}

.content-section h3 {
    font-size: 1.4rem;
    color: #50fa7b;
    margin-top: 36px;
    margin-bottom: 16px;
}

.content-section p {
    font-size: 1.1rem;
    color: #ccd4ec;
    margin-bottom: 22px;
    line-height: 1.85;
}

.content-section ul {
    padding-left: 24px;
    margin-bottom: 22px;
}

.content-section li {
    font-size: 1.05rem;
    color: #ccd4ec;
    margin-bottom: 10px;
    line-height: 1.75;
}

.content-section strong { color: #f8f8f2; }

/* Section divider */
.section-divider {
    border: none;
    border-top: 1px solid #44475a;
    margin: 0;
}

/* Dark background sections */
.section-dark {
    background: #1a1d28;
    padding: 60px 20px;
    margin: 0;
}

.section-dark .content-inner {
    max-width: 860px;
    margin: 0 auto;
}

.section-dark h2 {
    font-size: 2rem;
    color: #8be9fd;
    margin-bottom: 30px;
}

.section-dark h3 {
    font-size: 1.4rem;
    color: #50fa7b;
    margin-top: 36px;
    margin-bottom: 16px;
}

.section-dark p {
    font-size: 1.1rem;
    color: #ccd4ec;
    margin-bottom: 22px;
    line-height: 1.85;
}

.section-dark ul {
    padding-left: 24px;
    margin-bottom: 22px;
}

.section-dark li {
    font-size: 1.05rem;
    color: #ccd4ec;
    margin-bottom: 10px;
    line-height: 1.75;
}

.section-dark strong { color: #f8f8f2; }

/* Pull quote / blockquote */
.pull-quote {
    background: #1a1d28;
    border-left: 4px solid #8be9fd;
    padding: 24px 28px;
    border-radius: 0 8px 8px 0;
    margin: 36px 0;
}

.pull-quote p {
    font-size: 1.1rem;
    color: #f8f8f2;
    font-style: italic;
    margin: 0;
    line-height: 1.8;
}

/* Memory diagram */
.memory-layers {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 30px 0;
}

.memory-layer {
    background: #44475a;
    border-radius: 10px;
    padding: 22px 26px;
    border-left: 4px solid #8be9fd;
}

.memory-layer:nth-child(2) { border-left-color: #50fa7b; }
.memory-layer:nth-child(3) { border-left-color: #bd93f9; }

.memory-layer h4 {
    color: #f8f8f2;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.memory-layer p {
    color: #9aa5c4;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

/* Safety table */
.safety-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 1rem;
}

.safety-table th {
    background: #44475a;
    color: #8be9fd;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.safety-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #44475a;
    color: #ccd4ec;
    vertical-align: top;
}

.safety-table tr:hover td { background: #2d2f40; }

.safety-table .mode-name { color: #f8f8f2; font-weight: 600; }

/* Comparison */
.comparison {
    background: #282a36;
    padding: 60px 20px;
    border-radius: 12px;
    margin: 60px 0;
}

.comparison h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #8be9fd;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 860px;
    margin: 0 auto;
}

.comparison-column h3 { margin-bottom: 20px; font-size: 1.3rem; }
.comparison-column.others h3 { color: #ff5555; }
.comparison-column.zynkbot h3 { color: #50fa7b; }
.comparison-column ul { list-style: none; }

.comparison-column li {
    padding: 10px 0;
    border-bottom: 1px solid #44475a;
    color: #ccd4ec;
}

.comparison-column li:before { content: "❌ "; margin-right: 10px; }
.comparison-column.zynkbot li:before { content: "✅ "; }

/* Demo callout */
.demo-callout {
    background: #282a36;
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
}

.demo-callout h3 {
    font-size: 1.5rem;
    color: #8be9fd;
    margin-bottom: 16px;
}

.demo-callout p {
    font-size: 1.05rem;
    color: #ccd4ec;
    margin-bottom: 20px;
    line-height: 1.8;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.demo-card {
    background: #44475a;
    padding: 20px;
    border-radius: 8px;
}

.demo-card.blue { border-left: 4px solid #8be9fd; }
.demo-card.green { border-left: 4px solid #50fa7b; }

.demo-card strong { color: #8be9fd; }
.demo-card.green strong { color: #50fa7b; }

.demo-card ul {
    margin-top: 10px;
    color: #ccd4ec;
    padding-left: 20px;
}

.demo-card li { margin-bottom: 8px; font-size: 0.95rem; }

/* Install */
.install-section {
    background: #282a36;
    padding: 60px 20px;
    border-radius: 12px;
    margin: 60px 0;
}

.install-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #8be9fd;
}

.code-block {
    background: #1a1d28;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #8be9fd;
    overflow-x: auto;
    max-width: 800px;
    margin: 0 auto;
}

.code-block pre {
    color: #50fa7b;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
}

footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid #44475a;
    color: #6272a4;
    margin-top: 60px;
}

footer a { color: #8be9fd; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Section nav (links to the detail pages) */
.section-nav {
    background: #1a1d28;
    border-top: 1px solid #44475a;
    border-bottom: 1px solid #44475a;
    padding: 14px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.section-nav a {
    color: #8be9fd;
    text-decoration: none;
    font-size: 0.9rem;
    margin: 0 12px;
    opacity: 0.75;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.section-nav a:hover { opacity: 1; }

.section-nav .sep { color: #44475a; }

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.88);
    z-index: 9999;
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 95vw;
    max-height: 92vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    cursor: zoom-out;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 28px;
    color: #f8f8f2;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox-close:hover { opacity: 1; }

/* Screenshots */
.screenshot-wrap {
    margin: 32px 0;
    text-align: center;
    background: #2d2f40;
    border-radius: 10px;
    padding: 16px;
}

.screenshot {
    max-width: 100%;
    border-radius: 10px;
    border: 1px solid #44475a;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    cursor: zoom-in;
    transition: box-shadow 0.2s;
}

.screenshot:hover {
    box-shadow: 0 8px 40px rgba(139, 233, 253, 0.2);
}

.screenshot-caption {
    margin-top: 10px;
    font-size: 0.88rem;
    color: #9aa5c4;
    font-style: italic;
}

.screenshot-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 32px 0;
    align-items: start;
}

.screenshot-pair .screenshot-wrap { margin: 0; }

.screenshot-trio {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 32px 0;
    align-items: start;
}

@media (max-width: 768px) {
    .logo { font-size: 2rem; }
    .hero-text h2 { font-size: 1.5rem; }
    .hero-text p { font-size: 1rem; }
    .comparison-grid { grid-template-columns: 1fr; }
    .content-section { padding: 40px 16px; }
    .safety-table { font-size: 0.9rem; }
    .safety-table th, .safety-table td { padding: 10px 12px; }
    .screenshot-pair { grid-template-columns: 1fr; }
    .screenshot-trio { grid-template-columns: 1fr; }
    .demo-callout { padding: 20px 16px; }
    .demo-grid { grid-template-columns: 1fr; }
    .screenshot { max-width: 100% !important; }
}
    

/* Site navigation row — the same links on every page of the site */
.site-nav { font-size: 0.9rem; line-height: 2.2; margin-bottom: 18px; }
.site-nav a { color: #8be9fd; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { color: #50fa7b; }
.site-nav .home { color: #f8f8f2; font-weight: 600; }
.site-nav .sep { color: #44475a; margin: 0 8px; }

/* Short summary above the feature cards */
.why-summary { max-width: 860px; margin: 0 auto; padding: 50px 20px 10px; }
.why-summary h2 { font-size: 2rem; color: #8be9fd; margin-bottom: 20px; }
.why-summary p { font-size: 1.1rem; color: #ccd4ec; line-height: 1.85; margin-bottom: 14px; }
.why-summary strong { color: #f8f8f2; }
.read-more { color: #8be9fd; text-decoration: none; font-weight: 600; }
.read-more:hover { color: #50fa7b; }

/* Feature cards: one per detail page */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px 50px;
}

.feature-card {
    background: #1e2030;
    border: 1px solid #44475a;
    border-radius: 12px;
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
}

.feature-card h3 { color: #50fa7b; font-size: 1.2rem; margin: 0 0 10px; }
.feature-card p { color: #ccd4ec; font-size: 1rem; line-height: 1.7; margin: 0 0 14px; flex: 1; }

@media (max-width: 900px) {
    .feature-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .feature-grid { grid-template-columns: 1fr; padding: 20px 16px 40px; }
    .why-summary { padding: 40px 16px 10px; }
    .why-summary h2 { font-size: 1.5rem; }
}
