/* Reset & Base */
:root {
    --primary: #8c4b34; /* Terracota */
    --primary-hover: #7a412d;
    --background: #fcfcfb; /* Warm Off-White */
    --foreground: #403d3b; /* Warm Dark Grey */
    --secondary: #f5f2ef; /* Sand/Beige */
    --accent: #d9cbb8; /* Soft Gold */
    --border: #e5e0dc;
    --font-sans: 'Lato', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(140, 75, 52, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(140, 75, 52, 0.2);
    color: var(--foreground);
}

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

.text-primary { color: var(--primary); }
.text-muted { color: #807d7b; }
.italic { font-style: italic; }
.font-serif { font-family: var(--font-serif); }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(252, 252, 251, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 224, 220, 0.5);
    height: 80px;
    display: flex;
    align-items: center;
}

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

.logo {
    height: 48px;
    width: auto;
}

.nav-links {
    display: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
}

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

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--secondary);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--foreground);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    aspect-ratio: 4/3;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-image:hover {
    transform: scale(1.05);
}

.floating-card {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    max-width: 280px;
    display: none;
}

@media (min-width: 768px) {
    .floating-card {
        display: block;
    }
}

/* Philosophy Section */
.philosophy {
    padding: 6rem 0;
    background-color: var(--secondary);
}

.philosophy-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.philosophy-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.philosophy-text {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
}

.philosophy-grid {
    display: grid;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .philosophy-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.philosophy-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.icon-circle {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Features Section */
.features {
    padding: 6rem 0;
}

.feature-block {
    display: grid;
    gap: 4rem;
    align-items: center;
    margin-bottom: 8rem;
}

@media (min-width: 1024px) {
    .feature-block {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-tag {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.feature-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: rgba(140, 75, 52, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.feature-image {
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Dashboard Section */
.dashboard-section {
    padding: 6rem 0;
    background-color: var(--foreground);
    color: var(--background);
    text-align: center;
}

.dashboard-image-wrapper {
    margin-top: 3rem;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}

/* Stories Section */
.stories {
    padding: 6rem 0;
    background-color: var(--secondary);
}

.stories-grid {
    display: grid;
    gap: 2rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .stories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.story-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.story-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stars {
    color: var(--primary);
    margin-bottom: 1rem;
}

.story-quote {
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
}

.story-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

/* CTA Section */
.cta {
    padding: 8rem 0;
    text-align: center;
    background: linear-gradient(to bottom, white, var(--secondary));
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .cta-title {
        font-size: 3.5rem;
    }
}

/* Footer */
.footer {
    background-color: var(--foreground);
    color: var(--background);
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    gap: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.4;
    font-size: 0.875rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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