/* =============================================================
   DUNETECH STUDIOS — design system v2 (cinematic)
   ============================================================= */

:root {
    --bg-primary:    #08080C;
    --bg-secondary:  #12121A;
    --bg-card:       #18181F;
    --bg-overlay:    rgba(8, 8, 12, 0.85);

    --accent-orange: #E8753A;
    --accent-red:    #C8392A;
    --accent-gold:   #E8B33A;
    --accent-green:  #4DC97C;
    --accent-blue:   #3FA9F5;

    --text-primary:   #F5F5F8;
    --text-secondary: #B5B5C0;
    --text-muted:     #6A6A75;

    --border:         #25252F;
    --border-strong:  #3A3A45;

    --max-w:          1320px;

    --font-display:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--accent-orange); outline-offset: 4px; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-orange); }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* =============================================================
   ATMOSPHERIC BACKGROUND - subtle floating particles
   ============================================================= */

.particles {
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 2px; height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 20s linear infinite;
}
@keyframes particleFloat {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 0.4; }
    90% { opacity: 0.4; }
    100% { transform: translateY(-10vh) translateX(50px); opacity: 0; }
}

/* =============================================================
   NAVIGATION
   ============================================================= */

.nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--bg-overlay);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}
.nav.scrolled {
    background: rgba(8, 8, 12, 0.97);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-brand {
    display: flex; align-items: center; gap: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-primary);
    font-size: 1rem;
}
.nav-brand img {
    height: 38px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(63, 169, 245, 0.4));
}

.nav-links {
    display: flex; gap: 2.5rem; list-style: none; align-items: center;
}
.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}
.nav-links a::after {
    content: ""; position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px; background: var(--accent-orange);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: right;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}
.nav-links a.active { color: var(--accent-orange); }
.nav-links a:hover::after, .nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    padding: 0.7rem 1.4rem;
    background: var(--accent-orange);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.nav-cta::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}
.nav-cta:hover {
    color: var(--bg-primary);
    background: #ff8a4a;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232,117,58,0.5);
}
.nav-cta:hover::before { left: 100%; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-inner { padding: 0.8rem 1rem; }
}

/* =============================================================
   HERO - cinematic image background with parallax overlay
   ============================================================= */

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 2rem;
}

.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: scale(1.05);
    animation: kenBurns 25s ease-in-out infinite alternate;
}
@keyframes kenBurns {
    0% { transform: scale(1.05) translateX(0); }
    100% { transform: scale(1.15) translateX(-20px); }
}

.hero-bg::after {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(8,8,12,0.4) 0%, rgba(8,8,12,0.6) 60%, var(--bg-primary) 100%),
        linear-gradient(90deg, rgba(8,8,12,0.7) 0%, transparent 50%);
}

