/* DesignNest - Elegant Neutral Theme
   Color Palette:
   - Charcoal: #2C2C2C (primary text)
   - Warm Taupe: #8B7355 (accent, buttons)
   - Soft Cream: #F5F1EB (backgrounds)
   - Pure White: #FFFFFF (cards)
   - Muted Gold: #C9A86C (premium accents)
   - Sage: #9CAF88 (success states)
*/

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --charcoal: #2C2C2C;
    --charcoal-light: #4A4A4A;
    --taupe: #8B7355;
    --taupe-dark: #6B5A45;
    --taupe-light: #A89070;
    --cream: #F5F1EB;
    --cream-dark: #E8E2D9;
    --white: #FFFFFF;
    --gold: #C9A86C;
    --gold-light: #D4B87A;
    --sage: #9CAF88;
    --sage-light: #B5C4A5;

    --shadow-sm: 0 1px 3px rgba(44, 44, 44, 0.08);
    --shadow-md: 0 4px 12px rgba(44, 44, 44, 0.1);
    --shadow-lg: 0 8px 30px rgba(44, 44, 44, 0.12);
    --shadow-xl: 0 20px 50px rgba(44, 44, 44, 0.15);

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--charcoal);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--charcoal);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    font-size: 1.1rem;
    color: var(--charcoal-light);
    max-width: 65ch;
}

a {
    color: var(--taupe);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--taupe-dark);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
}

.btn-primary {
    background: var(--taupe);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--taupe-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--taupe);
    border: 2px solid var(--taupe);
}

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

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--taupe) 100%);
    color: var(--white);
    font-size: 1.1rem;
    padding: 1.25rem 2.5rem;
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--taupe-light) 100%);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-white {
    background: var(--white);
    color: var(--taupe);
}

.btn-white:hover {
    background: var(--cream);
    color: var(--taupe-dark);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 0;
}

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

.navbar-logo img {
    height: 40px;
    width: auto;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.navbar-links a {
    color: var(--charcoal);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition-smooth);
}

.navbar-links a:hover::after {
    width: 100%;
}

.navbar-cta {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    transition: all var(--transition-fast);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(201, 168, 108, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tagline {
    display: inline-block;
    background: var(--cream-dark);
    color: var(--taupe);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--taupe);
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--charcoal-light);
}

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

.hero-visual {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(139, 115, 85, 0.2);
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
}

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

.floating-card {
    position: absolute;
    background: var(--white);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 3s ease-in-out infinite;
}

.floating-card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 20%;
    right: -8%;
    animation-delay: 1s;
}

.floating-card-3 {
    bottom: 5%;
    left: 5%;
    animation-delay: 2s;
}

.floating-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card-icon.green { background: rgba(156, 175, 136, 0.2); color: var(--sage); }
.floating-card-icon.gold { background: rgba(201, 168, 108, 0.2); color: var(--gold); }
.floating-card-icon.taupe { background: rgba(139, 115, 85, 0.2); color: var(--taupe); }

.floating-card-text {
    font-size: 0.85rem;
}

.floating-card-text strong {
    display: block;
    color: var(--charcoal);
}

.floating-card-text span {
    color: var(--charcoal-light);
    font-size: 0.8rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Trusted By / Social Proof */
.social-proof {
    padding: 4rem 0;
    background: var(--white);
    border-top: 1px solid var(--cream-dark);
    border-bottom: 1px solid var(--cream-dark);
}

.social-proof-title {
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--charcoal-light);
    margin-bottom: 2rem;
}

.social-proof-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--taupe);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--charcoal-light);
    margin-top: 0.5rem;
}

/* Pain Points Section */
.pain-points {
    padding: 6rem 0;
    background: var(--cream);
}

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

.section-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--taupe);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    margin: 0 auto;
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pain-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
}

.pain-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pain-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pain-icon svg {
    width: 28px;
    height: 28px;
    color: var(--taupe);
}

.pain-card h4 {
    margin-bottom: 0.75rem;
    color: var(--charcoal);
}

.pain-card p {
    font-size: 0.95rem;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.feature-card {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--cream-dark);
    transition: all var(--transition-smooth);
}

.feature-card:hover {
    border-color: var(--taupe-light);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--taupe);
}

