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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f7;
}

/* CSS Variables */
:root {
    --primary-color: #31135D;
    --primary-hover: #251047;
    --text-dark: #1a1a1a;
    --text-gray: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --bg-purple: #31135D;
    --bg-purple-dark: #251047;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --max-width: 1280px;
    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Header Navigation */
.main-header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    background: #31135D;
    box-shadow: var(--shadow-sm);
    z-index: 9999;
    transition: all 0.3s ease;
    transform: none !important;
}

.nav-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
    white-space: nowrap;
}

.nav-center {
    display: flex;
    gap: 3rem;
    flex: 1;
    justify-content: center;
    margin: 0 2rem;
}

.mobile-text {
    display: none;
}

.desktop-text {
    display: inline;
}

.nav-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0.5rem;
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(91, 33, 182, 0.05);
}

.dropdown-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.dropdown-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.3;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
    white-space: nowrap;
}

.explore-rentals-btn {
    background-color: rgb(255, 255, 255);
    color: rgb(109, 35, 207);
    padding: 0.75rem 2.5rem;
    border: 2px solid rgb(255, 255, 255);
    border-radius: 5px;
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: color 200ms, box-shadow 200ms;
    cursor: pointer;
    min-width: 213px;
    max-width: 213px;
    margin-right: 1rem;
    display: inline-block;
    line-height: 1;
}

.explore-rentals-btn:hover {
    box-shadow: 0 4px 12px rgba(109, 35, 207, 0.25);
    color: rgb(91, 33, 182);
}

.divider {
    color: rgba(255, 255, 255, 0.5);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ea 100%);
    padding: 80px 40px 40px;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 18px;
    color: #666;
    font-weight: 400;
}

/* Tabs Container */
.tabs-container {
    background: #f5f5f7;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 65px;
    z-index: 999;
}

.tabs {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 0;
}

.tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 16px 32px;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.tab:hover {
    color: #5B4AD6;
}

.tab.active {
    color: #5B4AD6;
    border-bottom-color: #5B4AD6;
    font-weight: 600;
}

/* FAQ Container */
.faq-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.faq-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    margin-bottom: 24px;
    margin-top: 40px;
}

.faq-section:first-child .section-title {
    margin-top: 0;
}

/* Accordion */
.accordion-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 16px;
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: #d0d0d0;
}

