/* ===== CSS Variables ===== */
:root {
    --color-primary: #1e293b;
    --color-primary-light: #334155;
    --color-accent: #f97316;
    --color-accent-light: #fb923c;
    --color-accent-dark: #ea580c;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-dark: #0f172a;
    --color-border: #e2e8f0;
    --color-success: #22c55e;
    --color-recycling: #3b82f6;
    --color-organics: #22c55e;
    --color-garbage: #64748b;
    --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

html {
    scroll-behavior: smooth;
}

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

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

/* ===== Typography ===== */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}
h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}
h3 {
    font-size: 1.5rem;
}
h4 {
    font-size: 1.125rem;
}

/* ===== Section Headers ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn i {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

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

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover i {
    transform: translateX(3px);
}

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

.btn-secondary:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-alt);
}

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    border-bottom-color: var(--color-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.nav-logo:hover {
    transform: translateY(-1px);
}

.logo-icon {
    width: 8rem;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.nav-logo:hover .logo-icon {
    transform: scale(1.08) rotate(2deg);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 500;
    transition: color 0.2s ease;
    font-size: 0.9375rem;
}

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

.nav-cta {
    background: var(--color-primary);
    color: white !important;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
}

.nav-cta:hover {
    background: var(--color-primary-light) !important;
}

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

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: 0.3s;
    border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
    padding: 140px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--color-bg) 0%,
        var(--color-bg-alt) 100%
    );
}

.hero-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(
            circle at 20% 50%,
            rgba(249, 115, 22, 0.05) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(30, 41, 59, 0.03) 0%,
            transparent 40%
        );
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--color-accent);
    display: block;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Visual / App Preview */
.hero-visual {
    display: flex;
    justify-content: center;
}

.app-preview {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    width: 100%;
    max-width: 380px;
    animation: float 6s ease-in-out infinite;
}

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

.preview-header {
    display: flex;
    gap: 6px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-border);
}

.preview-dot:first-child {
    background: #ef4444;
}
.preview-dot:nth-child(2) {
    background: #eab308;
}
.preview-dot:last-child {
    background: #22c55e;
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.preview-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.preview-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: var(--radius-sm);
}

.preview-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-text {
    display: flex;
    flex-direction: column;
}

.preview-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.preview-value {
    font-weight: 600;
    color: var(--color-primary);
}

.alert-card {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border: 1px solid #fbbf24;
}

/* ===== Problems Section ===== */
.problems {
    padding: 100px 0;
    background: var(--color-bg);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.problem-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}

.problem-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-primary-light) 100%
    );
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.problem-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.problem-card h3 {
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

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

/* ===== Features Section ===== */
.features {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

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

.feature-item.reverse {
    direction: rtl;
}

.feature-item.reverse > * {
    direction: ltr;
}

.feature-badge {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.feature-badge img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.feature-content > p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.feature-points {
    list-style: none;
}

.feature-points li {
    padding: 0.5rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--color-text-muted);
}

.feature-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* Feature Mockups */
.feature-visual {
    display: flex;
    justify-content: center;
}

.feature-mockup {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    width: 100%;
    max-width: 340px;
}

/* Calendar Mockup */
.calendar-mockup .mockup-header {
    text-align: center;
    font-weight: 600;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

.mockup-calendar {
    font-size: 0.875rem;
}

.cal-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}

.cal-row span {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.cal-header span {
    color: var(--color-text-muted);
    font-weight: 500;
    font-size: 0.75rem;
}

.cal-recycling {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-recycling);
    font-weight: 600;
}

.cal-organics {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-organics);
    font-weight: 600;
}

.cal-garbage {
    background: rgba(100, 116, 139, 0.15);
    color: var(--color-garbage);
    font-weight: 600;
}

/* Explorer Mockup */
.explorer-mockup {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.explorer-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
}

.explorer-search img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.7;
}

.explorer-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
}

.result-icon {
    font-size: 2rem;
}

.result-info {
    display: flex;
    flex-direction: column;
}

.result-item {
    font-weight: 600;
}

.result-bin {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-top: 0.25rem;
    width: fit-content;
}

.result-bin.organics {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-organics);
}

.result-note {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* Dashboard Mockup */
.dashboard-mockup {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.dash-title {
    font-weight: 600;
}

.dash-badge {
    font-size: 0.75rem;
    background: var(--color-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.dash-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dash-stat {
    background: var(--color-bg-alt);
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ===== Why Rooster Section ===== */
.why-rooster {
    padding: 100px 0;
    background: var(--color-bg);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.advantage-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.advantage-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.advantage-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.advantage-card h4 {
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

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

/* ===== Residents Section ===== */
.residents {
    padding: 100px 0;
    background: linear-gradient(
        135deg,
        var(--color-primary) 0%,
        var(--color-bg-dark) 100%
    );
    color: white;
}

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

.residents .section-eyebrow {
    color: var(--color-accent-light);
}

.residents h2 {
    margin-bottom: 1.5rem;
}

.residents-text > p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.residents-access {
    margin-bottom: 2rem;
}

.access-instruction {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.access-instruction i {
    color: var(--color-accent-light);
    font-size: 1.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.residents-note {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.residents-note i {
    color: var(--color-accent);
}

/* Phone Frame */
.phone-frame {
    width: 260px;
    height: 520px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    border-radius: 32px;
    overflow: hidden;
}

.phone-app {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    margin-top: auto;
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
}

.app-nav-item {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.app-nav-item.active {
    color: var(--color-accent);
}

/* ===== Contact Section ===== */
.contact {
    padding: 100px 0;
    background: var(--color-bg-alt);
}

.contact-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.contact .section-eyebrow {
    margin-bottom: 0.75rem;
}

.contact h2 {
    margin-bottom: 1rem;
}

.contact-text > p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

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

/* ===== Footer ===== */
.footer {
    background: var(--color-bg-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-main {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    width: 7rem;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
}

.footer-main p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

.footer-main a {
    color: var(--color-accent);
    text-decoration: none;
}

.footer-main a:hover {
    text-decoration: underline;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-section h4 {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-description {
        margin: 0 auto 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .feature-item,
    .feature-item.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }

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

    .feature-points li {
        text-align: left;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .residents-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .residents-note {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

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

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

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-main {
        max-width: none;
    }

    .footer-links {
        gap: 2rem;
    }

    .contact-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .feature-badge {
        justify-content: center;
    }

    .feature-item {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }

    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .app-preview {
        padding: 1rem;
    }

    .preview-card {
        padding: 0.75rem;
    }

    .phone-frame {
        width: 220px;
        height: 440px;
    }
}

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

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}
.delay-2 {
    animation-delay: 0.2s;
}
.delay-3 {
    animation-delay: 0.3s;
}
.delay-4 {
    animation-delay: 0.4s;
}