.hero-bg-fallback {
    position: absolute; inset: 0;
    z-index: -1;
    background-image:
        radial-gradient(circle at 30% 50%, rgba(232,117,58,0.18) 0%, transparent 60%),
        linear-gradient(135deg, #2a1a35 0%, #0a1525 50%, #1a0e1a 100%);
}

.hero-content {
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
    padding-top: 6rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
    animation: slideInLeft 1s ease 0.1s both;
}
.hero-eyebrow::before {
    content: ""; width: 32px; height: 2px; background: var(--accent-orange);
}

.hero-title {
    font-size: clamp(3rem, 9vw, 7rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    animation: slideInLeft 1s ease 0.3s both;
    text-shadow: 0 4px 30px rgba(0,0,0,0.8);
}
.hero-title .accent {
    color: var(--accent-orange);
    display: inline-block;
    position: relative;
}
.hero-title .accent::after {
    content: "";
    position: absolute;
    bottom: -8px; left: 0; right: 0;
    height: 4px; background: var(--accent-orange);
    transform: scaleX(0);
    animation: scaleInLine 1s ease 1.2s both;
    transform-origin: left;
}
@keyframes scaleInLine {
    to { transform: scaleX(1); }
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    color: var(--text-primary);
    max-width: 640px;
    margin-bottom: 2.5rem;
    line-height: 1.5;
    animation: slideInLeft 1s ease 0.5s both;
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.hero-cta-row {
    display: flex; gap: 1rem; flex-wrap: wrap;
    animation: slideInLeft 1s ease 0.7s both;
}

/* WoI Logo on hero */
.hero-logo {
    width: 180px; height: 180px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.6));
    animation: logoEntrance 1.2s ease 0.2s both;
}
@keyframes logoEntrance {
    from { opacity: 0; transform: scale(0.8) rotate(-5deg); }
    to { opacity: 1; transform: scale(1) rotate(0); }
}

/* Hero scroll hint */
.hero-scroll {
    position: absolute;
    bottom: 2rem; left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    z-index: 2;
    animation: bobble 2.5s ease-in-out infinite;
}
.hero-scroll::after {
    content: ""; display: block;
    width: 1px; height: 30px;
    background: var(--text-muted);
    margin: 0.7rem auto 0;
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes bobble {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* =============================================================
   BUTTONS
   ============================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.8rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.btn-primary { background: var(--accent-orange); color: var(--bg-primary); }
.btn-primary::before {
    content: "";
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}
.btn-primary:hover {
    background: #ff8a4a;
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(232,117,58,0.4);
}
.btn-primary:hover::before { left: 100%; }

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border: 1.5px solid var(--border-strong);
    backdrop-filter: blur(10px);
}
.btn-secondary:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
    background: rgba(232,117,58,0.05);
    transform: translateY(-2px);
}

/* =============================================================
   PLATFORM BADGES
   ============================================================= */

.platforms {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.2rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.platform-badge:hover {
    border-color: var(--accent-orange);
    background: rgba(232,117,58,0.08);
    transform: translateY(-2px);
}
.platform-icon {
    font-size: 1.4rem;
    color: var(--text-primary);
}

.platform-icon-svg {
    width: 28px;
    height: 28px;
    color: var(--text-primary);
    flex-shrink: 0;
    transition: color 0.3s ease;
}
.platform-badge:hover .platform-icon-svg {
    color: var(--accent-orange);
}

/* PNG logo image variant (Steam / PS5) */
.platform-logo-img {
    height: 30px;
    width: auto;
    max-width: 56px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.92;
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.platform-badge:hover .platform-logo-img {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(232,117,58,0.6));
    transform: scale(1.05);
}
.platform-text {
    display: flex; flex-direction: column;
    line-height: 1.2;
}
.platform-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}
.platform-status {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-orange);
    font-weight: 700;
}

/* Pulse on "coming soon" */
.platform-badge::after {
    content: "";
    position: absolute; top: 8px; right: 8px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-orange);
    box-shadow: 0 0 0 0 rgba(232,117,58,0.7);
    animation: pulseBadge 2s infinite;
}
@keyframes pulseBadge {
    0% { box-shadow: 0 0 0 0 rgba(232,117,58,0.7); }
    70% { box-shadow: 0 0 0 8px rgba(232,117,58,0); }
    100% { box-shadow: 0 0 0 0 rgba(232,117,58,0); }
}

/* =============================================================
   SECTIONS
   ============================================================= */

section { padding: 7rem 2rem; position: relative; }
.section-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 2; }
.section-header { margin-bottom: 4rem; max-width: 800px; }

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}
.section-eyebrow::before {
    content: ""; width: 32px; height: 2px; background: var(--accent-orange);
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 1rem;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

/* =============================================================
   FEATURED GAME (homepage)
   ============================================================= */

.game-feature {
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}
.game-feature::before {
    content: "";
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(232,117,58,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.game-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.game-feature-art {
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.game-feature-art:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 60px rgba(232,117,58,0.2);
}
.game-feature-art::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(8,8,12,0.7) 100%);
}

.game-feature-art .game-feature-logo {
    position: absolute;
    bottom: 1.5rem; left: 1.5rem;
    width: 90px;
    z-index: 2;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.8));
}

