/* Page-Specific Styles */

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: var(--color-bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-glass);
    transition: all var(--transition-normal);
}

.header--scrolled {
    box-shadow: var(--shadow-card), 0 0 20px rgba(99, 102, 241, 0.1);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--container-padding);
}

.nav__logo {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
}

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

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav__link {
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
    position: relative;
}

.nav__link:hover,
.nav__link--active {
    color: var(--color-accent);
}

.nav__link--active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.5rem;
}

.nav__toggle-icon {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: all var(--transition-normal);
}

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

.nav__toggle--active .nav__toggle-icon:nth-child(2) {
    opacity: 0;
}

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

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-bg-secondary);
        flex-direction: column;
        justify-content: center;
        padding: var(--space-xl);
        transition: right var(--transition-normal);
        box-shadow: var(--shadow-card);
    }
    
    .nav__menu--active {
        right: 0;
    }
    
    .nav__toggle {
        display: flex;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    overflow: hidden;
}

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

.hero__content {
    text-align: center;
    max-width: 900px;
}

.hero__badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-accent-light);
    border: 1px solid var(--color-accent);
    border-radius: var(--border-radius-xl);
    color: var(--color-accent);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-glow);
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.hero__subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero__buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.hero__code {
    margin-top: var(--space-xl);
}

/* Trusted By Section */
.trusted-by {
    padding: var(--space-xl) 0;
    border-top: var(--border-glass);
    border-bottom: var(--border-glass);
    background: var(--color-bg-secondary);
}

.trusted-by__title {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.trusted-by__logos {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.trusted-by__logo {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stats Section */
.stats {
    padding: var(--space-2xl) 0;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
}

.stat {
    text-align: center;
}

.stat__number {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
}

.stat__label {
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
}

/* Testimonials */
.testimonials {
    padding: var(--space-2xl) 0;
}

.testimonial-card {
    background: var(--color-bg-card);
    border: var(--border-glass);
    border-radius: var(--border-radius-xl);
    padding: var(--space-lg);
}

.testimonial-card__quote {
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: var(--space-lg);
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-card__avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--gradient-primary);
}

.testimonial-card__name {
    font-weight: var(--font-weight-semibold);
}

.testimonial-card__title {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* CTA Section */
.cta {
    padding: var(--space-2xl) 0;
    text-align: center;
}

.cta__card {
    background: var(--gradient-primary);
    border-radius: var(--border-radius-xl);
    padding: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.cta__card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.cta__content {
    position: relative;
    z-index: 1;
}

.cta__title {
    color: white;
    margin-bottom: var(--space-md);
}

.cta__subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
}

/* Footer */
.footer {
    background: var(--color-bg-secondary);
    border-top: var(--border-glass);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer__brand {
    margin-bottom: var(--space-lg);
}

.footer__tagline {
    margin-top: var(--space-md);
    color: var(--color-text-secondary);
    max-width: 300px;
}

.footer__title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__link {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-accent);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: var(--border-glass);
}

.footer__copyright {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* About Page */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
}

.timeline__item {
    position: relative;
    padding: var(--space-lg);
    width: 50%;
}

.timeline__item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline__item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline__dot {
    position: absolute;
    top: var(--space-lg);
    width: 1.25rem;
    height: 1.25rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: var(--shadow-glow-strong);
    border: 3px solid var(--color-bg-primary);
}

.timeline__item:nth-child(odd) .timeline__dot {
    right: -0.625rem;
}

.timeline__item:nth-child(even) .timeline__dot {
    left: -0.625rem;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 0;
    }
    
    .timeline__item {
        width: 100%;
        padding-left: var(--space-2xl);
        text-align: left !important;
    }
    
    .timeline__dot {
        left: 0 !important;
    }
}

/* Team Grid */
.team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.team-card {
    text-align: center;
}

.team-card__photo {
    width: 8rem;
    height: 8rem;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-3xl);
    color: white;
}

.team-card__name {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-xs);
}

.team-card__role {
    color: var(--color-accent);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-sm);
}

/* Documentation Page */
.docs {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-xl);
    align-items: start;
}

.docs__sidebar {
    position: sticky;
    top: 6rem;
}

.docs__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.docs__nav-link {
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-secondary);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.docs__nav-link:hover,
.docs__nav-link--active {
    background: var(--color-bg-card);
    color: var(--color-accent);
}

.docs__content {
    max-width: 800px;
}

.docs__section {
    margin-bottom: var(--space-2xl);
}

.docs__section-title {
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: var(--border-glass);
}

@media (max-width: 768px) {
    .docs {
        grid-template-columns: 1fr;
    }
    
    .docs__sidebar {
        position: static;
    }
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-xl) 0;
}

.comparison-table th,
.comparison-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: var(--border-glass);
}

.comparison-table th {
    background: var(--color-bg-card);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
}

.comparison-table td {
    color: var(--color-text-secondary);
}

.comparison-table__check {
    color: var(--color-success);
}

.comparison-table__cross {
    color: var(--color-error);
}