:root {
    /* Altheia Dashboard Theme Colors */
    --bg-main: #FAF9F6;
    --bg-secondary: #F4EFE6;
    --bg-white: #FFFFFF;
    
    --text-main: #333333;
    --text-muted: #7A7873;
    
    --brand-teal: #2A6658;
    --brand-teal-hover: #1E5044;
    
    --border-color: #E2DDD5;
    
    --highlight-yellow: #FCE69B;
    --chat-system: #F2EBE0;

    --font-ui: 'Inter', -apple-system, sans-serif;
    --font-serif: 'Georgia', serif;
}

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

body {
    font-family: var(--font-ui);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 600;
    color: #111;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.btn-primary, .btn-primary-small {
    background-color: var(--brand-teal);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    display: inline-block;
}

.btn-primary-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-primary {
    padding: 12px 24px;
    font-size: 1rem;
}

.btn-primary:hover, .btn-primary-small:hover {
    background-color: var(--brand-teal-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 24px;
    font-weight: 500;
    transition: background 0.2s;
    background-color: var(--bg-white);
}

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

.btn-primary.lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar .brand-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-main);
}
.navbar .brand-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.navbar nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.navbar nav a:not(.btn-primary-small) {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.navbar nav a:hover:not(.btn-primary-small) {
    color: var(--brand-teal);
}

/* Hero Section */
.hero {
    margin: 120px 5% 60px;
    padding: 60px 5% 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.pill-badge::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background-color: #6366f1;
    border-radius: 50%;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero h1 span {
    color: var(--brand-teal);
}

.hero .subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-visual {
    width: 100%;
    max-width: 1100px;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-bottom: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sections */
.section-container {
    padding: 80px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Principles Grid */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.principle-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.3s, box-shadow 0.3s;
}

.principle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

.principle-card .icon {
    margin-bottom: 20px;
    color: var(--brand-teal);
    width: 32px;
    height: 32px;
}

.principle-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.principle-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Features List */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-pill {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-teal);
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-text p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.feature-bullets {
    list-style: none;
}

.feature-bullets li {
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
}

.feature-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--brand-teal);
    font-weight: bold;
}

/* Feature Visual Boxes */
.border-box {
    flex: 1;
    min-height: 300px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    border-radius: 12px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.border-box.light-bg {
    background-color: var(--bg-secondary);
}

.border-box.no-pad {
    padding: 0;
    overflow: hidden;
    background-color: var(--bg-white);
}

/* Mock UI Elements */
.mock-ui {
    width: 100%;
    font-size: 0.9rem;
}
.ui-header {
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 1rem;
    color: #111;
}
.ui-line { margin-bottom: 12px; }
.text-muted { color: var(--text-muted); }
.ui-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin-bottom: 16px;
    overflow: hidden;
}
.ui-progress {
    height: 100%;
    background-color: var(--brand-teal);
}

.ui-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.ui-card h4 { margin-bottom: 8px;}
.ui-tags { margin-top: 16px; display: flex; gap: 8px; }
.tag { padding: 4px 8px; border-radius: 4px; font-size: 0.8rem; font-weight: 500;}
.tag.hard { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.2);}
.tag.due { background: rgba(59, 130, 246, 0.1); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.2);}

.ui-checklist {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.ui-checklist div { margin-bottom: 12px; display: flex; align-items: center; gap: 12px; font-size: 14px;}
.ui-checklist div:last-child { margin-bottom: 0; }
.ui-checklist input { accent-color: var(--brand-teal); width: 16px; height: 16px; }
.strike { text-decoration: line-through; color: var(--text-muted); }

/* Chat Mockup */
.chat-mock {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}
.doc-snippet {
    padding: 32px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-white);
    color: #222;
}
.highlighted {
    background-color: var(--highlight-yellow);
    padding: 2px 4px;
    border-radius: 2px;
}
.chat-area {
    padding: 24px;
    background-color: var(--bg-main);
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.chat-bubble {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    max-width: 85%;
    line-height: 1.5;
}
.chat-bubble.system { 
    background-color: var(--chat-system); 
    align-self: flex-start; 
    border: 1px solid var(--border-color);
}
.chat-bubble.user { 
    background-color: var(--brand-teal); 
    color: white; 
    align-self: flex-end;
}
.chat-bubble .cite { 
    font-size: 0.8rem; 
    color: #5b75b8; 
    display: block; 
    margin-top: 8px;
    background: rgba(0,0,0,0.05);
    padding: 2px 6px;
    border-radius: 4px;
    width: fit-content;
}

/* CTA */
.cta-section {
    text-align: center;
    padding: 100px 5%;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.cta-section h2 { font-size: 2.5rem; margin-bottom: 16px;}
.cta-section p { color: var(--text-muted); margin-bottom: 32px; font-size: 1.1rem;}

/* Footer */
footer {
    padding: 40px 5%;
    text-align: center;
    color: var(--text-muted);
    background-color: var(--bg-main);
}
.footer-content .brand {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards cubic-bezier(0.16, 1, 0.3, 1);
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

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

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .feature-row, .feature-row.reverse { flex-direction: column; gap: 40px; }
    .navbar nav { display: none; }
}
