/* Politory Strategy - Premium Light Mode Gaming Landing Page Stylesheet */

/* --- CSS Variables & Design System --- */
:root {
    --bg-primary: #f8fafc; /* Clean warm off-white */
    --bg-secondary: #ffffff; /* Pure white sections */
    --bg-card: rgba(255, 255, 255, 0.85);
    --border-card: rgba(15, 23, 42, 0.08);
    --border-glow: rgba(16, 185, 129, 0.12);
    
    --primary: #10b981; /* Emerald Green */
    --primary-hover: #059669;
    --primary-glow: rgba(16, 185, 129, 0.25);
    --secondary: #3b82f6; /* Electric Blue */
    --secondary-hover: #2563eb;
    --secondary-glow: rgba(59, 130, 246, 0.25);
    
    --text-main: #0f172a; /* Slate Dark */
    --text-muted: #475569; /* Slate Grey */
    --text-light: #64748b; /* Cool Grey */
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Global Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Decorative Background Glows */
body::before, body::after {
    content: '';
    position: absolute;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
    filter: blur(140px);
}

body::before {
    top: -10vw;
    right: -10vw;
    background: radial-gradient(circle, #34d399 0%, transparent 70%);
}

body::after {
    top: 60vh;
    left: -15vw;
    background: radial-gradient(circle, #60a5fa 0%, transparent 70%);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* Geopolitical Blueprint Grid Overlay */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

/* --- Typography Helpers --- */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--secondary-hover) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Header / Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-card);
    transition: var(--transition-smooth);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-svg {
    filter: drop-shadow(0 0 6px var(--primary-glow));
    animation: rotateLogo 24s linear infinite;
}

@keyframes rotateLogo {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 950;
    font-size: 1.6rem;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--primary-hover) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

.nav a {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
    padding: 0.25rem 0;
}

.nav a:hover {
    color: var(--text-main);
}

.nav a:not(.nav-cta-btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-smooth);
}

.nav a:not(.nav-cta-btn):hover::after {
    width: 100%;
}

.nav a.active {
    color: var(--primary-hover);
}

.nav a.active::after {
    width: 100%;
}

.nav-cta-btn {
    background: var(--primary);
    color: #ffffff !important;
    padding: 0.55rem 1.35rem;
    border-radius: 99px;
    transition: var(--transition-bounce) !important;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.nav-cta-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    padding-top: 9.5rem;
    padding-bottom: 5rem;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.badge-status {
    background: rgba(16, 185, 129, 0.08);
    border: 1.5px solid var(--primary);
    color: var(--primary-hover);
    padding: 0.45rem 1.1rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
    animation: pulseGlow 2.5s infinite alternate;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 4px 10px rgba(16, 185, 129, 0.1); }
    100% { box-shadow: 0 4px 25px rgba(16, 185, 129, 0.35); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.75;
    margin-bottom: 2.75rem;
    max-width: 580px;
}

/* Store Badges */
.store-buttons {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.store-badge {
    background: #0f172a; /* Dark store badges stand out beautifully */
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.5rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #ffffff;
    transition: var(--transition-bounce);
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.15);
}

.store-badge svg {
    color: #ffffff;
    transition: var(--transition-smooth);
}

.store-badge:hover {
    background: #1e293b;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.2);
}

.store-badge:hover svg {
    color: var(--primary);
    filter: drop-shadow(0 0 6px var(--primary-glow));
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.store-small {
    font-size: 0.65rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 1px;
}

.store-bold {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* Isometric Mockups */
.hero-image-wrapper {
    position: relative;
    --scale: 1;
    height: calc(480px * var(--scale));
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.isometric-card-container {
    position: relative;
    width: 320px;
    height: 320px;
    transform: scale(var(--scale)) rotateX(45deg) rotateZ(-30deg);
    transform-style: preserve-3d;
    transform-origin: center center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.isometric-card {
    position: absolute;
    width: 240px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 15px 15px 35px rgba(0, 0, 0, 0.08);
    transition: var(--transition-bounce);
}

.isocard-1 {
    top: 0;
    left: 0;
    transform: translateZ(40px);
    border-left: 3px solid var(--primary);
    animation: float1 4s ease-in-out infinite alternate;
}

.isocard-2 {
    bottom: 0;
    right: 0;
    transform: translateZ(-20px);
    border-left: 3px solid var(--secondary);
    animation: float2 4s ease-in-out infinite alternate;
}

@keyframes float1 {
    0% { transform: translateZ(40px) translateY(0); }
    100% { transform: translateZ(60px) translateY(-10px); }
}

@keyframes float2 {
    0% { transform: translateZ(-20px) translateY(0); }
    100% { transform: translateZ(-5px) translateY(10px); }
}

.isometric-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.12), 15px 15px 45px rgba(0, 0, 0, 0.12);
}

.isocard-header {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.card-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    display: block;
    text-align: left;
}

.card-line {
    background: rgba(15, 23, 42, 0.05);
    height: 6px;
    border-radius: 99px;
    margin-bottom: 0.5rem;
}

.card-line.long { width: 90%; }
.card-line.medium { width: 65%; }

.card-status-pill {
    display: inline-block;
    background: rgba(16, 185, 129, 0.08);
    color: var(--primary-hover);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-top: 1rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Chart Mock */
.chart-mock {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 80px;
    margin: 1rem 0;
    border-bottom: 1.5px solid rgba(15, 23, 42, 0.1);
    padding-bottom: 0.25rem;
}

.chart-bar {
    width: 25px;
    background: rgba(15, 23, 42, 0.05);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    transition: var(--transition-bounce);
}

.chart-bar.green {
    background: linear-gradient(to top, var(--primary), #34d399);
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.2));
}

.chart-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-hover);
}

/* --- Section Global Commons --- */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6.5rem 2rem;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4.5rem auto;
}

/* --- Features Grid --- */
.features {
    background-color: var(--bg-secondary);
    position: relative;
    border-top: 1px solid var(--border-card);
    border-bottom: 1px solid var(--border-card);
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 2.75rem 2.25rem;
    border-radius: 28px;
    transition: var(--transition-bounce);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015);
}

