@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap");

:root {
    --accent: #3b82f6;
    --accent-light: #60a5fa;

    font-family:
        "Inter",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color-scheme: dark;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: #06080c;
}

/* ─────────────────────────────
   Header
───────────────────────────── */

.brand {
    display: flex;
    align-items: center;
    gap: 11px;

    color: white;

    text-decoration: none;
}

.brand-mark {
    display: grid;

    width: 20px;
    height: 20px;

    grid-template-columns: repeat(4, 1fr);
    align-items: end;
    gap: 2px;
}

.brand-mark span {
    display: block;

    border-radius: 1px;

    background: var(--accent);

    box-shadow: 0 0 10px rgba(59, 130, 246, 0.18);
}

.brand-mark span:nth-child(1) {
    height: 35%;
}

.brand-mark span:nth-child(2) {
    height: 60%;
}

.brand-mark span:nth-child(3) {
    height: 48%;
}

.brand-mark span:nth-child(4) {
    height: 90%;
}

.header-contact {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);

    transition: color 200ms ease;
}

.header-contact:hover {
    color: white;
}

/* ─────────────────────────────
   Hero
───────────────────────────── */

.hero-section {
    background:
        radial-gradient(
            ellipse 65% 75% at 82% 45%,
            rgba(37, 99, 235, 0.3),
            transparent 72%
        ),
        #091321;
}

.hero-grid {
    opacity: 0.45;

    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);

    background-size: 72px 72px;

    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black 35%,
        transparent 85%
    );
}

.hero-glow {
    width: 560px;
    height: 560px;

    right: -180px;
    top: 80px;

    border-radius: 50%;

    background: rgba(59, 130, 246, 0.06);

    filter: blur(110px);

    pointer-events: none;
}

.hero-title {
    animation: hero-enter 850ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ─────────────────────────────
   Buttons
───────────────────────────── */

.premium-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;
    gap: 20px;

    min-height: 54px;

    padding: 0 24px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;

    background: var(--accent);
    color: white;

    font-size: 12px;
    font-weight: 500;

    cursor: pointer;

    box-shadow:
        0 8px 30px rgba(59, 130, 246, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);

    transition:
        transform 220ms ease,
        background 220ms ease,
        box-shadow 220ms ease;
}

.premium-button:hover {
    transform: translateY(-2px);

    background: #4b8df8;

    box-shadow:
        0 14px 40px rgba(59, 130, 246, 0.28),
        0 0 0 4px rgba(59, 130, 246, 0.06);
}

.copy-email-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    min-width: 220px;
    min-height: 52px;
    padding: 0 20px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.035);
    color: rgba(255, 255, 255, 0.78);

    font-size: 12px;
    font-weight: 500;

    cursor: pointer;

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease,
        color 180ms ease,
        box-shadow 180ms ease;
}

.copy-email-button:hover {
    transform: translateY(-1px);

    border-color: rgba(96, 165, 250, 0.42);

    background: rgba(59, 130, 246, 0.09);
    color: white;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.18),
        0 0 0 3px rgba(59, 130, 246, 0.06);
}

.copy-email-button:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px;
}

.copy-email-button:active {
    transform: translateY(0);
}

.copy-email-button.is-copied {
    border-color: rgba(134, 239, 172, 0.28);

    background: rgba(34, 197, 94, 0.08);
    color: #bbf7d0;

    box-shadow:
        inset 0 1px 0 rgba(187, 247, 208, 0.06),
        0 0 24px rgba(34, 197, 94, 0.06);
}

.copy-email-icon {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    flex: 0 0 17px;
}

.copy-email-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.secondary-button {
    display: inline-flex;

    align-items: center;
    gap: 12px;

    min-height: 54px;

    padding: 0 18px;

    color: rgba(255, 255, 255, 0.42);

    font-size: 12px;

    text-decoration: none;

    transition:
        color 200ms ease,
        transform 200ms ease;
}

.secondary-button:hover {
    color: white;
    transform: translateX(2px);
}

.secondary-button span {
    color: var(--accent);
}

/* ─────────────────────────────
   Example analysis card
───────────────────────────── */

.profile-card {
    position: relative;

    padding: 28px;

    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 18px;

    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.045),
        rgba(59, 130, 246, 0.035) 50%,
        rgba(255, 255, 255, 0.01)
    );

    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(59, 130, 246, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    backdrop-filter: blur(20px);
}

.analysis-status {
    display: flex;

    align-items: center;
    gap: 7px;

    max-width: 150px;

    text-align: right;

    font-size: 8px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.11em;

    color: var(--accent-light);
}

.analysis-status span {
    flex: 0 0 auto;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--accent);

    box-shadow:
        0 0 7px rgba(59, 130, 246, 0.8),
        0 0 15px rgba(59, 130, 246, 0.35);
}

.declared-bar {
    height: 8px;

    overflow: hidden;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.06);
}

.declared-bar-fill {
    width: 75%;
    height: 100%;

    border-radius: inherit;

    background: rgba(255, 255, 255, 0.55);
}

.composition-list {
    display: grid;
    gap: 18px;
}

