:root {
    --primary-color: #0B8C29;
    --secondary-color: #24CC2C;
    --bg-color: #050505;
    --card-bg: #111111;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001; /* Ensure logo is clickable above other elements */
}

.nav-logo {
    height: 70px;
    width: auto;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    position: absolute;
    right: 5%;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(11, 140, 41, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 140, 41, 0.5);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(11, 140, 41, 0.1), transparent 40%);
}

.hero-content {
    max-width: 500px;
    z-index: 2;
    flex-shrink: 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero .highlight {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .highlight-alt {
    color: var(--secondary-color);
    /* Or use primary depending on preference, secondary is brighter/more playful for "Fantasy" */
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn-primary.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-secondary {
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
}

/* Hero Visual - Carousel */
.hero-visual {
    position: relative;
    width: 55%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
}

.circle-bg {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(36, 204, 44, 0.15) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
    animation: pulse 4s infinite ease-in-out;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.phone-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.carousel-track {
    display: flex;
    gap: 20px;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%); /* Centered initially */
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-item {
    width: 234px; /* Phone width - 10% smaller */
    height: 468px; /* Phone height - 10% smaller */
    flex-shrink: 0;
    transition: all 0.5s ease;
    opacity: 0.5;
    transform: scale(0.9);
}

/* Center item active state */
.carousel-item.active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

.phone-frame {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 40px;
    border: 8px solid #333;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

/* Placeholder Screens */
.screen-placeholder {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 1.5rem;
    font-weight: 600;
    /* Add gradient or pattern to look nicer */
}

.phone-frame .screenshot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #000;
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 20;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}


/* Features */
.features {
    padding: 8rem 5%;
    background: var(--bg-color);
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    font-weight: 600;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(11, 140, 41, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.icon-box svg {
    width: 30px;
    height: 30px;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

/* How It Works */
.how-it-works {
    padding: 8rem 5%;
    position: relative;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    left: 29px; /* Adjust based on layout */
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    opacity: 0.3;
}

.step {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--secondary-color);
    background: var(--bg-color);
    padding: 10px 0;
    z-index: 1;
    min-width: 60px;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-muted);
}

/* ============================================
   Fantasy Comparison Section - Comparison Table
   ============================================ */
.mechanics {
    padding: 8rem 5%;
    background: var(--bg-color);
    position: relative;
}

/* Subtle background accent */
.mechanics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(11, 140, 41, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.comparison-table-wrapper {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin;
    scrollbar-color: rgba(11, 140, 41, 0.5) rgba(255, 255, 255, 0.05);
}

.comparison-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.comparison-table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.comparison-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(11, 140, 41, 0.5);
    border-radius: 4px;
}

.comparison-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(11, 140, 41, 0.7);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

.comparison-table thead {
    background: linear-gradient(135deg, rgba(11, 140, 41, 0.15), rgba(36, 204, 44, 0.08));
}

.comparison-table th {
    padding: 0.75rem 2rem;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.02em;
    border-bottom: 2px solid rgba(11, 140, 41, 0.3);
}

.comparison-table th:first-child {
    border-radius: 24px 0 0 0;
}

.comparison-table th:last-child {
    border-radius: 0 24px 0 0;
}

/* Highlighted Fantasy Stocks header */
.comparison-table th .highlight {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Logo in table header */
.table-logo {
    height: 75px;
    width: auto;
    vertical-align: middle;
}

.comparison-table td {
    padding: 1.25rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

/* First column - Mechanic names */
.comparison-table td:first-child {
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-color);
    position: relative;
}

/* Green underline accent on mechanic column */
.comparison-table td:first-child::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Fantasy Stocks column - highlighted (2nd column) */
.comparison-table td:nth-child(2) {
    color: #fff;
    background: rgba(11, 140, 41, 0.06);
    font-weight: 500;
}

.comparison-table th:nth-child(2) {
    background: rgba(11, 140, 41, 0.08);
}

/* Row hover effects */
.comparison-table tbody tr {
    transition: var(--transition);
}

.comparison-table tbody tr:hover {
    background: rgba(11, 140, 41, 0.08);
}

.comparison-table tbody tr:hover td:first-child::before {
    width: 60%;
}

.comparison-table tbody tr:hover td {
    color: var(--text-color);
}

/* Last row - no bottom border */
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

/* Rounded corners for last row */
.comparison-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 24px;
}

.comparison-table tbody tr:last-child td:last-child {
    border-radius: 0 0 24px 0;
}

/* Alternating row subtle backgrounds */
.comparison-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}

.comparison-table tbody tr:nth-child(even) td:nth-child(2) {
    background: rgba(11, 140, 41, 0.08);
}

/* CTA Section */
.cta-section {
    padding: 8rem 5%;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-color), #0a1f0f);
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.store-badge {
    background: white;
    color: black;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.store-badge:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

/* Footer */
footer {
    padding: 4rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.footer-logo a {
    text-decoration: none;
    color: inherit;
}

.footer-logo img {
    height: 70px;
}

.footer-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.copyright {
    color: #555;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    margin-top: 2rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    transition: 0.3s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        margin-bottom: 4rem;
        max-width: 100%;
    }

    .hero-visual {
        width: 100%;
        height: 600px;
    }

    .carousel-item {
        width: 281px; /* 56% bigger than original mobile */
        height: 563px; /* 56% bigger than original mobile */
    }

    /* Fix carousel alignment on mobile */
    .carousel-track {
        left: 50%;
        transform: translateX(-50%);
    }

    .phone-carousel {
        overflow: hidden;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 5, 0.95);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
        position: absolute;
        left: 5%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    /* Make hero buttons smaller on mobile */
    .cta-group {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .btn-primary.large,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }

    .steps::before {
        left: 20px;
    }

    .step-number {
        font-size: 2rem;
        min-width: 40px;
    }

    /* Additional Mobile Fixes */
    .nav-logo {
        height: 50px; /* Reduce logo size on mobile */
    }

    .feature-grid {
        grid-template-columns: 1fr; /* Stack features */
    }

    .step {
        gap: 1.5rem; /* Reduce gap */
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    /* Comparison Table Mobile */
    .mechanics {
        padding: 5rem 3%;
    }

    .comparison-table-wrapper {
        border-radius: 16px;
        padding: 1rem;
    }

    .comparison-table {
        min-width: 600px; /* Reduce minimum width for mobile */
    }

    .comparison-table th {
        padding: 0.75rem 0.75rem;
        font-size: 0.95rem;
    }

    .comparison-table td {
        padding: 0.75rem 0.75rem;
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .comparison-table td:first-child {
        font-size: 0.85rem;
        font-weight: 600;
    }

    .table-logo {
        height: 48px;
    }

    /* Ensure Fantasy Stocks column (2nd) is highlighted on mobile */
    .comparison-table td:nth-child(2) {
        color: #fff !important;
        background: rgba(11, 140, 41, 0.06) !important;
        font-weight: 500;
    }

    .comparison-table th:nth-child(2) {
        background: rgba(11, 140, 41, 0.08) !important;
    }

    .comparison-table tbody tr:nth-child(even) td:nth-child(2) {
        background: rgba(11, 140, 41, 0.08) !important;
    }

    /* Remove any lingering 3rd column highlights */
    .comparison-table td:nth-child(3),
    .comparison-table th:nth-child(3) {
        background: transparent;
        font-weight: normal;
    }

    .comparison-table td:nth-child(3) {
        color: var(--text-muted);
    }

    .comparison-table th:nth-child(3) {
        color: var(--text-color);
    }

    .comparison-table th:first-child,
    .comparison-table tbody tr:last-child td:first-child {
        border-radius: 16px 0 0 0;
    }

    .comparison-table th:last-child,
    .comparison-table tbody tr:last-child td:last-child {
        border-radius: 0 16px 0 0;
    }

    .comparison-table tbody tr:last-child td:first-child {
        border-radius: 0 0 0 16px;
    }

    .comparison-table tbody tr:last-child td:last-child {
        border-radius: 0 0 16px 0;
    }
}

/* Very Small Screens */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .carousel-item {
        width: 254px; /* 56% bigger than original small mobile */
        height: 506px; /* 56% bigger than original small mobile */
    }

    .hero-visual {
        height: 550px;
    }

    .comparison-table {
        min-width: 500px; /* Further reduce for very small screens */
    }

    .comparison-table th {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }

    .comparison-table td {
        padding: 0.6rem 0.5rem;
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .comparison-table td:first-child {
        font-size: 0.75rem;
        font-weight: 600;
    }

    .table-logo {
        height: 38px;
    }

    /* Ensure Fantasy Stocks column (2nd) is highlighted on very small screens */
    .comparison-table td:nth-child(2) {
        color: #fff !important;
        background: rgba(11, 140, 41, 0.06) !important;
        font-weight: 500;
    }

    .comparison-table th:nth-child(2) {
        background: rgba(11, 140, 41, 0.08) !important;
    }

    .comparison-table tbody tr:nth-child(even) td:nth-child(2) {
        background: rgba(11, 140, 41, 0.08) !important;
    }

    /* Remove any lingering 3rd column highlights */
    .comparison-table td:nth-child(3),
    .comparison-table th:nth-child(3) {
        background: transparent;
        font-weight: normal;
    }

    .comparison-table td:nth-child(3) {
        color: var(--text-muted);
    }

    .comparison-table th:nth-child(3) {
        color: var(--text-color);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes pulse {
    0% { transform: scale(1) translate(-50%, -50%); opacity: 0.5; }
    50% { transform: scale(1.1) translate(-50%, -50%); opacity: 0.7; }
    100% { transform: scale(1) translate(-50%, -50%); opacity: 0.5; }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0; /* Start hidden */
}

.fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
    opacity: 0;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
    opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Trigger class for scroll animations */
.animate {
    animation-play-state: running;
}

/* Contact Form Styles */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form {
    text-align: left;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.02);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(15, 15, 15, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.9rem 1rem;
    color: #fff;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 140, 41, 0.2);
    background-color: rgba(15, 15, 15, 0.95);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }
}
