/* SmartHomeQR Landing Page - Premium Polish v2 */

:root {
    --purple-deep: #5B21B6;
    --purple-mid: #7C3AED;
    --purple-light: #A78BFA;
    --purple-soft: #C4B5FD;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-bg-hover: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-hover: rgba(255, 255, 255, 0.2);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-mid) 50%, var(--purple-light) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated gradient background */
.gradient-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-mid) 50%, var(--purple-light) 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    transition: transform 0.3s ease-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.6) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float-1 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.5) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: float-2 25s ease-in-out infinite;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(196, 181, 253, 0.4) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float-3 30s ease-in-out infinite;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, 50px) scale(1.1); }
    66% { transform: translate(30px, -30px) scale(0.95); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -40px) scale(1.05); }
    66% { transform: translate(-30px, 20px) scale(1.1); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

/* Noise texture */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Hero */
.hero {
    text-align: center;
    padding: 70px 24px 50px;
    max-width: 800px;
    margin: 0 auto;
}

/* App Icon */
.icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 32px;
    animation: icon-float 0.8s var(--ease-out) 0.1s both;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 4s ease-in-out infinite;
}

.icon-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: ring-expand 4s ease-in-out infinite;
}

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

@keyframes ring-expand {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.2; transform: translate(-50%, -50%) scale(1.15); }
}

@keyframes icon-float {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.app-icon {
    width: 130px;
    height: 130px;
    border-radius: 28px;
    position: relative;
    z-index: 1;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.2),
        0 24px 48px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: icon-hover 6s ease-in-out infinite;
}

@keyframes icon-hover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero h1 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #ffffff 20%, rgba(255, 255, 255, 0.75) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-reveal 0.8s var(--ease-out) 0.2s both;
}

@keyframes text-reveal {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tagline {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
    animation: text-reveal 0.8s var(--ease-out) 0.3s both;
}

.subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--text-primary);
    animation: text-reveal 0.8s var(--ease-out) 0.4s both;
}

/* App Store Badge */
.badge-container {
    margin-bottom: 24px;
    animation: text-reveal 0.8s var(--ease-out) 0.5s both;
}

.app-store-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.3);
    padding: 14px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s var(--ease-out);
}

.app-store-badge:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.app-store-badge img {
    height: 44px;
    display: block;
}

/* Highlight Box */
.highlight-box {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 14px 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: text-reveal 0.8s var(--ease-out) 0.6s both;
}

.highlight-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.highlight-icon {
    color: var(--text-primary);
    display: flex;
}

.highlight-text {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.highlight-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 16px;
}

/* Screenshots */
.screenshots {
    padding: 30px 0 50px;
}

.screenshot-scroll {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    padding: 30px 40px;
}

.phone-frame {
    flex-shrink: 0;
    transition: transform 0.5s var(--ease-out);
}

.phone-frame:hover {
    transform: scale(1.03) translateY(-8px);
    z-index: 10;
}

.phone-frame img {
    height: 420px;
    border-radius: 28px;
    box-shadow:
        0 4px 8px rgba(0, 0, 0, 0.1),
        0 12px 24px rgba(0, 0, 0, 0.15),
        0 24px 48px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s var(--ease-out);
}

.phone-frame:hover img {
    box-shadow:
        0 8px 16px rgba(0, 0, 0, 0.12),
        0 24px 48px rgba(0, 0, 0, 0.2),
        0 40px 80px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

.scroll-dots {
    display: none;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--purple-soft);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Features */
.features {
    padding: 60px 24px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.feature {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px 28px;
    text-align: left;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.feature:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature:hover::before {
    opacity: 1;
}

.feature-icon-wrapper {
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transition: all 0.4s var(--ease-out);
}

.feature:hover .feature-icon-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    transform: scale(1.05);
}

.feature h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 40px 24px;
}

.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--purple-soft);
    margin-bottom: 12px;
}

.pricing-header h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pricing-tiers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.tier {
    text-align: center;
    padding: 24px 32px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex: 1;
    max-width: 240px;
}

.tier.premium {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.2), rgba(139, 92, 246, 0.15));
    border-color: rgba(167, 139, 250, 0.3);
}

.tier-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
}

.tier.premium .tier-badge {
    background: linear-gradient(135deg, var(--purple-light), var(--purple-mid));
    color: white;
}

.tier-limits {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.tier-dot {
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.tier-price {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.tier-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* Brands */
.brands {
    padding: 50px 24px;
}

.brand-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 650px;
    margin: 0 auto;
}

.brand-pill {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
}

.brand-pill:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* CTA */
.cta {
    text-align: center;
    padding: 60px 24px 40px;
}

.cta h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cta > p {
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 28px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    text-decoration: none;
    padding: 18px 36px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 17px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.price-note {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Footer */
footer {
    text-align: center;
    padding: 50px 24px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 28px 28px 0 0;
    margin: 40px 20px 0;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 18px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s var(--ease-out);
}

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

.footer-tagline {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

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

/* Responsive */
@media (max-width: 1068px) {
    .hero h1 { font-size: 44px; }
    .section-header h2, .cta h2 { font-size: 32px; }
    .phone-frame img { height: 380px; }
}

@media (max-width: 734px) {
    .hero {
        padding: 50px 20px 40px;
    }

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

    .highlight-box {
        flex-direction: column;
        gap: 12px;
        padding: 20px 28px;
    }

    .highlight-divider {
        width: 60px;
        height: 1px;
        margin: 0;
    }

    .screenshots {
        padding: 20px 0 16px;
    }

    .screenshot-scroll {
        justify-content: flex-start;
        padding: 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .phone-frame {
        scroll-snap-align: center;
        min-width: calc(60% - 12px);
    }

    .phone-frame img {
        height: 320px;
        width: 100%;
        object-fit: contain;
    }

    .scroll-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 12px 0;
    }

    .scroll-dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transition: all 0.3s var(--ease-out);
    }

    .scroll-dots .dot.active {
        background: rgba(255, 255, 255, 0.9);
        transform: scale(1.2);
    }

    .features, .brands { padding: 40px 20px; }
    .section-header h2, .cta h2 { font-size: 26px; }
    .pricing-header h2 { font-size: 22px; }

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

    .feature {
        text-align: center;
    }

    .feature-icon-wrapper {
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-card {
        padding: 28px 20px;
    }

    .pricing-tiers {
        flex-direction: column;
        gap: 16px;
    }

    .tier {
        max-width: 100%;
        width: 100%;
    }

    .tier-arrow {
        transform: rotate(90deg);
    }

    .cta {
        padding: 40px 20px 30px;
    }

    body {
        background-attachment: scroll;
    }

    .gradient-orb {
        opacity: 0.3;
    }

    footer {
        margin: 20px 16px 0;
        border-radius: 20px 20px 0 0;
    }
}

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

    .app-icon {
        width: 100px;
        height: 100px;
        border-radius: 22px;
    }

    .icon-glow { width: 160px; height: 160px; }
    .icon-ring { width: 140px; height: 140px; }

    .phone-frame img {
        height: 280px;
    }

    .cta-button {
        padding: 16px 28px;
        font-size: 15px;
    }
}

/* Scrollbar hide */
::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
