/* ==========================================================================
   Intranet landing lapu stils — pēc landing/README.md ByteRoute dizaina sistēmas
   Indigo zīmola tonis saglabāts no iepriekšējās Tailwind versijas (hue ~243).
   ========================================================================== */

:root {
    --background: 40 30% 98%;
    --foreground: 210 40% 22%;
    --card: 0 0% 100%;

    --primary: 243 70% 60%;
    --primary-dark: 243 70% 24%;
    --primary-mid: 243 65% 42%;

    --secondary: 205 75% 68%;
    --secondary-dark: 208 70% 32%;

    --accent: 28 88% 66%;
    --accent-dark: 20 75% 38%;

    --violet: 262 60% 72%;
    --violet-dark: 262 50% 38%;

    --muted-foreground: 210 25% 40%;
    --border: 210 20% 89%;
    --radius: 0.75rem;
    --radius-sm: 0.5rem;

    --gradient-hero: linear-gradient(135deg, hsl(243 70% 60% / .14), hsl(205 75% 68% / .12));
    --gradient-card: linear-gradient(180deg, hsl(0 0% 100%), hsl(40 30% 98%));
    --gradient-cta: linear-gradient(135deg, hsl(243 65% 50%), hsl(244 62% 32%));

    --shadow-soft: 0 4px 20px -4px hsl(210 25% 30% / .08);
    --shadow-card: 0 8px 30px -8px hsl(210 25% 30% / .1);
    --shadow-button: 0 4px 14px -3px hsl(243 60% 45% / .4);
    --shadow-elevated: 0 20px 50px -15px hsl(210 25% 30% / .16);
}

/* ---- Reset & base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.18; font-weight: 800; color: hsl(var(--primary-dark)); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
code, pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; stroke: currentColor; fill: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
.container-md { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 1.25rem; }

section { padding: 3.75rem 0; }
.section-tight { padding: 2.5rem 0; }
.section-border { border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); background: hsl(var(--card)); }

.section-heading { margin: 0 auto 2.5rem; max-width: 660px; text-align: center; }
.section-heading h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.section-heading p { margin-top: 0.75rem; color: hsl(var(--muted-foreground)); font-size: 1.05rem; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.75rem;
    border-left: 3px solid hsl(var(--primary));
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 0.75rem;
    font-weight: 700;
    color: hsl(var(--primary-dark));
}
.text-center .eyebrow { border-left: none; padding-left: 0; justify-content: center; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-primary {
    background: hsl(var(--primary-dark));
    color: #fff;
    box-shadow: var(--shadow-button);
}
.btn-primary:hover { background: hsl(var(--primary-mid)); }
.btn-secondary {
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    border-color: hsl(var(--border));
}
.btn-secondary:hover { background: hsl(210 20% 96%); }
.btn-white {
    background: #fff;
    color: hsl(var(--primary-dark));
    font-weight: 700;
}
.btn-white:hover { background: hsl(210 20% 96%); }
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--primary-mid));
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.btn-link:hover { color: hsl(var(--primary-dark)); }

/* ---- Header / nav ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: hsl(var(--card) / .85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid hsl(var(--border));
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 1.4rem; color: hsl(var(--primary-dark)); }
.logo-mark {
    width: 2.1rem; height: 2.1rem; flex-shrink: 0; border-radius: var(--radius-sm);
    background: hsl(var(--primary-dark));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
}
.nav-links { display: flex; align-items: center; gap: 1.75rem; font-size: 0.9rem; font-weight: 500; }
.nav-links a {
    position: relative;
    color: hsl(var(--muted-foreground));
    padding: 0.25rem 0;
    transition: color .15s ease;
}
.nav-links a::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -0.2rem; height: 2px;
    background: hsl(var(--primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .15s ease;
}
.nav-links a:hover { color: hsl(var(--foreground)); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: hsl(var(--primary-dark)); }
.header-actions { display: flex; align-items: center; gap: 1.5rem; }

.nav-toggle {
    display: none;
    width: 2.25rem; height: 2.25rem;
    align-items: center; justify-content: center;
    background: none; border: 1px solid hsl(var(--border)); border-radius: var(--radius-sm);
    color: hsl(var(--foreground));
    cursor: pointer;
}
.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1.25rem 1.25rem;
    border-top: 1px solid hsl(var(--border));
    background: hsl(var(--card));
}
.mobile-menu a { padding: 0.6rem 0; font-size: 0.95rem; font-weight: 500; color: hsl(var(--foreground)); border-bottom: 1px solid hsl(var(--border)); }
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: flex; }

@media (max-width: 780px) {
    .nav-links, .header-actions .btn { display: none; }
    .nav-toggle { display: inline-flex; }
}

/* ---- Hero ---- */
.hero {
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 0 3.5rem;
}
.hero h1 { font-size: clamp(1.85rem, 4vw, 2.6rem); margin-top: 1.25rem; }
.hero h1 .accent { color: hsl(var(--primary)); }
.hero-lead { margin-top: 1.25rem; font-size: 1.1rem; color: hsl(var(--foreground)); max-width: 44ch; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.85rem; }
.hero-note { margin-top: 1.5rem; font-size: 0.85rem; color: hsl(var(--muted-foreground)); }

