:root {
    --bg: #020617;
    --panel: #0f172a;
    --panel-2: #111827;
    --text: #e5eefb;
    --muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.18);
    --accent: #38bdf8;
    --accent-2: #0ea5e9;
    --success: #22c55e;
    --container: 1180px;
    --radius: 18px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    --section-pad: 88px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.10), transparent 24%),
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 26%),
    var(--bg);
    color: var(--text);
    line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.topbar-wrap {
    position: sticky;
    top: 0;
    z-index: 40;
    padding-top: 14px;
    backdrop-filter: blur(10px);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(2, 6, 23, 0.78);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(14, 165, 233, 0.08));
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #dff6ff;
    font-size: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--muted);
    font-size: 14px;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-btn {
    display: none;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 14px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #03111f;
}

.btn-secondary {
    background: rgba(255,255,255,0.02);
    border-color: var(--line);
    color: var(--text);
}

.hero {
    padding: 54px 0 var(--section-pad);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 34px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
    border-radius: 999px;
    color: #cbd5e1;
    font-size: 13px;
    margin-bottom: 18px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}

h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 0.96;
    letter-spacing: -1.8px;
    max-width: 11ch;
}

.hero p {
    color: var(--muted);
    font-size: 18px;
    max-width: 620px;
    margin: 22px 0 28px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.metric {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.02);
}

.metric strong {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}

.metric span {
    color: var(--muted);
    font-size: 13px;
}

.dashboard-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(3, 7, 18, 0.98));
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    color: #cbd5e1;
    font-size: 13px;
}

.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.10);
    border: 1px solid rgba(56, 189, 248, 0.20);
    color: #c8efff;
    font-size: 12px;
}

.dashboard-body {
    padding: 18px;
    display: grid;
    gap: 16px;
}

.screen {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(10, 15, 28, 0.95));
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    min-height: 360px;
    position: relative;
    overflow: hidden;
}

.screen::after {
    content: "";
    position: absolute;
    inset: auto -30px -30px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56,189,248,0.18), transparent 65%);
    pointer-events: none;
}

.screen-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 14px;
    height: 100%;
}

.chart-box, .panel-box {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    padding: 14px;
}

.chart-area {
    margin-top: 14px;
    height: 180px;
    border-radius: 12px;
    position: relative;
    background:
    linear-gradient(to top, rgba(56,189,248,0.14), rgba(56,189,248,0.01)),
    repeating-linear-gradient(to right, transparent, transparent 42px, rgba(148,163,184,0.07) 42px, rgba(148,163,184,0.07) 43px),
    repeating-linear-gradient(to top, transparent, transparent 36px, rgba(148,163,184,0.06) 36px, rgba(148,163,184,0.06) 37px);
    overflow: hidden;
}

.chart-line {
    position: absolute;
    inset: 30px 12px 18px 12px;
    background: linear-gradient(180deg, rgba(56,189,248,0.15), rgba(56,189,248,0));
    clip-path: polygon(0% 82%, 11% 76%, 21% 79%, 33% 58%, 46% 61%, 58% 40%, 70% 48%, 82% 25%, 100% 8%, 100% 100%, 0 100%);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.chart-stroke {
    position: absolute;
    inset: 26px 12px 22px 12px;
    background: var(--accent);
    clip-path: polygon(0% 76%, 11% 70%, 21% 73%, 33% 52%, 46% 55%, 58% 34%, 70% 42%, 82% 19%, 100% 2%, 100% 8%, 82% 25%, 70% 48%, 58% 40%, 46% 61%, 33% 58%, 21% 79%, 11% 76%, 0% 82%);
    opacity: 0.95;
}

.list-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 13px;
}

.list-item:last-child { border-bottom: none; }

.section {
    padding: 0 0 var(--section-pad);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 26px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    letter-spacing: -1px;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    max-width: 620px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.card {
    padding: 22px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15,23,42,0.8), rgba(7,10,21,0.95));
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.35);
}

