:root {
    --primary-orange: #E5A454;
    --primary-orange-light: #F2C48D;
    --secondary-red: #D98B2B;
    --text-dark: #1A1A1A;
    --text-gray: #4A4A4A;
    --bg-light: #F9F9F9;
    --white: #FFFFFF;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(255, 107, 0, 0.15);
    /* Orange tinted shadow */

    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: --text-dark;
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1,
h2,
h3 {
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-red));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-gray);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--primary-orange);
    color: white;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-lg);
    font-size: 1.1rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 30px rgba(255, 107, 0, 0.25);
}

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

.btn-sm {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 107, 0, 0.1);
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-sm:hover {
    background: rgba(255, 107, 0, 0.2);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

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

.btn-store {
    background: #111;
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    cursor: pointer;
    margin: 0 8px 12px 0;
    font-size: 1rem;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-store:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-orange);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-orange);
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    margin-left: 24px;
    transition: color 0.2s;
}

nav a:not(.btn-sm):hover {
    color: var(--primary-orange);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 80px;
    overflow: hidden;
}

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

.hero-bg-accent {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Image Placeholders */
.image-placeholder {
    background-color: #333;
    /* Match bezel color */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    /* Add padding for bezel effect */
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    border: 8px solid #333;
}

.mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 28px;
    /* Rounded corners for the screen content */
}

.app-mockup-lg {
    width: 320px;
    height: 640px;
    margin: 0 auto;
}

/* Make all mockups look like vertical phones */
.map-mockup,
.capture-mockup,
.ranking-ui-mockup {
    width: 300px;
    height: 600px;
    margin: 0 auto;
    /* Center the phone */
}

/* Ensure sections that held wide images now center the vertical phone */
.section-image,
.gamification-image,
.section-image-center {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 40px;
}

/* Utility Section */
.section-utility {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    color: var(--primary-orange);
}

/* Gamification Section */
.section-gamification {
    padding: 100px 0;
}

.gamification-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.game-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.game-icon {
    font-size: 2rem;
    background: #FFF0E6;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Ranking Section */
.section-ranking {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-light) 0%, white 100%);
    text-align: center;
}

/* Ranking Feed Refined */
.ranking-feed {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 40px auto;
}

.ranking-item {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 24px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.ranking-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.falla-rank {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-orange);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(229, 164, 84, 0.1), rgba(229, 164, 84, 0.05));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.falla-content {
    flex-grow: 1;
}

.falla-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 8px;
}

.falla-header h3 {
    font-size: 1.4rem;
    margin: 0;
}

.falla-total-score {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary-orange);
    margin-left: auto;
    padding-left: 24px;
    border-left: 2px solid rgba(229, 164, 84, 0.1);
}

.category-tag {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-orange);
    background: rgba(255, 107, 0, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.falla-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.score-card {
    background: var(--bg-light);
    padding: 12px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid transparent;
    transition: all 0.2s;
    width: 100%;
}

.ranking-item:hover .score-card {
    border-color: rgba(255, 107, 0, 0.1);
}

.score-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-gray);
    font-weight: 600;
    margin-bottom: 4px;
}

.falla-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed rgba(0, 0, 0, 0.05);
}

.total-voters {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.voter-icon {
    font-size: 1.1rem;
}

.score-value {
    display: flex;
    align-items: center;
}

.score-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
}

.falla-main-metric {
    display: flex;
    align-items: center;
    gap: 16px;
}

.total-score-badge {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-red));
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    box-shadow: var(--shadow-sm);
}

.score-val {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.score-lbl {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    opacity: 0.9;
}

.score-card {
    background: var(--bg-light);
    padding: 12px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid transparent;
    transition: all 0.2s;
    width: 100%;
}

.ranking-item:hover .score-card {
    background: white;
    border-color: rgba(255, 107, 0, 0.1);
    transform: scale(1.02);
}

/* Responsive Ranking */
@media (max-width: 600px) {
    .falla-scores {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .falla-rank {
        margin: 0 auto;
    }

    .falla-total-score {
        margin: 16px 0 0 0;
        padding: 16px 0 0 0;
        border-left: none;
        border-top: 2px solid rgba(229, 164, 84, 0.1);
        text-align: center;
    }

    .falla-header {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

.section-image-center {
    max-width: 800px;
    margin: 40px auto 0;
}

/* Footer & CTA */
footer {
    background: var(--primary-orange);
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
}

.cta-box {
    margin-bottom: 60px;
}

.cta-box h2 {
    color: white;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.legal {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.legal a {
    color: white;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-grid,
    .gamification-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image,
    .gamification-image {
        order: -1;
        /* Image on top on mobile */
        margin-bottom: 20px;
    }

    .hero-text {
        order: 1;
    }

    .header-content nav {
        display: none;
        /* simple hide for mockup, in real app add hamburger */
    }
}