:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --accent-color: #ffffff;
    --border-color: #333333;
    --surface-bg: #111111;
    --surface-hover: #1a1a1a;
    --nav-height: 80px;
    --primary-font: 'Inter', sans-serif;
    --mono-font: 'JetBrains Mono', monospace;
    --rp-font: 'Noto Serif SC', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--primary-font);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grid Background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    pointer-events: none;
}

.glow-spot {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%); /* Purple for RP vibe */
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.glow-spot.top-center {
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
}

/* Typography Helpers */
.text-gradient {
    background: linear-gradient(120deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn-nav {
    background: var(--text-primary);
    color: var(--bg-color) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    font-weight: 600 !important;
    transition: transform 0.2s;
}

.btn-nav:hover {
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--nav-height);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-family: var(--mono-font);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #8b5cf6;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    animation: pulse-purple 2s infinite;
}

@keyframes pulse-purple {
    0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(139, 92, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Buttons */
.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 0.9rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background: #e2e8f0;
    border-color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.15);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    padding: 0.9rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary.large, .btn-outline.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Ecosystem Section */
.ecosystem-section {
    padding: 4rem 0 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, var(--bg-color) 0%, #0a0a0a 100%);
}

.eco-title {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* AI Model Icons (SVG) */
.model-icon-svg {
    width: 24px;
    height: 24px;
    fill: #e0e0e0; /* Default color for dark theme */
    transition: fill 0.3s;
}

/* Updated AI Model Tags for Marquee */
.model-tag.large {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 1.2rem;
    color: #e0e0e0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s;
    cursor: default;
    white-space: nowrap;
    font-weight: 500;
}

.model-tag.large:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
    color: #fff;
    transform: scale(1.05);
}

.model-tag.large:hover .model-icon-svg {
    fill: #fff; /* Highlight icon on hover */
}

.mt-large {
    margin-top: 4rem;
}

/* Infinite Marquee */
.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-content {
    display: flex;
    width: fit-content;
}

.marquee-track {
    display: flex;
    gap: 60px; /* Increased gap */
    animation: marquee 40s linear infinite;
    padding: 20px 0;
    align-items: center;
}

.marquee-track.slow {
    animation-duration: 60s; /* Slower for text reading */
}

/* Updated Advertising Partner Logos */
.marquee-track img {
    height: 50px; /* Increased size */
    opacity: 0.85;
    transition: transform 0.3s, opacity 0.3s;
    /* Removed grayscale filter */
}

.marquee-track img:hover {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Layout Helpers */
.split-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    text-align: left;
    padding: 2rem 0;
}

.hero-text {
    flex: 1;
    max-width: 550px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.feature-section {
    padding: 6rem 0;
}

.feature-section .container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.reverse-layout {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.feature-list li i {
    color: #4ade80;
}

/* Phone Mockup System */
.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 45px;
    border: 8px solid #2a2a2a;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 0 0 2px #444;
    overflow: hidden;
    margin: 0 auto;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    border-color: #333;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), inset 0 0 0 2px #555;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #000;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 20;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #111;
    overflow: hidden;
    position: relative;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    cursor: default;
}

/* Home Screen */
.home-screen {
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 40%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    padding-top: 40px;
}

.status-bar {
    position: absolute;
    top: 5px;
    width: 100%;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    opacity: 0.8;
}

.status-icons {
    display: flex;
    gap: 6px;
}

.app-grid {
    padding: 20px 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 5px;
}

.app-icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s;
}

.app-icon-wrapper:hover {
    transform: scale(1.05);
}

.app-icon-wrapper span {
    font-size: 11px;
    color: #fff;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.app-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
}

.app-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    pointer-events: none;
}

.app-icon.green { background: linear-gradient(135deg, #4ade80, #22c55e); }
.app-icon.blue { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.app-icon.yellow { background: linear-gradient(135deg, #fcd34d, #f59e0b); }
.app-icon.pink { background: linear-gradient(135deg, #f472b6, #db2777); }
.app-icon.gray { background: linear-gradient(135deg, #9ca3af, #6b7280); }
.app-icon.cyan { background: linear-gradient(135deg, #22d3ee, #06b6d4); }
.app-icon.purple { background: linear-gradient(135deg, #c084fc, #9333ea); }
.app-icon.indigo { background: linear-gradient(135deg, #818cf8, #6366f1); }
.app-icon.white { background: #f3f4f6; color: #000; }
.app-icon.white::after { display: none; }

.dock-bar {
    margin-top: auto;
    margin-bottom: 12px;
    margin-left: 12px;
    margin-right: 12px;
    height: 85px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Settings Screen */
.settings-screen {
    background: #000;
    display: flex;
    flex-direction: column;
}

.app-header {
    height: 90px;
    padding: 35px 20px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 17px;
    font-weight: 600;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    color: #fff;
}

.settings-list {
    padding: 20px;
    overflow-y: auto;
    background: #000;
}

.setting-group {
    background: #1c1c1e;
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
}

.group-title {
    padding: 12px 16px;
    font-size: 13px;
    color: #98989d;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.setting-item {
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2c2c2e;
    font-size: 15px;
    background: #1c1c1e;
}

.setting-item:last-child {
    border-bottom: none;
}

.switch {
    width: 46px;
    height: 28px;
    background: #30d158;
    border-radius: 100px;
    position: relative;
}

.switch::after {
    content: '';
    position: absolute;
    right: 2px;
    top: 2px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.setting-input {
    padding: 14px 16px;
    border-bottom: 1px solid #2c2c2e;
    background: #1c1c1e;
}

.setting-input label {
    display: block;
    font-size: 13px;
    color: #98989d;
    margin-bottom: 6px;
}

.input-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    color: #fff;
}

.input-box.light {
    color: #8e8e93;
    font-family: var(--mono-font);
    font-size: 14px;
}

.btn-blue { color: #0a84ff; font-size: 18px; cursor: pointer; }

.btn-save {
    width: 100%;
    background: #0a84ff;
    border: none;
    color: #fff;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-save:hover {
    background: #007aff;
}

/* Resource Management Screen Styles */
.app-header-rm {
    background: #fff;
    color: #000;
    padding-top: 35px;
    border-bottom: 1px solid #eee;
}

.rm-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    font-size: 17px;
    font-weight: 600;
}

.rm-tabs {
    display: flex;
    padding: 0 10px;
}

.rm-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: #888;
    position: relative;
    cursor: pointer;
    font-weight: 500;
}

.rm-tab.active {
    color: #0a84ff;
}

.rm-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 2px;
    background: #0a84ff;
    border-radius: 2px 2px 0 0;
}

.rm-content-container {
    background: #f5f5f7;
    height: calc(100% - 100px); /* Adjust based on header height */
    overflow-y: auto;
    position: relative;
}

.rm-page {
    padding: 20px;
    display: none;
    animation: fadeIn 0.3s;
}

.rm-page.active {
    display: block;
}

.rm-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 15px;
}

.rm-form-group {
    margin-bottom: 20px;
}

.rm-form-group label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

.rm-input {
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    border: 1px solid #eee;
}

.rm-upload-row {
    display: flex;
    gap: 12px;
}

.rm-icon-preview {
    width: 60px;
    height: 60px;
    background: #eee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 24px;
}

.btn-rm-upload {
    flex: 1;
    background: #e5f1ff;
    color: #0a84ff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-rm-upload.block {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
}

.rm-wallpaper-preview {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.rm-wallpaper-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rm-input-url {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #888;
    border: 1px solid #eee;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 10px;
}

.btn-rm-save {
    width: 100%;
    background: #0a84ff;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(10, 132, 255, 0.3);
}

/* Icon List Styles */
.rm-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.rm-list-item {
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #f5f5f7;
}

.rm-list-item:last-child {
    border-bottom: none;
}

.rm-item-icon {
    width: 40px;
    height: 40px;
    background: #f5f5f7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 20px;
}

.rm-item-info {
    flex: 1;
}

.rm-item-info .name {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.rm-item-info .sub {
    font-size: 12px;
    color: #999;
}

.link-blue {
    color: #0a84ff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

/* Char Cards Styles */
.rm-top-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mb-0 { margin-bottom: 0; }

.btn-rm-mini {
    background: #0a84ff;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.rm-empty-state {
    text-align: center;
    padding: 40px 0;
    color: #aaa;
    font-size: 13px;
}

/* Character Editor Styles */
.editor-header {
    display: flex;
    justify-content: center;
    padding: 20px 0 10px;
    background: #fff;
}

.editor-avatar {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ccc;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.bold-text { font-weight: 700; font-size: 16px; }
.center-text { text-align: center; }

.editor-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin: 20px 0 10px;
}

.blue-bar {
    width: 4px;
    height: 16px;
    background: #0a84ff;
    border-radius: 2px;
}

.rm-textarea {
    width: 100%;
    height: 100px;
    background: #f5f5f7;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-family: inherit;
    font-size: 13px;
    resize: none;
    color: #333;
}

.helper-text {
    font-size: 11px;
    color: #999;
    margin-top: 6px;
    line-height: 1.4;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.slider-value {
    color: #0a84ff;
    font-weight: 600;
}

.rm-slider {
    width: 100%;
    -webkit-appearance: none;
    height: 6px;
    background: #e5e5e5;
    border-radius: 5px;
    outline: none;
}

.rm-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0a84ff;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.purple-icon { color: #9333ea; font-size: 16px; }
.red-shield { color: #ef4444; font-size: 16px; }

.setting-item.no-border {
    border-bottom: none;
    padding: 10px 0;
    background: transparent;
}

.flex-row-center {
    display: flex;
    align-items: center;
}

.ml-10 { margin-left: 10px; }

.btn-delete-char {
    width: 100%;
    background: #fee2e2;
    color: #ef4444;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Chat Input Bar Styles */
.chat-screen {
    background: #fff;
    display: flex;
    flex-direction: column;
}

.chat-body-mock {
    flex: 1;
    background: #f5f5f7;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.msg-row.right {
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.msg-bubble {
    background: #fff;
    padding: 10px 14px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    font-size: 14px;
    color: #333;
    max-width: 75%;
    line-height: 1.4;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.msg-row.right .msg-bubble {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 4px;
}

.msg-bubble.blue {
    background: #0a84ff;
    color: #fff;
}

.typing-dots span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chat-input-bar {
    background: #fff;
    padding: 10px 15px 25px; /* Extra bottom padding for home bar area */
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #eee;
}

.input-container {
    flex: 1;
    background: #f5f5f7;
    border-radius: 20px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
}

.input-container input {
    border: none;
    background: transparent;
    flex: 1;
    outline: none;
    font-size: 14px;
}

.smiley-icon {
    color: #888;
    font-size: 20px;
    cursor: pointer;
}

.action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightning-btn {
    background: #f3e8ff;
    color: #9333ea;
}

.more-btn {
    color: #888;
    font-size: 20px;
}

/* Scrollable container fix */
.rm-content-container.scrollable {
    overflow-y: auto;
}

.mb-20 { margin-bottom: 20px; }
.twin-phones-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    perspective: 1000px;
    padding: 20px 0;
}

.phone-mockup.small-scale {
    transform: scale(0.85); /* Slightly smaller to fit two */
    margin: 0;
}

.phone-mockup.small-scale.offset-top {
    margin-top: 60px; /* Staggered effect */
}

/* Ensure full height for static screens */
.rm-content-container.full-height {
    height: calc(100% - 60px); /* Adjust based on new header height */
    overflow-y: hidden; /* Static display usually doesn't need scroll for mockup unless content overflows */
}

/* Responsive Twin Phones */
@media (max-width: 1024px) {
    .twin-phones-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .phone-mockup.small-scale {
        transform: scale(0.9);
    }
    
    .phone-mockup.small-scale.offset-top {
        margin-top: 0;
    }
}
.chat-list-screen {
    background: #000;
}

.circle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2c2c2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #0a84ff;
    cursor: pointer;
}

.chat-items {
    padding: 10px 0;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    transition: background 0.2s;
    cursor: pointer;
}

.chat-item:active {
    background: #1c1c1e;
}

.avatar-sq {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #2c2c2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #8e8e93;
}

.avatar-sq.group {
    background: #5856d6;
    color: #fff;
}

.chat-info {
    flex: 1;
    border-bottom: 1px solid #1c1c1e;
    padding-bottom: 12px;
    min-width: 0; /* For ellipsis */
}

.chat-item:last-child .chat-info {
    border-bottom: none;
}

.chat-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    align-items: center;
}

.chat-top .name {
    font-weight: 600;
    font-size: 16px;
    color: #fff;
}

.chat-top .time {
    font-size: 14px;
    color: #8e8e93;
}

.chat-preview {
    font-size: 14px;
    color: #8e8e93;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Chat Bubbles (Feature Text) */
.chat-bubbles {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.chat-row.right {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    background: #8b5cf6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.chat-bubble {
    background: #222;
    padding: 10px 15px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    max-width: 80%;
}

.chat-row.right .chat-bubble {
    background: #0a84ff;
    color: #fff;
    border-radius: 16px;
    border-bottom-right-radius: 4px;
}

.bubble-name {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
}

.chat-row.right .bubble-name {
    display: none;
}

.bubble-msg {
    font-size: 14px;
    line-height: 1.4;
}

/* CTA Section */
.cta-section {
    padding: 8rem 0;
    text-align: center;
}

.cta-box {
    background: linear-gradient(180deg, #111 0%, #050505 100%);
    border: 1px solid var(--border-color);
    padding: 5rem 2rem;
    border-radius: 12px;
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.version-info {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: #444;
    font-family: var(--mono-font);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Footer */
footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    background: #030303;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #fff;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-desc {
    color: var(--text-secondary);
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.2rem;
    display: inline-block;
    margin: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 2rem;
    border-top: 1px solid #1a1a1a;
    color: #444;
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    
    .split-hero, 
    .feature-section .container { 
        flex-direction: column; 
        gap: 3rem;
        text-align: center;
    }
    
    .reverse-layout {
        flex-direction: column; /* Override row-reverse */
    }
    
    .hero-text, .feature-text {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-visual, .feature-visual {
        width: 100%;
        perspective: none; /* Simplify on mobile */
    }
    
    .phone-mockup {
        transform: scale(0.9) !important;
        margin: 0 auto;
    }

    .feature-list li {
        justify-content: center;
    }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .cta-buttons { flex-direction: column; }
}
