*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0f1d33;
    --navy-light: #162744;
    --gold: #c9a84c;
    --gold-dim: #a08535;
    --cream: #e8e0d0;
    --white: #f5f2ed;
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(201, 168, 76, 0.15);
    --card-hover: rgba(201, 168, 76, 0.1);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--navy);
    background-image:
        radial-gradient(ellipse at 50% 0%, rgba(22, 39, 68, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(15, 29, 51, 1) 0%, transparent 50%);
    color: var(--cream);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 2rem 1rem 3rem;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* --- Header --- */

header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 4px 20px rgba(201, 168, 76, 0.25));
    animation: fadeInDown 0.6s ease-out;
}

h1 {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    animation: fadeInDown 0.6s ease-out 0.1s both;
}

.motto {
    font-size: 0.82rem;
    color: var(--gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0.85;
    animation: fadeInDown 0.6s ease-out 0.2s both;
}

/* --- Link Cards --- */

.links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--cream);
    transition: all 0.25s ease;
    animation: fadeInUp 0.5s ease-out both;
}

.link-card:nth-child(1) { animation-delay: 0.15s; }
.link-card:nth-child(2) { animation-delay: 0.22s; }
.link-card:nth-child(3) { animation-delay: 0.29s; }
.link-card:nth-child(4) { animation-delay: 0.36s; }
.link-card:nth-child(5) { animation-delay: 0.43s; }
.link-card:nth-child(6) { animation-delay: 0.50s; }

.link-card:hover {
    background: var(--card-hover);
    border-color: rgba(201, 168, 76, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.08);
}

.link-card:active {
    transform: translateY(0);
}

.link-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
    width: 2rem;
    text-align: center;
}

.link-text {
    flex: 1;
    min-width: 0;
}

.link-title {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
}

.link-sub {
    display: block;
    font-size: 0.73rem;
    color: var(--gold-dim);
    margin-top: 0.15rem;
    letter-spacing: 0.02em;
}

.arrow {
    font-size: 1.2rem;
    color: rgba(201, 168, 76, 0.35);
    flex-shrink: 0;
    transition: color 0.25s ease, transform 0.25s ease;
}

.link-card:hover .arrow {
    color: var(--gold);
    transform: translateX(3px);
}

/* --- Support Section --- */

.section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-dim);
    text-align: center;
    margin-bottom: 0.65rem;
}

.support {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.donate-card {
    border-color: rgba(201, 168, 76, 0.25);
}

.donate-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.12);
}

/* --- Socials --- */

.socials {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-top: 0.5rem;
    animation: fadeInUp 0.5s ease-out 0.6s both;
}

.socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--cream);
    transition: all 0.25s ease;
}

.socials a:hover {
    background: var(--card-hover);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.12);
}

.socials svg {
    width: 18px;
    height: 18px;
}

/* --- Footer --- */

footer {
    text-align: center;
    animation: fadeInUp 0.5s ease-out 0.7s both;
}

footer p {
    font-size: 0.78rem;
    color: rgba(232, 224, 208, 0.35);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.creator-credit {
    margin-top: 0.75rem;
    font-size: 0.7rem;
    color: rgba(232, 224, 208, 0.25);
}

.creator-credit a {
    color: rgba(201, 168, 76, 0.4);
    text-decoration: none;
    transition: color 0.25s ease;
}

.creator-credit a:hover {
    color: var(--gold);
}

/* --- Animations --- */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */

@media (max-width: 400px) {
    .logo {
        width: 110px;
        height: 110px;
    }

    h1 {
        font-size: 1.4rem;
    }

    .link-card {
        padding: 0.75rem 0.85rem;
        gap: 0.7rem;
    }

    .link-title {
        font-size: 0.85rem;
    }

    .socials a {
        width: 38px;
        height: 38px;
    }

    .socials svg {
        width: 16px;
        height: 16px;
    }
}