.feature-content h4 {
    margin-bottom: 0.5rem;
}

.feature-content p {
    font-size: 0.95rem;
    margin: 0;
}

/* Showcase Section */
.showcase {
    padding: 6rem 0;
    background: var(--cream);
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.showcase-item:last-child {
    margin-bottom: 0;
}

.showcase-item.reverse {
    direction: rtl;
}

.showcase-item.reverse > * {
    direction: ltr;
}

.showcase-content {
    padding: 2rem 0;
}

.showcase-content .section-eyebrow {
    margin-bottom: 0.75rem;
}

.showcase-content h3 {
    margin-bottom: 1rem;
}

.showcase-content p {
    margin-bottom: 1.5rem;
}

.showcase-list {
    list-style: none;
}

.showcase-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--charcoal-light);
}

.showcase-list li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--sage);
    margin-top: 2px;
}

.showcase-visual {
    position: relative;
}

.showcase-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

/* Benefits Section */
.benefits {
    padding: 6rem 0;
    background: var(--charcoal);
    color: var(--white);
}

.benefits .section-header h2,
.benefits .section-header p {
    color: var(--white);
}

.benefits .section-header p {
    opacity: 0.8;
}

.benefits .section-eyebrow {
    color: var(--gold);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-smooth);
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold);
    transform: translateY(-5px);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: rgba(201, 168, 108, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon svg {
    width: 32px;
    height: 32px;
    color: var(--gold);
}

.benefit-card h4 {
    color: var(--white);
    margin-bottom: 0.75rem;
}

.benefit-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Client Portal Section */
.client-portal {
    padding: 6rem 0;
    background: var(--white);
}

.client-portal .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.portal-features {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.portal-feature {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--cream);
    border-radius: 10px;
    transition: all var(--transition-smooth);
}

.portal-feature:hover {
    background: var(--cream-dark);
}

.portal-feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-feature-icon svg {
    width: 22px;
    height: 22px;
    color: var(--taupe);
}

.portal-feature-text h5 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.portal-feature-text p {
    font-size: 0.9rem;
    margin: 0;
}

/* Testimonial Section */
.testimonial {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
}

.testimonial-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
}

.testimonial-quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-style: italic;
    color: var(--charcoal);
    line-height: 1.5;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--gold);
    position: absolute;
    top: -1.5rem;
    left: -1rem;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--taupe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
}

.testimonial-info {
    text-align: left;
}

.testimonial-name {
    font-weight: 600;
    color: var(--charcoal);
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--charcoal-light);
}

/* CTA Section */
.cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--taupe) 0%, var(--taupe-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin: 0 auto 2.5rem;
    max-width: 600px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--charcoal);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    height: 36px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    max-width: 280px;
}

.footer-column h5 {
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.25rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-legal a:hover {
    color: var(--gold);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    padding: 6rem 2rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    margin-bottom: 1.5rem;
}

.mobile-menu a {
    font-size: 1.5rem;
    color: var(--charcoal);
    font-weight: 500;
}

.mobile-menu .btn {
    margin-top: 2rem;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }

    .floating-card-1 { left: 0; }
    .floating-card-2 { right: 0; }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .showcase-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .showcase-item.reverse {
        direction: ltr;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .client-portal .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero {
        padding: 7rem 0 3rem;
        min-height: auto;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .floating-card {
        display: none;
    }

    .social-proof-stats {
        gap: 2rem;
    }

    .pain-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }

    .testimonial-quote {
        font-size: 1.35rem;
    }

    .testimonial-quote::before {
        position: static;
        display: block;
        margin-bottom: -1rem;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

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

    .cta {
        padding: 4rem 0;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Legal Pages Styles */
.legal-page {
    padding: 8rem 0 4rem;
    min-height: 100vh;
}

.legal-page h1 {
    margin-bottom: 0.5rem;
}

.legal-page .last-updated {
    color: var(--charcoal-light);
    font-size: 0.95rem;
    margin-bottom: 3rem;
}

.legal-content {
    max-width: 800px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: var(--taupe);
}

.legal-content h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    margin: 1rem 0 1rem 1.5rem;
    color: var(--charcoal-light);
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    text-decoration: underline;
}

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

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

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