/* ============================================
   AI Assistant Setup Journey - Styles
   Glowing flowchart aesthetic
   ============================================ */

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

:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #0f1520;
    --bg-tertiary: #151d2d;
    --gold: #D4AF37;
    --gold-light: #F4CF57;
    --gold-dark: #B4952F;
    --cyan: #00d4ff;
    --cyan-dark: #00a8cc;
    --purple: #a855f7;
    --green: #10b981;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #718096;
    --glow-gold: rgba(212, 175, 55, 0.5);
    --glow-cyan: rgba(0, 212, 255, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   Ambient Effects
   ============================================ */

.stage-color-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.06;
    background: radial-gradient(ellipse at 50% 0%, var(--cyan) 0%, transparent 60%);
    transition: opacity 0.8s;
}

.ambient-mist {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    filter: blur(80px);
    opacity: 0.3;
}

.mist-layer {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
}

.mist-1 {
    width: 60vw;
    height: 60vh;
    top: -20%;
    left: -10%;
    background: radial-gradient(ellipse at center, 
        rgba(0, 212, 255, 0.3) 0%, 
        rgba(0, 212, 255, 0.1) 40%, 
        transparent 70%);
    animation: mistDrift1 20s ease-in-out infinite;
}

.mist-2 {
    width: 50vw;
    height: 50vh;
    bottom: -10%;
    right: -10%;
    background: radial-gradient(ellipse at center, 
        rgba(212, 175, 55, 0.25) 0%, 
        rgba(212, 175, 55, 0.08) 40%, 
        transparent 70%);
    animation: mistDrift2 25s ease-in-out infinite;
}

.mist-3 {
    width: 40vw;
    height: 40vh;
    top: 40%;
    left: 30%;
    background: radial-gradient(ellipse at center, 
        rgba(168, 85, 247, 0.2) 0%, 
        rgba(168, 85, 247, 0.05) 40%, 
        transparent 70%);
    animation: mistDrift3 22s ease-in-out infinite;
}

.mist-4 {
    width: 35vw;
    height: 35vh;
    top: 20%;
    right: 20%;
    background: radial-gradient(ellipse at center, 
        rgba(16, 185, 129, 0.2) 0%, 
        rgba(16, 185, 129, 0.05) 40%, 
        transparent 70%);
    animation: mistDrift4 18s ease-in-out infinite;
}

@keyframes mistDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 5%) scale(1.1); }
}

@keyframes mistDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-8%, -8%) scale(1.15); }
}

@keyframes mistDrift3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, -10%) scale(0.9); }
}

@keyframes mistDrift4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-12%, 8%) scale(1.05); }
}

.spark-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   Login Screen
   ============================================ */

.login-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.6s, visibility 0.6s;
}

.login-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-container {
    text-align: center;
    padding: 60px 50px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 24px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 
        0 25px 100px rgba(0, 0, 0, 0.5), 
        0 0 100px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    max-width: 440px;
    width: 90%;
}

.login-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

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

.login-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.login-input {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 1.5rem;
    font-family: inherit;
}

.login-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.login-input::placeholder {
    color: var(--text-muted);
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan-dark) 0%, var(--cyan) 100%);
    color: var(--bg-primary);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

.btn-arrow {
    transition: transform 0.3s;
}

.login-btn:hover .btn-arrow {
    transform: translateX(4px);
}

.login-error {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.login-error.visible {
    opacity: 1;
}

/* ============================================
   Main App
   ============================================ */

.app {
    display: none;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

.app.visible {
    display: block;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   Header
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(10, 14, 23, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.5rem;
}

.progress-indicator {
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.progress-bar {
    width: 150px;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan-dark), var(--cyan));
    border-radius: 3px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--glow-cyan);
}

/* ============================================
   Journey Container
   ============================================ */

.journey-container {
    padding-top: 70px;
    padding-bottom: 100px;
    min-height: 100vh;
}

/* ============================================
   Step Sections
   ============================================ */

.step-section {
    display: none;
    min-height: calc(100vh - 170px);
    padding: 60px 40px;
}

.step-section.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-content {
    max-width: 800px;
    width: 100%;
}

/* ============================================
   Intro Section
   ============================================ */

.intro-content {
    text-align: center;
}

.intro-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.intro-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--cyan);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.start-btn {
    position: relative;
    padding: 18px 48px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    color: var(--bg-primary);
    cursor: pointer;
    font-family: inherit;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 50px rgba(212, 175, 55, 0.4);
}

