﻿:root {
    --primary-color: #000000;
    --secondary-color: #555555;
    --accent-color: #0064e0; /* CAKE.com Blue */
    --bg-color: #ffffff;
    --bg-light: #f7f8f9;
    --text-color: #1a1a1a;
    --border-color: #e5e7eb;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 6rem;
    --spacing-xl: 8rem;
    --border-radius: 24px;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section-spacing {
    padding: var(--spacing-xl) 0;
}

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

/* Header & Nav */
header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.3s ease;
}

.header-hidden {
    transform: translateY(-100%);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

/* Dropdown Menus */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    display: flex;
    align-items: center;
}

.caret {
    font-size: 0.6em;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.dropdown-content {
    display: block;
    visibility: hidden;
    position: absolute;
    background-color: var(--bg-color);
    min-width: 220px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    border: none; box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    z-index: 1000;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 0.5rem 0;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dropdown:hover .caret {
    transform: rotate(180deg);
}

.dropdown-content a {
    color: var(--text-color);
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
    background-color: var(--bg-light);
    color: var(--accent-color);
}

/* Typography */
h1 {
    font-size: 4rem;
    line-height: 1.1;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-weight: 800;
    letter-spacing: -2px;
}

h2 {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    letter-spacing: -1px;
}

h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    letter-spacing: -0.5px;
}

p {
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
}

.lead {
    font-size: 1.5rem;
    color: var(--secondary-color);
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    line-height: 1.5;
}

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

/* Hero Section (WHY) */
.hero {
    min-height: 75vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 850px;
}

/* HOW Section */
.intro-text {
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--text-color);
    margin-bottom: var(--spacing-xl);
    max-width: 900px;
    font-weight: 400;
}

.how-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.how-header {
    position: sticky;
    top: 100px;
}

.focus-problem {
    font-size: 1.25rem;
    border-left: 3px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: var(--spacing-md) 0;
    color: var(--text-color);
    font-weight: 500;
}

.principles-list {
    list-style-type: none;
}

.principles-list li {
    margin-bottom: var(--spacing-lg);
    font-size: 1.125rem;
    background: var(--bg-color);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: none; box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.principles-list li strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* WHAT Section */
.what-intro {
    font-size: 1.25rem;
    max-width: 850px;
    margin-bottom: var(--spacing-lg);
}

.products-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-md);
}

.product-card {
    background: var(--bg-color);
    border: none; box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.card-header {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 1.5px;
}

.dev-list {
    list-style: none;
    margin: var(--spacing-md) 0;
}

.dev-list li {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.small-note {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-top: auto;
}

a.product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.link-arrow {
    margin-top: auto;
    padding-top: var(--spacing-md);
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

a.product-link:hover .link-arrow {
    transform: translateX(5px);
}

/* ABOUT Section */
.about-content {
    max-width: 700px;
}

.conclusion {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: var(--spacing-md);
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

footer a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

footer a:hover {
    opacity: 0.7;
}

.footer-top {
    padding-bottom: var(--spacing-md);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.2);
}

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

.footer-legal-links a {
    font-size: 0.9rem;
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

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

/* Scroll Animations */
.fade-in-up {
    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);
}

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

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

.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }

/* Responsive Design */
@media (max-width: 900px) {
    .how-details {
        grid-template-columns: 1fr;
    }
    
    .how-header {
        position: static;
        margin-bottom: var(--spacing-md);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
        letter-spacing: -1px;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-spacing {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}


/* Meta-inspired Additions */

/* Pill Button CTA */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 100, 224, 0.3);
}

.btn-primary:hover {
    background-color: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 100, 224, 0.4);
    color: #ffffff;
}

/* Fluid Gradients */
.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 100, 224, 0.1) 0%, transparent 60%),
                radial-gradient(circle at bottom left, rgba(0, 100, 224, 0.05) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.hero { position: relative; }

/* Typography refinements */
.hero-content h1 {
    font-size: 4.5rem;
    letter-spacing: -2.5px;
}

.hero-subtext {
    font-size: 1.25rem;
    color: var(--secondary-color);
    max-width: 800px;
    line-height: 1.7;
}

/* Product Cards Meta-Style */
.product-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 24px;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1) !important;
}

/* Mobile Menu Enhancements */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 3.5rem;
        letter-spacing: -1.5px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }
    
    h2 {
        font-size: 2.25rem;
    }
    
    .section-spacing {
        padding: 4rem 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        padding: 1rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        gap: 1rem;
    }
    
    .nav-links.nav-active {
        display: flex;
    }
    
    .nav-links li {
        text-align: center;
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        border: none;
        background: var(--bg-light);
        opacity: 1;
        visibility: visible;
        display: none;
        transform: none;
    }
    
    .dropdown:hover .dropdown-content, .dropdown:active .dropdown-content {
        display: block;
    }
}
