:root {
    --primary-cyan: #00f5ff;
    --primary-purple: #a000ff;
    --primary-pink: #ff00ea;
    --dark-bg: #0a0a0f;
    --darker-bg: #050509;
    --card-bg: rgba(15, 15, 25, 0.7);
    --border-color: rgba(0, 245, 255, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #a8b2d1;
    --success: #00ff88;
    --error: #ff4757;
    --warning: #ffa502;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--darker-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.particles::before {
    background: var(--primary-cyan);
    top: -250px;
    left: -250px;
}

.particles::after {
    background: var(--primary-purple);
    bottom: -250px;
    right: -250px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(100px, -100px) rotate(120deg); }
    66% { transform: translate(-100px, 100px) rotate(240deg); }
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.5));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    gap: 0.15rem;
}

.logo-main {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.03em;
}

.logo-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.nav-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--success);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 var(--success); }
    50% { opacity: 0.8; transform: scale(1.1); box-shadow: 0 0 0 5px transparent; }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-cyan);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan);
}

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-section {
    text-align: center;
    padding: 4rem 2rem 3rem;
    margin-bottom: 3rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(160, 0, 255, 0.1);
    border: 1px solid rgba(160, 0, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-purple);
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease-out;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-purple);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

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

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

.analyzer-section {
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.analyzer-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.analyzer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    opacity: 0.5;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.header-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

.header-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.header-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.header-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.input-container {
    flex: 1;
    position: relative;
}

.input-container input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.input-container input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--primary-cyan);
    box-shadow: 0 0 0 4px rgba(0, 245, 255, 0.1);
}

.input-container input::placeholder {
    color: var(--text-secondary);
}

.analyze-button {
    position: relative;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.button-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.button-content svg {
    width: 20px;
    height: 20px;
}

.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s ease;
}

.analyze-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.5);
}

.analyze-button:hover .button-glow {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
}

.analyze-button:active {
    transform: translateY(0);
}

.analyze-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.info-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--primary-cyan);
}

.tag svg {
    width: 16px;
    height: 16px;
}

.loading-section,
.result-section,
.error-section {
    margin-bottom: 3rem;
    animation: fadeInUp 0.4s ease-out;
}

.loading-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
}

.scanner-container {
    margin: 0 auto 2rem;
    width: 150px;
    height: 150px;
}

.scanner-box {
    position: relative;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-cyan);
    border-radius: 12px;
    animation: scannerPulse 2s ease-in-out infinite;
}

@keyframes scannerPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 245, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(0, 245, 255, 0.6); }
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.scanner-corners {
    position: absolute;
    inset: -5px;
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-cyan);
}

.corner-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.corner-tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.corner-bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.corner-br { bottom: 0; right: 0; border-left: none; border-top: none; }

.loading-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.loading-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.loading-stats {
    max-width: 400px;
    margin: 0 auto;
}

.stat-item {
    margin-bottom: 1rem;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 6px;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 10px;
    animation: progressAnim 2s ease-in-out infinite;
}

@keyframes progressAnim {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.result-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--success);
    border-radius: 12px;
    color: var(--success);
    font-weight: 600;
}

.result-badge svg {
    width: 24px;
    height: 24px;
}

.download-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-pink));
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(160, 0, 255, 0.4);
}

.download-button svg {
    width: 20px;
    height: 20px;
}

.result-url-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.url-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.result-url {
    color: var(--primary-cyan);
    word-break: break-all;
    font-family: 'Space Grotesk', monospace;
}

.result-content {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.content-header {
    padding: 1.5rem;
    background: rgba(0, 245, 255, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.content-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
}

.content-body {
    padding: 2rem;
    max-height: 600px;
    overflow-y: auto;
    line-height: 1.8;
    white-space: pre-wrap;
}

.content-body::-webkit-scrollbar {
    width: 8px;
}

.content-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.content-body::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 10px;
}

.error-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 24px;
    padding: 4rem 2rem;
    text-align: center;
}

.error-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-icon svg {
    width: 100%;
    height: 100%;
    color: var(--error);
}

.error-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    color: var(--error);
    margin-bottom: 1rem;
}

.error-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.retry-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--error);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.4);
}

.retry-button svg {
    width: 20px;
    height: 20px;
}

.features-section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-cyan);
    box-shadow: 0 20px 60px rgba(0, 245, 255, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.feature-item h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.keywords-section {
    padding: 5rem 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.keywords-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), var(--primary-purple), transparent);
    opacity: 0.5;
}

.keywords-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.keywords-header {
    text-align: center;
    margin-bottom: 4rem;
}

.keywords-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary-cyan);
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease-out;
}

.keywords-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.keywords-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.keywords-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.keywords-cloud::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), var(--primary-purple), transparent);
    opacity: 0.5;
}

