:root {
    --bg: #f4f7ff;
    --paper: #ffffff;
    --ink: #0f172a;
    --muted: #475569;
    --brand: #1d4ed8;
    --brand-2: #0ea5a4;
    --line: #d8e0f0;
    --shadow: 0 18px 36px rgba(29, 78, 216, 0.14);
    --radius-lg: 24px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at 12% 0%, #e8efff 0, #f4f7ff 45%, #edf8ff 100%);
    color: var(--ink);
    font-family: "Manrope", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.page,
.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 20px 64px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
}

.logo {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: block;
}

.menu {
    display: flex;
    gap: 18px;
    color: var(--muted);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.hero {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, #ffffff 0%, #f2f7ff 45%, #eefcfc 100%);
    padding: 46px 42px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: rise 700ms ease-out both;
}

.hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    right: -120px;
    top: -120px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.2) 0%, rgba(29, 78, 216, 0) 72%);
}

.eyebrow {
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8efff;
    color: #1e3a8a;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    max-width: 720px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.hero p,
.lead {
    margin: 16px 0 0;
    max-width: 700px;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.65;
}

.page .grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.wrap .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.tile,
.card,
.section,
.stat {
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: var(--radius-md);
    padding: 18px;
    animation: rise 700ms ease-out both;
}

.card:nth-child(1),
.tile:nth-child(1) { animation-delay: 120ms; }
.card:nth-child(2),
.tile:nth-child(2) { animation-delay: 210ms; }
.card:nth-child(3),
.tile:nth-child(3) { animation-delay: 300ms; }
.card:nth-child(4),
.tile:nth-child(4) { animation-delay: 390ms; }
.card:nth-child(5),
.tile:nth-child(5) { animation-delay: 480ms; }
.card:nth-child(6),
.tile:nth-child(6) { animation-delay: 570ms; }

.tile h3,
.card h2,
.section h2,
h2 {
    margin: 0 0 8px;
    font-size: 1.04rem;
}

.tile p,
.card p,
.card li,
.section p,
.section li,
p,
li,
.meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.card ul,
.section ul,
ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.stat strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.04rem;
}

.stat span {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.cta,
.links,
.actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 18px;
    border-radius: 12px;
    border: 1px solid var(--line);
    font-weight: 700;
    font-size: 0.95rem;
    background: #fff;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.btn-primary,
.btn.primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(29, 78, 216, 0.28);
}

.btn-secondary {
    border-color: var(--line);
    background: #fff;
}

.screens {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.screens img {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    display: block;
}

.project-link-wrap {
    margin-top: 10px;
}

.project-link {
    color: var(--brand);
    font-weight: 700;
}

.tagline {
    color: var(--brand);
    font-weight: 700;
}

.footer {
    margin-top: 20px;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 920px) {
    .page .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 680px) {
    .page,
    .wrap {
        padding: 18px 14px 48px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .menu {
        gap: 10px 14px;
    }

    .hero {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .page .grid,
    .wrap .grid,
    .stats,
    .screens {
        grid-template-columns: 1fr;
    }
}
