/* =====================================================
   CSS Variables & Base Styles - Aspire Theme
   ===================================================== */
:root {
    --primary: #00A5A8;
    --primary-dark: #008B8E;
    --primary-light: #4ECDC4;
    --navy: #1B365D;
    --navy-light: #2E5A8B;
    --accent: #00A5A8;
    --bg-light: #FFFFFF;
    --bg-section: #F8FAFB;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F0F9F9;
    --text-primary: #1B365D;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --border-color: #E2E8F0;
    --border-hover: #00A5A8;
    --gradient-primary: linear-gradient(135deg, #1B365D 0%, #00A5A8 100%);
    --gradient-teal: linear-gradient(135deg, #00A5A8 0%, #4ECDC4 100%);
    --shadow-sm: 0 1px 3px rgba(27, 54, 93, 0.08);
    --shadow-md: 0 4px 6px rgba(27, 54, 93, 0.1);
    --shadow-lg: 0 10px 30px rgba(27, 54, 93, 0.12);
    --shadow-xl: 0 20px 50px rgba(27, 54, 93, 0.15);
    --shadow-teal: 0 4px 20px rgba(0, 165, 168, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =====================================================
   Navigation
   ===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 2rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 90px;
    width: auto;
    max-width: 500px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-medium);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-teal);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 165, 168, 0.4);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-card-hover);
}

.btn-nav {
    padding: 0.6rem 1.25rem;
    background: var(--navy);
    color: white !important;
    border-radius: var(--radius-sm);
    box-shadow: none;
}

.btn-nav:hover {
    background: var(--navy-light);
    color: white !important;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-full {
    width: 100%;
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 6rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 165, 168, 0.1);
    border: 1px solid rgba(0, 165, 168, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
    animation: pulse-glow 2s infinite;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(0, 165, 168, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 165, 168, 0.4);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.gradient-text {
    background: var(--gradient-teal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-subtitle strong {
    color: var(--primary);
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* =====================================================
   Apps Section
   ===================================================== */
.apps-section {
    padding: 6rem 2rem;
    background: var(--bg-section);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 165, 168, 0.1);
    border: 1px solid rgba(0, 165, 168, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--navy);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-teal);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.app-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.app-card:hover::before {
    opacity: 1;
}

/* Featured App Card */
.app-card-featured {
    border: 2px solid var(--primary);
    background: linear-gradient(135deg, rgba(0, 165, 168, 0.03) 0%, rgba(27, 54, 93, 0.03) 100%);
}

.app-card-featured::before {
    opacity: 1;
    height: 5px;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.35rem 0.75rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.app-status {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 165, 168, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.app-status.status-live {
    background: rgba(34, 197, 94, 0.1);
    color: #16A34A;
}

.app-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.app-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.app-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.feature-tag {
    padding: 0.35rem 0.75rem;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.app-screenshot-placeholder {
    height: 140px;
    background: linear-gradient(135deg, #F8FAFB 0%, #EDF2F7 100%);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.app-screenshot {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* Screenshot Carousel */
.app-screenshot-carousel {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #F8FAFB;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 180px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-dot:hover {
    background: var(--primary-light);
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.carousel-dot:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Focus styles for accessibility */
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Skip to main content link for keyboard users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--navy);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}

/* =====================================================
   Signup Section
   ===================================================== */
.signup-section {
    padding: 6rem 2rem;
    background: var(--bg-light);
}

.signup-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.signup-content .section-tag,
.signup-content .section-title {
    text-align: left;
}

.signup-content .section-subtitle {
    text-align: left;
    margin: 0 0 2rem 0;
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.benefits-list svg {
    color: var(--primary);
    flex-shrink: 0;
}

.signup-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-light);
    box-shadow: 0 0 0 4px rgba(0, 165, 168, 0.1);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234A5568' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
}

.form-group select option {
    background: var(--bg-light);
    color: var(--text-primary);
}

.form-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem;
}

.success-message.hidden {
    display: none;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 165, 168, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon svg {
    color: var(--primary);
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.success-message p {
    color: var(--text-secondary);
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
    padding: 2rem 2rem 1.5rem;
    background: var(--bg-section);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 90px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =====================================================
   Responsive Design
   ===================================================== */
@media (max-width: 992px) {
    .signup-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .signup-content .section-tag,
    .signup-content .section-title,
    .signup-content .section-subtitle {
        text-align: center;
    }

    .signup-content .section-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .benefits-list {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .logo-img {
        height: 36px;
    }

    .nav-links a:not(.btn) {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 6rem 1rem 4rem;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

    .hero-stats {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .signup-form-wrapper {
        padding: 1.5rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
    }

    .app-card {
        padding: 1.5rem;
    }
}