.trust-list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 0.5rem; }
.trust-item { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: hsl(var(--primary-dark)); }
.trust-item .icon { color: hsl(var(--primary)); }

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; padding-top: 2.5rem; }
    .hero-lead { max-width: none; margin-left: auto; margin-right: auto; }
    .hero-actions, .trust-list { justify-content: center; }
}

/* ---- Mock panel (product screenshot frame) ---- */
.mock-panel {
    border-radius: var(--radius);
    overflow: hidden;
    background: hsl(var(--card));
    box-shadow: var(--shadow-elevated);
    border: 1px solid hsl(var(--border));
    transition: transform .2s ease, box-shadow .2s ease;
}
.mock-panel[onclick] {
    cursor: pointer;
}
.mock-panel[onclick]:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated), 0 0 0 2px hsl(var(--primary) / .35);
}
.mock-topbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.9rem;
    background: hsl(210 20% 96%);
    border-bottom: 1px solid hsl(var(--border));
}
.mock-dots { display: flex; gap: 0.35rem; }
.mock-dot { width: 0.6rem; height: 0.6rem; border-radius: 999px; background: hsl(210 15% 80%); }
.mock-title { font-size: 0.8rem; font-weight: 600; color: hsl(var(--muted-foreground)); }
.mock-body img { width: 100%; display: block; }

/* ---- Icon badges (4-color rotation) ---- */
.icon-badge {
    width: 3.25rem; height: 3.25rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 1.4rem;
    background: hsl(var(--primary) / .35);
    color: hsl(var(--primary-dark));
    margin-bottom: 1rem;
}
.icon-badge.c-blue { background: hsl(var(--secondary) / .4); color: hsl(var(--secondary-dark)); }
.icon-badge.c-amber { background: hsl(var(--accent) / .4); color: hsl(var(--accent-dark)); }
.icon-badge.c-violet { background: hsl(var(--violet) / .35); color: hsl(var(--violet-dark)); }
.icon-badge-sm { width: 2.75rem; height: 2.75rem; font-size: 1.15rem; margin-bottom: 0; }

/* ---- Cards ---- */
.card, .feature-card {
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}
.feature-card {
    padding: 1.5rem;
    display: block;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-card); border-color: hsl(var(--border)); transform: translateY(-2px); }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.feature-card > p, .feature-card .feature-desc { color: hsl(var(--muted-foreground)); font-size: 0.9rem; }
.feature-card .feature-note { margin-top: 0.6rem; font-size: 0.78rem; color: hsl(var(--muted-foreground)); }
.feature-card .feature-links { margin-top: 0.85rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.1rem; }
.card-link { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.875rem; font-weight: 600; color: hsl(var(--primary-mid)); }
.feature-card:hover .card-link { color: hsl(var(--primary-dark)); }

.text-link { color: hsl(var(--primary-mid)); text-decoration: underline; }
.text-link:hover { color: hsl(var(--primary-dark)); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.subheading { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }

/* ---- Tags (tech stack) ---- */
.tag-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem; }
.tag {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    background: hsl(210 20% 95%);
    color: hsl(var(--foreground));
    font-size: 0.875rem;
    font-weight: 500;
}

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead tr { border-bottom: 1px solid hsl(var(--border)); text-align: left; }
th { padding: 0.5rem 1rem 0.5rem 0; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .04em; color: hsl(var(--muted-foreground)); font-weight: 700; }
tbody tr { border-bottom: 1px solid hsl(var(--border) / .6); }
tbody tr:last-child { border-bottom: none; }
td { padding: 0.6rem 1rem 0.6rem 0; color: hsl(var(--muted-foreground)); vertical-align: top; }
td:first-child { color: hsl(var(--foreground)); font-weight: 500; }
td code, td.mono { font-family: ui-monospace, monospace; color: hsl(var(--primary-dark)); }

/* ---- Code blocks ---- */
.code-block {
    background: hsl(243 30% 12%);
    color: hsl(210 30% 90%);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    overflow-x: auto;
    font-size: 0.8125rem;
    line-height: 1.6;
}

