/* ===========================
   REWILD SHOWCASE PAGE STYLES
   =========================== */

:root {
    /* ReWild Color Palette */
    --rewild-green: #8B9D83;
    --rewild-dark-green: #6B7D63;
    --rewild-light-green: #ABB DA3;
    --rewild-sage: #C4D2BE;
    --rewild-cream: #F5F5F0;
    
    /* Neutral Colors */
    --dark-bg: #0A0E0F;
    --darker-bg: #050708;
    --light-text: #E8EDE8;
    --muted-text: #A5B5A5;
    --border-color: rgba(139, 157, 131, 0.2);
    
    /* Spacing */
    --section-padding: 120px;
    --container-padding: 80px;
    --mobile-padding: 40px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--darker-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===========================
   NAVIGATION
   =========================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    color: var(--rewild-green);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--rewild-light-green);
}

.cta-button {
    background: linear-gradient(135deg, var(--rewild-green), var(--rewild-dark-green));
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 157, 131, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 157, 131, 0.4);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(139, 157, 131, 0.1), transparent);
    pointer-events: none;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 157, 131, 0.1);
    border: 1px solid var(--border-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--rewild-light-green);
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 18px;
}

.hero h1 {
    font-family: 'Orbitron', monospace;
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--light-text), var(--rewild-light-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch-text {
    position: relative;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 0 0 1px rgba(139, 157, 131, 0.5);
    }
    50% {
        text-shadow: 2px 2px 2px rgba(139, 157, 131, 0.3), -2px -2px 2px rgba(139, 157, 131, 0.3);
    }
}

.hero-description {
    font-size: 20px;
    line-height: 1.7;
    color: var(--muted-text);
    margin-bottom: 40px;
    max-width: 580px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.primary-btn,
.secondary-btn {
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.primary-btn {
    background: linear-gradient(135deg, var(--rewild-green), var(--rewild-dark-green));
    color: white;
    box-shadow: 0 4px 20px rgba(139, 157, 131, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 157, 131, 0.5);
}

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

.secondary-btn:hover {
    background: rgba(139, 157, 131, 0.1);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 48px;
    font-weight: 700;
    color: var(--rewild-green);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 400px;
    filter: drop-shadow(0 20px 60px rgba(139, 157, 131, 0.3));
    animation: float 6s ease-in-out infinite;
}

.phone-mockup img {
    width: 100%;
    height: auto;
    border-radius: 40px;
}

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

/* ===========================
   FEATURES SECTION
   =========================== */

.features {
    padding: var(--section-padding) 0;
    background: var(--dark-bg);
}

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

.section-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--light-text), var(--rewild-light-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 20px;
    color: var(--muted-text);
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 140px;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease forwards;
}

.feature-block:nth-child(even) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 157, 131, 0.1);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--rewild-light-green);
    margin-bottom: 20px;
}

.icon {
    font-size: 16px;
}

.feature-content h3 {
    font-family: 'Orbitron', monospace;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--light-text);
}

.feature-content p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--muted-text);
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    color: var(--light-text);
}

.check-icon {
    color: var(--rewild-green);
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-visual {
    position: relative;
    perspective: 2000px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-frame {
    position: relative;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.device-frame.isometric {
    transform: rotateX(10deg) rotateY(-15deg) rotateZ(2deg);
    animation: floatIsometric 6s ease-in-out infinite;
}

@keyframes floatIsometric {
    0%, 100% {
        transform: rotateX(10deg) rotateY(-15deg) rotateZ(2deg) translateY(0px);
    }
    50% {
        transform: rotateX(12deg) rotateY(-18deg) rotateZ(2deg) translateY(-15px);
    }
}

.device-frame.isometric:hover {
    transform: rotateX(5deg) rotateY(-10deg) rotateZ(1deg) scale(1.05);
    animation-play-state: paused;
}

.device-mockup {
    position: relative;
    width: 320px;
    height: 650px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 50px;
    padding: 12px;
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.8),
        0 20px 40px rgba(139, 157, 131, 0.2),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(139, 157, 131, 0.05);
    position: relative;
}

/* Device notch */
.device-mockup::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
    box-shadow: 
        inset 0 -2px 4px rgba(255, 255, 255, 0.1),
        0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Camera */
.device-mockup::after {
    content: '';
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, #1a3a4a 30%, #0a1a2a 70%);
    border-radius: 50%;
    z-index: 11;
    box-shadow: 
        0 0 0 2px #000,
        inset 0 1px 2px rgba(100, 200, 255, 0.3);
}

.device-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 42px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

.device-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Glow effect on hover */
.device-frame.isometric:hover .device-mockup {
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.8),
        0 20px 60px rgba(139, 157, 131, 0.4),
        0 0 80px rgba(139, 157, 131, 0.2),
        inset 0 0 0 2px rgba(139, 157, 131, 0.3),
        inset 0 0 30px rgba(139, 157, 131, 0.1);
}

/* Shimmer effect */
.device-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    animation: shimmer 3s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* ===========================
   PHONE GALLERY SECTION
   =========================== */

.phone-gallery {
    padding: var(--section-padding) 0;
    background: var(--darker-bg);
}

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

.phone-item {
    text-align: center;
}

.phone-item img {
    width: 100%;
    max-width: 280px;
    border-radius: 24px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px var(--border-color);
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.phone-item img:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 60px rgba(139, 157, 131, 0.2),
        0 0 0 1px var(--rewild-green);
}

.phone-item p {
    color: var(--muted-text);
    font-size: 14px;
    font-weight: 500;
}

/* ===========================
   TESTIMONIALS SECTION
   =========================== */

.testimonials {
    padding: var(--section-padding) 0;
    background: var(--dark-bg);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.testimonial-card {
    background: rgba(139, 157, 131, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(139, 157, 131, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(139, 157, 131, 0.1);
}

.quote-icon {
    font-size: 60px;
    color: var(--rewild-green);
    line-height: 1;
    margin-bottom: 20px;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--light-text);
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--rewild-green), var(--rewild-dark-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 20px;
    color: white;
}

.author-name {
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 4px;
}

.author-status {
    font-size: 13px;
    color: var(--rewild-green);
}

/* ===========================
   DOWNLOAD SECTION
   =========================== */

.download {
    padding: var(--section-padding) 0;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    position: relative;
    overflow: hidden;
}

.download::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 157, 131, 0.15), transparent);
    pointer-events: none;
}

