/* How It Works Page Specific Styles */

/* Hero */
.hiw-hero {
    padding: 10rem 4rem 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 50%, rgba(67, 56, 203, 0.03) 100%);
}

.hiw-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 80%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(67, 56, 203, 0.07) 0%, transparent 60%);
    pointer-events: none;
}

.hiw-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hiw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1.1rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.75rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hiw-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

.hiw-hero h1 .highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hiw-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.overview-step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.overview-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(67, 56, 203, 0.1);
}

.overview-number {
    width: 56px;
    height: 56px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-family: 'Cal Sans', 'Red Hat Text', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.overview-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.overview-step p {
    color: var(--text-muted);
    font-size: 1rem;
}

.overview-note {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(67, 56, 203, 0.05), rgba(60, 202, 71, 0.05));
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    max-width: 1020px;
    margin: 0 auto;
}

.overview-note p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.overview-note .highlight-text {
    font-family: 'Cal Sans', 'Red Hat Text', sans-serif;
    font-size: 1.75rem;
    color: var(--primary);
    font-weight: 600;
}

.overview-note .subtext {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Feature Sections */
.feature-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.feature-section.reverse {
    direction: rtl;
}

.feature-section.reverse > * {
    direction: ltr;
}

.feature-content h3 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin-bottom: 1.25rem;
}

.feature-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--text);
}

.feature-list li svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--secondary);
    margin-top: 0.2rem;
}

.feature-visual {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 40px rgba(67, 56, 203, 0.08);
    border: 1px solid var(--gray-200);
}

/* Dropzone Demo */
.dropzone-demo {
    position: relative;
    margin-bottom: 0.5rem;
    overflow: visible;
}

.dropzone-area {
    background: linear-gradient(135deg, var(--gray-50), white);
    border: 2px dashed var(--gray-300);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: borderPulse 8s ease-in-out infinite;
}

.dropzone-area:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(67, 56, 203, 0.03), white);
}

@keyframes borderPulse {
    0%, 3% { border-color: var(--gray-300); }
    8%, 60% { border-color: #3b82f6; }
    70%, 100% { border-color: var(--gray-300); }
}

/* Highlight overlay for when file is over dropzone */
.dropzone-highlight {
    position: absolute;
    inset: 0;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 14px;
    opacity: 0;
    pointer-events: none;
    animation: highlightPulse 8s ease-in-out infinite;
}

@keyframes highlightPulse {
    0%, 3% { opacity: 0; }
    8%, 60% { opacity: 1; }
    70%, 100% { opacity: 0; }
}

.dropzone-icon {
    width: 72px;
    height: 72px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 20px rgba(67, 56, 203, 0.1);
    color: var(--primary);
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.dropzone-text {
    font-family: 'Cal Sans', 'Red Hat Text', sans-serif;
    font-size: 1.15rem;
    color: var(--ink);
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 1;
}

.dropzone-subtext {
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Cursor with attached file */
.dropzone-cursor {
    position: absolute;
    top: -20px;
    left: -30px;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    animation: cursorDrag 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.cursor-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.cursor-file {
    position: absolute;
    top: 16px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    font-size: 0.75rem;
    color: var(--text);
    white-space: nowrap;
}

.cursor-file svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* 8 second animation:
   - 0-5%: fade in at edge
   - 5-30%: smooth drag into center
   - 30-55%: hold position
   - 55-65%: fade out
   - 65-100%: 3 second pause before next loop
*/
@keyframes cursorDrag {
    0% {
        opacity: 0;
        transform: translate(0, 0);
    }
    5% {
        opacity: 1;
        transform: translate(20px, 20px);
    }
    30%, 55% {
        opacity: 1;
        transform: translate(140px, 100px);
    }
    65% {
        opacity: 0;
        transform: translate(140px, 100px);
    }
    100% {
        opacity: 0;
        transform: translate(0, 0);
    }
}

/* Logo Grid */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.logo-card {
    background: transparent;
    padding: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50px;
}

.logo-card:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.platform-logo {
    max-width: 100%;
    max-height: 36px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Specific logo size adjustments */
.logo-card:nth-child(4) .platform-logo {
    /* Apple Books - bigger */
    max-height: 44px;
}

.logo-card:nth-child(7) .platform-logo,
.logo-card:nth-child(8) .platform-logo {
    /* ACX and InAudio - smaller */
    max-height: 28px;
}

/* Royalty Models */
.models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.model-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    text-align: center;
}

.model-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.model-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    text-align: center;
    padding: 2rem;
}

.benefit-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-icon svg {
    width: 36px;
    height: 36px;
    stroke: var(--secondary-light);
}

.section-dark .benefit-card h3 {
    color: white;
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.section-dark .benefit-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

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

.stat-value {
    font-family: 'Cal Sans', sans-serif;
    font-size: 2.5rem;
    color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Support Section */
.support-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.support-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.support-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 30px rgba(67, 56, 203, 0.1);
}

.support-icon {
    width: 56px;
    height: 56px;
    background: var(--gray-50);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.support-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
}

.support-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--ink);
}

.support-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.support-link:hover {
    gap: 0.75rem;
}

.support-link svg {
    transition: transform 0.3s ease;
}

.support-link:hover svg {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 1024px) {
    .hiw-hero { padding: 8rem 2rem 4rem; }
    .overview-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-section { grid-template-columns: 1fr; gap: 2rem; }
    .feature-section.reverse { direction: ltr; }
    .logo-grid { grid-template-columns: repeat(4, 1fr); }
    .models-grid, .benefits-grid, .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .hiw-hero { padding: 7rem 1.5rem 4rem; }
    .overview-grid { grid-template-columns: 1fr; }
    .logo-grid { grid-template-columns: repeat(2, 1fr); }
    .dropzone-cursor { display: none; }
    .dropzone-highlight { display: none; }
}
