/* --- CSS Reset & Variables --- */
:root {
    /* Color Palette - Stitch Light Theme */
    --bg-main: #F9F7F4;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FCFBF9;
    --border-light: #E8E4DF;
    
    --primary: #FC8A0A; /* Orange */
    --primary-hover: #E07706;
    --secondary: #2EBA77; /* Green / Success */
    --accent: #17171C; /* Dark gray */
    
    --text-main: #17171C;
    --text-muted: #797986;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

/* --- Layout & Typography --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(249, 247, 244, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.brand-logo {
    width: 32px;
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

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

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(252, 138, 10, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 138, 10, 0.3);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: #d1cbc3;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* --- Sections --- */
.section {
    padding: 7rem 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.section-text {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.text-center { text-align: center; }
.max-w-md { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 4rem; }

/* --- Grid Systems --- */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-2-col-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

/* --- Cards --- */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

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

.p-xl { padding: 3rem; }

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 120px;
    padding-bottom: 4rem;
    background: radial-gradient(circle at top right, rgba(252,138,10,0.08) 0%, rgba(249,247,244,0) 60%);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(252, 138, 10, 0.1);
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.badge-accent {
    background: rgba(46, 186, 119, 0.1);
    color: var(--secondary);
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    color: var(--accent);
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

/* Mockup */
.hero-mockup {
    display: flex;
    justify-content: center;
}

.mockup-card {
    width: 100%;
    max-width: 800px;
    padding: 0;
    overflow: hidden;
    background: #FFFFFF;
}

.mockup-header {
    background: #F1F1F3;
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f5b60a; }
.dot-green { background: #2eba77; }

.mockup-body {
    padding: 2.5rem;
}

.skeleton {
    background: #E3DED8;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.skeleton-title { height: 32px; width: 40%; margin-bottom: 2rem; }
.skeleton-text { height: 16px; width: 100%; }
.skeleton-text.short { width: 80%; margin-bottom: 2rem; }

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

.tailor-card {
    background: #F9F7F4;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
}

.tailor-card i {
    font-size: 2.5rem;
    color: var(--primary);
}

/* --- Features Section --- */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-list li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.icon-box {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: rgba(252, 138, 10, 0.1);
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.feature-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.feature-content p {
    color: var(--text-muted);
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF5ED 100%);
    border-color: rgba(252, 138, 10, 0.2);
}

.feature-icon-large {
    margin-bottom: 1.5rem;
}

/* --- Impact Section --- */
.bg-darker {
    background: #FFFFFF;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.showcase-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: var(--bg-main);
}

.stat {
    margin-bottom: 2rem;
}

.stat-number {
    display: block;
    font-size: 4.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0.5rem;
    display: block;
}

.showcase-card p {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--accent);
    font-family: var(--font-heading);
}

.small-card {
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--bg-card);
}

.small-card i {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.small-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.small-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* --- Gap Section --- */
.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.icon-red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.icon-blue { background: rgba(46, 186, 119, 0.1); color: #2eba77; }

.gap-grid h3 {
    margin-bottom: 1rem;
}

/* --- CTA Section --- */
.cta-section {
    padding-bottom: 8rem;
}

.cta-card {
    background: linear-gradient(135deg, #FFEDD5 0%, #FFFFFF 100%);
    border: 1px solid rgba(252, 138, 10, 0.2);
    padding: 5rem 3rem;
}

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

/* --- Footer --- */
footer {
    background: #17171C;
    color: #FFFFFF;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    gap: 2rem;
}

.footer-brand .logo {
    color: #FFFFFF;
}

.footer-brand .logo img {
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 1rem;
    max-width: 250px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h4 {
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.link-group a {
    display: block;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.link-group a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    text-align: center;
    color: #94a3b8;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* --- Responsive Layouts --- */
@media (max-width: 992px) {
    .grid-2-col, .gap-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-2-col.reverse .image-wrapper {
        order: 2;
    }
    .grid-2-col.reverse .text-content {
        order: 1;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section {
        padding: 5rem 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions, .cta-buttons {
        flex-direction: column;
    }
    
    .tailor-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-2-col-small {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        flex-wrap: wrap;
    }
}
