/* ── Base Resets ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --purple: #bb88eb;
    --cyan:   #00ccff;
    --bg:     #03040b;
}

body {
    background: var(--bg);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Navigation ── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.8rem 0;
    position: relative;
    z-index: 10;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 0;
}

.logo {
    font-family: 'Space Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
}

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

.nav-links a {
    color: #606880;
    text-decoration: none;
    font-size: 0.8rem;
    font-family: 'Space Mono', monospace;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

.btn-signup {
    background: var(--purple);
    border: none;
    color: #0a0212;
    padding: 0.55rem 1.3rem;
    border-radius: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-signup:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

/* ── Hero Section ── */
.hero {
    position: relative;
    text-align: center;
    padding: 4rem 0 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-glow {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(circle, rgba(17,65,219,0.4) 0%, rgba(3,4,11,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-lines {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: repeating-linear-gradient(
        90deg,
        rgba(255,255,255,0.02) 0px,
        rgba(255,255,255,0.02) 1px,
        transparent 1px,
        transparent 100px
    );
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Space Mono', monospace;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    color: #a0a4b8;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* ── Primary Button ── */
.btn-primary {
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 0.8rem 2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 180px;
    white-space: nowrap;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255,255,255,0.4);
}

/* ── Chat Widget ── */
.chat-body {
    background-color: #151828;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    min-height: 160px;
}

.chat-message {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e2e8f0;
}

/* ── App Layout ── */
.app-main-layout {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    margin-top: 2rem;
    z-index: 2;
}

.glass-card {
    flex: 1;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(180deg, rgba(0,204,255,0.6) 0%, rgba(17,65,219,0.1) 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.camera-container, .transcript-container {
    background-color: #0b0d17;
    padding: 1.5rem;
    border-radius: 14px;
}

/* ── Camera ── */
.camera-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: #151828;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.camera {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    transform: scaleX(-1);
}

/* ── Word Builder ── */
.word-builder {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

#current-word-display {
    font-family: 'Space Mono', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cyan);
    letter-spacing: 2px;
    min-height: 2.5rem;
    text-transform: lowercase;
}

#clear-word-btn {
    background: rgba(255,77,77,0.15);
    border: 1px solid rgba(255,77,77,0.5);
    color: #ff4d4d;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

#clear-word-btn:hover {
    background: rgba(255,77,77,0.3);
}

/* ── Camera Overlay ── */
.camera-overlay {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,204,255,0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-family: 'Space Mono', monospace;
    color: var(--cyan);
    border: 1px solid var(--cyan);
}