/* 
   MLC Product Web Global Styles 
   Mirrored and cleaned from mlcgo.eu entry page 
*/

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

:root {
  --bg:      #050a14;
  --bg2:     #0a0f1e;
  --bg3:     #0f1628;
  --border:  #1e2a42;
  --text:    #e2e8f0;
  --muted:   #8ba3c0;
  --cyan:    #06b6d4;
  --purple:  #8b5cf6;
  --green:   #4ade80;
  --amber:   #f59e0b;
  --radius:  12px;
  --font-mono: 'Courier New', Courier, monospace;
}

[data-theme="light"] {
  --bg:      #ffffff;
  --bg2:     #f8fafc;
  --bg3:     #f1f5f9;
  --border:  #e2e8f0;
  --text:    #0f172a;
  --muted:   #64748b;
  --cyan:    #0891b2;
  --purple:  #7c3aed;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
  backdrop-filter: blur(12px);
}
[data-theme="light"] nav { background: rgba(255,255,255,0.95); box-shadow: 0 1px 0 var(--border); }
.nav-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.nav-logo span { font-family: var(--font-mono); font-weight: bold; font-size: 1.1rem; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.btn-nav {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff !important; padding: 0.4rem 1rem;
  border-radius: 6px; font-size: 0.85rem; font-weight: 600; transition: opacity 0.2s;
}
.btn-nav:hover { opacity: 0.85; text-decoration: none; }
.btn-nav-ghost {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    transition: color 0.2s;
}
.btn-nav-ghost:hover { color: var(--text); text-decoration: none; }
.nav-user-chip {
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--cyan);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-mono);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-user-chip:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 10px rgba(6,182,212,0.2);
    text-decoration: none;
}
.lang-switch {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.lang-switch .lang-cur {
  padding: 0.2rem 0.4rem;
  background: var(--cyan);
  display: flex; align-items: center;
}
.lang-switch .lang-sep {
  width: 1px; background: var(--border); align-self: stretch;
}
.lang-switch .lang-other {
  padding: 0.2rem 0.4rem;
  display: flex; align-items: center;
  transition: background 0.2s;
  opacity: 0.55;
}
.lang-switch .lang-other:hover { background: rgba(6,182,212,0.12); text-decoration: none; opacity: 1; }
.theme-btn {
  background: none; border: 1px solid var(--border);
  color: var(--muted); cursor: pointer;
  width: 32px; height: 32px; border-radius: 6px;
  font-size: 14px; display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.theme-btn:hover { border-color: var(--cyan); color: var(--cyan); }

/* ── Generic Hero ── */
#hero {
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem;
  padding: 5rem 4rem;
  max-width: 1280px; margin: 0 auto;
}
[data-theme="light"] #hero {
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(8,145,178,0.05) 0%, transparent 70%);
}
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--cyan);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 1.5rem;
}
.hero-title .grad {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.badge-meta {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    background: var(--bg2);
    border: 1px solid var(--border);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 0.5px;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
a.badge-meta:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(6,182,212,0.05);
}
.status-dot-beta {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--green);
}
.badge-status-beta {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--bg);
    background: var(--green);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    letter-spacing: 1px;
}
.badge-status-retired {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--muted);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    letter-spacing: 1px;
}
.hero-sub {
  font-size: 1.05rem; color: var(--muted);
  max-width: 440px; margin-bottom: 2.5rem; line-height: 1.7;
}
.cta-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff; padding: 0.7rem 1.6rem; border-radius: 8px;
  font-weight: 700; font-size: 0.95rem; transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); text-decoration: none; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 0.4rem;
  border: 1.5px solid rgba(255,255,255,0.2); color: var(--text);
  padding: 0.7rem 1.6rem; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem; transition: border-color 0.2s, transform 0.2s, color 0.2s;
}
[data-theme="light"] .btn-outline { border-color: #94a3b8; color: var(--text); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-1px); text-decoration: none; }
.btn-locked {
    opacity: 0.7;
    cursor: pointer;
}
.btn-locked:hover {
    opacity: 1;
}

/* ── Generic Sections ── */
section { padding: 5rem 2rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--cyan); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.75rem;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; }
.section-sub { color: var(--muted); max-width: 540px; margin-bottom: 3rem; }

/* ── Spotlight Sections ── */
.spotlight-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}
.spotlight-section:last-child { border-bottom: none; }
.spotlight-section:nth-child(even) .spotlight-image { order: -1; }