.card-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    margin-bottom: 16px;
    background: rgba(56,189,248,0.12);
    border: 1px solid rgba(56,189,248,0.22);
    color: #d9f6ff;
    font-weight: 700;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.dashboard-embed {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 18px;
    align-items: stretch;
}

.info-panel, .iframe-shell {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15,23,42,0.85), rgba(7,10,21,0.95));
    box-shadow: var(--shadow);
}

.info-panel { padding: 24px; }

.info-panel ul {
    padding-left: 18px;
    color: var(--muted);
}

.iframe-shell {
    padding: 14px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.iframe-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px 0;
    color: var(--muted);
    font-size: 13px;
}

.iframe-box {
    flex: 1;
    border-radius: 18px;
    border: 1px dashed rgba(56, 189, 248, 0.32);
    display: grid;
    overflow: hidden;
    place-items: center;
    background:
    linear-gradient(180deg, rgba(56,189,248,0.04), rgba(56,189,248,0.02)),
    rgba(255,255,255,0.02);
    text-align: center;
    padding: 24px;
    color: var(--muted);
}

.dashboard-viewer {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dashboard-frame-box {
    padding: 0;
    overflow: hidden;
    min-height: 400px;
}

.dashboard-frame-box iframe {
    width: 100%;
    min-height: 400px;
    height: calc(100% + 40px);
    border: 0;
    display: block;

    transform: translateY(+40px);
    transform-origin: top;
}

.rotate-message { display: none; }

.rotate-card {
    min-height: 260px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.03);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
    color: var(--text);
}

.rotate-card p {
    margin: 10px 0 0;
    color: var(--muted);
}

.dash-toggle {
    display: none;
    position: absolute;
    top: 5px;
    left: 15px;
    z-index: 30;
    border: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.88);
    color: var(--text);
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 14px;
    cursor: pointer;
    pointer-events: auto;
}

body.hide-topbar .topbar-wrap {
    display: none;
}

.value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.value-box {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15,23,42,0.85), rgba(7,10,21,0.95));
    box-shadow: var(--shadow);
}

.value-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 22px;
}

.value-box p {
    color: var(--muted);
    margin-bottom: 0;
}

.cta-box {
    padding: 34px;
    border-radius: 24px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    background:
    radial-gradient(circle at top right, rgba(56,189,248,0.16), transparent 26%),
    linear-gradient(180deg, rgba(15,23,42,0.92), rgba(7,10,21,0.98));
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.cta-box h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -1px;
}

.cta-box p {
    margin: 0;
    color: var(--muted);
    max-width: 650px;
}

footer {
    padding: 26px 0 42px;
    color: var(--muted);
    font-size: 14px;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.mobile-panel {
    display: none;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.96);
    padding: 14px;
}

.mobile-panel.open { display: block; }

.mobile-links {
    display: grid;
    gap: 10px;
}

.mobile-links a {
    padding: 12px 10px;
    border-radius: 12px;
    color: #d6e3f4;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(148, 163, 184, 0.10);
}

@media (max-width: 1080px) {
    .hero-grid,
    .dashboard-embed,
    .value-grid,
    .screen-grid {
    grid-template-columns: 1fr;
    }

    .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    :root { --section-pad: 64px; }

    .nav-links,
    .nav-cta .btn-secondary {
    display: none;
    }

    .menu-btn { display: inline-flex; }
    .hero { padding-top: 34px; }

    .hero-metrics,
    .feature-grid {
    grid-template-columns: 1fr;
    }

    .cta-box,
    .section-head,
    .footer-row {
    flex-direction: column;
    align-items: flex-start;
    }

    h1 { max-width: 12ch; }
}

@media (max-width: 760px) and (orientation: portrait) {
    .dashboard-frame-box,
    .dashboard-top {
    display: none;
    }

    .rotate-message {
    display: block;
    }
}

@media (max-width: 760px) and (orientation: landscape) {
    .rotate-message { display: none; }

    .dashboard-frame-box {
    display: block;
    min-height: calc(100vh - 30px);
    }

    .dashboard-frame-box iframe {
    min-height: calc(100vh - 30px);
    }

    .dashboard-top { display: none; }

    .dash-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    }
}