.game-feature-content h3 {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1.2rem;
    letter-spacing: -0.02em;
}

.game-feature-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.game-tags {
    display: flex; gap: 0.6rem; flex-wrap: wrap;
    margin-bottom: 2rem;
}
.game-tag {
    padding: 0.4rem 0.9rem;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: 2px;
    transition: all 0.2s;
}
.game-tag:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

@media (max-width: 968px) {
    .game-feature-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* =============================================================
   SHIP GALLERY (war-of-islands page)
   ============================================================= */

.ships {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0a0a14 100%);
    position: relative;
    overflow: hidden;
}
.ships::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1.5px 1.5px at 80% 20%, rgba(255,255,255,0.5), transparent);
    background-size: 250px 250px;
    pointer-events: none;
}

.ships-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.ship-card {
    background: linear-gradient(180deg, rgba(20,20,30,0.6) 0%, rgba(8,8,12,0.9) 100%);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.ship-card::before {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232,117,58,0.05), transparent);
    transition: left 0.8s ease;
}
.ship-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-orange);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 60px rgba(232,117,58,0.15);
}
.ship-card:hover::before { left: 100%; }

.ship-img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6));
    transition: transform 0.4s ease;
    animation: shipFloat 6s ease-in-out infinite;
}
.ship-card:nth-child(2) .ship-img { animation-delay: -3s; }
.ship-card:hover .ship-img { transform: translateY(-5px) scale(1.03); }

@keyframes shipFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ship-class {
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-orange);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.ship-name {
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}
.ship-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.ship-specs {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.ship-spec {
    display: flex; flex-direction: column;
    line-height: 1.3;
}
.ship-spec-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.ship-spec-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .ships-grid { grid-template-columns: 1fr; }
    .ship-img { height: 220px; }
}

/* =============================================================
   STATS GRID
   ============================================================= */

.stats { background: var(--bg-primary); padding: 5rem 2rem; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}
.stat-num {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--accent-orange);
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 30px rgba(232,117,58,0.4);
}
/* UE5 stat: keep size but tighter letter spacing so it sits flush */
.stat-num.stat-ue {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    letter-spacing: -0.04em;
    color: var(--accent-orange);
}
.stat-label {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   PRE-ORDER TIERS
   ============================================================= */

.tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.tier {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.tier::before {
    content: "";
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(232,117,58,0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.tier:hover {
    transform: translateY(-6px);
    border-color: var(--accent-orange);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.tier:hover::before { opacity: 1; }

.tier > * { position: relative; z-index: 2; }

.tier-featured {
    border-color: var(--accent-orange);
    background: linear-gradient(180deg, rgba(232,117,58,0.06) 0%, var(--bg-card) 50%);
    transform: scale(1.03);
}
.tier-featured:hover { transform: scale(1.04) translateY(-6px); }

.tier-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--accent-orange);
    color: var(--bg-primary);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 0.7rem;
    border-radius: 2px;
}
.tier-name {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 0.75rem;
}
.tier-title {
    font-size: 1.7rem;
    font-weight: 900;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}
.tier-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    min-height: 1.4em;
}
.tier-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1;
}
.tier-price small {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.4rem;
}
.tier-features {
    list-style: none;
    flex-grow: 1;
    margin-bottom: 1.8rem;
}
.tier-features li {
    padding: 0.6rem 0;
    color: var(--text-secondary);
    font-size: 0.93rem;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 1.5rem;
}
.tier-features li::before {
    content: "✓";
    color: var(--accent-orange);
    font-weight: 700;
    position: absolute;
    left: 0;
}
.tier-features li:last-child { border-bottom: none; }
.tier .btn { width: 100%; justify-content: center; }

@media (max-width: 968px) {
    .tiers { grid-template-columns: 1fr; }
    .tier-featured { transform: none; }
    .tier-featured:hover { transform: translateY(-6px); }
}

/* =============================================================
   FEATURE GRID
   ============================================================= */

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.feature::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.feature:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.feature:hover::after { transform: scaleX(1); }

.feature-num {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    color: var(--accent-orange);
    font-weight: 700;
    margin-bottom: 1rem;
}
.feature h4 {
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
.feature p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
}

/* =============================================================
   FOUNDER (about page)
   ============================================================= */

.founder {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
    margin: 3rem 0;
}
.founder-img {
    width: 280px;
    height: 360px;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
    border: 1px solid var(--border);
    filter: contrast(1.1) saturate(0.9);
}
.founder-info h2 {
    font-size: 2.2rem;
    margin-bottom: 0.3rem !important;
    color: var(--text-primary) !important;
}
.founder-role {
    color: var(--accent-orange);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}
@media (max-width: 768px) {
    .founder { grid-template-columns: 1fr; }
    .founder-img { width: 100%; height: 400px; }
}

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

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 2rem;
    position: relative;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand {
    display: flex; align-items: center; gap: 0.7rem;
    margin-bottom: 1rem;
}
.footer-brand img {
    height: 36px;
    filter: drop-shadow(0 0 8px rgba(63, 169, 245, 0.4));
}
.footer-brand-text {
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.footer-tag {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 320px;
    line-height: 1.7;
}
.footer-col h5 {
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 0.3rem 0; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent-orange); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* =============================================================
   LEGAL / TEXT PAGES
   ============================================================= */

.text-page {
    padding: 8rem 2rem 6rem;
    max-width: 800px;
    margin: 0 auto;
}
.text-page h1 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}
.text-page-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}
.text-page h2 {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 2.5rem 0 1rem;
    color: var(--accent-orange);
    letter-spacing: -0.01em;
}
.text-page h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
}
.text-page p, .text-page li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.75;
}
.text-page ul, .text-page ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* =============================================================
   ANIMATIONS - reveal on scroll
   ============================================================= */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-stagger > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-stagger.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.fade-in-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }

