:root {
    --bg-color: #0E0E0F;
    --surface-color: #111114;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent: hsl(129, 4%, 68%);
    --accent-glow: rgba(19, 140, 104, 0.35);
    --border: #2c2c32;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: 'Gravity', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* Prevents unwanted horizontal bounce on mobile */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: disc;
    padding-left: 1.25rem;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem clamp(1rem, 5vw, 2.5rem);
    background-color: rgba(11, 14, 18, 0.75);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand h1 {
    font-size: clamp(1.1rem, 4vw, 1.25rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(to right, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-buttons {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    gap: 0.75rem;
}

.nav-buttons a {
    cursor: pointer;
}

.clipboard-copy {
    position: relative;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background-color: var(--surface-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-contact {
    background-color: var(--text-primary);
    color: var(--bg-color);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-contact:hover {
    background-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Main Content */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 5vw, 2rem) 4rem;
}

.hero {
    text-align: center;
    width: 100%;
    margin-bottom: 2rem;
    padding-bottom: clamp(2.5rem, 6vw, 5rem);
    border-bottom: 2px solid var(--border);
}

.hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    animation: fadeIn 0.8s ease-out;
}

.content-subhead {
    font-size: 1.05rem;
    width: 100%;
    color: var(--text-primary);
    margin: 1rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    text-align: left;
}

.rules {
    width: 100%;
    border-radius: 6px;
}

/* Social Grid */
.socials-container {
    display: grid;
    /* Reduced min size to 280px to avoid overflow on narrow phones like iPhone SE */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
}

.social-card {
    background-color: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    transition: var(--transition);
}

.social-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--accent-glow);
}

.social-card:hover .card-text p {
    color: rgba(255, 255, 255, 0.9);
}

.card-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-text p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    transition: var(--transition);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Mobile Adjustments */
@media (max-width: 600px) {
    .site-header {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .social-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}