:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --secondary-bg: #1e293b;
    --message-bg: #334155;
    --message-own: #2563eb;
    --accent: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Landing Page */
.landing-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    padding: 1rem 0;
    margin-bottom: 3rem;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

main h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

main p {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
}

.join-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 4rem;
}

.join-form input {
    padding: 1rem;
    width: 100%;
    max-width: 350px;
    border-radius: 8px;
    border: 1px solid var(--message-bg);
    background: var(--secondary-bg);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
}

.join-form input:focus {
    border-color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    width: 100%;
    max-width: 350px;
}

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

.features {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature {
    background: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: 12px;
    flex: 1;
    min-width: 200px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

footer {
    margin-top: auto;
    padding: 2rem 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Chat Interface */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 1000px;
    margin: 0 auto;
    background: var(--secondary-bg);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.chat-header {
    padding: 1rem 2rem;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--message-bg);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #64748b;
}

.dot.active {
    background-color: var(--accent);
}

.btn-skip {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-skip:hover {
    background: #ef4444;
    color: white;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.system-message {
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.message {
    max-width: 70%;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.stranger {
    background: var(--message-bg);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message.own {
    background: var(--message-own);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input {
    padding: 1.5rem;
    background: var(--bg-color);
    display: flex;
    gap: 1rem;
    border-top: 1px solid var(--message-bg);
}

.chat-input input {
    flex: 1;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid var(--message-bg);
    background: var(--secondary-bg);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
}

.chat-input input:focus {
    border-color: var(--primary-color);
}

.chat-input button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.chat-input button:hover {
    background: var(--primary-hover);
}

.chat-input button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Responsive */
@media (max-width: 600px) {
    .chat-messages {
        padding: 1rem;
    }
    .chat-input {
        padding: 1rem;
    }
}
