:root {
    /* Memory Garden Palette */
    --bg-surface: #FDF8F7;
    --primary: #173901;
    --primary-container: #2D5016;
    --brass-gold: #B5863A;
    --brass-gold-dark: #7C5408;
    
    --text-main: #1C1B1B;
    --text-muted: #5A5852;
    --text-light: #FDF8F7;
    --text-light-muted: rgba(253, 248, 247, 0.7);
    
    --border-light: rgba(23, 57, 1, 0.1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Switzer', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 8px;
    border: 4px solid var(--bg-surface);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-container);
}

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

/* Typography */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    color: var(--primary);
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 1;
    letter-spacing: -2.5px;
    font-weight: 800;
    margin-bottom: 24px;
}

.huge-title {
    font-size: clamp(2rem, 4.5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -1.5px;
    font-weight: 700;
}

.section-label {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.narrative-block {
    max-width: 900px;
    margin: 0 auto;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.narrative-text {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    color: var(--text-muted);
    margin-top: 32px;
    line-height: 1.8;
}

.text-center { text-align: center; }
.text-brass { color: var(--brass-gold); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light) !important; }
.text-light-muted { color: var(--text-light-muted) !important; }
.mb-4 { margin-bottom: 24px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 24px; }
.mt-8 { margin-top: 64px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-prose { max-width: 800px; }

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 120px 0;
}

.bg-primary {
    background-color: var(--primary);
}

.section-header {
    margin-bottom: 80px;
}

/* Divider */
.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-light), transparent);
    width: 100%;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 5%;
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(253, 248, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
}

a.logo {
    font-size: 24px;
    text-decoration: none;
    z-index: 1001;
}

.logo.large-logo {
    font-size: 40px;
}

.logo .dot { color: var(--brass-gold); }

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

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.hamburger .bar {
    width: 28px;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 140px;
    padding-bottom: 60px;
}

/* Images & Mockups */


.hero-mockup-img, .featured-mockup-img, .card-mockup-img {
    width: 100%;
    height: auto;
    display: block;
}

.card-mockup-img {
    margin-bottom: 24px;
}

/* Grids & Cards */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.premium-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px 32px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Featured Core Feature (Horizontal) */
.featured-card {
    display: flex;
    align-items: center;
    gap: 48px;
    padding: 48px;
}

.featured-content {
    flex: 1;
    align-self: center;
}

.featured-image {
    flex: 1;
    max-width: 400px;
}

.premium-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(23, 57, 1, 0.05);
}

.premium-card.dark {
    background-color: var(--primary);
    border-color: var(--primary-container);
}

.premium-card.dark h4, .premium-card.dark p {
    color: var(--text-light);
}

.premium-card.dark p {
    opacity: 0.8;
}

.premium-card.dark:hover {
    box-shadow: 0 16px 32px rgba(23, 57, 1, 0.2);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.card-icon.brass {
    background-color: var(--brass-gold);
    color: var(--text-light);
}

.premium-card h4 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.premium-card p {
    font-size: 1.15rem;
    line-height: 1.6;
}

/* Ending Section */
.ending-section {
    padding: 120px 0;
    background: radial-gradient(circle at center, rgba(181, 134, 58, 0.05) 0%, transparent 70%);
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dev-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background-color: white;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.pulse {
    width: 6px;
    height: 6px;
    background-color: var(--brass-gold);
    border-radius: 50%;
    position: relative;
}

.pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--brass-gold);
    border-radius: 50%;
    animation: ping 2s infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Animations */
.fade-in { opacity: 0; animation: fadeIn 0.8s ease forwards; }
.fade-in-up { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

.delay-1 { animation-delay: 0.1s; transition-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; transition-delay: 0.3s; }

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

/* Responsive */
@media (max-width: 900px) {
    .featured-card {
        flex-direction: column;
        padding: 32px;
        gap: 32px;
    }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .footer-content { flex-direction: column; gap: 24px; text-align: center; }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background-color: var(--bg-surface);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.4s ease;
        gap: 40px;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.5rem;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Mobile Grid Polish */
    .premium-card {
        padding: 24px;
    }
    
    .premium-card h4 {
        font-size: 1.5rem;
    }
    
    .premium-card p {
        font-size: 1.05rem;
    }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-in, .fade-in-up, .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
