/* ===================================
   SalesLane Marketing Site
   Shared Styles
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    overflow-x: hidden;
    background: #fbfbfd;
    -webkit-font-smoothing: antialiased;
}

/* ===================================
   Navigation
   =================================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(251, 251, 253, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 0 20px;
}

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

.nav-logo {
    height: 28px;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.6;
}

.nav-login {
    background: #0071e3;
    color: white;
    padding: 6px 16px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

.nav-login:hover {
    background: #0077ed;
}

/* ===================================
   Hero Section
   =================================== */

.hero {
    background: #000;
    color: white;
    min-height: calc(100vh - 44px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 60px;
    position: relative;
    overflow: hidden;
    margin-top: 44px;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
    opacity: 0.4;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-image {
    width: 240px;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out;
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 0.95;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.05;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #fff, #a0aec0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .tagline-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #dce4ec;
    background: rgba(0, 113, 227, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero .tagline {
    font-size: clamp(21px, 3vw, 28px);
    font-weight: 400;
    color: #86868b;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.hero .description {
    font-size: clamp(17px, 2.5vw, 21px);
    font-weight: 400;
    color: #a1a1a6;
    margin-bottom: 30px;
    letter-spacing: -0.01em;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===================================
   Buttons
   =================================== */

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    padding: 12px 22px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 17px;
    font-weight: 400;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #0071e3;
    color: white;
}

.btn-primary:hover {
    background: #0077ed;
}

.btn-secondary {
    color: #2997ff;
    border: none;
    background: transparent;
}

.btn-secondary:hover {
    text-decoration: underline;
}

/* ===================================
   App Store Badges
   =================================== */

.app-store-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.store-badge {
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.9;
}

.store-badge:hover {
    transform: scale(1.05);
    opacity: 1;
}

.store-badge img {
    width: auto;
}

.store-badge img[alt*="App Store"] {
    height: 44px;
}

.store-badge img[alt*="Google Play"] {
    height: 64px;
}

/* ===================================
   Sections
   =================================== */

section {
    padding: 80px 20px;
}

.container {
    max-width: 980px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 600;
    margin-bottom: 12px;
    color: #1d1d1f;
    letter-spacing: -0.015em;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(17px, 2.5vw, 21px);
    color: #86868b;
    margin-bottom: 60px;
    font-weight: 400;
}

/* ===================================
   Features Section
   =================================== */

.features {
    background: #fff;
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 120%;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.features .container {
    position: relative;
    z-index: 1;
}

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

.feature-card {
    background: #fbfbfd;
    padding: 48px 32px;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    background: #fff;
}

.feature-icon {
    position: absolute;
    top: -20px;
    right: 0px;
    font-size: 140px;
    color: rgba(0, 113, 227, 0.04);
    font-weight: 300;
    pointer-events: none;
    line-height: 1;
}

.feature-card:hover .feature-icon {
    color: rgba(0, 113, 227, 0.06);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #1d1d1f;
    font-weight: 600;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: #86868b;
    line-height: 1.5;
    font-size: 17px;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* ===================================
   CTA Section
   =================================== */

.cta {
    background: #000;
    color: white;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.cta h2 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.015em;
}

.cta p {
    font-size: clamp(17px, 2.5vw, 21px);
    color: #a1a1a6;
    margin-bottom: 30px;
}

/* ===================================
   Footer
   =================================== */

footer {
    background: #fbfbfd;
    color: #86868b;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
}

.footer-brand {
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.footer-tagline {
    color: #86868b;
    margin-bottom: 24px;
    font-size: 14px;
}

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

.footer-links a {
    color: #424245;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #0071e3;
}

.footer-copyright {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: #86868b;
    font-size: 12px;
    line-height: 1.5;
}

/* ===================================
   Badge
   =================================== */

.spire-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 980px;
    background: rgba(255, 255, 255, 0.1);
    color: #a1a1a6;
    font-size: 14px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.spire-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ===================================
   Product Showcase Section
   =================================== */

.showcase {
    background: linear-gradient(180deg, #000 0%, #1a1a2e 100%);
    padding: 100px 20px;
    overflow: hidden;
}

.showcase .section-title {
    color: #fff;
}

.showcase .section-subtitle {
    color: #86868b;
}

.device-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
    margin-top: 60px;
}

.device-group {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 30px;
    flex-wrap: wrap;
}

.device-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.device-frame:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 60px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.phone-frame {
    width: 280px;
    border-radius: 40px;
    background: #000;
    padding: 8px;
}

.phone-frame .device-screenshot {
    border-radius: 32px;
}

.ipad-frame {
    width: 100%;
    max-width: 900px;
    border-radius: 24px;
    background: #000;
    padding: 8px;
}

.ipad-frame .device-screenshot {
    border-radius: 16px;
}

.tv-frame {
    width: 100%;
    max-width: 1000px;
    border-radius: 12px;
    background: #1a1a1a;
    padding: 12px 12px 40px 12px;
    position: relative;
}

.tv-frame::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 3px;
}

.tv-frame .device-screenshot {
    border-radius: 4px;
}

.device-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

.device-caption {
    text-align: center;
    color: #86868b;
    font-size: 17px;
    margin-top: 20px;
    font-weight: 400;
}

.tv-group {
    flex-direction: column;
}

.showcase-section {
    text-align: center;
    width: 100%;
}

.showcase-heading {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.showcase-desc {
    font-size: clamp(15px, 2vw, 19px);
    color: #86868b;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.theme-label {
    color: #0071e3;
    font-size: 14px;
    font-weight: 500;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.showcase-disclaimer {
    margin-top: 60px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.showcase-disclaimer p {
    color: #6e6e73;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    margin: 0;
}

.desktop-frame {
    width: 100%;
    max-width: 1100px;
    border-radius: 12px;
    background: #1a1a1a;
    padding: 8px 8px 8px 8px;
    position: relative;
}

.desktop-frame::before {
    content: '';
    display: block;
    height: 24px;
    background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 12px 12px 0 0;
    margin: -8px -8px 8px -8px;
    position: relative;
}

.desktop-frame::after {
    content: '● ● ●';
    position: absolute;
    top: 4px;
    left: 16px;
    font-size: 8px;
    letter-spacing: 4px;
    color: #555;
}

.desktop-frame .device-screenshot {
    border-radius: 0 0 8px 8px;
}

.android-frame {
    border-radius: 24px;
}

.android-frame .device-screenshot {
    border-radius: 16px;
}

.desktop-group {
    width: 100%;
}

/* ===================================
   Platform Badges
   =================================== */

.platform-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 80px;
    flex-wrap: wrap;
}

.platform-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #86868b;
    transition: all 0.3s ease;
}

.platform-badge:hover {
    color: #fff;
    transform: scale(1.1);
}

.platform-icon {
    font-size: 40px;
}

.platform-icon-svg {
    width: 40px;
    height: 40px;
    stroke: currentColor;
    transition: all 0.3s ease;
}

.platform-badge:hover .platform-icon-svg {
    stroke: #0071e3;
    transform: scale(1.1);
}

.platform-name {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   App Download Page Styles
   =================================== */

.app-download-page {
    background: linear-gradient(135deg, #1e3a5f 0%, #0a1929 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: white;
}

.app-download-container {
    text-align: center;
    max-width: 400px;
}

.app-download-logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    margin-bottom: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.app-download-page h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.app-download-tagline {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.app-stores {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.store-link {
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-link:hover {
    transform: scale(1.05);
}

.store-link img {
    height: 54px;
    width: auto;
}

.store-link img.google-play {
    height: 80px;
}

.app-divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    margin: 8px 0;
}

.web-app-link {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.web-app-link a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.web-app-link a:hover {
    color: white;
}

.app-loading {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 24px;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.app-footer {
    margin-top: 48px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.app-footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.app-footer a:hover {
    color: white;
}

/* ===================================
   Responsive Styles
   =================================== */

@media (max-width: 768px) {
    nav {
        padding: 0 16px;
    }

    .nav-logo {
        height: 24px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-link {
        font-size: 12px;
    }

    .nav-login {
        font-size: 12px;
        padding: 5px 12px;
    }

    .logo-image {
        width: 90px;
    }

    .hero {
        padding: 80px 20px 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 40px 24px;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .phone-frame {
        width: 200px;
    }

    .phone-group {
        gap: 16px;
    }

    .device-showcase {
        gap: 50px;
    }

    .platform-badges {
        gap: 24px;
    }

    .platform-icon {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .phone-frame {
        width: 160px;
    }

    .tv-frame {
        padding: 6px 6px 30px 6px;
    }
}
