/* ================================================================
   TruckSim GPS — Shared Styles
   Design: Refined Waves (Design A)
   ================================================================ */

/* Self-hosted Sora font — eliminates render-blocking external request */
/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/sora-latin-400-normal.woff2);
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/sora-latin-ext-400-normal.woff2);
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/sora-latin-500-normal.woff2);
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/sora-latin-ext-500-normal.woff2);
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/sora-latin-600-normal.woff2);
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/sora-latin-ext-600-normal.woff2);
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    background-color: #0f172a;
    overscroll-behavior: none;
}

body {
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    min-height: 100dvh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

a {
    color: #60a5fa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================================================================
   ANIMATED GRADIENT WAVES
   ================================================================ */
.wave-top, .wave-bottom {
    position: fixed;
    left: 0;
    right: 0;
    height: 420px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.wave-top {
    top: -80px;
}

.wave-bottom {
    bottom: -80px;
    transform: rotate(180deg);
}

.wave-top svg, .wave-bottom svg {
    width: 200%;
    min-width: 1400px;
    height: 100%;
    animation: wave-drift 18s ease-in-out infinite alternate;
}

.wave-bottom svg {
    animation-delay: -9s;
    animation-duration: 22s;
}

@keyframes wave-drift {
    0% { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}

/* ================================================================
   BACK LINK
   ================================================================ */
.back-link {
    display: inline-block;
    margin-bottom: 24px;
    font-size: 0.88rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #94a3b8;
    text-decoration: none;
}

/* ================================================================
   HOMEPAGE — Page Content
   ================================================================ */
.page-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
    padding: 44px 24px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ================================================================
   HOMEPAGE — Logo
   ================================================================ */
.logo {
    width: 110px;
    height: 110px;
    border-radius: 26px;
    margin-bottom: 16px;
    filter: drop-shadow(0 12px 40px rgba(249, 115, 22, 0.2));
}

/* ================================================================
   HOMEPAGE — Title & Subtitle
   ================================================================ */
.hero-title {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.hero-tagline {
    font-size: clamp(0.75rem, 1.8vw, 0.95rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    font-weight: 500;
    margin-bottom: 12px;
}

/* ================================================================
   LAUNCHED MODE — Download band + demoted community buttons
   ================================================================ */

/* Full-width download band — visual stage for store buttons */
body.launched-mode .store-buttons {
    width: 100vw;
    max-width: none;
    padding: 28px 24px;
    background: rgba(255, 255, 255, 0.025);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-direction: row;
    justify-content: center;
    margin-bottom: 24px;
}

body.launched-mode .btn-store {
    flex: 1;
    max-width: 220px;
    padding: 16px 22px;
}

/* Community buttons use their default styles in launched mode */

/* ================================================================
   HOMEPAGE — Launched State
   ================================================================ */
#post-launch {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.launched-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #34d399;
    background: rgba(52, 211, 153, 0.06);
    border: 1px solid rgba(52, 211, 153, 0.15);
    margin-bottom: 10px;
    white-space: nowrap;
}

.launched-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

.launched-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

.store-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 20px;
}

.btn-store {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 14px;
    font-family: 'Sora', sans-serif;
    color: #ffffff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-store:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

.btn-store:active {
    transform: translateY(0);
}

.btn-store svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    color: #e2e8f0;
}

.btn-store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}

.btn-store-sub {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
    display: block;
    margin-bottom: 1px;
}

.btn-store-text {
    font-size: 1.05rem;
    font-weight: 600;
}

/* ================================================================
   HOMEPAGE — CTA Buttons
   ================================================================ */
.btn-patreon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    padding: 16px 32px;
    border-radius: 100px;
    font-family: 'Sora', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    box-shadow: 0 8px 32px rgba(249, 115, 22, 0.35), 0 2px 8px rgba(236, 72, 153, 0.2);
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 12px;
}

.btn-patreon:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 44px rgba(249, 115, 22, 0.45), 0 4px 12px rgba(236, 72, 153, 0.3);
    text-decoration: none;
}

.btn-patreon:active {
    transform: translateY(0);
}

.btn-patreon svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: rgba(88, 101, 242, 0.18);
    border: 1.5px solid rgba(88, 101, 242, 0.4);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 20px;
}

.btn-discord:hover {
    transform: translateY(-2px);
    background: rgba(88, 101, 242, 0.28);
    border-color: rgba(88, 101, 242, 0.6);
    box-shadow: 0 6px 24px rgba(88, 101, 242, 0.2);
    text-decoration: none;
}

.btn-discord:active {
    transform: translateY(0);
}

.btn-discord svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ================================================================
   HOMEPAGE — Email Signup
   ================================================================ */