.accordion-header {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.accordion-question {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    flex: 1;
    margin: 0;
}

.accordion-icon {
    font-size: 24px;
    color: #5B4AD6;
    font-weight: 300;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.accordion-icon::before {
    content: '+';
}

.accordion-item.active .accordion-icon::before {
    content: '−';
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.accordion-item.active .accordion-content {
    max-height: 1000px;
    padding: 0 24px 20px;
}

.accordion-content p {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.accordion-content ul,
.accordion-content ol {
    margin: 12px 0 12px 24px;
}

.accordion-content li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.accordion-content ol {
    counter-reset: item;
    list-style: none;
}

.accordion-content ol li {
    counter-increment: item;
    position: relative;
    padding-left: 8px;
}

.accordion-content ol li::before {
    content: counter(item) ".";
    color: #5B4AD6;
    font-weight: 600;
    margin-right: 8px;
}

.accordion-content a {
    color: #5B4AD6;
    text-decoration: none;
}

.accordion-content a:hover {
    text-decoration: underline;
}

.accordion-content strong {
    font-weight: 600;
    color: #000;
}

/* Bottom CTA */
.bottom-cta {
    background: #f5f5f7;
    padding: 60px 40px;
    text-align: center;
}

.cta-link {
    font-size: 20px;
    color: #5B4AD6;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.cta-link:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Promotional Section */
.promo-section {
    background: white;
    padding: 80px 40px;
}

.promo-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

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

.promo-image-placeholder {
    width: 200px;
    height: 200px;
    margin: 0 auto 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e8e8ea 0%, #d0d0d5 100%);
}

.promo-image-placeholder.app-store {
    background: linear-gradient(135deg, #5B4AD6 0%, #8B7BE8 100%);
}

.promo-image-placeholder.alexa {
    background: linear-gradient(135deg, #00A8E1 0%, #00D4FF 100%);
}

.promo-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
    line-height: 1.3;
}

.promo-title em {
    font-style: italic;
}

.app-badge,
.amazon-badge {
    display: inline-block;
    background: #000;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.app-badge:hover,
.amazon-badge:hover {
    transform: scale(1.05);
}

.alexa-quote {
    margin-top: 16px;
    font-size: 18px;
    color: #666;
    font-style: italic;
}

/* Footer */
.main-footer {
    background: #31135D;
    color: rgba(255, 255, 255, 0.9);
    padding: 2rem 1.5rem 1rem;
    width: 100%;
    margin: 0;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    margin-bottom: 0;
}

.footer-column {
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.footer-column h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.4rem;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

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

.footer-column:nth-child(4),
.footer-column:nth-child(5) {
    justify-content: flex-start;
}

.footer-column:nth-child(4) > *:last-child,
.footer-column:nth-child(5) > *:last-child {
    margin-top: auto;
}

.referral-text,
.import-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.referral-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.referral-options label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.referral-input,
.import-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.referral-input::placeholder,
.import-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.share-btn,
.import-btn {
    width: 100%;
    background: #5B21B6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover,
.import-btn:hover {
    background: #6D28D9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 33, 182, 0.4);
}

/* App Download Section */
.app-download-section {
    background: #f5f5f5;
    padding: 3rem 2rem;
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
}

.app-card,
.alexa-card {
    text-align: center;
    max-width: 400px;
}

.app-phone-image,
.alexa-device-image {
    width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
}

.app-tagline,
.alexa-tagline {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.app-tagline em {
    font-style: italic;
}

.app-store-btn,
.alexa-btn {
    display: inline-block;
    transition: transform 0.3s ease;
}

.app-store-btn:hover,
.alexa-btn:hover {
    transform: scale(1.05);
}

.app-subtitle {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #666;
}

.amazon-logo {
    font-size: 1.1rem;
    color: #232F3E;
}

.alexa-command {
    margin-top: 1rem;
    font-size: 1.1rem;
    color: #666;
    font-style: italic;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin: 0;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.footer-bottom span {
    color: #666;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom a:hover {
    color: #333;
}

/* Floating Market Research Widget */
.market-research-widget {
    position: fixed;
    right: 40px;
    top: 180px;
    width: 420px;
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.close-widget {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.close-widget:hover {
    background: #f0f0f0;
}

.widget-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
}

.lightbulb-icon {
    font-size: 40px;
    margin-right: 12px;
}

.widget-header h3 {
    flex: 1;
    font-size: 22px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
}

.free-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #5B4AD6;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.market-research-widget textarea {
    width: 100%;
    height: 140px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    resize: vertical;
    margin-bottom: 16px;
}

.market-research-widget textarea::placeholder {
    color: #999;
}

.next-btn {
    width: 100%;
    padding: 12px;
    background: #5B4AD6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.next-btn:hover {
    background: #4a3ab5;
    transform: scale(1.02);
}

.vertical-text {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    background: #2E1A47;
    color: white;
    padding: 16px 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 4px;
}

/* Floating AI Chat Widget */
.ai-chat-widget {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 1000;
}

.chat-tooltip {
    background: white;
    border: 1px solid #5B4AD6;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    max-width: 320px;
}

.chat-tooltip p {
    font-size: 14px;
    color: #333;
    margin-bottom: 12px;
}

.explore-btn {
    width: 100%;
    padding: 8px 16px;
    border: 1px solid #5B4AD6;
    background: white;
    color: #5B4AD6;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.explore-btn:hover {
    background: #5B4AD6;
    color: white;
}

.chat-input-container {
    background: white;
    border-radius: 24px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5B4AD6 0%, #8B7BE8 100%);
    flex-shrink: 0;
}

.ai-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
}

.ai-input::placeholder {
    color: #999;
}

.voice-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s ease;
}

.voice-btn:hover {
    transform: scale(1.1);
}

/* Floating Chat Button */
.floating-chat-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2E1A47;
    border: none;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 1000;
}

.floating-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Loading and Error States */
.loading-container,
.error-container {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #5B4AD6;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-container p,
.error-message {
    font-size: 18px;
    color: #666;
    margin-top: 16px;
}

.retry-btn {
    margin-top: 20px;
    padding: 12px 24px;
    background: #5B4AD6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    background: #4a3ab5;
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .market-research-widget {
        width: 360px;
        right: 20px;
    }

    .promo-container {
        gap: 40px;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

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

    .nav-menu {
        display: none;
    }

    .nav-buttons {
        gap: 12px;
    }

    .btn-primary {
        padding: 10px 18px;
        font-size: 14px;
    }

    .auth-link {
        font-size: 14px;
    }

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

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

    .tabs {
        overflow-x: auto;
    }

    .tab {
        padding: 12px 20px;
        font-size: 16px;
        white-space: nowrap;
    }

    .faq-container {
        padding: 24px;
        margin: 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .market-research-widget {
        display: none;
    }

    .promo-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .promo-title {
        font-size: 24px;
    }

    .footer {
        padding: 60px 30px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ai-chat-widget {
        bottom: 20px;
        left: 20px;
    }

    .chat-tooltip {
        display: none;
    }

    .floating-chat-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

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

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .faq-container {
        padding: 16px;
        margin: 16px;
    }

    .accordion-header {
        padding: 16px;
    }

    .accordion-question {
        font-size: 15px;
    }

    .accordion-content {
        font-size: 14px;
    }

    .bottom-cta {
        padding: 40px 20px;
    }

    .cta-link {
        font-size: 18px;
    }

    .promo-section {
        padding: 60px 20px;
    }

    .footer {
        padding: 40px 20px;
    }
}
