@font-face {
    font-family: 'Oswald';
    src: url('/static/assets/fonts/oswald_light.woff2') format('woff2'),
         url('/static/assets/fonts/oswald_light.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --accent: #0079bf;
    --accent-dark: #036aa6;
    --accent-light: #e8f4fb;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --radius: 12px;
    --radius-lg: 20px;
}

body {
    font-family: 'Oswald', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

/* ─── NAV ─── */
.landing-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.nav-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.18s ease;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--accent-dark);
    color: var(--white);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.05rem;
    border-radius: 10px;
}

/* ─── HERO ─── */
.hero {
    padding: 5rem 2rem 4rem;
    text-align: center;
    background: linear-gradient(160deg, var(--white) 0%, var(--accent-light) 100%);
}

.hero-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid rgba(0,121,191,0.2);
    border-radius: 100px;
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 1.25rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 span {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── SECTION ─── */
.section {
    padding: 4rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 400;
    text-align: center;
    margin: 0 0 0.5rem;
}

.section-sub {
    text-align: center;
    color: var(--text-muted);
    margin: 0 0 3rem;
}

/* ─── FEATURES GRID ─── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 400;
    margin: 0 0 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ─── HOW IT WORKS ─── */
.steps-section {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
}

.step-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1rem;
    font-weight: 400;
    margin: 0 0 0.4rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
}

/* ─── DEMO PREVIEW ─── */
.demo-preview {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin: 0 auto;
    max-width: 860px;
}

.demo-bar {
    background: #2d3748;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.demo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.demo-dot:nth-child(1) { background: #fc5c65; }
.demo-dot:nth-child(2) { background: #fed330; }
.demo-dot:nth-child(3) { background: #26de81; }

.demo-url {
    background: #4a5568;
    border-radius: 6px;
    padding: 0.2rem 1rem;
    font-size: 0.8rem;
    color: #a0aec0;
    margin-left: 0.75rem;
    font-family: monospace;
}

.demo-body {
    height: 310px;
    position: relative;
}

.demo-sidebar {
    width: 56px;
    background: #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 0;
}

.demo-sidebar-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
}
.demo-sidebar-icon.active {
    background: var(--accent);
    color: white;
}

.demo-content {
    flex: 1;
    background: #f1f5f9;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    overflow: hidden;
}

.demo-column {
    flex: 1;
    min-width: 0;
}

.demo-col-header {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.demo-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.demo-card-tag {
    display: inline-block;
    font-size: 0.65rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    margin-bottom: 0.25rem;
}

/* ─── CARD VARIANTS ─── */
.demo-card--inprogress {
    border-left: 3px solid var(--accent);
}
.demo-card--done {
    opacity: 0.6;
}

/* ─── SHOWCASE TABS ─── */
.showcase-section {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.showcase-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.showcase-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.18s ease;
}
.showcase-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.showcase-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* ─── SHOWCASE PANELS ─── */
.showcase-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out, visibility 0s linear 0.4s;
}
.showcase-panel.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.4s ease-in-out, visibility 0s linear 0s;
}

/* ─── CLIENTS PANEL ─── */
.demo-content-clients {
    flex: 1;
    background: #f1f5f9;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow: hidden;
    min-width: 0;
}

.demo-clients-toolbar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.demo-search-bar {
    flex: 1;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 0.38rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.demo-add-btn {
    background: var(--accent);
    color: white;
    border-radius: 7px;
    padding: 0.38rem 0.75rem;
    font-size: 0.78rem;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
    user-select: none;
}

.demo-company-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.demo-company-row {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    gap: 0.5rem;
}
.demo-company-row--highlight {
    border-left: 3px solid var(--accent);
}

.demo-company-name {
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.demo-company-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.demo-inn {
    font-size: 0.7rem;
    background: #f1f5f9;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    white-space: nowrap;
}

.demo-stat {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.72rem;
}

/* ─── EQUIPMENT PANEL ─── */
.demo-content-equip {
    flex: 1;
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.demo-equip-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-shrink: 0;
}

.demo-equip-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.demo-equip-title {
    font-size: 0.88rem;
    color: var(--text);
}

.demo-equip-company {
    font-size: 0.73rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.1rem;
}

.demo-equip-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

.demo-specs {
    width: 42%;
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    border-right: 1px solid var(--border);
    background: var(--white);
    flex-shrink: 0;
}

.demo-spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    padding: 0.22rem 0;
    border-bottom: 1px solid #f0f4f8;
}
.demo-spec-row span:first-child { color: var(--text-muted); }
.demo-spec-row span:last-child  { color: var(--text); }

.demo-filters {
    flex: 1;
    padding: 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    overflow: hidden;
}

.demo-filters-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.demo-badge {
    background: var(--accent);
    color: white;
    border-radius: 100px;
    padding: 0 0.4rem;
    font-size: 0.62rem;
    line-height: 1.5;
}

.demo-filter-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.3rem 0.55rem;
}
.demo-filter-row span:first-child {
    flex: 1;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.demo-article {
    font-family: monospace;
    font-size: 0.68rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.demo-qty {
    font-size: 0.68rem;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── CTA SECTION ─── */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, #0056b3 100%);
    padding: 4rem 2rem;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 400;
    margin: 0 0 0.75rem;
}

.cta-section p {
    opacity: 0.85;
    margin: 0 0 2rem;
    font-size: 1.05rem;
}

.btn-white {
    background: var(--white);
    color: var(--accent);
}
.btn-white:hover {
    background: var(--accent-light);
    color: var(--accent-dark);
}

/* ─── FOOTER ─── */
.landing-footer {
    background: #1e293b;
    color: rgba(255,255,255,0.6);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.88rem;
}

.footer-logo {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-logo .nav-logo-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-email {
    color: rgba(255,255,255,0.55);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-links a:hover {
    color: rgba(255,255,255,0.9);
}

@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero { padding: 3rem 1.25rem 2.5rem; }
    .section { padding: 3rem 1.25rem; }
    .showcase-panel { flex-direction: column; }
    .demo-sidebar { width: 100%; flex-direction: row; height: 44px; padding: 0 1rem; }
    .demo-equip-body { flex-direction: column; }
    .demo-specs { width: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    .demo-company-meta { gap: 0.4rem; }
    .demo-inn { display: none; }
    .landing-footer { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}
