/* PeerPlay Premium Design System */
:root {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.5);
    --secondary: #a855f7;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #22d3ee;
    --glass: rgba(30, 41, 59, 0.7);
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Styles */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.025em;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Sections */
section {
    padding: 100px 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(12px);
    background: var(--glass);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px var(--primary-glow);
}

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

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    z-index: -1;
}

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

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.mockup-container {
    position: relative;
    perspective: 1000px;
}

.mockup-container {
    perspective: 1500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone {
    width: 280px;
    height: 560px;
    background: #000;
    border-radius: 40px;
    border: 10px solid #2d3748;
    position: relative;
    transform-style: preserve-3d;
    animation: rotatePhone 12s linear infinite;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
}

.phone-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
}

.phone-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #1a202c;
    border-radius: 30px;
    transform: rotateY(180deg);
    backface-visibility: hidden;
}

.phone-logo {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    box-shadow: 0 0 40px var(--primary-glow);
}

@keyframes rotatePhone {
    0% { transform: rotateY(-20deg) rotateX(5deg); }
    50% { transform: rotateY(20deg) rotateX(10deg); }
    100% { transform: rotateY(-20deg) rotateX(5deg); }
}

/* Tutorial Images */
.step-card img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 1rem;
    margin-top: 1.5rem;
    border: 1px solid var(--border);
}

/* Steps / Tutorial */
.step-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.8;
}

/* Footer links */
.footer-link {
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

/* Legal Sections */
.legal-box {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 3rem;
    border-radius: 1rem;
    margin-top: 2rem;
}

.legal-box h3 { margin-bottom: 1rem; }
.legal-box p { margin-bottom: 1.5rem; color: var(--text-muted); }

/* Responsive */
@media (max-width: 968px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero h1 { font-size: 2.5rem; }
    .step-card { flex-direction: column; text-align: center; }
}
