/* Home Page Specific Styles */

/* ============================================
   HERO SECTION
   ============================================ */
.cq-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 120px 40px 80px;
    position: relative;
    background: linear-gradient(180deg, var(--cq-warm) 0%, var(--cq-parchment) 100%);
    margin: -80px -15px 0 -15px;
}

/* Decorative corner elements */
.cq-hero::before,
.cq-hero::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid var(--cq-gold);
    opacity: 0.2;
}

.cq-hero::before {
    top: 60px;
    left: 60px;
    border-right: none;
    border-bottom: none;
    animation: corner-fade-in 1.5s var(--ease-elegant) forwards;
}

.cq-hero::after {
    bottom: 60px;
    right: 60px;
    border-left: none;
    border-top: none;
    animation: corner-fade-in 1.5s var(--ease-elegant) 0.3s forwards;
    opacity: 0;
}

@keyframes corner-fade-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 0.2; transform: scale(1); }
}

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

/* Logo */
.cq-logo {
    margin-bottom: 60px;
    animation: logo-reveal 1.2s var(--ease-elegant) forwards;
}

@keyframes logo-reveal {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.cq-logo img {
    height: 80px;
    filter: contrast(1.1);
}

/* Hero headline */
.cq-headline {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--cq-ink);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
    animation: text-reveal 1s var(--ease-elegant) 0.2s both;
}

.cq-headline em {
    font-style: italic;
    color: var(--cq-accent);
}

@keyframes text-reveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero description */
.cq-description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--cq-slate);
    max-width: 640px;
    margin: 0 auto 48px;
    font-weight: 400;
    animation: text-reveal 1s var(--ease-elegant) 0.4s both;
}

/* CTA Button */
.cq-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--cq-ink);
    color: var(--cq-parchment);
    padding: 18px 48px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-elegant);
    animation: text-reveal 1s var(--ease-elegant) 0.6s both;
}

.cq-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s var(--ease-elegant);
}

.cq-cta:hover {
    background: var(--cq-accent);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(26, 54, 93, 0.25);
}

.cq-cta:hover::before {
    left: 100%;
}

.cq-cta-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease-bounce);
}

.cq-cta:hover .cq-cta-icon {
    transform: translateX(4px);
}

/* Scroll indicator */
.cq-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--cq-muted);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: text-reveal 1s var(--ease-elegant) 1s both;
}

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

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ============================================
   FEATURES RIBBON
   ============================================ */
.cq-ribbon {
    background: var(--cq-ink);
    color: var(--cq-parchment);
    padding: 32px 40px;
    overflow: hidden;
}

.cq-ribbon-inner {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.cq-ribbon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: ribbon-item-in 0.6s var(--ease-elegant) forwards;
}

.cq-ribbon-item:nth-child(1) { animation-delay: 0.1s; }
.cq-ribbon-item:nth-child(2) { animation-delay: 0.2s; }
.cq-ribbon-item:nth-child(3) { animation-delay: 0.3s; }
.cq-ribbon-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes ribbon-item-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cq-ribbon-icon {
    width: 20px;
    height: 20px;
    color: var(--cq-gold-light);
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.cq-process {
    padding: 120px 40px;
    background: var(--cq-parchment);
    position: relative;
}

.cq-section-header {
    text-align: center;
    margin-bottom: 80px;
}

.cq-section-label {
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--cq-gold);
    margin-bottom: 16px;
    font-weight: 500;
}

.cq-section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--cq-ink);
    letter-spacing: -0.02em;
}

.cq-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

/* Connecting line between steps */
.cq-process-grid::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cq-gold), var(--cq-gold), transparent);
    opacity: 0.3;
}

.cq-step {
    text-align: center;
    position: relative;
    padding-top: 20px;
}

.cq-step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cq-warm);
    border: 1px solid rgba(184, 134, 11, 0.2);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 500;
    color: var(--cq-accent);
    position: relative;
    z-index: 2;
    transition: all 0.4s var(--ease-elegant);
}