.download-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.download-content h2 {
    font-family: 'Orbitron', monospace;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.download-content > p {
    font-size: 20px;
    color: var(--muted-text);
    margin-bottom: 50px;
}

.download-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.app-store-badge,
.google-play-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 32px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.app-store-badge:hover,
.google-play-badge:hover {
    border-color: var(--rewild-green);
    background: rgba(139, 157, 131, 0.05);
    transform: translateY(-2px);
}

.badge-text {
    font-size: 12px;
    color: var(--muted-text);
    margin-bottom: 4px;
}

.store-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--light-text);
}

.early-access {
    margin-top: 60px;
}

.early-access > p {
    font-size: 16px;
    color: var(--muted-text);
    margin-bottom: 20px;
}

.email-form {
    display: flex;
    justify-content: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.email-form input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid var(--border-color);
    border-radius: 50px;
    background: rgba(139, 157, 131, 0.05);
    color: var(--light-text);
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.email-form input:focus {
    outline: none;
    border-color: var(--rewild-green);
    background: rgba(139, 157, 131, 0.1);
}

.email-form button {
    padding: 16px 32px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--rewild-green), var(--rewild-dark-green));
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(139, 157, 131, 0.3);
}

.email-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(139, 157, 131, 0.5);
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    font-weight: 600;
    color: var(--rewild-green);
    margin-bottom: 20px;
}

.footer-section p {
    color: var(--muted-text);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--muted-text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--rewild-light-green);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    border-color: var(--rewild-green);
    background: rgba(139, 157, 131, 0.1);
    transform: translateY(-2px);
}

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

.footer-bottom p {
    color: var(--muted-text);
    font-size: 13px;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
        --container-padding: 50px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .hero-visual {
        order: -1;
    }

    .feature-block {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 100px;
    }

    .feature-block.reverse {
        direction: ltr;
    }

    .section-header h2 {
        font-size: 40px;
    }

    .feature-content h3 {
        font-size: 30px;
    }

    /* Adjust device mockup for tablets */
    .device-mockup {
        width: 280px;
        height: 570px;
    }

    .device-frame.isometric {
        transform: rotateX(8deg) rotateY(-12deg) rotateZ(1deg);
    }

    @keyframes floatIsometric {
        0%, 100% {
            transform: rotateX(8deg) rotateY(-12deg) rotateZ(1deg) translateY(0px);
        }
        50% {
            transform: rotateX(10deg) rotateY(-14deg) rotateZ(1deg) translateY(-12px);
        }
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --container-padding: 24px;
    }

    .nav-container {
        padding: 16px 24px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
        text-align: left;
    }

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

    .primary-btn,
    .secondary-btn {
        width: 100%;
        text-align: center;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header p {
        font-size: 16px;
    }

    .feature-content h3 {
        font-size: 24px;
    }

    .feature-content p {
        font-size: 16px;
    }

    .phone-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 24px;
    }

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

    .download-content h2 {
        font-size: 36px;
    }

    .download-badges {
        flex-direction: column;
        align-items: center;
    }

    .email-form {
        flex-direction: column;
    }

    .email-form button {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Mobile device mockup */
    .device-mockup {
        width: 240px;
        height: 490px;
        border-radius: 40px;
        padding: 10px;
    }

    .device-mockup::before {
        width: 100px;
        height: 25px;
        border-radius: 0 0 16px 16px;
    }

    .device-mockup::after {
        width: 10px;
        height: 10px;
        top: 18px;
    }

    .device-screen {
        border-radius: 34px;
    }

    .device-frame.isometric {
        transform: rotateX(5deg) rotateY(-8deg) rotateZ(0deg);
    }

    @keyframes floatIsometric {
        0%, 100% {
            transform: rotateX(5deg) rotateY(-8deg) rotateZ(0deg) translateY(0px);
        }
        50% {
            transform: rotateX(7deg) rotateY(-10deg) rotateZ(0deg) translateY(-10px);
        }
    }

    .device-frame.isometric:hover {
        transform: rotateX(3deg) rotateY(-5deg) rotateZ(0deg) scale(1.03);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 28px;
    }

    .stat-number {
        font-size: 36px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .feature-block {
        margin-bottom: 60px;
    }

    .download-content h2 {
        font-size: 28px;
    }

    /* Extra small device mockup */
    .device-mockup {
        width: 200px;
        height: 410px;
        border-radius: 36px;
        padding: 8px;
    }

    .device-mockup::before {
        width: 80px;
        height: 22px;
        border-radius: 0 0 14px 14px;
        top: 8px;
    }

    .device-mockup::after {
        width: 8px;
        height: 8px;
        top: 15px;
    }

    .device-screen {
        border-radius: 30px;
    }
}