/* =============================================================
   CALLOUT QUOTE
   ============================================================= */

.callout {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.callout-text {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.3;
    max-width: 900px;
    margin: 0 auto;
    letter-spacing: -0.01em;
}
.callout-text .accent { color: var(--accent-orange); }

/* =============================================================
   UNREAL ENGINE TECH SHOWCASE (war-of-islands)
   ============================================================= */

.ue-tech {
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0c0c16 60%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle blueprint grid backdrop */
.ue-grid-bg {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(63,169,245,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(63,169,245,0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
    pointer-events: none;
}

/* Centered brand hero block */
.ue-hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 4rem;
    position: relative;
    z-index: 2;
}

.ue-hero .section-eyebrow {
    justify-content: center;
}

.ue-hero .section-title {
    margin-bottom: 1.25rem;
}

/* UE5 brand mark */
.ue-mark {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.5rem;
    color: var(--accent-orange);
    filter: drop-shadow(0 0 24px rgba(232,117,58,0.45));
    animation: uePulse 4s ease-in-out infinite;
}
.ue-mark svg {
    width: 100%; height: 100%;
    display: block;
}
@keyframes uePulse {
    0%, 100% { filter: drop-shadow(0 0 24px rgba(232,117,58,0.45)); transform: scale(1); }
    50%      { filter: drop-shadow(0 0 36px rgba(232,117,58,0.7));  transform: scale(1.04); }
}

.ue-tagline {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 2.5rem;
}

/* Tech-stack pills row */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.tech-pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.7rem 1.1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    backdrop-filter: blur(8px);
    transition: all 0.25s ease;
    min-width: 96px;
}
.tech-pill:hover {
    border-color: var(--accent-orange);
    background: rgba(232,117,58,0.06);
    transform: translateY(-2px);
}
.tech-pill strong {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}
.tech-pill span {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
}

/* Specs cards */
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}
.specs-card {
    background: linear-gradient(180deg, rgba(20,20,30,0.6) 0%, rgba(8,8,12,0.92) 100%);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 2rem 2rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.specs-card::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.specs-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.specs-card-featured {
    border-color: rgba(232,117,58,0.4);
    background: linear-gradient(180deg, rgba(232,117,58,0.05) 0%, rgba(8,8,12,0.92) 60%);
}
.specs-card-featured::before {
    background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
}
.specs-card-featured:hover {
    border-color: var(--accent-orange);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 30px rgba(232,117,58,0.12);
}

.specs-card-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.specs-card-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 0.4rem;
}
.specs-card-header h4 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.specs-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px dashed rgba(255,255,255,0.06);
    font-size: 0.92rem;
}
.specs-list li:last-child { border-bottom: none; }
.spec-key {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
    min-width: 70px;
}
.spec-val {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
}

