:root {
    --bg: #17191d;
    --panel: #21252b;
    --panel-strong: #2a2f36;
    --text: #e8ebef;
    --muted: #aeb6c1;
    --accent: #7dc4ff;
    --accent-2: #9be38b;
    --border: #3a4048;
    --shadow: rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top, rgba(125, 196, 255, 0.12), transparent 32%),
        linear-gradient(180deg, #17191d 0%, #121417 100%);
    color: var(--text);
}

a {
    color: var(--accent);
}

img {
    max-width: 100%;
    display: block;
}

.shell {
    width: min(1180px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.hero {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
    align-items: center;
    margin-bottom: 28px;
}

.hero-card,
.section-card,
.diagram-card {
    background: linear-gradient(180deg, rgba(42, 47, 54, 0.96), rgba(28, 32, 38, 0.96));
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 50px var(--shadow);
}

.hero-copy {
    padding: 22px;
}

.hero-copy-layout {
    display: block;
}

.hero-icon-panel {
    float: left;
    width: 180px;
    margin: 0 22px 14px 0;
}

.hero-logo {
    width: 180px;
    height: 180px;
    flex: 0 0 180px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(125, 196, 255, 0.10), rgba(255, 255, 255, 0.03));
    padding: 12px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.hero-copy-text > :last-child {
    margin-bottom: 0;
}

.hero-copy-text::after {
    content: "";
    display: block;
    clear: both;
}

.eyebrow {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(125, 196, 255, 0.12);
    color: var(--accent);
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(17px, 2.5vw, 28px);
    line-height: 1.02;
    margin-bottom: 10px;
}

.hero-copy p,
.section-card p {
    color: var(--muted);
    line-height: 1.55;
    font-size: 16px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid transparent;
}

.button-primary {
    background: linear-gradient(180deg, #7dc4ff, #5e9fff);
    color: #11151a;
}

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

.hero-media {
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.section-card {
    padding: 22px;
}

.section-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.diagrams {
    display: grid;
    gap: 18px;
}

.diagram-card {
    padding: 22px;
}

.diagram-card h3 {
    margin-bottom: 14px;
}

.diagram-card .mermaid {
    overflow-x: auto;
}

.footer {
    margin-top: 28px;
    padding: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    text-align: center;
}

@media (max-width: 980px) {
    .hero,
    .section-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy-layout {
        display: block;
    }

    .hero-icon-panel {
        float: none;
        margin: 0 0 16px;
    }
}
