/* ===== PrediktGame Homepage ===== */

/* --- Custom Properties --- */
:root {
    --bg-deep: #06070b;
    --bg-surface: #0d0f17;
    --bg-card: rgba(16, 19, 32, 0.65);
    --bg-card-hover: rgba(22, 26, 44, 0.75);
    --accent: #00e5c7;
    --accent-glow: rgba(0, 229, 199, 0.25);
    --accent-dim: rgba(0, 229, 199, 0.08);
    --gold: #f5b731;
    --gold-glow: rgba(245, 183, 49, 0.2);
    --text-primary: #e8eaf0;
    --text-secondary: #8a8fa8;
    --text-muted: #565b73;
    --border: rgba(255, 255, 255, 0.06);
    --border-accent: rgba(0, 229, 199, 0.15);
    --font-display: 'Clash Display', 'Inter', sans-serif;
    --font-body: 'Satoshi', 'Inter', sans-serif;
    --max-width: 1140px;
    --section-pad: 5rem 1.25rem;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* --- Noise Texture Overlay --- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

/* --- Layout Utility --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
    background: rgba(6, 7, 11, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.nav-logo svg {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: none;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-deep);
    box-shadow: 0 0 20px var(--accent-glow), 0 0 60px rgba(0, 229, 199, 0.08);
}

.btn-primary:hover {
    box-shadow: 0 0 30px var(--accent-glow), 0 0 80px rgba(0, 229, 199, 0.15);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border-accent);
}

.btn-secondary:hover {
    background: var(--accent-dim);
    border-color: rgba(0, 229, 199, 0.3);
}

.btn-nav {
    padding: 0.5rem 1.2rem;
    font-size: 0.8125rem;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.25rem 6rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 199, 0.08) 0%, transparent 65%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 183, 49, 0.05) 0%, transparent 65%);
    bottom: -100px;
    right: -200px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent), #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Floating geometric decorations */
.geo {
    position: absolute;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.geo-1 {
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent);
    border-radius: 12px;
    transform: rotate(45deg);
    top: 20%;
    left: 8%;
    animation: float 8s ease-in-out infinite;
}

.geo-2 {
    width: 50px;
    height: 50px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    top: 30%;
    right: 10%;
    animation: float 6s ease-in-out infinite 1s;
}

.geo-3 {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(0, 229, 199, 0.2);
    bottom: 25%;
    left: 12%;
    animation: float 10s ease-in-out infinite 2s;
}

.geo-4 {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(245, 183, 49, 0.3);
    border-radius: 8px;
    bottom: 20%;
    right: 8%;
    transform: rotate(30deg);
    animation: float 7s ease-in-out infinite 0.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(45deg); }
}

.geo-2 {
    animation-name: float-circle;
}

@keyframes float-circle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- Section Common --- */
.section {
    position: relative;
    z-index: 1;
    padding: var(--section-pad);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--accent);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header .section-label {
    justify-content: center;
}

.section-header .section-desc {
    margin: 0 auto;
}

/* --- How It Works --- */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s, background 0.3s;
}

.step-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
}

.step-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent);
}

.step-content h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.step-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- Connector line between steps (desktop) --- */
.steps-connector {
    display: none;
}

/* --- Features --- */
.features-section {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 229, 199, 0.015) 50%, transparent 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.3s, transform 0.2s, background 0.3s;
}

.feature-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
    background: var(--bg-card-hover);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.1rem;
    background: var(--accent-dim);
    border: 1px solid var(--border-accent);
    color: var(--accent);
}

.feature-icon.gold {
    background: rgba(245, 183, 49, 0.08);
    border-color: rgba(245, 183, 49, 0.15);
    color: var(--gold);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* --- Premium / Pricing --- */
.premium-section {
    background: linear-gradient(180deg, transparent 0%, rgba(245, 183, 49, 0.01) 50%, transparent 100%);
}

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 780px;
    margin: 0 auto;
}

.pricing-card {
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: rgba(245, 183, 49, 0.25);
    background: linear-gradient(135deg, rgba(245, 183, 49, 0.04) 0%, rgba(16, 19, 32, 0.65) 100%);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.pricing-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.pricing-card:not(.featured) .pricing-badge {
    background: rgba(138, 143, 168, 0.1);
    color: var(--text-secondary);
}

.pricing-card.featured .pricing-badge {
    background: var(--gold-glow);
    color: var(--gold);
}

.pricing-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.pricing-price .amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.pricing-card.featured .pricing-price .amount {
    color: var(--gold);
}

.pricing-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-features li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.pricing-features .check {
    color: var(--accent);
}

.pricing-features .cross {
    color: var(--text-muted);
}

.pricing-save {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: rgba(245, 183, 49, 0.12);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.4rem;
}

.pricing-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pricing-note svg {
    display: inline-block;
    vertical-align: middle;
    width: 16px;
    height: 16px;
    margin-right: 0.3rem;
}

/* --- Footer --- */
.footer {
    position: relative;
    z-index: 1;
    padding: 3rem 1.25rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-logo svg {
    width: 24px;
    height: 24px;
}

.footer-langs {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-langs span {
    margin: 0 0.3rem;
}

.footer-bottom {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.7s ease-out both;
}

.fade-in-d1 { animation-delay: 0.1s; }
.fade-in-d2 { animation-delay: 0.2s; }
.fade-in-d3 { animation-delay: 0.3s; }
.fade-in-d4 { animation-delay: 0.4s; }
.fade-in-d5 { animation-delay: 0.5s; }
.fade-in-d6 { animation-delay: 0.6s; }

/* --- Responsive --- */
@media (min-width: 640px) {
    .steps {
        grid-template-columns: 1fr 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pricing-cards {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    :root {
        --section-pad: 6rem 2rem;
    }

    .nav-links {
        display: flex;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    :root {
        --section-pad: 7rem 2rem;
    }

    .hero {
        padding: 10rem 2rem 8rem;
    }

    .steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }

    .step-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* --- Selection color --- */
::selection {
    background: rgba(0, 229, 199, 0.2);
    color: var(--text-primary);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* --- FAQ Section --- */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: var(--border-accent);
}

.faq-item[open] {
    border-color: var(--border-accent);
}

.faq-item summary {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    margin-top: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}