.email-section {
    width: 100%;
    max-width: 400px;
    margin-bottom: 24px;
    padding: 16px 18px 12px;
    border-radius: 16px;
    position: relative;
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.email-section::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(236, 72, 153, 0.25), rgba(139, 92, 246, 0.25), rgba(59, 130, 246, 0.25));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* EmailOctopus form overrides
   DOM structure (from inspecting live site):
   .inline-container > div >
     [0] div[eo-block-container]  (empty)
     [1] div.form-container       (form)
     [2] div[eo-block-container]  (description "Launch alert...")
     [3] div.text-center          (powered-by)
   Inside the form: .main-form > [eo-form-fields-container] + input[type=submit]
*/

.email-container .embed-html-wrapper,
.email-container .embed-html-wrapper .inline-container {
    overflow: visible !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Email input + submit button on same row */
.email-container .main-form {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    align-items: flex-start !important;
}

.email-container .main-form [eo-form-fields-container] {
    flex: 1 1 auto !important;
}

.email-container .main-form .form-group.mb-2 {
    margin-bottom: 0 !important;
}

.email-container .main-form input[type="submit"] {
    width: auto !important;
    flex: 0 0 auto !important;
    margin-bottom: 0 !important;
    white-space: nowrap !important;
}

/* Description + Powered-by on same row (grid on the anonymous wrapper div) */
.email-container .inline-container > div {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 0 12px !important;
    align-items: center !important;
    font-family: 'Sora', sans-serif !important;
}

/* First two children (empty block + form) span full width */
.email-container .inline-container > div > :nth-child(1),
.email-container .inline-container > div > :nth-child(2) {
    grid-column: 1 / -1 !important;
}

/* Third child (description text) — left column */
.email-container .inline-container > div > :nth-child(3) {
    grid-column: 1 !important;
}

/* Fourth child (powered-by) — right column */
.email-container .inline-container > div > :nth-child(4) {
    grid-column: 2 !important;
    margin-top: 0 !important;
}

/* Override inline text-align:center on description spans */
.email-container .text-block div {
    text-align: left !important;
    display: inline !important;
}

.email-container .text-block {
    line-height: 1.3 !important;
}

/* Override mastfoot inline margin */
.email-container .mastfoot {
    margin-top: 0 !important;
}

/* Font overrides — match Sora across all form elements */
.email-container .text-block span {
    font-family: 'Sora', sans-serif !important;
    font-size: 0.75rem !important;
    color: #94a3b8 !important;
}

.email-container .mastfoot,
.email-container .mastfoot p,
.email-container .mastfoot a {
    font-family: 'Sora', sans-serif !important;
    font-size: 0.7rem !important;
}

.email-container .form-control {
    font-family: 'Sora', sans-serif !important;
    font-size: 0.88rem !important;
}

.email-container .btn-primary {
    font-family: 'Sora', sans-serif !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
}

/* ================================================================
   HOMEPAGE — FAQ Link
   ================================================================ */
.faq-link {
    display: inline-block;
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 20px;
    transition: color 0.2s ease;
}

.faq-link:hover {
    color: #94a3b8;
}

/* ================================================================
   HOMEPAGE — Social Links
   ================================================================ */
.social-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #94a3b8;
    position: relative;
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(236, 72, 153, 0.3), rgba(139, 92, 246, 0.3), rgba(59, 130, 246, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.social-link:hover {
    color: #ffffff;
    transform: scale(1.12);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link svg {
    width: 19px;
    height: 19px;
    position: relative;
    z-index: 1;
}

/* ================================================================
   HOMEPAGE — App Preview Card
   ================================================================ */
.preview-card {
    display: block;
    width: 100%;
    max-width: 460px;
    margin-bottom: 28px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.preview-card:hover {
    transform: scale(1.02);
    text-decoration: none;
}

.preview-card img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-mask-image:
        linear-gradient(to right, transparent, black 8%, black 92%, transparent),
        linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
    -webkit-mask-size: 100% 100%;
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent, black 8%, black 92%, transparent),
        linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
    mask-size: 100% 100%;
    mask-composite: intersect;
}

/* ================================================================
   HOMEPAGE — PC Server Card
   ================================================================ */
.server-card {
    width: 100%;
    max-width: 400px;
    margin-bottom: 32px;
    padding: 18px 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.server-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.server-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(139, 92, 246, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
}

.server-icon svg {
    width: 20px;
    height: 20px;
}

.server-text h2 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1px;
}

.server-text p {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.4;
}

/* ================================================================
   FOOTER — Homepage (inline)
   ================================================================ */
.footer {
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: #334155;
    flex-wrap: wrap;
}

footer.footer,
footer.footer a,
footer.footer span {
    color: #334155;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer.footer a:hover {
    color: #94a3b8;
    text-decoration: none;
}

.footer .sep {
    opacity: 0.4;
}

/* ================================================================
   FOOTER — Sub-pages
   ================================================================ */
.footer-sub {
    text-align: center;
    padding-top: 24px;
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: #334155;
}

.footer-sub .footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 8px;
}

.footer-sub .footer-links a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-sub .footer-links a:hover {
    color: #94a3b8;
    text-decoration: none;
}

.footer-sub p {
    color: #334155;
}

/* ================================================================
   CONTENT PAGE (Server)
   ================================================================ */
.content-page {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 24px 48px;
}

.content-page h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    text-align: center;
}

