/* Base */
:root {
    color-scheme: light dark;
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #eef4ff;
    --text: #111827;
    --muted: #5b6472;
    --line: #dbe3ef;
    --accent: #2563eb;
    --accent-strong: #1d4ed8;
    --accent-two: #0f766e;
    --accent-three: #d97706;
    --accent-soft: #dbeafe;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0c1220;
        --surface: #111827;
        --surface-soft: #172033;
        --text: #f8fafc;
        --muted: #b6c1d1;
        --line: #263246;
        --accent: #60a5fa;
        --accent-strong: #93c5fd;
        --accent-two: #5eead4;
        --accent-three: #fbbf24;
        --accent-soft: rgba(96, 165, 250, 0.18);
        --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, var(--accent-soft), transparent 34rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

/* Layout */
.site-shell,
.site-footer {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-shell {
    padding: 48px 0 28px;
}

.hero,
.split-section {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
    align-items: center;
}

.hero {
    min-height: 68vh;
    padding: 40px 0 56px;
}

.intro,
.feature-grid,
.split-section {
    margin-top: 28px;
}

.intro {
    max-width: 760px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: var(--shadow);
}

.feature-grid {
    display: grid;
    gap: 18px;
}

.split-section {
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

/* Typography */
.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

h1 {
    max-width: 760px;
    margin-bottom: 20px;
    font-size: clamp(2.4rem, 7vw, 5.25rem);
    line-height: 0.98;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(1.65rem, 4vw, 2.65rem);
    line-height: 1.08;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.hero__text,
.intro p,
.contact-panel p,
.feature-card p {
    color: var(--muted);
}

.hero__text {
    max-width: 640px;
    font-size: 1.08rem;
}

/* Buttons */
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 800;
    text-decoration: none;
}

.button--primary {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.button--secondary {
    border: 1px solid var(--line);
    background: var(--surface);
}

.text-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--accent-strong);
    font-weight: 800;
    text-decoration: none;
}

/* Visuals */
.hero__visual {
    position: relative;
    min-height: 340px;
}

.preview-card {
    position: absolute;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(145deg, var(--surface), var(--surface-soft));
    box-shadow: var(--shadow);
}

.preview-card--large {
    inset: 24px 0 0 24px;
    display: grid;
    gap: 18px;
    align-content: center;
    padding: 34px;
}

.preview-card--large span {
    display: block;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.72;
}

.preview-card--large span:nth-child(2) {
    width: 72%;
}

.preview-card--large span:nth-child(3) {
    width: 48%;
}

.preview-card--small {
    right: 14px;
    bottom: 8px;
    width: 170px;
    padding: 22px;
}

.preview-card--small strong {
    display: block;
    font-size: 2.4rem;
    line-height: 1;
}

.preview-card--small span {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.feature-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.feature-card__icon {
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, var(--accent) 0 48%, transparent 49%),
        var(--accent-soft);
}

.feature-card__icon--alt {
    background:
        radial-gradient(circle at 70% 30%, var(--accent-two) 0 26%, transparent 27%),
        var(--accent-soft);
}

.feature-card__icon--soft {
    background:
        linear-gradient(90deg, transparent 0 28%, var(--accent-three) 29% 70%, transparent 71%),
        var(--accent-soft);
}

.contact-panel {
    color: var(--muted);
}

/* Footer */
.site-footer {
    padding: 28px 0 40px;
    color: var(--muted);
    font-size: 0.92rem;
}

/* Responsive */
@media (min-width: 760px) {
    .hero,
    .split-section {
        grid-template-columns: 1.1fr 0.9fr;
    }

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

@media (max-width: 520px) {
    .site-shell,
    .site-footer {
        width: min(100% - 24px, 1120px);
    }

    .site-shell {
        padding-top: 24px;
    }

    .intro,
    .split-section,
    .feature-card {
        border-radius: 8px;
        padding: 22px;
    }

    .hero__visual {
        min-height: 260px;
    }

    .preview-card--large {
        inset: 10px 18px 20px 0;
    }

    .preview-card--small {
        right: 0;
        width: 145px;
    }
}
