/* Brand tokens — preserved colors and font */
:root {
    --color-bg-deep: #000000;
    --color-bg-radial: #3a0101;
    --color-accent: #8a0707;
    --color-accent-bright: #c41010;
    --color-text: #ffffff;
    --color-text-dim: rgba(255, 255, 255, 0.78);
    --color-surface: rgba(10, 3, 3, 0.72);
    --color-border: rgba(138, 7, 7, 0.55);
}

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

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(196, 16, 16, 0.18) 0%, transparent 60%),
        radial-gradient(circle at center, var(--color-bg-radial) 0%, var(--color-bg-deep) 75%);
    background-attachment: fixed;
    color: var(--color-text);
    font-family: franklin-gothic-demi-cond, franklin-gothic-urw-cond, franklin-gothic-urw, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient glow accents */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 55vw;
    height: 55vw;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

body::before {
    top: -15%;
    left: -15%;
    background: radial-gradient(circle, rgba(196, 16, 16, 0.10) 0%, transparent 65%);
}

body::after {
    bottom: -20%;
    right: -15%;
    background: radial-gradient(circle, rgba(138, 7, 7, 0.08) 0%, transparent 65%);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem;
    position: relative;
    z-index: 1;
}

/* Logo with subtle radial halo */
.logo-container {
    text-align: center;
    margin: 0 0 1.25rem;
    position: relative;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(196, 16, 16, 0.22) 0%, transparent 60%);
    filter: blur(24px);
    pointer-events: none;
    z-index: -1;
}

.logo {
    max-width: 215px;
    height: auto;
    filter: drop-shadow(0 0 16px rgba(196, 16, 16, 0.35));
}

/* gtranslate widget polish */
.language-picker {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1.2rem;
    padding: 0.4rem 0.5rem 0.4rem 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(196, 16, 16, 0.42);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.language-label {
    color: rgba(255, 220, 220, 0.86);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.gtranslate_wrapper {
    display: inline-block;
    min-height: 34px;
    padding: 4px;
    background-color: #ffffff;
    border: 2px solid var(--color-accent);
    border-radius: 6px;
}

/* Glass content panel */
.content {
    position: relative;
    text-align: center;
    max-width: 880px;
    margin: 1rem auto;
    padding: 2.5rem 2.75rem;
    background: var(--color-surface);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    border: 1px solid var(--color-border);
    border-radius: 24px;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.55),
        0 0 80px rgba(138, 7, 7, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Subtle gradient highlight along the panel border */
.content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg,
        rgba(196, 16, 16, 0.6) 0%,
        rgba(196, 16, 16, 0.05) 35%,
        rgba(196, 16, 16, 0.05) 65%,
        rgba(196, 16, 16, 0.4) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

/* Typography */
h1 {
    color: var(--color-text);
    font-size: 2.8rem;
    margin: 0 0 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    line-height: 1.1;
    text-shadow:
        0 0 28px rgba(196, 16, 16, 0.65),
        0 0 60px rgba(138, 7, 7, 0.45);
}

h2 {
    font-size: 1.35rem;
    margin: 0 0 1.35rem;
    font-weight: 400;
    color: var(--color-text-dim);
    letter-spacing: 0;
    line-height: 1.45;
}

h3 {
    font-size: 1.35rem;
    margin: 2.25rem 0 1rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-bright), transparent);
    border-radius: 2px;
}

.description {
    text-align: center;
    margin: 1.75rem auto 0;
    max-width: 800px;
}

.description-left {
    text-align: left;
}

.description h3 {
    margin-top: 2.5rem;
}

p {
    margin-bottom: 1.4rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text-dim);
}

a {
    color: #ff6f6f;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 111, 111, 0.3);
    transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover,
a:focus-visible {
    color: #ff9090;
    border-bottom-color: rgba(255, 144, 144, 0.7);
}

strong {
    color: var(--color-text);
    font-weight: 700;
}

em {
    color: rgba(255, 200, 200, 0.85);
}

code {
    background: rgba(196, 16, 16, 0.14);
    color: #ffb3b3;
    padding: 0.15rem 0.5rem;
    border-radius: 5px;
    border: 1px solid rgba(196, 16, 16, 0.22);
    font-family: 'SF Mono', Monaco, 'Cascadia Mono', Consolas, 'Courier New', monospace;
    font-size: 0.88em;
}

ul, ol {
    text-align: left;
    padding-left: 1.5rem;
    margin: 1rem 0 1.5rem;
    color: var(--color-text-dim);
}

li {
    margin-bottom: 0.7rem;
    line-height: 1.7;
}

.spaced-list-item {
    margin-top: 1rem;
}

li::marker {
    color: var(--color-accent-bright);
}

/* Social/CTA buttons */
.social-links {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 1.75rem;
}

.social-links-primary {
    margin-top: 1.25rem;
}

.social-links-secondary {
    margin-top: 1.75rem;
}

.social-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    width: 280px;
    min-height: 84px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
    white-space: normal;
    color: var(--color-text);
    background: linear-gradient(180deg, rgba(22, 6, 6, 0.92) 0%, rgba(0, 0, 0, 0.95) 100%);
    border: 1px solid var(--color-border);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(196, 16, 16, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    overflow: hidden;
    isolation: isolate;
    transition:
        transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
        border-color 0.25s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.primary-action {
    border-color: rgba(255, 111, 111, 0.9);
    background: linear-gradient(180deg, rgba(138, 7, 7, 0.96) 0%, rgba(26, 3, 3, 0.98) 100%);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.48),
        0 0 30px rgba(196, 16, 16, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

/* Sweep highlight on hover */
.social-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(196, 16, 16, 0.35) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.social-button:hover,
.social-button:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(196, 16, 16, 0.95);
    background: linear-gradient(180deg, rgba(138, 7, 7, 0.85) 0%, rgba(60, 5, 5, 0.95) 100%);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.55),
        0 0 36px rgba(196, 16, 16, 0.5),
        0 0 70px rgba(196, 16, 16, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.social-button:hover::before,
.social-button:focus-visible::before {
    opacity: 1;
}

.social-button:focus-visible {
    outline: 2px solid rgba(255, 130, 130, 0.7);
    outline-offset: 3px;
}

.social-button:active {
    transform: translateY(-1px);
    transition-duration: 0.1s;
}

.social-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.social-button:hover .social-icon,
.social-button:focus-visible .social-icon {
    transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .social-button,
    .social-icon {
        transition: none;
    }
    .social-button:hover,
    .social-button:focus-visible {
        transform: none;
    }
    .social-button:hover .social-icon,
    .social-button:focus-visible .social-icon {
        transform: none;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    main {
        padding: 2rem 1rem;
    }
    .content {
        padding: 2.25rem 1.75rem;
        border-radius: 20px;
    }
    h1 {
        font-size: 2.25rem;
    }
    h2 {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }
    .logo {
        max-width: 200px;
    }
    .logo-container::before {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    main {
        padding: 1rem 0.75rem;
    }
    .content {
        padding: 1.6rem 1rem;
        border-radius: 18px;
    }
    .logo-container {
        margin-bottom: 1rem;
    }
    .logo {
        max-width: 170px;
    }
    .language-picker {
        flex-direction: column;
        gap: 0.35rem;
        margin-bottom: 1rem;
    }
    h1 {
        font-size: 1.85rem;
    }
    h2 {
        font-size: 1.05rem;
        margin-bottom: 1.1rem;
    }
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 0.85rem;
    }
    .social-button {
        width: 100%;
        max-width: 320px;
    }
}