.spotlight-image {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.spotlight-image img {
    width: 100%;
    display: block;
    cursor: zoom-in;
}
.spotlight-content {}
.spotlight-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--cyan);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.spotlight-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.spotlight-desc {
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}
.spotlight-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.spotlight-items li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.5;
}
.spotlight-items li::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    background-color: var(--cyan);
    border-radius: 50%;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}

@media (max-width: 768px) {
    .spotlight-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 0;
    }
    .spotlight-section:nth-child(even) .spotlight-image { order: 0; }
    .spotlight-title { font-size: 1.4rem; }
}

/* ── Feature Grid ── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; display: flex; flex-direction: column; gap: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
[data-theme="light"] .feature-card { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.feature-card:hover { border-color: var(--purple); box-shadow: 0 8px 32px rgba(139,92,246,0.15); }
.feature-icon { color: var(--cyan); font-size: 1.5rem; }
.feature-name { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; }
.feature-desc { color: var(--muted); font-size: 0.9rem; }

/* ── Downloads ── */
#downloads { padding: 4rem 1.5rem; }
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.download-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.download-os {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.95rem;
}
.download-arch {
    font-weight: 400;
    color: var(--muted);
    font-size: 0.8rem;
}
.download-label {
    color: var(--muted);
    font-size: 0.85rem;
    flex: 1;
}
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: var(--purple);
    color: var(--bg);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    text-align: center;
    justify-content: center;
}
.btn-download:hover { opacity: 0.85; }
.btn-download.btn-locked {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
}
.btn-download.btn-locked:hover { border-color: var(--purple); color: var(--text); }
.download-gate-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.download-gate-note a { color: var(--cyan); }

/* ── Lightbox ── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-overlay img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: var(--radius);
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
    cursor: zoom-out;
    object-fit: contain;
}
.lightbox-close {
    position: fixed;
    top: 1.25rem;
    right: 1.5rem;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    z-index: 1001;
}
.lightbox-close:hover { opacity: 1; }

[data-zoomable] {
    cursor: zoom-in;
}

/* ── Screenshot Gallery ── */
.screenshot-container {
    margin-top: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.screenshot-container img {
    width: 100%;
    display: block;
}

/* ── Screenshot Gallery (multi-image) ── */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.gallery-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.gallery-item:hover {
    border-color: var(--cyan);
    box-shadow: 0 12px 32px rgba(6,182,212,0.15);
}
.gallery-item img {
    width: 100%;
    display: block;
}

/* ── Product Tabs ── */
.product-tabs {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.tabs-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 0;
}
.tab-link {
    padding: 0.9rem 1.4rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.tab-link:hover { color: var(--text); }
.tab-active {
    color: var(--cyan);
    border-bottom-color: var(--cyan);
}

/* ── Markdown Content ── */
.content-md h2 { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.5rem; }
.content-md p { margin-bottom: 1rem; color: var(--muted); }
.content-md ul, .content-md ol { margin-bottom: 1rem; padding-left: 1.5rem; color: var(--muted); }
.content-md li { margin-bottom: 0.5rem; }
.content-md blockquote {
    margin: 1.5rem 0;
    padding: 0.8rem 1.2rem;
    border-left: 4px solid var(--cyan);
    background: var(--bg2);
    border-radius: 0 8px 8px 0;
    color: var(--text);
    font-style: italic;
}
.content-md blockquote p {
    margin-bottom: 0;
    color: var(--text);
}
.content-md code {
    font-family: var(--font-mono);
    background: rgba(6,182,212,0.1);
    color: var(--cyan);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ── Mermaid ── */
.mermaid {
    padding: 2rem;
    border-radius: var(--radius);
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    border: 1px solid var(--border);
    background: transparent;
}

/* ── Footer ── */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 2.5rem 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; }
.footer-logo span { font-family: var(--font-mono); font-weight: 700; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.85rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-copy { color: var(--muted); font-size: 0.8rem; width: 100%; text-align: center; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* ── Responsive ── */
@media (max-width: 900px) {
  #hero { grid-template-columns: 1fr; padding: 3rem 1.5rem; gap: 2.5rem; }
  .hero-screenshot { order: -1; }
}
@media (max-width: 600px) {
  nav { padding: 0 1rem; }
  .nav-links > a:not(.btn-nav) { display: none; }
  footer { text-align: center; }
  .footer-inner { justify-content: center; }
}
