@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: #111827;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

:root {
    --brand:          #130357;
    --brand-dark:     #0d0240;
    --brand-light:    #1e0880;
    --brand-muted:    rgba(19, 3, 87, 0.08);
    --brand-muted-border: rgba(19, 3, 87, 0.25);
    --brand-gradient: linear-gradient(135deg, #130357 0%, #1e0880 100%);

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.06);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.06);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--brand-gradient);
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    color: #374151;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1.5px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.input-field {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.input-field:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-muted);
    background: #ffffff;
}

.input-field::placeholder {
    color: #9ca3af;
}

.input-wrapper {
    position: relative;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    pointer-events: none;
}

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

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: var(--brand-muted);
    color: var(--brand);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid var(--brand-muted-border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.progress-bar-track {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--brand-gradient);
    border-radius: 9999px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-circle {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    color: #9ca3af;
    background: #ffffff;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.step-circle.active {
    border-color: var(--brand);
    color: var(--brand);
    border-style: dashed;
}

.step-circle.done {
    border-color: var(--brand);
    background: var(--brand);
    color: #ffffff;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    transition: background 0.25s ease;
}

.step-line.done {
    background: var(--brand);
}

.chat-bubble {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 1rem;
    border-top-left-radius: 0.25rem;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: #374151;
    box-shadow: var(--shadow-sm);
    position: relative;
    max-width: 42rem;
}

.phone-frame {
    width: 280px;
    min-height: 500px;
    background: #1c1c1e;
    border-radius: 2.5rem;
    border: 6px solid #374151;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.4);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 1.25rem;
    background: #1c1c1e;
    border-radius: 0 0 1rem 1rem;
    z-index: 10;
}

.upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    background: #f9fafb;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--brand);
    background: var(--brand-muted);
}

.music-result-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background 0.15s ease;
}

.music-result-item:hover {
    background: #f3f4f6;
}

.music-result-item.selected {
    background: var(--brand-muted);
    outline: 2px solid var(--brand);
}

.plan-card {
    border: 2px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    background: #ffffff;
}

.plan-card:hover {
    border-color: #94a3b8;
    box-shadow: var(--shadow-md);
}

.plan-card.selected {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px var(--brand-muted);
}

.plan-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 0.875rem;
    background: var(--brand-gradient);
    color: #ffffff;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.cwd-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    overflow: hidden;
    background: #f1f5f9;
    border: 2px solid #e5e7eb;
    flex-shrink: 0;
}

.cwd-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.counter-box {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: var(--radius-md);
    padding: 1rem 0.75rem 0.75rem;
    text-align: center;
    min-width: 4.5rem;
}

.counter-box .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}

.counter-box .label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #6b7280;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .phone-frame {
        display: none;
    }
}
