/* ============================================
   QualityRent — Apple-esque Dark Mode Landing
   ============================================ */

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

:root {
    --bg: #050505;
    --bg-card: #0a0a0a;
    --bg-card-hover: #111111;
    --border: rgba(255, 255, 255, 0.06);
    --text: #f5f5f7;
    --text-secondary: #86868b;
    --text-dim: #6e6e73;
    --green: #30d158;
    --green-glow: rgba(48, 209, 88, 0.3);
    --orange: #ff6b2b;
    --orange-glow: rgba(255, 107, 43, 0.3);
    --gradient: linear-gradient(135deg, var(--green), #00c7be);
    --gradient-orange: linear-gradient(135deg, var(--orange), #ff9f0a);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    text-decoration: none;
    color: inherit;
}

img, video {
    max-width: 100%;
    display: block;
}

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

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.nav.scrolled {
    padding: 10px 0;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(5, 5, 5, 0.72);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.nav-logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--green);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-slow);
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu {
    list-style: none;
    text-align: center;
}

.mobile-menu li {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-slow);
}

.mobile-overlay.active .mobile-menu li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-overlay.active .mobile-menu li:nth-child(1) { transition-delay: 0.1s; }
.mobile-overlay.active .mobile-menu li:nth-child(2) { transition-delay: 0.15s; }
.mobile-overlay.active .mobile-menu li:nth-child(3) { transition-delay: 0.2s; }
.mobile-overlay.active .mobile-menu li:nth-child(4) { transition-delay: 0.25s; }
.mobile-overlay.active .mobile-menu li:nth-child(5) { transition-delay: 0.3s; }

.mobile-link {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    padding: 16px 0;
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--green);
}

/* ---------- Hero Section ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(48, 209, 88, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--green);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.2s forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s 0.4s forwards;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.6s forwards;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s 0.8s forwards;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 0 0 0 var(--orange-glow);
}

.btn-primary:hover {
    background: #ff7d44;
    box-shadow: 0 0 30px 8px var(--orange-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeIn 1s 1.2s forwards;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--green), transparent);
    animation: scrollPulse 2s infinite;
}

/* ---------- Earth Zoom Section ---------- */
.earth-section {
    position: relative;
    height: 400vh;
}

.earth-video-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.earth-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.earth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.earth-text {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.earth-text-start {
    color: var(--text-secondary);
}

.earth-text-end {
    color: var(--green);
    margin-top: 8px;
}

.earth-text.visible {
    opacity: 1;
}

.earth-spacer {
    height: 1px;
}

/* ---------- Sections General ---------- */
.section {
    padding: 140px 0;
    position: relative;
}

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 64px;
}

/* ---------- About Section ---------- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text strong {
    color: var(--text);
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-card {
    padding: 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(48, 209, 88, 0.2);
    transform: translateY(-4px);
}

.value-icon {
    color: var(--green);
    margin-bottom: 12px;
}

.value-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---------- Bento Grid ---------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bento-card {
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(48, 209, 88, 0.3), transparent);
    opacity: 0;
    transition: var(--transition);
}

.bento-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(48, 209, 88, 0.15);
    transform: translateY(-4px);
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-large {
    grid-column: span 2;
}

.bento-highlight {
    grid-column: span 2;
    border-color: rgba(255, 107, 43, 0.15);
}

.bento-highlight::before {
    background: linear-gradient(90deg, transparent, rgba(255, 107, 43, 0.3), transparent);
}

.bento-highlight:hover {
    border-color: rgba(255, 107, 43, 0.3);
}

.bento-icon {
    color: var(--green);
    margin-bottom: 20px;
}

.bento-highlight .bento-icon {
    color: var(--orange);
}

.bento-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.bento-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.bento-tag {
    display: inline-block;
    margin-top: 16px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--green);
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.2);
    border-radius: 980px;
}

.bento-tag-orange {
    color: var(--orange);
    background: rgba(255, 107, 43, 0.1);
    border-color: rgba(255, 107, 43, 0.2);
}

/* ---------- Results / Stats ---------- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 80px;
}

.stat-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--orange);
    letter-spacing: -0.03em;
}

.stat-suffix {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--orange);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Testimonials */
.testimonials {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.testimonial-stars {
    color: var(--orange);
    font-size: 1.1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 16px;
}

.testimonial-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
}

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

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: var(--transition);
}

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

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-dim);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--green);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                padding 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-bottom: 24px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(48, 209, 88, 0.2);
    transform: translateY(-2px);
}

.contact-icon {
    color: var(--green);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 380px;
    border: 1px solid var(--glass-border);
}

/* ---------- Footer ---------- */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: var(--transition);
}

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

.footer-copy {
    color: var(--text-dim);
    font-size: 0.8rem;
}

.footer-copy p + p {
    margin-top: 4px;
}

/* ---------- Floating CTA ---------- */
.floating-cta {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--orange);
    color: #fff;
    border-radius: 980px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 24px var(--orange-glow);
    transition: var(--transition);
    transform: translateY(100px);
    opacity: 0;
}

.floating-cta.visible {
    transform: translateY(0);
    opacity: 1;
}

.floating-cta:hover {
    box-shadow: 0 8px 40px var(--orange-glow);
    transform: scale(1.05);
}

.floating-cta.visible:hover {
    transform: translateY(-2px) scale(1.05);
}

/* ---------- Reveal Animations ---------- */
.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(6px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* ---------- Keyframes ---------- */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scaleY(0.5);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large,
    .bento-highlight {
        grid-column: span 2;
    }

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

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

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 100px 0;
    }

    .section-title {
        margin-bottom: 48px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .bento-large,
    .bento-highlight {
        grid-column: span 1;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

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

    .map-container {
        min-height: 280px;
    }

    .floating-cta span {
        display: none;
    }

    .floating-cta {
        padding: 16px;
        border-radius: 50%;
    }

    .earth-section {
        height: 300vh;
    }
}

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

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

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

    .stat-card {
        padding: 28px 12px;
    }
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(48, 209, 88, 0.3);
    color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
