*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --clr-primary: #cc0000;
    --clr-primary-light: #cc3333;
    --clr-black: #000000;
    --clr-dark: #333333;
    --clr-bg: #f5f5f5;
    --clr-card: #ffffff;
    --clr-text: #333333;
    --clr-text-muted: #666666;
    --clr-white: #ffffff;
    --ff: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --card-w: 750px;
    --ease: 0.3s ease;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--ff);
    background: var(--clr-bg);
    color: var(--clr-text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(204, 0, 0, 0.045) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
}

.bg-effects {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bg-effects svg {
    position: absolute;
    fill: var(--clr-primary);
    opacity: 0.045;
}

.gear-1 {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -120px;
    animation: spin-cw 35s linear infinite;
}

.gear-2 {
    width: 320px;
    height: 320px;
    bottom: -100px;
    right: -80px;
    animation: spin-ccw 28s linear infinite;
}

.gear-3 {
    width: 220px;
    height: 220px;
    top: 60%;
    right: 8%;
    animation: spin-cw-offset 22s linear infinite;
}

@keyframes spin-cw {
    to { transform: rotate(360deg); }
}

@keyframes spin-ccw {
    to { transform: rotate(-360deg); }
}

@keyframes spin-cw-offset {
    from { transform: translateY(-50%) rotate(0deg); }
    to   { transform: translateY(-50%) rotate(360deg); }
}

.particle {
    position: absolute;
    bottom: -10px;
    background: var(--clr-primary);
    border-radius: 50%;
    opacity: 0;
    animation: float-up linear infinite;
}

@keyframes float-up {
    0%   { transform: translateY(0); opacity: 0; }
    8%   { opacity: 0.25; }
    85%  { opacity: 0.25; }
    100% { transform: translateY(-105vh); opacity: 0; }
}

.radar {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.radar__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 650px;
    height: 650px;
    margin: -325px 0 0 -325px;
    border: 1.5px solid rgba(204, 0, 0, 0.15);
    border-radius: 50%;
    opacity: 0;
    animation: pulse 4.5s ease-out infinite;
}

.radar__ring--delay {
    animation-delay: 2.25s;
}

@keyframes pulse {
    0%   { transform: scale(0.2); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0; }
}

.main {
    position: relative;
    z-index: 10;
    width: 100%;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    background: var(--clr-card);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    max-width: var(--card-w);
    width: 100%;
    padding: 2rem 2.25rem 1.5rem;
    text-align: center;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 1px 4px rgba(0, 0, 0, 0.04);
    animation: card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card__header {
    margin-bottom: 0.75rem;
}

.card__logo {
    display: block;
    max-width: 240px;
    height: auto;
    margin: 0 auto;
}

.card__divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--clr-primary), transparent);
    border-radius: 2px;
    margin-bottom: 1.25rem;
}

.card__title {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--clr-black);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.card__text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--clr-text-muted);
    margin-bottom: 0.4rem;
}

.card__text--emphasis {
    color: var(--clr-dark);
    font-weight: 500;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.card__footer {
    margin-top: 1.25rem;
}

.contact__title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--clr-dark);
    margin-bottom: 0.5rem;
}

.contact__row {
    display: inline-flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 0.6rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.contact__box {
    display: flex;
    align-items: center;
    padding: 0.55rem 1.2rem;
    background: var(--clr-bg);
}

.contact__email {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--clr-dark);
    letter-spacing: 0.01em;
    user-select: all;
}

.card__micro {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--clr-text-muted);
    font-style: italic;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.55rem 1.4rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
    transition:
        background-color var(--ease),
        box-shadow var(--ease),
        transform var(--ease);
}

.btn--copy {
    background: transparent;
    color: var(--clr-text-muted);
    border: none;
    border-left: 1.5px solid #ddd;
    border-radius: 0;
    padding: 0.55rem 1.2rem;
}

@media (hover: hover) {
    .btn--copy:hover {
        color: var(--clr-primary);
        background: rgba(204, 0, 0, 0.04);
        transform: none;
        box-shadow: none;
    }
}

.btn--copy:focus-visible {
    color: var(--clr-primary);
    background: rgba(204, 0, 0, 0.04);
    transform: none;
    box-shadow: none;
}

@media (hover: hover) {
    .btn--copy:active {
        color: var(--clr-primary);
        background: rgba(204, 0, 0, 0.06);
    }
}

.btn--copy.copied,
.btn--copy.copied:hover,
.btn--copy.copied:active,
.btn--copy.copied:focus-visible {
    color: #2e7d32;
    background: rgba(46, 125, 50, 0.06);
}

.btn:focus-visible {
    outline: 2px solid var(--clr-primary-light);
    outline-offset: 3px;
}

.btn:active {
    transform: translateY(0);
}

.btn__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 600px) {

    .card {
        padding: 1.75rem 1.25rem 1.5rem;
        border-radius: 14px;
    }

    .card__title {
        font-size: 1.35rem;
    }

    .card__text {
        font-size: 0.9rem;
    }

    .card__logo {
        max-width: 220px;
    }

    .contact__row {
        flex-direction: column;
        width: 100%;
    }

    .contact__box {
        justify-content: center;
    }

    .btn--copy {
        border-left: none;
        border-top: 1.5px solid #ddd;
        justify-content: center;
        padding: 0.5rem 1rem;
    }

    .gear-1 {
        width: 260px;
        height: 260px;
    }

    .gear-2 {
        width: 200px;
        height: 200px;
    }

    .gear-3 {
        display: none;
    }

    .radar__ring {
        width: 380px;
        height: 380px;
        margin: -190px 0 0 -190px;
    }
}

@media (max-width: 380px) {
    .card {
        padding: 1.5rem 1rem;
    }

    .card__title {
        font-size: 1.2rem;
    }

    .btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.88rem;
    }
}

@media (prefers-reduced-motion: reduce) {

    .bg-effects svg,
    .particle,
    .radar__ring,
    .card {
        animation: none;
    }

    .card {
        opacity: 1;
    }

    .radar__ring,
    .particle {
        display: none;
    }
}