.cq-step:hover .cq-step-number {
    background: var(--cq-accent);
    color: var(--cq-parchment);
    border-color: var(--cq-accent);
    transform: scale(1.05);
}

.cq-step-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--cq-ink);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.cq-step-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--cq-slate);
    max-width: 280px;
    margin: 0 auto;
}

/* ============================================
   USE CASES SECTION
   ============================================ */
.cq-usecases {
    padding: 120px 40px;
    background: var(--cq-warm);
    position: relative;
}

/* Decorative element */
.cq-usecases::before {
    content: '"';
    position: absolute;
    top: 60px;
    left: 60px;
    font-family: var(--font-display);
    font-size: 20rem;
    line-height: 1;
    color: var(--cq-gold);
    opacity: 0.05;
    pointer-events: none;
}

.cq-usecases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.cq-usecase {
    background: var(--cq-parchment);
    padding: 48px;
    position: relative;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s var(--ease-elegant);
}

.cq-usecase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--cq-gold);
    transition: height 0.4s var(--ease-elegant);
}

.cq-usecase:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.cq-usecase:hover::before {
    height: 100%;
}

.cq-usecase-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--cq-ink);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.cq-usecase-desc {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--cq-slate);
}

/* ============================================
   TRUST SECTION
   ============================================ */
.cq-trust {
    padding: 100px 40px;
    background: var(--cq-parchment);
    text-align: center;
}

.cq-trust-badges {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 800px;
    margin: 0 auto;
}

.cq-trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cq-trust-icon {
    width: 48px;
    height: 48px;
    color: var(--cq-accent);
    opacity: 0.7;
}

.cq-trust-label {
    font-size: 0.8125rem;
    color: var(--cq-slate);
    letter-spacing: 0.05em;
}

/* ============================================
   FINAL CTA SECTION
   ============================================ */
.cq-final-cta {
    padding: 140px 40px;
    background: var(--cq-ink);
    color: var(--cq-parchment);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cq-final-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--cq-accent) 0%, transparent 50%);
    opacity: 0.15;
    animation: subtle-glow 8s ease-in-out infinite alternate;
}

@keyframes subtle-glow {
    from { transform: scale(1) rotate(0deg); }
    to { transform: scale(1.1) rotate(5deg); }
}

.cq-final-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.cq-final-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.cq-final-subtitle {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(250, 249, 247, 0.7);
    margin-bottom: 48px;
}

.cq-cta-light {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--cq-parchment);
    color: var(--cq-ink);
    padding: 18px 48px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.4s var(--ease-elegant);
}

.cq-cta-light:hover {
    background: var(--cq-gold-light);
    color: var(--cq-ink);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(212, 168, 75, 0.3);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
    .cq-process-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .cq-process-grid::before {
        display: none;
    }
    
    .cq-usecases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cq-hero {
        padding: 100px 24px 60px;
        min-height: auto;
    }
    
    .cq-hero::before,
    .cq-hero::after {
        width: 80px;
        height: 80px;
    }
    
    .cq-hero::before {
        top: 30px;
        left: 20px;
    }
    
    .cq-hero::after {
        bottom: 30px;
        right: 20px;
    }
    
    .cq-logo {
        margin-bottom: 40px;
    }
    
    .cq-logo img {
        height: 60px;
    }
    
    .cq-description {
        font-size: 1rem;
    }
    
    .cq-scroll-hint {
        display: none;
    }
    
    .cq-ribbon-inner {
        gap: 24px;
    }
    
    .cq-ribbon-item {
        font-size: 0.75rem;
    }
    
    .cq-process,
    .cq-usecases,
    .cq-final-cta {
        padding: 80px 24px;
    }
    
    .cq-usecase {
        padding: 32px;
    }
    
    .cq-trust-badges {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .cq-cta,
    .cq-cta-light {
        padding: 16px 32px;
        font-size: 0.8125rem;
    }
    
    .cq-ribbon-inner {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}