.keyword-tag {
    display: inline-block;
    padding: 0.7rem 1.3rem;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.05), rgba(160, 0, 255, 0.05));
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.keyword-tag::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 245, 255, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.keyword-tag:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(160, 0, 255, 0.15));
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.25);
}

.keyword-tag:hover::before {
    width: 200px;
    height: 200px;
}

.keyword-tag:nth-child(3n+1):hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
    box-shadow: 0 8px 25px rgba(0, 245, 255, 0.3);
}

.keyword-tag:nth-child(3n+2):hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    box-shadow: 0 8px 25px rgba(160, 0, 255, 0.3);
}

.keyword-tag:nth-child(3n+3):hover {
    border-color: var(--primary-pink);
    color: var(--primary-pink);
    box-shadow: 0 8px 25px rgba(255, 0, 234, 0.3);
}

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

.keyword-tag:nth-child(odd) {
    animation: keywordFloat 3s ease-in-out infinite;
}

.keyword-tag:nth-child(even) {
    animation: keywordFloat 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

.footer {
    margin-top: 4rem;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-tech {
    font-size: 0.9rem;
    color: var(--primary-cyan);
}

.hidden {
    display: none !important;
}

@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .analyzer-card {
        padding: 1.5rem;
    }

    .input-group {
        flex-direction: column;
    }

    .analyze-button {
        width: 100%;
        justify-content: center;
    }

    .result-header {
        flex-direction: column;
    }

    .download-button {
        width: 100%;
        justify-content: center;
    }

    .nav-container {
        padding: 1rem;
    }

    .logo-text {
        display: none;
    }

    .keywords-section {
        padding: 3rem 0;
    }

    .keywords-container {
        padding: 0 1rem;
    }

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

    .keywords-title {
        font-size: 1.8rem;
    }

    .keywords-subtitle {
        font-size: 0.95rem;
    }

    .keywords-cloud {
        padding: 1.5rem;
        gap: 0.6rem;
    }

    .keyword-tag {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}

.chat-section {
    margin-top: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.chat-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.chat-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.chat-header p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.chat-messages {
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 10px;
}

.chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.chat-welcome svg {
    width: 48px;
    height: 48px;
    stroke: var(--primary-cyan);
    margin-bottom: 1rem;
    opacity: 0.6;
}

.chat-welcome p {
    margin: 0;
    font-size: 0.95rem;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.message-user .message-avatar {
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
}

.message-ai .message-avatar {
    background: linear-gradient(135deg, var(--success), var(--primary-cyan));
}

.message-content {
    flex: 1;
    max-width: 75%;
}

.message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-user .message-bubble {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(160, 0, 255, 0.15));
    border: 1px solid rgba(0, 245, 255, 0.3);
    margin-left: auto;
}

.message-ai .message-bubble {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.message-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.6;
    margin-top: 0.25rem;
}

.message-user .message-time {
    text-align: right;
}

.chat-input-container {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

#chat-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

#chat-input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

#chat-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.send-chat-button {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.send-chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.4);
}

.send-chat-button:active {
    transform: translateY(0);
}

.send-chat-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.send-chat-button svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.75rem 1rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-cyan);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.how-to-use-section {
    padding: 4rem 0;
    margin-top: 2rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: -2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.steps-container {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

.step-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    animation: fadeInUp 0.6s ease-out both;
}

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

.step-number {
    position: relative;
    flex-shrink: 0;
}

.step-number span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border-radius: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
    position: relative;
    z-index: 2;
}

.step-line {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: calc(100% + 3rem);
    background: linear-gradient(180deg, var(--primary-cyan), var(--primary-purple));
    opacity: 0.3;
}

.step-item:last-child .step-line {
    display: none;
}

.step-content {
    flex: 1;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-content:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 40px rgba(0, 245, 255, 0.15);
    transform: translateX(10px);
}

.step-content:hover::before {
    opacity: 0.6;
}

.step-icon-wrapper {
    flex-shrink: 0;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.step-content:hover .step-icon {
    background: rgba(0, 245, 255, 0.2);
    border-color: var(--primary-cyan);
    transform: scale(1.1);
}

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

.step-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

.cta-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), var(--primary-purple), transparent);
    opacity: 0.7;
}

.cta-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 3rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 245, 255, 0.5);
}

.cta-button:active {
    transform: translateY(-1px);
}

.cta-button svg {
    width: 20px;
    height: 20px;
    stroke: white;
}

@media (max-width: 768px) {
    .step-item {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .step-number {
        display: flex;
        justify-content: center;
    }
    
    .step-line {
        display: none;
    }
    
    .step-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .step-content:hover {
        transform: translateY(-5px);
    }
    
    .cta-box {
        padding: 2rem 1.5rem;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
}
