:root {
    --bg-main: #05070b;
    --bg-elevated: #0b0d11;
    --bg-elevated-soft: #111319;
    --accent: #ff7a00;
    --accent-soft: #ffb566;
    --accent-gradient: linear-gradient(135deg, #ff7a00, #ffb566);
    --text-main: #f7f7f7;
    --text-muted: #a9b0c0;
    --border-soft: rgba(255, 255, 255, 0.06);
    --radius-lg: 18px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 28px rgba(255, 122, 0, 0.7);
	--accent-soft: #ff9800;
}

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

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    scroll-behavior: smooth;
    background: radial-gradient(circle at top, #151820 0, #05070b 55%);
    color: var(--text-main);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    display: flex;
    flex-direction: column;
}

/* Sections scroll offset for fixed navbar */
section {
    scroll-margin-top: 90px;
}

/* Accent span */
.accent {
    color: var(--accent-soft);
}

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(5, 7, 11, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Logo */
.nav-logo img {
    height: 40px;
    display: block;
}

/* Center links */
.nav-links {
    display: flex;
    gap: 28px;
    margin: 0 auto;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 999px;
    transition: width 0.25s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Right actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-user {
    font-size: 14px;
    color: var(--text-muted);
    margin-right: 4px;
}

.nav-link-secondary {
    font-size: 13px;
    color: var(--text-main);
    text-decoration: none;
    opacity: 0.8;
}

.nav-link-secondary:hover {
    opacity: 1;
}

/* Buttons */
.nav-btn {
    font-size: 14px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-btn-outline {
    border-color: rgba(255, 255, 255, 0.25);
    background: transparent;
    color: var(--text-main);
}

.nav-btn-outline:hover {
    border-color: var(--accent-soft);
    color: var(--accent-soft);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
}

.nav-btn-primary {
    background-image: var(--accent-gradient);
    color: #000;
    box-shadow: 0 10px 30px rgba(255, 122, 0, 0.4);
}

.nav-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(12, 13, 18, 0.95);
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    margin: 3px auto;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Toggle animation when open */
.navbar.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.navbar.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.navbar.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 90px; 
    overflow: hidden;

    background:
        linear-gradient(to bottom, rgba(0,0,0,0) 40%, #0f1219 100%),
        url("/assets/img/hero.jpg") center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.45),
        rgba(0, 0, 0, 0.75) 40%,
        #05070b 100%
    );
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 780px;
    text-align: center;
    padding: 80px 24px 110px;
    color: var(--text-main);
}

.hero-tag {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(5, 7, 11, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7);
    margin-bottom: 18px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-soft);
}

.hero-inner h1 {
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: 0.02em;
    margin: 0 0 18px;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin: 0 0 30px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 26px;
}

/* Reusable main buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 20px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-lg {
    padding: 12px 26px;
    font-size: 15px;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background-image: var(--accent-gradient);
    color: #000;
    box-shadow: 0 10px 30px rgba(255, 122, 0, 0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: rgba(10, 13, 19, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    border-color: var(--accent-soft);
    color: var(--accent-soft);
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.12);
}

.btn-soft {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-soft:hover {
    border-color: var(--accent-soft);
    color: var(--accent-soft);
}

/* Server IP pill */
.hero-ip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(5, 7, 11, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 13px;
}

.hero-ip-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

.hero-ip-value {
    font-weight: 700;
    color: #fff;
}

.btn-copy {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(10, 13, 19, 0.96);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-copy:hover {
    border-color: var(--accent-soft);
    color: var(--accent-soft);
}

/* Bottom fade */
.hero-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 180px;
    background: linear-gradient(to bottom, transparent, #0f1219 40%);
}

/* =========================================================
   GENERIC SECTION
   ========================================================= */

.section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 50px 24px 100px;
}

.section-header {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

.section-tag {
    display: inline-flex;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(10, 13, 19, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 11px;
    color: var(--accent-soft);
    margin-bottom: 12px;
}

.section-header h2 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 800;
}

.section-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
}

/* =========================================================
   CARD GRID & CARDS  (GTAW-style)
   ========================================================= */

/* Base grid container – NO column definition here */
.card-grid {
    display: grid;
    gap: 30px;
    justify-items: stretch;
    width: 100%;
    margin: 0 auto;
}

/* 3-across (How to Join, Features) */
.card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1200px;
}

/* Stacked 1-across (Community – both cards same width) */
.card-grid-1 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 900px;
}

/* Optional utilities if you still want them elsewhere */
.card-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 1000px;
}

