:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --surface-2: #eef2f6;
    --text: #0f1724;
    --muted: #5f7080;
    --accent: #0d9cb5;
    --accent-2: #5dd8ff;
    --border: rgba(0, 0, 0, 0.1);
    --shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
}

html[data-theme="dark"] {
    --bg: #070e17;
    --surface: #0f1b27;
    --surface-2: #162130;
    --text: #dce8f0;
    --muted: #93a7b8;
    --accent: #20c9d6;
    --accent-2: #63e6ff;
    --border: rgba(255, 255, 255, 0.09);
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 74px;
}

.brand-logo { height: 38px; width: auto; }
html[data-theme="dark"] .brand-logo-light { display: none; }
html[data-theme="dark"] .brand-logo-dark { display: block; }
html[data-theme="light"] .brand-logo-light { display: block; }
html[data-theme="light"] .brand-logo-dark { display: none; }

.site-nav {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.site-nav a {
    color: var(--muted);
    padding: 0.35rem 0.7rem;
    border-radius: 0.45rem;
    font-size: 0.95rem;
}

.site-nav a:hover {
    color: var(--text);
    background: var(--surface-2);
    text-decoration: none;
}

.theme-toggle {
    margin-left: 0.25rem;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
}

html[data-theme="dark"] .theme-toggle-sun { display: inline; }
html[data-theme="dark"] .theme-toggle-moon { display: none; }
html[data-theme="light"] .theme-toggle-sun { display: none; }
html[data-theme="light"] .theme-toggle-moon { display: inline; }

.section { padding: 4rem 0; }
.section-alt { background: var(--surface-2); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 1rem; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.1rem; }

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-grid,
.two-up {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.25rem;
    align-items: start;
}

.card-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card,
.mockup {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 1rem;
}

.card {
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
    transform: translateY(-2px);
}

.tick-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.tick-list.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tick-list li {
    padding-left: 1.45rem;
    position: relative;
}
.tick-list li::before {
    content: "✓";
    color: var(--accent);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
}

.mock-topbar {
    height: 16px;
    border-radius: 999px;
    background: var(--surface-2);
    margin-bottom: 0.75rem;
}

.mock-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.mock-kpis div {
    background: var(--surface-2);
    border-radius: 10px;
    padding: 0.6rem;
}

.mock-kpis strong { display: block; font-size: 1.25rem; color: var(--accent); }
.mock-kpis span { font-size: 0.8rem; color: var(--muted); }

.mock-chart-bars {
    height: 130px;
    display: flex;
    align-items: end;
    gap: 0.45rem;
    padding: 0.6rem;
    background: var(--surface-2);
    border-radius: 10px;
}

.mock-chart-bars span {
    flex: 1;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
}

.schedule-mockup table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.schedule-mockup th,
.schedule-mockup td {
    border-bottom: 1px solid var(--border);
    text-align: left;
    padding: 0.5rem;
}

.plant-mockup h3 { margin-bottom: 0.2rem; }
.muted { color: var(--muted); }
.metric {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px dashed var(--border);
}

.sparkline {
    height: 70px;
    margin-top: 0.9rem;
    border-radius: 10px;
    background: var(--surface-2);
    position: relative;
    overflow: hidden;
}

.sparkline span {
    position: absolute;
    inset: auto 0 0 0;
    height: 100%;
    background: linear-gradient(180deg, transparent 22%, rgba(32, 201, 214, 0.3) 22%);
    mask: linear-gradient(to right,
        transparent 0%, black 3%, black 6%, transparent 8%,
        transparent 17%, black 20%, black 23%, transparent 26%,
        transparent 36%, black 39%, black 42%, transparent 46%,
        transparent 57%, black 60%, black 63%, transparent 66%,
        transparent 76%, black 79%, black 82%, transparent 86%,
        transparent 96%, black 99%);
}

.docs-mockup {
    display: grid;
    gap: 0.65rem;
}

.docs-mockup .main,
.docs-mockup .node {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    text-align: center;
    background: var(--surface-2);
    font-size: 0.9rem;
}

.docs-mockup .main {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #021218;
    font-weight: 700;
}

.link-row {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.button {
    display: inline-block;
    margin-top: 0.7rem;
    background: var(--accent);
    color: #021218;
    font-weight: 700;
    padding: 0.62rem 1rem;
    border-radius: 10px;
}

.button:hover {
    background: var(--accent-2);
    text-decoration: none;
}

.contact-cta {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1rem;
    align-items: stretch;
}

.contact-card {
    position: relative;
    overflow: hidden;
}

.contact-card::after {
    content: "";
    position: absolute;
    right: -42px;
    top: -42px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(93, 216, 255, 0.28), transparent 68%);
    pointer-events: none;
}

.contact-email {
    display: inline-block;
    font-weight: 700;
    font-size: 1.06rem;
    padding: 0.45rem 0.72rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
}

.contact-email:hover {
    text-decoration: none;
    background: var(--surface);
}

.contact-visual {
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    gap: 0.6rem;
}

.contact-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--accent), var(--accent-2));
    color: #021218;
}

.contact-icon svg {
    width: 30px;
    height: 30px;
}

.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 1rem 0;
}

.footer-wrap {
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    flex-wrap: wrap;
}

@media (max-width: 980px) {
    .hero-grid,
    .two-up,
    .contact-cta,
    .card-grid.three,
    .tick-list.two-col {
        grid-template-columns: 1fr;
    }

    .site-nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .section { padding: 3rem 0; }
    .nav-wrap { min-height: 68px; }
    .brand-logo { height: 34px; }
}