:root {
    /* Morning: Bold golden warmth */
    --bg: #FDF6E8;
    --bg-deep: #F0E4CC;
    
    /* The companion's light */
    --glow-primary: rgba(255, 140, 50, 0.65);
    --glow-secondary: rgba(255, 100, 30, 0.25);
    
    --text: #1F1B16;
    --text-mid: #4A4238;
    --text-soft: #7A7062;
    
    --companion: #5C4A3A;
    --companion-glow: rgba(180, 120, 60, 0.12);
    
    --accent: #D4854A;
    --accent-bold: #E08840;
    --accent-text: #A85E28;
    --accent-bg: rgba(212, 133, 74, 0.1);
    --accent-glow: rgba(255, 140, 60, 0.35);
    
    --line: rgba(120, 90, 60, 0.1);
    
    /* Layout */
    --max-width: 1000px;
    --header-height: 80px;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant', serif;
    font-weight: 500;
    color: var(--companion);
}

a {
    color: var(--accent-text);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent-bold);
}

/* Utility */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 30px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn:hover {
    background: var(--accent-bold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--accent-glow);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-text);
    border: 1px solid var(--accent);
    box-shadow: none;
}

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

/* Navigation */
header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: rgba(253, 246, 232, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Cormorant', serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-mid);
    font-size: 15px;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-text);
}

/* Hero */
.hero {
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 24px;
    font-style: italic;
}

.hero p {
    font-size: 20px;
    color: var(--text-mid);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Companion Light Animation Background */
.ambient-light {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
    opacity: 0.15;
    z-index: -1;
    animation: breathe 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes breathe {
    0%, 100% { opacity: 0.15; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.25; transform: translateX(-50%) scale(1.1); }
}

/* Features Grid */
.features {
    padding: 80px 0;
    background: linear-gradient(180deg, transparent 0%, var(--bg-deep) 100%);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.card {
    background: var(--bg);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--line);
    transition: transform 0.3s ease;
}

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

.card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text);
}

.card p {
    color: var(--text-soft);
}

/* Documentation Specifics */
.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    padding: 60px 0;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 12px;
}

.sidebar a {
    color: var(--text-soft);
    display: block;
    padding: 8px 0;
}

.sidebar a.active {
    color: var(--accent-text);
    font-weight: 500;
}

.doc-content h1 {
    font-size: 48px;
    margin-bottom: 16px;
}

.doc-content h2 {
    font-size: 32px;
    margin: 48px 0 24px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

.doc-content p {
    margin-bottom: 24px;
    font-size: 18px;
    color: var(--text-mid);
}

.note {
    background: var(--companion-glow);
    padding: 24px;
    border-radius: 16px;
    border-left: 3px solid var(--accent);
    margin: 24px 0;
}

.note h4 {
    margin-bottom: 8px;
    color: var(--accent-text);
}

footer {
    padding: 60px 0;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--text-soft);
    font-size: 14px;
}

