:root {
    --bg-color: #0f172a; /* Slate 900 */
    --card-bg: rgba(30, 41, 59, 0.8); /* Slate 800 */
    --accent: #3b82f6; /* Blue 500 */
    --accent-hover: #2563eb; /* Blue 600 */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --success: #10b981;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 20%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    padding: 20px;
    justify-content: center;
    align-items: center;
}

/* LEFT SIDE: SQUEEZE CARD */
.main-card {
    flex: 1 1 450px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin: 0 0 20px 0;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtext {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtext-highlight {
    color: #cbd5e1;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* FORM */
.form-container {
    background: rgba(0,0,0,0.2);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
}

.form-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #fff;
}

.input-group {
    margin-bottom: 15px;
}

input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    box-sizing: border-box; /* Fix padding issue */
    transition: all 0.2s;
}

input:focus {
    outline: none;
    background: rgba(255,255,255,0.12);
    border-color: var(--accent);
}

.cta-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5);
}

.proof {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* RIGHT SIDE: PHONE DEMO */
.demo-card {
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #334155;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #334155;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.screen {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
}

.chat-header {
    height: 80px;
    background: #fff;
    display: flex;
    align-items: flex-end;
    padding: 0 20px 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.avatar {
    width: 35px;
    height: 35px;
    background: #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #64748b;
    margin-right: 10px;
}

.contact-name {
    color: #0f172a;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.chat-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    font-family: 'Inter', sans-serif;
}

.timestamp {
    text-align: center;
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 10px 0;
}

.message {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.9rem;
    max-width: 80%;
    line-height: 1.4;
    animation: popIn 0.3s ease-out forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes popIn {
    to { opacity: 1; transform: translateY(0); }
}

.message.received {
    background: #e2e8f0;
    color: #1e293b;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.message.sent {
    background: var(--accent);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message.system {
    background: #fffbeb; /* yellow-50 */
    color: #b45309; /* yellow-700 */
    border: 1px solid #fcd34d;
    align-self: center;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.chat-input-area {
    height: 60px;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.placeholder {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.demo-caption {
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-style: italic;
}

/* Mobile Breakpoint */
@media (max-width: 800px) {
    .container {
        flex-direction: column;
        padding: 10px;
    }
    
    .main-card {
        padding: 30px 20px;
    }

    h1 {
        font-size: 2rem;
    }
}
