/* ═══════════════════════════════════════════════════════════════════
   HOME PAGE — Specific styles for the homepage sections
   ═══════════════════════════════════════════════════════════════════ */

/* ── Hero Section ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: var(--space-5xl) var(--container-padding) var(--space-3xl);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(2, 6, 23, 0.4) 0%, var(--color-bg-deep) 70%);
    z-index: 1;
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

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

.hero-title {
    font-size: var(--fs-display);
    font-weight: var(--fw-black);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: var(--fs-body-lg);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    line-height: var(--lh-relaxed);
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-text-muted), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ── Trusted Logos (Light Section) ── */
.trusted-section {
    background: var(--color-bg-light);
    border-radius: var(--radius-section) var(--radius-section) 0 0;
    padding: var(--space-3xl) 0;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.trusted-label {
    text-align: center;
    font-family: var(--font-heading);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-widest);
    text-transform: uppercase;
    color: var(--color-text-dark-muted);
    margin-bottom: var(--space-xl);
}

.trusted-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
    opacity: 0.5;
}

.trusted-logos img {
    height: 32px;
    filter: grayscale(100%);
    transition: all var(--duration-normal);
}

.trusted-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ── Tech Ticker ── */
.ticker-section {
    background: var(--color-bg-light);
    padding: var(--space-xl) 0;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    width: max-content;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 var(--space-xl);
    font-family: var(--font-heading);
    font-size: var(--fs-body-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-text-dark-muted);
    white-space: nowrap;
}

.ticker-item .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-purple);
}

/* ── Services Section (Dark with colored cards) ── */
.services-section {
    background: var(--color-bg-primary);
    border-radius: var(--radius-section);
    padding: var(--space-section) 0;
    position: relative;
}

.service-card {
    padding: var(--space-2xl);
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

.service-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.service-card-title {
    font-size: var(--fs-h4);
    font-weight: var(--fw-bold);
    color: var(--color-text-white);
    margin-bottom: var(--space-sm);
}

.service-card-desc {
    color: var(--color-text-muted);
    font-size: var(--fs-small);
    line-height: var(--lh-relaxed);
    margin-bottom: var(--space-md);
}

.service-card-link {
    font-family: var(--font-heading);
    font-size: var(--fs-small);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--ls-wide);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap var(--duration-normal) var(--ease-smooth);
}

.service-card-link:hover {
    gap: 0.75rem;
}

/* ── Stats Section (Gradient Background) ── */
.stats-section {
    background: var(--gradient-stats);
    border-radius: var(--radius-section);
    padding: var(--space-section) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2xl);
    position: relative;
    z-index: 1;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: var(--fw-black);
    color: var(--color-text-white);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat-label {
    font-size: var(--fs-small);
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: var(--ls-wide);
    text-transform: uppercase;
}

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

/* ── Process Section (Light) ── */
.process-section {
    background: var(--color-bg-cream);
    border-radius: var(--radius-section);
    padding: var(--space-section) 0;
}

.process-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--color-emerald), var(--color-cyan), var(--color-purple));
}

.process-step {
    display: flex;
    gap: var(--space-xl);
    padding-bottom: var(--space-2xl);
    position: relative;
}

.process-step:last-child {
    padding-bottom: 0;
}

.process-step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: var(--fw-black);
    font-size: var(--fs-body-lg);
    color: var(--color-text-white);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.process-step-content h3 {
    font-size: var(--fs-h4);
    font-weight: var(--fw-bold);
    color: var(--color-text-dark);
    margin-bottom: var(--space-xs);
}

.process-step-content p {
    color: var(--color-text-dark-muted);
    font-size: var(--fs-small);
    line-height: var(--lh-relaxed);
}

/* ── Testimonials Section ── */
.testimonials-section {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-section);
    padding: var(--space-section) 0;
}

.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: var(--space-md);
    color: var(--color-gold);
    font-size: 1.25rem;
}

.testimonial-text {
    font-size: var(--fs-body-lg);
    line-height: var(--lh-relaxed);
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

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

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    font-size: var(--fs-body);
    color: white;
}

.testimonial-author-name {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    color: var(--color-text-white);
}

.testimonial-author-role {
    font-size: var(--fs-xs);
    color: var(--color-text-dim);
}

/* ── FAQ Section ── */
.faq-section {
    background: var(--color-bg-white);
    border-radius: var(--radius-section);
    padding: var(--space-section) 0;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) 0;
    font-family: var(--font-heading);
    font-size: var(--fs-body-lg);
    font-weight: var(--fw-semibold);
    color: var(--color-text-dark);
    text-align: left;
    transition: color var(--duration-normal);
}

.faq-question:hover {
    color: var(--color-purple);
}

.faq-icon {
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--duration-normal) var(--ease-expo);
}

.faq-icon::before {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.faq-icon::after {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.faq-item.active .faq-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease-expo);
}

.faq-answer-inner {
    padding-bottom: var(--space-lg);
    color: var(--color-text-dark-muted);
    line-height: var(--lh-relaxed);
}

/* ── CTA Section ── */
.cta-section {
    background: var(--gradient-cta);
    border-radius: var(--radius-section);
    padding: var(--space-section) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-title {
    font-size: var(--fs-h1);
    font-weight: var(--fw-black);
    color: var(--color-text-white);
    margin-bottom: var(--space-md);
    position: relative;
}

.cta-desc {
    font-size: var(--fs-body-lg);
    color: rgba(255, 255, 255, 0.85);
    max-width: 550px;
    margin: 0 auto var(--space-2xl);
    position: relative;
}