/* ---- Inline callout boxes ---- */
.callout { display: flex; gap: 0.7rem; padding: 0.85rem 1rem; border-radius: var(--radius-sm); border: 1px solid; font-size: 0.875rem; }
.callout .icon { flex-shrink: 0; margin-top: 0.15rem; }
.callout-warning { background: hsl(38 92% 95%); border-color: hsl(38 70% 82%); color: hsl(30 65% 30%); }
.callout-warning .icon { color: hsl(35 80% 50%); }
.callout-info { background: hsl(210 20% 96%); border-color: hsl(var(--border)); color: hsl(var(--muted-foreground)); }
.callout-info .icon { color: hsl(var(--primary)); }

/* ---- Step list (install instructions) ---- */
.step-list { display: flex; flex-direction: column; gap: 1.5rem; }
.step { display: flex; gap: 1.25rem; padding: 1.5rem; }
.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: hsl(var(--primary) / .35);
    color: hsl(var(--primary-dark));
    font-weight: 700; font-size: 0.875rem;
}
.step-body { flex: 1; min-width: 0; }
.step-body h3 { font-size: 1rem; margin-bottom: 0.5rem; color: hsl(var(--foreground)); font-weight: 700; }

/* ---- Simple lists with leading icon ---- */
.check-list { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; color: hsl(var(--muted-foreground)); }
.check-list li { display: flex; gap: 0.55rem; }
.check-list .icon { flex-shrink: 0; margin-top: 0.2rem; color: hsl(var(--primary-mid)); }
.check-list.lock .icon { color: hsl(var(--secondary-dark)); }

.numbered-list { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.9rem; color: hsl(var(--muted-foreground)); counter-reset: n; }
.numbered-list li { display: flex; gap: 0.6rem; }
.numbered-list li::before { counter-increment: n; content: counter(n) "."; font-weight: 700; color: hsl(var(--primary-dark)); flex-shrink: 0; }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { padding: 1.15rem 1.3rem; }
.faq-item summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    cursor: pointer; font-weight: 700; color: hsl(var(--foreground)); list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { flex-shrink: 0; color: hsl(var(--muted-foreground)); transition: transform .15s ease; }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { margin-top: 0.85rem; font-size: 0.9rem; color: hsl(var(--muted-foreground)); }

/* ---- Icon-topped centered blocks (license, contact) ---- */
.centered-card { text-align: center; padding: 2.5rem 2rem; }
.centered-card .icon-badge { margin: 0 auto 1rem; }
.centered-card h2 { font-size: 1.5rem; }
.centered-card p.lead { margin-top: 1rem; color: hsl(var(--muted-foreground)); max-width: 42rem; margin-left: auto; margin-right: auto; }
.centered-card .fine-print { margin-top: 1.5rem; font-size: 0.8rem; color: hsl(var(--muted-foreground)); }

/* ---- CTA band ---- */
.cta-band { background: var(--gradient-cta); text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.cta-band p { margin-top: 0.6rem; color: hsl(0 0% 100% / .85); }
.cta-band .btn { margin-top: 1.5rem; }

/* ---- Footer ---- */
.site-footer { background: hsl(210 25% 16%); color: hsl(210 15% 70%); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; padding: 2.25rem 0; }
.footer-brand { display: flex; align-items: center; gap: 0.55rem; color: #fff; font-weight: 700; }
.footer-brand .logo-mark { background: hsl(var(--primary)); width: 1.9rem; height: 1.9rem; font-size: 0.9rem; }
.footer-tagline { font-size: 0.875rem; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; font-size: 0.875rem; }
.footer-links a:hover { color: #fff; }

/* ---- Screenshot modal ---- */
.modal-overlay { position: fixed; inset: 0; z-index: 50; display: none; }
.modal-overlay.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: hsl(210 30% 10% / .6); }
.modal-box {
    position: relative;
    max-width: 48rem;
    margin: 3rem auto 3rem;
    background: hsl(var(--card));
    border-radius: var(--radius);
    box-shadow: var(--shadow-elevated);
    overflow: hidden;
    max-height: calc(100vh - 6rem);
    display: flex;
    flex-direction: column;
}
.modal-box img { width: 100%; display: block; overflow-y: auto; }
.modal-body { padding: 1.5rem; }
.modal-body h3 { font-size: 1.05rem; }
.modal-body p { margin-top: 0.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.modal-close {
    position: absolute; top: 0.75rem; right: 0.75rem; z-index: 1;
    width: 2.25rem; height: 2.25rem; border-radius: 999px;
    background: hsl(0 0% 100% / .9); border: none;
    display: flex; align-items: center; justify-content: center;
    color: hsl(var(--muted-foreground));
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}
body.modal-open { overflow: hidden; }

/* ---- Jump-link tabs (transkripcijas uzstādīšana) ---- */
.jump-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem; }

/* ---- Utility ---- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1.5rem; }