@media (max-width: 768px) {
    .ue-mark { width: 68px; height: 68px; margin-bottom: 1rem; }
    .ue-tagline { font-size: 0.97rem; margin-bottom: 1.8rem; }
    .tech-stack { gap: 0.5rem; }
    .tech-pill { min-width: 0; padding: 0.55rem 0.8rem; flex: 1 1 calc(33% - 0.5rem); }
    .tech-pill strong { font-size: 0.82rem; }
    .tech-pill span { font-size: 0.55rem; letter-spacing: 0.14em; }
    .specs-grid { grid-template-columns: 1fr; }
    .specs-card { padding: 1.6rem 1.4rem 1.2rem; }
    .specs-list li { font-size: 0.87rem; padding: 0.55rem 0; }
    .spec-key { min-width: 60px; }
}

/* =============================================================
   MOBILE HAMBURGER TOGGLE
   ============================================================= */

.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    transition: border-color 0.2s ease;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open { border-color: var(--accent-orange); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================================
   RESPONSIVE — TABLET (≤968px)
   ============================================================= */

@media (max-width: 968px) {
    section { padding: 5rem 1.5rem; }
    .nav-inner { padding: 0.9rem 1.25rem; gap: 1rem; }
    .nav-cta { padding: 0.6rem 1rem; font-size: 0.7rem; letter-spacing: 0.15em; }
    .nav-brand { font-size: 0.9rem; }
    .nav-brand img { height: 32px; }
    .hero { padding: 0 1.5rem; }
    .hero-content { padding-top: 5rem; }
    .section-header { margin-bottom: 2.5rem; }
    .game-feature-grid { gap: 2.5rem; }
    .game-feature-art { aspect-ratio: 16 / 11; }
    .features-grid { gap: 1.25rem; }
    .stats-grid { gap: 1.5rem; }
    .text-page { padding: 7rem 1.5rem 4rem; }
}

/* =============================================================
   RESPONSIVE — MOBILE (≤768px)
   ============================================================= */

@media (max-width: 768px) {

    /* Nav: hide desktop links, show toggle, slide-down drawer when open */
    .nav-toggle { display: inline-flex; }
    .nav-cta { display: none; } /* save room — pre-order CTA reachable via hero/menu */
    .nav-links {
        display: flex !important;
        position: fixed;
        top: 60px; left: 0; right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(8, 8, 12, 0.98);
        backdrop-filter: blur(24px);
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.25rem 1.5rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease, padding 0.35s ease;
        padding-block: 0;
    }
    .nav-links.open {
        max-height: 80vh;
        padding: 1rem 1.25rem 1.5rem;
    }
    .nav-links li { width: 100%; border-bottom: 1px solid var(--border); }
    .nav-links li:last-child { border-bottom: none; }
    .nav-links a {
        display: block;
        padding: 1rem 0;
        font-size: 0.95rem;
        letter-spacing: 0.18em;
    }
    .nav-links a::after { display: none; }

    /* Section spacing */
    section { padding: 4rem 1.1rem; }

    /* Hero */
    .hero { padding: 0 1.1rem; min-height: 92vh; }
    .hero-content { padding-top: 5rem; }
    .hero-eyebrow { font-size: 0.65rem; letter-spacing: 0.18em; }
    .hero-eyebrow::before { width: 18px; }
    .hero-title { font-size: clamp(2.4rem, 11vw, 4rem); margin-bottom: 1.2rem; }
    .hero-subtitle { font-size: 1rem; margin-bottom: 1.8rem; }
    .hero-cta-row { flex-direction: column; align-items: stretch; gap: 0.75rem; width: 100%; }
    .hero-cta-row .btn { width: 100%; justify-content: center; padding: 1rem 1.2rem; font-size: 0.78rem; }
    .hero-logo { width: 130px; height: 130px; margin-bottom: 1.2rem; }
    .hero-scroll { display: none; }

    /* Stats: 2 columns on phones */
    .stats { padding: 3rem 1.1rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .stat-num { font-size: clamp(2rem, 9vw, 2.8rem); }
    .stat-label { font-size: 0.7rem; letter-spacing: 0.14em; }

    /* Featured game */
    .game-feature-art { aspect-ratio: 16 / 12; }
    .game-feature-art .game-feature-logo { width: 64px; bottom: 1rem; left: 1rem; }
    .game-feature-content h3 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
    .game-feature-content p { font-size: 0.97rem; }

    /* Section header */
    .section-eyebrow { font-size: 0.65rem; letter-spacing: 0.18em; }
    .section-eyebrow::before { width: 20px; }
    .section-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
    .section-subtitle { font-size: 0.97rem; }

    /* Pre-order tiers */
    .tiers { gap: 1.25rem; }
    .tier { padding: 2rem 1.4rem; }
    .tier-title { font-size: 1.45rem; }
    .tier-price { font-size: 2.1rem; }

    /* Ships */
    .ship-card { padding: 1.4rem; }
    .ship-img { height: 200px; }
    .ship-name { font-size: 1.2rem; }
    .ship-specs { gap: 1rem; }

    /* Features */
    .feature { padding: 2rem 1.4rem; }
    .feature h4 { font-size: 1.25rem; }

    /* Founder */
    .founder { gap: 1.5rem; margin: 2rem 0; }
    .founder-img { height: 320px; }
    .founder-info h2 { font-size: 1.7rem; }

    /* Platforms */
    .platforms { gap: 0.6rem; margin-top: 1.4rem; }
    .platform-badge { padding: 0.6rem 0.9rem; gap: 0.5rem; flex: 1 1 calc(50% - 0.6rem); min-width: 0; }
    .platform-name { font-size: 0.85rem; }
    .platform-status { font-size: 0.55rem; }
    .platform-logo-img { height: 24px; max-width: 44px; }

    /* Footer */
    .footer { padding: 3rem 1.1rem 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .footer-tag { max-width: 100%; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; font-size: 0.75rem; }

    /* Text pages */
    .text-page { padding: 6rem 1.1rem 3rem; }
    .text-page h1 { font-size: 2rem; }
    .text-page h2 { font-size: 1.25rem; margin: 2rem 0 0.8rem; }

    /* Callout */
    .callout { padding: 3rem 1.1rem; }
    .callout-text { font-size: clamp(1.2rem, 5.5vw, 1.8rem); }

    /* Nav-links scrolled background should match drawer */
    .nav.scrolled .nav-links { background: rgba(8, 8, 12, 0.98); }
}

/* =============================================================
   RESPONSIVE — SMALL PHONES (≤420px)
   ============================================================= */

@media (max-width: 420px) {
    section { padding: 3.5rem 1rem; }
    .nav-inner { padding: 0.75rem 1rem; }
    .nav-brand span { display: none; } /* Logo only — saves space */
    .stats-grid { gap: 1rem; }
    .platform-badge { flex: 1 1 100%; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: clamp(2rem, 13vw, 3rem); }
    .tier { padding: 1.75rem 1.2rem; }
    .ship-img { height: 170px; }
}

/* =============================================================
   ACCESSIBILITY — reduced motion
   ============================================================= */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in, .fade-in-stagger > * { opacity: 1 !important; transform: none !important; }
    .ship-img, .platform-badge::after { animation: none !important; }
}