.content-page .subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.content-page h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #818cf8;
    margin: 32px 0 12px;
}

.content-page h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 24px 0 8px;
}

.content-page p {
    margin-bottom: 12px;
    color: #cbd5e1;
}

.content-page ul, .content-page ol {
    margin: 8px 0 16px 24px;
    color: #cbd5e1;
}

.content-page li {
    margin-bottom: 6px;
}

.content-page code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88rem;
}

.content-page strong {
    color: #e2e8f0;
}

/* ================================================================
   LEGAL PAGE (Privacy, Terms)
   ================================================================ */
.legal-page {
    position: relative;
    z-index: 1;
    max-width: 740px;
    margin: 0 auto;
    padding: 40px 24px 48px;
}

.legal-page h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.legal-page .effective-date {
    color: #64748b;
    font-size: 0.85rem;
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #818cf8;
    margin: 28px 0 10px;
}

.legal-page h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 20px 0 6px;
}

.legal-page p {
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: #cbd5e1;
}

.legal-page a {
    color: #60a5fa;
}

.legal-page ul {
    margin: 6px 0 12px 20px;
    font-size: 0.92rem;
    color: #cbd5e1;
}

.legal-page li {
    margin-bottom: 4px;
}

.legal-page strong {
    color: #e2e8f0;
}

/* ================================================================
   SERVER PAGE — Header
   ================================================================ */
.server-header {
    text-align: center;
    margin-bottom: 24px;
}

.server-header img {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin: 0 auto 12px;
    filter: drop-shadow(0 8px 24px rgba(249, 115, 22, 0.15));
}

/* ================================================================
   SERVER PAGE — Version Tabs
   ================================================================ */
.version-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.version-tab {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
}

.version-tab.active {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

.version-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

/* ================================================================
   SERVER PAGE — Sections
   ================================================================ */
.server-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.server-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 16px;
}

/* ================================================================
   SERVER PAGE — Download Card
   ================================================================ */
.download-card {
    text-align: center;
    margin-bottom: 16px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(59, 130, 246, 0.4);
    text-decoration: none;
}

.btn-download svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-download-secondary {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.btn-download-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.25);
}

.download-meta {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 10px;
}

.open-source-note {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 16px;
}

/* ================================================================
   SERVER PAGE — Setup Steps
   ================================================================ */
.setup-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.setup-step {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}

.setup-step:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 0 0 4px;
}

.step-content p {
    color: #94a3b8;
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.5;
}

.step-content ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.step-content li {
    color: #94a3b8;
    font-size: 0.88rem;
    padding: 3px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.step-content li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #60a5fa;
    flex-shrink: 0;
    margin-top: 7px;
}

/* Warning box */
.warning-box {
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 0.85rem;
    color: #fbbf24;
    text-align: center;
}

.warning-box button {
    background: none;
    border: none;
    color: #fbbf24;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
}

.warning-box button:hover {
    color: #fde68a;
}

/* ================================================================
   SERVER PAGE — Troubleshooting
   ================================================================ */
.troubleshoot-content p {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.troubleshoot-content p:last-child {
    margin-bottom: 0;
}

/* ================================================================
   SERVER PAGE — Stay Connected
   ================================================================ */
.stay-connected {
    text-align: center;
}

.stay-connected h2 {
    margin-bottom: 16px;
}

.connect-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.connect-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.connect-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
    opacity: 0.9;
}

.connect-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.connect-btn--home {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.connect-btn--patreon {
    background: #f97316;
    color: #ffffff;
}

.connect-btn--discord {
    background: #5865f2;
    color: #ffffff;
}

@media (max-width: 500px) {
    .connect-links {
        grid-template-columns: 1fr;
    }
}

/* Hidden utility */
.hidden {
    display: none;
}

/* ================================================================
   FOCUS STATES
   ================================================================ */
a:focus-visible,
.btn-patreon:focus-visible,
.btn-discord:focus-visible,
.btn-download:focus-visible,
.version-tab:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 600px) {
    .page-content {
        padding: 32px 18px 32px;
    }

    .logo {
        width: 90px;
        height: 90px;
        border-radius: 20px;
        margin-bottom: 12px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-tagline {
        font-size: 0.72rem;
    }

    .btn-patreon {
        font-size: 0.98rem;
        padding: 14px 28px;
    }

    .btn-discord {
        font-size: 0.88rem;
        padding: 12px 24px;
    }

    .email-section {
        padding: 14px 14px 10px;
    }

    .server-card {
        padding: 16px 18px;
    }

    .wave-top, .wave-bottom {
        height: 300px;
    }

    .content-page, .legal-page {
        padding: 28px 18px 36px;
    }

    .content-page h1, .legal-page h1 {
        font-size: 1.5rem;
    }

    .server-section {
        padding: 18px;
    }

    .version-tabs {
        gap: 8px;
    }

    .version-tab {
        font-size: 0.82rem;
        padding: 10px 12px;
    }
}
