* {
    box-sizing: border-box;
}

.content {
    min-width: 0;
}

.kicker {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-2, #60a5fa), var(--accent, #2dd4bf));
    padding: 6px 10px;
    border-radius: 999px;
    color: #022;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 12px;
}

h1 {
    font-size: clamp(26px, 4vw + 0.5rem, 44px);
    line-height: 1.03;
    margin: 0 0 12px;
    font-weight: 900;
}

.accent {
    background: linear-gradient(90deg, var(--accent, #2dd4bf), #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    color: var(--muted, rgba(255,255,255,0.78));
    font-size: 16px;
    margin-bottom: 18px;
}

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

.hero-cta-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--accent, #2dd4bf);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.hero-cta-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.btn {
    background: var(--accent, #2dd4bf);
    color: #022;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--accent, #2dd4bf) 40%, transparent);
}

.btn:active {
    transform: translateY(0);
    filter: brightness(0.96);
    box-shadow: none;
}

.btn.ghost {
    background: transparent;
    color: var(--font-color, #ffffff);
    border: 1px solid var(--card-border, rgba(255,255,255,0.06));
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn.ghost:hover {
    background: var(--nav-hover-bg, rgba(255,255,255,0.06));
    border-color: var(--accent, #2dd4bf);
    transform: translateY(-2px);
}

.btn.ghost:active {
    transform: translateY(0);
    background: transparent;
}

@media (prefers-reduced-motion: reduce) {
    .btn, .btn.ghost {
        transition: none;
    }
}

.stats {
    display: flex;
    gap: 18px;
    margin-top: 16px;
    color: var(--muted, rgba(255,255,255,0.78));
    font-weight: 700;
}

.stat {
    display: flex;
    flex-direction: column;
}

/* ── Portrait image ──────────────────────────────────────── */
.portrait {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-origin: center center;
    will-change: transform;
}

@media (hover: hover) {
    .portrait-col:hover .portrait {
        transform: perspective(600px) rotateY(-5deg) rotateX(3deg) scale(1.02);
        box-shadow: 8px 16px 40px var(--card-shadow, rgba(2,6,23,0.5));
    }
}

@media (max-width: 400px) {
    /* On mobile: portrait becomes a centred circle above the text */
    .portrait-col {
        order: -1;
        display: flex;
        justify-content: center;
    }

    .portrait {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        object-fit: cover;
        object-position: top center;
        box-shadow: 0 8px 32px var(--card-shadow, rgba(2,6,23,0.5));
        border: 3px solid var(--accent, #2dd4bf);
    }
}

.stat .num {
    color: var(--accent, #2dd4bf);
    font-size: 18px;
}

.visual {
    width: 360px;
    border-radius: 14px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 16px 40px rgba(2,6,23,0.6);
}

@media (max-width: 880px) {
    .visual {
        width: 100%;
    }
}

.visual-top {
    display: flex;
    gap: 10px;
    align-items: center;
}

.illustration {
    flex: 1;
    height: 160px;
    border-radius: 10px;
    background: linear-gradient(135deg, #06b6d4, #60a5fa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #022;
    font-size: 34px;
}

.icons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mini {
    width: 60px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    display: inline-grid;
    place-items: center;
    color: var(--accent, #2dd4bf);
    font-weight: 800;
}

.muted-small {
    color: var(--muted, rgba(255,255,255,0.78));
    font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}

/* Responsive layout for hero: stack on small, side-by-side on larger screens */
.hero {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: stretch;
}
.hero .content,
.hero .visual {
    flex: 1 1 100%;
}
.hero .visual {
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        align-items: center;
    }
    .hero .content {
        flex: 0 0 60%;
        padding-right: 1rem;
    }
    .hero .visual {
        flex: 0 0 40%;
        margin-top: 0;
    }
}

@media (min-width: 1100px) {
    .hero .content { flex: 0 0 65%; }
    .hero .visual  { flex: 0 0 35%; }
}