/* ================================================================
   WEBAPPTOWN MAIN STYLES
   Component-specific styles built on design system
   ================================================================ */

/* Import design system */
@import url('design-system.css');
@import url('animations.css');

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: var(--space-3) 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

/* Logo */
.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.navbar-logo:hover {
    opacity: 0.8;
}

.navbar-logo-icon {
    width: 40px;
    height: 40px;
    color: var(--primary-blue);
}

.navbar-logo-icon svg {
    width: 100%;
    height: 100%;
}

/* Menu */
.navbar-menu {
    display: none;
    list-style: none;
    gap: var(--space-8);
    margin: 0;
}

@media (min-width: 1024px) {
    .navbar-menu {
        display: flex;
    }
}

.navbar-menu a {
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.navbar-menu a:hover {
    color: var(--primary-blue);
}

/* Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.navbar-phone {
    display: none;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .navbar-phone {
        display: flex;
    }
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    transition: background var(--transition-fast);
}

.language-switcher:hover {
    background: var(--slate-200);
}

.language-flag {
    font-size: var(--text-lg);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

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

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 300px;
    background: white;
    box-shadow: var(--shadow-2xl);
    padding: var(--space-8);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: var(--z-fixed);
}

.mobile-menu.show {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.mobile-menu a {
    display: block;
    font-size: var(--text-lg);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--border-light);
}

/* ================================================================
   LAYOUT
   ================================================================ */

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

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

.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-16) 0 var(--space-12);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    opacity: 0.05;
    z-index: -1;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: rgba(46, 125, 255, 0.1);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--primary-blue);
    margin-bottom: var(--space-4);
}

.hero-title {
    max-width: 800px;
    margin: 0 auto var(--space-4);
    font-size: var(--text-4xl);
    font-weight: var(--weight-black);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

.hero-subtitle {
    max-width: 700px;
    margin: 0 auto var(--space-6);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
}

.hero-trust-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.trust-indicator {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-align: left;
    font-size: var(--text-sm);
}

.trust-indicator svg {
    width: 18px;
    height: 18px;
    color: var(--success-green);
    flex-shrink: 0;
}

.trust-indicator strong {
    display: block;
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-1);
}

.trust-indicator span {
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.urgency-banner {
    max-width: 700px;
    margin: 0 auto var(--space-6);
    padding: var(--space-4) var(--space-6);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
    border-left: 4px solid var(--warning-amber);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
}

.social-proof-text {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

/* ================================================================
   SECTION HEADER
   ================================================================ */

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--space-16);
}

.section-title {
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-xl);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

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

/* ================================================================
   STATS GRID
   ================================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: var(--weight-bold);
    color: var(--primary-blue);
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-2);
}

.stat-description {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* ================================================================
   FEATURE LIST
   ================================================================ */

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

.feature-list li::before {
    content: '✓';
    color: var(--success-green);
    font-weight: var(--weight-bold);
    flex-shrink: 0;
}

/* ================================================================
   FORM COMPONENTS
   ================================================================ */

.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-primary);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-lg);
    outline: none;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.form-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-checkbox label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}

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

.footer {
    background: var(--slate-900);
    color: #ffffff;
    padding: var(--space-16) 0 var(--space-8);
    position: relative;
    z-index: 1;
}

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

.footer h4 {
    color: #ffffff;
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-4);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    color: #ffffff;
    font-size: var(--text-base);
    transition: color var(--transition-fast);
    opacity: 0.95;
}

.footer-links a:hover {
    color: #ffffff;
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: #ffffff;
    margin-bottom: var(--space-2);
    opacity: 0.95;
}

/* ================================================================
   FAQ ACCORDION
   ================================================================ */

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5);
    font-size: var(--text-lg);
    font-weight: var(--weight-semibold);
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 var(--space-5) var(--space-5);
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* ================================================================
   DROPDOWN MENU
   ================================================================ */

.dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2);
    margin-top: var(--space-2);
}

.dropdown-item {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--bg-secondary);
}

/* ================================================================
   RESPONSIVE UTILITIES
   ================================================================ */

@media (max-width: 767px) {
    .hero {
        min-height: auto;
        padding: var(--space-20) 0 var(--space-16);
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta-group .btn {
        width: 100%;
    }
}

@media (max-width: 639px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-trust-indicators {
        grid-template-columns: 1fr;
    }
}
