:root {
    color-scheme: light dark;
    --bg: #eef2ff;
    --bg-accent: #f8fafc;
    --glass: rgba(255, 255, 255, 0.78);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #2563eb;
    --accent-soft: rgba(37, 99, 235, 0.18);
    --border: rgba(148, 163, 184, 0.25);
}

:root[data-theme='dark'] {
    --bg: #020617;
    --bg-accent: rgba(2, 6, 23, 0.6);
    --glass: rgba(15, 23, 42, 0.78);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent: #60a5fa;
    --accent-soft: rgba(96, 165, 250, 0.25);
    --border: rgba(51, 65, 85, 0.6);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at 20% 25%, rgba(148, 197, 255, 0.25), transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(165, 180, 252, 0.2), transparent 55%),
        linear-gradient(150deg, var(--bg-accent) 0%, var(--bg) 100%);
    color: var(--text-primary);
    min-height: 100vh;
}

:root[data-theme='dark'] body {
    background:
        radial-gradient(circle at 20% 25%, rgba(96, 165, 250, 0.18), transparent 55%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.16), transparent 55%),
        linear-gradient(160deg, #020617 0%, #0b1220 100%);
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 5vw, 4rem);
}

.page {
    width: min(100%, 1200px);
}

.card {
    display: grid;
    justify-items: center;
    gap: 1.6rem;
    padding: clamp(2.6rem, 6vw, 3.6rem);
    border-radius: 28px;
    background: var(--glass);
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
}

.avatar {
    width: clamp(120px, 22vw, 170px);
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    background: url('../imgs/mike.jpg') center/cover;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.25);
}

.copy {
    display: grid;
    gap: 1.3rem;
    max-width: 900px;
    text-align: left;
    justify-items: start;
}

.eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}

h1 {
    font-size: clamp(2rem, 5vw, 2.6rem);
    margin: 0;
}


.role {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.company span {
    font-weight: 500;
}

.lead {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.copy p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.aside {
    color: rgba(71, 85, 105, 0.85);
    font-size: 0.95rem;
}

:root[data-theme='dark'] .aside {
    color: rgba(148, 163, 184, 0.88);
}

.cta {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
}

:root[data-theme='dark'] .cta {
    color: rgba(96, 165, 250, 0.85);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
}

.btn {
    background: linear-gradient(135deg, var(--accent) 0%, #60a5fa 100%);
    color: #f8fbff;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
}

.btn-light {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--text-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

:root[data-theme='dark'] .btn-light {
    background: rgba(15, 23, 42, 0.7);
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.btn__icon svg {
    width: 100%;
    height: 100%;
}

.social {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.1rem;
    padding: 0;
    margin: 0;
}

.social a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.social a:hover,
.social a:focus {
    text-decoration: underline;
}

.smilecx-trigger {
    color: inherit;
    font-weight: inherit;
    cursor: pointer;
    position: relative;
    display: inline-block;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    text-decoration: none;
}

.smilecx-trigger:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 0.15em;
    border-radius: 2px;
}

.smilecx-logo {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate3d(-9999px, -9999px, 0);
    transform-origin: center;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.25));
    will-change: transform, opacity;
}

.smilecx-logo img {
    width: 20px;
    height: 20px;
    display: block;
}

.theme-toggle {
    position: fixed;
    top: clamp(1rem, 4vw, 2rem);
    right: clamp(1rem, 4vw, 2rem);
    z-index: 10;
    --toggle-width: 60px;
    --toggle-height: 30px;
    --thumb-size: 24px;
    --thumb-offset: 3px;
    --thumb-translate: 0px;
    width: var(--toggle-width);
    height: var(--toggle-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.theme-toggle:hover,
.theme-toggle:focus {
    transform: translateY(-1px);
}

.theme-toggle:not(.is-ready),
.theme-toggle:not(.is-ready) .theme-toggle__thumb,
.theme-toggle:not(.is-ready) .theme-toggle__icon {
    transition: none !important;
}

.theme-toggle__track {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.theme-toggle__icon {
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    display: grid;
    place-items: center;
    color: rgba(15, 23, 42, 0.5);
    opacity: 0.75;
    transition: color 0.25s ease, opacity 0.25s ease, transform 0.3s ease;
}

.theme-toggle__icon--sun {
    left: calc(var(--thumb-offset) + var(--thumb-size) / 2);
    transform: translate(-50%, -50%);
}

.theme-toggle__icon--moon {
    right: calc(var(--thumb-offset) + var(--thumb-size) / 2);
    transform: translate(50%, -50%);
}

.theme-toggle__thumb {
    position: absolute;
    top: 50%;
    left: var(--thumb-offset);
    width: var(--thumb-size);
    height: var(--thumb-size);
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(226, 232, 240, 0.7));
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.22);
    transform: translate3d(var(--thumb-translate), -50%, 0);
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.35, 1), box-shadow 0.25s ease;
}

.theme-toggle[data-theme='light'] .theme-toggle__icon--sun {
    color: var(--text-primary);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

.theme-toggle[data-theme='dark'],
html[data-theme='dark'] .theme-toggle {
    --thumb-translate: calc(var(--toggle-width) - var(--thumb-size) - var(--thumb-offset) * 2);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 16px 30px rgba(2, 6, 23, 0.45);
}

.theme-toggle[data-theme='dark'] .theme-toggle__icon--moon,
html[data-theme='dark'] .theme-toggle .theme-toggle__icon--moon {
    color: #f8fafc;
    opacity: 1;
    transform: translate(50%, -50%) scale(1.05);
}

.theme-toggle[data-theme='dark'] .theme-toggle__thumb,
html[data-theme='dark'] .theme-toggle .theme-toggle__thumb {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(59, 130, 246, 0.6));
}

.theme-toggle[data-theme='dark'] .theme-toggle__icon--sun,
html[data-theme='dark'] .theme-toggle .theme-toggle__icon--sun {
    opacity: 0.6;
    color: rgba(226, 232, 240, 0.65);
    transform: translate(-50%, -50%) scale(0.95);
}

@media (min-width: 768px) {
    .card {
        grid-template-columns: auto minmax(0, 1fr);
        justify-items: stretch;
        align-items: start;
        column-gap: clamp(2.4rem, 5vw, 3.8rem);
    }

    .avatar {
        justify-self: start;
    }

    .copy {
        max-width: 100%;
    }

    .actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    body {
        align-items: flex-start;
        padding-top: calc(clamp(1.5rem, 5vw, 4rem) + 4.5rem);
    }

    .copy {
        text-align: center;
        justify-items: center;
    }

    .copy p,
    .cta {
        text-align: center;
    }

    .actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 2rem;
        gap: 1.5rem;
    }

    .actions {
        flex-direction: column;
        width: 100%;
    }

    .btn,
    .btn-light {
        width: 100%;
    }

    .social {
        flex-direction: column;
    }
}
