:root {
    --bg-color: #FAF8F3;
    --text-primary: #1C1208;
    --text-secondary: #5C4A3D;
    --accent: #C07048;
    --accent-hover: #A35A35;
    --card-bg: #F0EBE1;
    --nav-bg: rgba(250, 248, 243, 0.85);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(10px);
    background-color: var(--nav-bg);
    z-index: 1000;
    border-bottom: 1px solid rgba(28, 18, 8, 0.08);
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--accent);
    text-decoration: none;
}

.logo:not(a) {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--accent);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 6rem 5% 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(192, 112, 72, 0.15) 0%, rgba(250, 248, 243, 0) 70%);
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    margin-left: 6%;
}

.hero h1 {
    font-family: 'Georgia', serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.hero h1 .highlight {
    color: var(--accent);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent);
    color: #FAF8F3;
    box-shadow: 0 4px 14px rgba(192, 112, 72, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 112, 72, 0.5);
}

/* Mockup */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    padding-right: 2%;
    position: relative;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background-color: var(--bg-color);
    border-radius: 40px;
    border: 8px solid #E2D7C8;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(28, 18, 8, 0.15);
    transform: rotate(-5deg);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.phone-mockup:hover {
    transform: rotate(0deg) scale(1.05);
}

.screen {
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    background-color: var(--bg-color);
}

.chat-bubble {
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    max-width: 85%;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
    box-shadow: 0 2px 5px rgba(28, 18, 8, 0.05);
}

.chat-bubble.user {
    background-color: var(--accent);
    color: #FAF8F3;
    align-self: flex-end;
    border-bottom-right-radius: 0.2rem;
}

.chat-bubble.ai {
    background-color: var(--card-bg);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 0.2rem;
    animation-delay: 0.5s;
}

.chat-bubble pre {
    background-color: #2D241C;
    color: #FAF8F3;
    padding: 0.5rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    overflow-x: auto;
}

.save-toast {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(192, 112, 72, 0.95);
    color: #FAF8F3;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    animation: toastSlideUp 0.5s ease forwards 1.5s;
    opacity: 0;
    box-shadow: 0 4px 12px rgba(192, 112, 72, 0.3);
}

/* Features */
.features {
    padding: 5rem 5%;
    background-color: #F4EFE6;
}

.features h2 {
    font-family: 'Georgia', serif;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid rgba(28, 18, 8, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(28, 18, 8, 0.08);
    border-color: rgba(192, 112, 72, 0.3);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: 'Georgia', serif;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--text-primary);
}

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

/* Document / Privacy Policy */
.page-content {
    padding: 8rem 5% 5rem;
    min-height: 80vh;
}

.document {
    max-width: 800px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid rgba(28, 18, 8, 0.08);
    box-shadow: 0 4px 20px rgba(28, 18, 8, 0.03);
}

.document h1 {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.last-updated {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 0.9rem;
}

.document section {
    margin-bottom: 2.5rem;
}

.document h2 {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.document p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.document strong {
    color: var(--text-primary);
}

.document a {
    color: var(--accent);
    text-decoration: none;
}

.document a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    padding: 3rem 5%;
    border-top: 1px solid rgba(28, 18, 8, 0.08);
    text-align: center;
    background-color: var(--bg-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-family: 'Georgia', serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--accent);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

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

footer p {
    color: rgba(28, 18, 8, 0.5);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes toastSlideUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }

    10% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    90% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-visual {
        margin-top: 4rem;
        justify-content: center;
        padding-right: 0;
    }

    .hero-content {
        margin-left: 0;
    }

    .document {
        padding: 2rem 1.5rem;
    }
}