.composition-row {
    display: grid;
    gap: 8px;
}

.composition-row > div:first-child {
    font-size: 12px;
}

.composition-bar {
    height: 6px;

    overflow: hidden;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.05);
}

.composition-fill {
    height: 100%;

    border-radius: inherit;

    background: rgba(255, 255, 255, 0.22);
}

.composition-fill.primary {
    background: rgba(59, 130, 246, 0.75);

    box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.composition-fill.anomaly {
    background: var(--accent-light);

    box-shadow: 0 0 14px rgba(59, 130, 246, 0.35);
}

.result-summary {
    display: flex;

    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 17px 18px;

    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 10px;

    background: rgba(59, 130, 246, 0.05);
}

.result-summary span {
    display: block;

    margin-bottom: 7px;

    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.16em;

    color: rgba(255, 255, 255, 0.28);
}

.result-summary strong {
    display: block;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;

    color: rgba(255, 255, 255, 0.72);
}

.result-icon {
    display: flex;

    width: 28px;
    height: 28px;

    flex: 0 0 auto;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;

    color: var(--accent-light);

    font-size: 12px;
}

/* ─────────────────────────────
   Typography
───────────────────────────── */

.section-title {
    max-width: 760px;

    font-size: clamp(2.1rem, 4vw, 4rem);
    font-weight: 300;

    line-height: 1.05;

    letter-spacing: -0.045em;

    color: rgba(255, 255, 255, 0.92);
}

/* ─────────────────────────────
   Audience
───────────────────────────── */

.audience-section {
    background:
        radial-gradient(
            ellipse 75% 120% at 15% 55%,
            rgba(20, 134, 105, 0.28),
            transparent 74%
        ),
        #0a1917;
}

.audience-card {
    min-height: 210px;
}

.audience-card h3 {
    max-width: 300px;
}

.audience-card p {
    max-width: 320px;
}

/* ─────────────────────────────
   Process
───────────────────────────── */

.process-section {
    background:
        radial-gradient(
            ellipse 70% 110% at 90% 35%,
            rgba(14, 116, 144, 0.27),
            transparent 72%
        ),
        #0b1720;
}

.section-glow {
    width: 500px;
    height: 500px;

    right: -150px;
    top: 100px;

    border-radius: 50%;

    background: rgba(59, 130, 246, 0.03);

    filter: blur(100px);

    pointer-events: none;
}

.process-card {
    position: relative;

    min-height: 270px;

    transition:
        background 250ms ease,
        transform 250ms ease;
}

.process-card:hover {
    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(59, 130, 246, 0.05),
            transparent 45%
        ),
        #0d1014;
}

.process-line {
    display: block;

    width: 38px;
    height: 1px;

    margin-top: 5px;

    background: rgba(59, 130, 246, 0.35);

    transition:
        width 250ms ease,
        background 250ms ease;
}

.process-card:hover .process-line {
    width: 58px;
    background: var(--accent);

    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* ─────────────────────────────
   Supported proteins
───────────────────────────── */

.support-card {
    min-height: 170px;

    padding: 22px;

    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;

    background: #0a0d11;

    transition:
        border-color 250ms ease,
        transform 250ms ease,
        background 250ms ease,
        box-shadow 250ms ease;
}

.support-card:hover {
    transform: translateY(-3px);

    border-color: rgba(59, 130, 246, 0.25);

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(59, 130, 246, 0.07),
            transparent 55%
        ),
        #0d1014;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* ─────────────────────────────
   Contact
───────────────────────────── */

.contact-section {
    background:
        radial-gradient(
            ellipse at 18% 0%,
            rgba(37, 99, 235, 0.2),
            transparent 58%
        ),
        linear-gradient(180deg, #101c32 0%, #0b111b 100%);
}

.contact-message {
    max-width: 660px;

    padding: 18px 20px;

    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;

    background: rgba(59, 130, 246, 0.045);

    animation: message-enter 300ms ease both;
}

.email-link {
    color: rgba(255, 255, 255, 0.42);

    font-size: 13px;

    text-decoration: none;

    transition: color 200ms ease;
}

.email-link:hover {
    color: var(--accent-light);
}

/* ─────────────────────────────
   Animations
───────────────────────────── */

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes message-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─────────────────────────────
   Mobile
───────────────────────────── */

@media (max-width: 640px) {
    .hero-section {
        background:
            radial-gradient(
                ellipse 100% 45% at 50% 25%,
                rgba(59, 130, 246, 0.075),
                transparent 70%
            ),
            #06080c;
    }

    .hero-title {
        font-size: clamp(2.65rem, 12vw, 4rem);
        line-height: 1.01;
    }

    .premium-button,
    .secondary-button {
        width: 100%;
    }

    .premium-button {
        padding-left: 20px;
        padding-right: 20px;
    }

    .copy-email-button {
        width: 100%;
    }

    .profile-card {
        padding: 21px;
    }

    .analysis-status {
        max-width: 115px;
        font-size: 7px;
    }

    .result-summary strong {
        font-size: 11px;
    }

    .contact-glow {
        display: none;
    }

    .audience-card {
        min-height: auto;
    }

    .process-card {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