.feature-card:hover {
    background: #ffffff;
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.08);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.06);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.15);
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--primary);
    color: #fff;
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Interactive Mockup Section --- */
.split-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.split-layout.reversed {
    grid-template-columns: 0.9fr 1.1fr;
}

.mockup-text-side {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mockup-text-side .section-title {
    text-align: left;
}

.mockup-text-side .section-subtitle {
    text-align: left;
    margin-left: 0;
    margin-bottom: 2.5rem;
}

.benefit-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-list li {
    position: relative;
    padding-left: 2.5rem;
    font-size: 1.05rem;
    color: var(--text-muted);
    text-align: left;
}

.benefit-list li strong {
    color: var(--text-main);
}

.benefit-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 80%);
    border: 2px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-glow);
}

/* Phone Mockup Frame */
.mockup-phone-side {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    --scale: 1;
    height: calc(640px * var(--scale));
    width: 100%;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.phone-frame {
    width: 310px;
    height: 620px;
    background: #0f172a; /* Outer dark phone frame */
    border: 10px solid #334155;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.18), inset 0 2px 4px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transform: scale(var(--scale));
    transform-origin: center center;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

/* Notch/Dynamic Island */
.phone-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 18px;
    background: #334155;
    border-radius: 20px;
    z-index: 100;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #07080d; /* Keeps actual dark mode screen */
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Game HUD Simulation inside phone */
.game-hud {
    height: 100%;
    padding: 2.5rem 1.25rem 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0d0f19 0%, #06070a 100%);
    justify-content: space-between;
}

.hud-top {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.75rem;
    border-radius: 16px;
    margin-top: 1rem;
}

.avatar-circle {
    width: 42px;
    height: 42px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    border: 1px solid var(--primary);
}

.hud-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hud-name {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    color: #ffffff;
}

.hud-role {
    font-size: 0.65rem;
    color: var(--primary);
    font-weight: 600;
}

.hud-wallet {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 1rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0;
}

.wallet-lbl {
    font-size: 0.65rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.wallet-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.hud-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hud-bar-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}

.bar-lbl {
    font-size: 0.7rem;
    font-weight: 600;
    color: #94a3b8;
}

.bar-bg {
    background: rgba(255, 255, 255, 0.05);
    height: 8px;
    border-radius: 99px;
    overflow: hidden;
    width: 100%;
}

.bar-fill {
    height: 100%;
    border-radius: 99px;
}

.bar-fill.red {
    background: linear-gradient(90deg, #ef4444, #f87171);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

.bar-fill.yellow {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.passport-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1rem;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.passport-card::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--primary);
    opacity: 0.05;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    filter: blur(10px);
}

.passport-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.35rem;
}

.passport-body {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    gap: 0.25rem;
    align-items: flex-start;
    color: #e2e8f0;
}

/* --- Assembly Seating Hemicycle Showcase --- */
.assembly-showcase {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-card);
    border-bottom: 1px solid var(--border-card);
}

.assembly-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    width: 100%;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.assembly-visual-side {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    --scale: 1;
    height: calc(380px * var(--scale));
    width: 100%;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.hemicycle-container {
    position: relative;
    width: 380px;
    height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    transform: scale(var(--scale));
    transform-origin: center bottom;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.rostrum-speaker {
    background: var(--bg-primary);
    border: 1.5px solid var(--border-card);
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.5rem 1.5rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    z-index: 10;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.hemicycle-seats {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.seat-row {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 0;
}

.seat {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    margin-left: -7px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: var(--transition-bounce);
}

.seat:hover {
    transform: scale(1.4) !important;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(0,0,0,0.2);
    z-index: 50;
}

/* --- How To Play Section --- */
.how-to-play {
    position: relative;
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
    justify-content: center;
}

.step-box {
    text-align: center;
    position: relative;
    padding: 2.25rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 28px;
    transition: var(--transition-bounce);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.step-box:hover {
    border-color: var(--primary);
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(16, 185, 129, 0.08);
}

.step-num {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: 900;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin: -3.75rem auto 1.5rem auto;
    border: 4px solid var(--bg-primary);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.step-box h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.step-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Standalone Legal & Support Page Layouts --- */
.legal-page-wrapper {
    padding-top: 10.5rem;
    padding-bottom: 6rem;
    min-height: 80vh;
    position: relative;
    z-index: 1;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.legal-card {
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-card);
    border-radius: 32px;
    padding: 3.5rem;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.03);
    width: 100%;
}

.legal-header {
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 2rem;
    margin-bottom: 2.5rem;
    text-align: left;
}

.legal-badge {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid var(--primary);
    color: var(--primary-hover);
    padding: 0.35rem 0.85rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.legal-header h1 {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.legal-subtitle-desc {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.6;
    margin-top: 0.5rem;
}

.legal-date {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-body {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    text-align: left;
}

.legal-body h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 2.5rem 0 1rem 0;
}

.legal-body p {
    margin-bottom: 1.25rem;
}

.legal-body ul {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.legal-body li {
    margin-bottom: 0.75rem;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border-card);
    background-color: #ffffff;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    max-width: 480px;
}

.footer-copyright {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 0.5rem;
}

.footer-note {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
    text-align: left;
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
    text-align: left;
}

.links-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.links-column h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.links-column a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.links-column a:hover {
    color: var(--primary-hover);
}

.links-column a.active {
    color: var(--primary-hover);
}

.contact-email-inline {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .split-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
        text-align: center;
    }
    
    .split-layout.reversed {
        grid-template-columns: 1fr;
    }
    
    .mockup-text-side {
        align-items: center;
    }
    
    .mockup-text-side .section-title, 
    .mockup-text-side .section-subtitle {
        text-align: center;
    }
    
    .benefit-list {
        align-items: center;
    }
    
    .benefit-list li {
        text-align: left;
        max-width: 480px;
    }
    
    .assembly-legend {
        justify-items: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-row {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
    }
    
    .footer-left {
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        gap: 3rem;
    }
    
    .legal-card {
        padding: 2.5rem 2rem;
        border-radius: 24px;
    }
    
    .legal-header h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.25rem 1rem;
    }
    
    .nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .store-buttons {
        justify-content: center;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .steps-row {
        gap: 4rem;
    }
}

/* Custom CSS Automatic Scale & Fitting (Prevents Overflow & Symmetry Errors on Small Screens) */
@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-image-wrapper {
        --scale: 0.8;
    }
    .mockup-phone-side {
        --scale: 0.8;
    }
    .assembly-visual-side {
        --scale: 0.8;
    }
    .legal-card {
        padding: 2rem 1.25rem;
        border-radius: 18px;
    }
    .legal-container {
        padding: 0 1rem;
    }
}

@media (max-width: 380px) {
    .hero-image-wrapper {
        --scale: 0.65;
    }
    .mockup-phone-side {
        --scale: 0.68;
    }
    .assembly-visual-side {
        --scale: 0.65;
    }
}
