:root {
    --primary: #0393FC;
    --primary-hover: #0276cb;
    --bg-main: #111827;
    --bg-secondary: #1F2937;
    --bg-card: #374151;
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --border: #4B5563;
    --accent-red: #EF4444;
    --accent-yellow: #F59E0B;
    --accent-green: #10B981;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius: 8px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

h1 {
    font-size: 3rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 24px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: var(--font-family);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3, 147, 252, 0.3);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--border);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(17, 24, 39, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.logo-icon {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-links a:hover {
    color: white;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(3, 147, 252, 0.1);
    color: var(--primary);
    border: 1px solid rgba(3, 147, 252, 0.2);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.highlight {
    color: var(--primary);
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.disclaimer {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.disclaimer i {
    color: var(--accent-yellow);
}

/* Mockup UI */
.mockup-window {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.mockup-window:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.mockup-header {
    background-color: var(--bg-main);
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

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

.dot.red { background-color: var(--accent-red); }
.dot.yellow { background-color: var(--accent-yellow); }
.dot.green { background-color: var(--accent-green); }

.mockup-body {
    padding: 24px;
    display: flex;
    justify-content: center;
    background-color: #111827;
}

.bet-panel {
    border-radius: 12px;
    width: 100%;
    max-width: 340px;
}

/* Real UI Mockup */
.bet-panel.real-ui {
    background-color: #1a1b23;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-radius: 12px;
    padding: 16px;
    width: 320px;
    border: 1px solid #2d2e3d;
}

.bet-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid #2d2e3d;
    padding-bottom: 12px;
}

.tab-group {
    display: flex;
    gap: 16px;
}

.tab {
    color: #8e8f98;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab.active {
    color: #fff;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #fff;
}

.market-dropdown {
    color: #8e8f98;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.outcome-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.outcome-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    color: #fff;
}

.outcome-btn.yes {
    background-color: #2e9f60;
}

.outcome-btn.no {
    background-color: #2b2e3b;
    color: #8e8f98;
}

.amount-section {
    margin-bottom: 24px;
}

.amount-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
}

.amount-labels {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.label-primary {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}

.label-secondary {
    font-size: 13px;
    color: #8e8f98;
}

.amount-value {
    font-size: 32px;
    font-weight: 600;
    color: #fff;
}

.quick-add-row {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    justify-content: center;
}

.qa-btn {
    background-color: #2b2e3b;
    color: #a4a5b0;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.qa-btn:hover {
    background-color: #3b3e4f;
    color: #fff;
}

/* Injected PolyButton UI */
.polybutton-row {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.pb-btn {
    flex: 1;
    max-width: 60px;
    background-color: #0393fc;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(3, 147, 252, 0.4);
}

.pb-btn.active {
    background-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

.pb-btn:not(.active) {
    background-color: #2b2e3b;
    color: #0393fc;
    box-shadow: none;
}

.summary-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #2d2e3d;
    border-bottom: 1px solid #2d2e3d;
    margin-bottom: 16px;
}

.summary-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.win-label {
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}

.avg-price {
    font-size: 13px;
    color: #8e8f98;
    display: flex;
    align-items: center;
    gap: 4px;
}

.win-amount {
    font-size: 28px;
    font-weight: 600;
    color: #2e9f60;
}

.btn-unavailable {
    width: 100%;
    background-color: #1f212c;
    color: #8e8f98;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.terms-text {
    text-align: center;
    font-size: 12px;
    color: #8e8f98;
}

.terms-text a {
    color: #8e8f98;
    text-decoration: underline;
}

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

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Features */
.features {
    background-color: var(--bg-secondary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background-color: var(--bg-main);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(3, 147, 252, 0.1);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

/* How it works */
.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 50px;
    right: 50px;
    height: 2px;
    background-color: var(--border);
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 24px;
    box-shadow: 0 0 0 8px var(--bg-main);
}

/* Installation */
.installation {
    background-color: var(--bg-secondary);
}

.install-card {
    background-color: var(--bg-main);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.install-content {
    padding: 48px;
}

.install-content h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.install-steps {
    padding-left: 24px;
    margin-bottom: 32px;
    color: var(--text-main);
}

.install-steps li {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.install-steps code {
    background-color: var(--bg-card);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    color: var(--primary);
}

.config-note {
    background-color: var(--bg-card);
    padding: 24px;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.config-note pre {
    background-color: #000;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
    overflow-x: auto;
}

.config-note code {
    color: #10B981;
    font-family: monospace;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color var(--transition);
}

.faq-question:hover {
    background-color: var(--border);
}

.faq-question i {
    transition: transform var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 200px;
}

.faq-answer p {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: #0f1422;
    padding: 64px 0 24px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.footer-logo i {
    color: var(--primary);
    margin-right: 8px;
}

.footer-info p {
    margin-bottom: 4px;
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .disclaimer {
        justify-content: center;
    }

    .mockup-window {
        margin: 0 auto;
        transform: none;
    }
    
    .mockup-window:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-btn {
        display: none;
    }
    
    h1 {
        font-size: 2.5rem;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .steps-container::before {
        display: none;
    }

    .install-content {
        padding: 24px;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
}