.btn-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.start-btn:hover .btn-glow {
    width: 300px;
    height: 300px;
}

/* ============================================
   Step Cards
   ============================================ */

.step-header {
    margin-bottom: 2rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.step-number::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--cyan);
    box-shadow: 0 0 10px var(--glow-cyan);
}

.step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Info Boxes */
.info-box {
    background: var(--bg-secondary);
    border-left: 3px solid var(--cyan);
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 24px 0;
}

.info-box.warning {
    border-left-color: var(--gold);
    background: rgba(212, 175, 55, 0.05);
}

.info-box.tip {
    border-left-color: var(--green);
    background: rgba(16, 185, 129, 0.05);
}

.info-box-title {
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Code Blocks */
.code-block {
    background: #1a1f2e;
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    margin: 20px 0;
    overflow: hidden;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 212, 255, 0.05);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.code-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    background: transparent;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 6px;
    color: var(--cyan);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.copy-btn:hover {
    background: var(--cyan);
    color: var(--bg-primary);
}

.copy-btn.copied {
    background: var(--green);
    border-color: var(--green);
    color: white;
}

.code-content {
    padding: 16px 20px;
    overflow-x: auto;
}

.code-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--cyan);
    white-space: pre;
    line-height: 1.6;
}

.code-content .comment {
    color: var(--text-muted);
}

/* Account Table */
.account-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.account-table th,
.account-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.account-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.account-table td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.account-table a {
    color: var(--cyan);
    text-decoration: none;
}

.account-table a:hover {
    text-decoration: underline;
}

/* Step Lists */
.step-list {
    list-style: none;
    margin: 24px 0;
}

.step-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.step-list li:last-child {
    border-bottom: none;
}

.list-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--cyan-dark), var(--cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.list-content {
    flex: 1;
}

.list-content strong {
    color: var(--text-primary);
}

.list-content p {
    color: var(--text-secondary);
    margin-top: 4px;
    font-size: 0.95rem;
}

/* ============================================
   Completion Section
   ============================================ */

.completion-section .step-content {
    text-align: center;
}

.completion-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: bounce 1s ease infinite;
}

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

.completion-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.completion-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.completion-summary {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 2rem;
    text-align: left;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.completion-summary h3 {
    color: var(--green);
    margin-bottom: 16px;
}

.completion-summary ul {
    list-style: none;
}

.completion-summary li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 1rem;
}

.next-steps h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.example-prompts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prompt-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    padding: 16px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: var(--purple);
    transition: all 0.3s;
}

.prompt-card:hover {
    border-color: var(--purple);
    transform: translateX(8px);
}

/* ============================================
   Navigation
   ============================================ */

.step-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(0deg, var(--bg-primary) 0%, rgba(10, 14, 23, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 212, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 100;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.nav-btn:hover:not(:disabled) {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--bg-primary);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-arrow {
    font-size: 1.2rem;
}

.step-dots {
    display: flex;
    gap: 8px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid rgba(0, 212, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.step-dot:hover {
    background: rgba(0, 212, 255, 0.3);
}

.step-dot.active {
    background: var(--cyan);
    box-shadow: 0 0 10px var(--glow-cyan);
}

.step-dot.completed {
    background: var(--green);
    border-color: var(--green);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .header {
        padding: 0 20px;
    }
    
    .progress-bar {
        width: 80px;
    }
    
    .step-section {
        padding: 40px 20px;
    }
    
    .intro-title {
        font-size: 2rem;
    }
    
    .step-title {
        font-size: 1.75rem;
    }
    
    .step-nav {
        padding: 0 20px;
    }
    
    .step-dots {
        display: none;
    }
    
    .nav-btn span:not(.nav-arrow) {
        display: none;
    }
    
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