.card-grid-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1200px;
}

/* Responsive tweaks */
@media (max-width: 1100px) {
    .card-grid-3,
    .card-grid-steps,
    .media-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-grid-3,
    .card-grid-steps,
    .card-grid-two,
    .card-grid-1,
    .media-grid {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .card-grid-3,
    .card-grid-steps,
    .card-grid-two,
    .card-grid-1,
    .media-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   CARDS (GTAW-Style)
   ========================================================= */

.card {
    position: relative;
    background: radial-gradient(circle at top left, #181b23, #0b0d11);
    border-radius: var(--radius-lg);
    padding: 24px 24px 26px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 122, 0, 0.8), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: rgba(10, 13, 19, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px; /* placeholder icons */
    color: var(--accent-soft);
    margin-bottom: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-icon svg {
    width: 36px;
    height: 36px;
    stroke: #ff9800 !important;
    display: block;
}

.card-icon img.icon-img {
    width: 338px;
    height: 38px;
    object-fit: contain;
}

.card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.card p {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--text-muted);
}

/* Hover highlight */
.card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 122, 0, 0.9);
    box-shadow: var(--shadow-glow);
}

.card:hover::before {
    opacity: 0.18;
}

.card:hover .card-icon {
    transform: scale(1.07);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 122, 0, 0.55);
}

/* Step cards */
.step-card {
    padding-top: 34px;
}

.step-ribbon {
    position: absolute;
    right: 18px;
    top: 16px;
    padding: 4px 14px;
    border-radius: 999px;
    background-image: var(--accent-gradient);
    color: #000;
    font-weight: 700;
    font-size: 13px;
}

/* Community stats */
.stat-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.stat-list li + li {
    margin-top: 4px;
}

/* =========================================================
   MEDIA GRID
   ========================================================= */

.media-grid {
    display: grid;
    gap: 26px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 across */
}

.media-card {
    background: radial-gradient(circle at top left, #181b23, #0b0d11);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.media-thumb {
    position: relative;
    padding-top: 55%;
    background-size: cover;
    background-position: center;
}

.media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.65));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 18px;
}

.media-play {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background-image: var(--accent-gradient);
    box-shadow: 0 12px 30px rgba(255, 122, 0, 0.5);
    position: relative;
}

.media-play::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 14px;
    border-style: solid;
    border-width: 10px 0 10px 14px;
    border-color: transparent transparent transparent #000;
}

.media-card h3 {
    margin: 16px 18px 6px;
    font-size: 17px;
}

.media-card p {
    margin: 0 18px 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.media-link {
    display: inline-block;
    margin: 0 18px 18px;
    font-size: 13px;
    color: var(--accent-soft);
    text-decoration: none;
}

.media-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 122, 0, 0.9);
    box-shadow: var(--shadow-glow);
}

.media-card:hover .media-play {
    transform: scale(1.08);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #05060a;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: auto;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 24px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.footer-col h4 {
    margin: 0 0 12px;
    font-size: 17px;
}

.footer-col p {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-col a {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-decoration: none;
}

.footer-col a:hover {
    color: var(--accent-soft);
}

.footer-bottom {
    text-align: center;
    padding: 14px 24px 20px;
    font-size: 12px;
    color: #707584;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* =========================================================
   CONTACT MODAL
   ========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-overlay.is-visible {
    display: flex;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #090b10;
    border-radius: 18px;
    padding: 26px 26px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.modal h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.modal p {
    margin: 0 0 16px;
    color: var(--text-muted);
    font-size: 14px;
}

.modal-close {
    position: absolute;
    right: 14px;
    top: 10px;
    border: none;
    background: transparent;
    color: #aaa;
    font-size: 22px;
    cursor: pointer;
}

.modal-close:hover {
    color: #fff;
}

/* Contact form rows */
.contact-form .form-row {
    margin-bottom: 14px;
}

.contact-form label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 9px 11px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #060811;
    color: var(--text-main);
    font-size: 14px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-soft);
    box-shadow: 0 0 12px rgba(255, 122, 0, 0.5);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
    .navbar-inner {
        padding-inline: 16px;
        gap: 14px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 10px 20px 14px;
        background: rgba(5, 7, 11, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        flex-direction: column;
        gap: 10px;
    }

    .navbar.nav-open .nav-links {
        display: flex;
    }

    .nav-actions {
        margin-left: auto;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .hero-inner {
        padding-inline: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .section {
        padding-inline: 16px;
    }
}

@media (max-width: 640px) {
    .card-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        padding-inline: 16px;
    }
}