/* --- Variables & Reset --- */
:root {
    --color-primary: #4A7BA6;
    --color-primary-hover: #3a6288;
    --color-secondary: #020911;
    --color-text: #020911;
    --color-text-muted: #64748b;
    --color-bg: #FFFFFF;
    --color-bg-light: #F0F2F5;
    --color-border: #cbd5e1;
    --font-main: 'Inter', sans-serif;
    --transition: 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

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

.text-center { text-align: center; }
.section-padding { padding: 5rem 0; }
.bg-light { background-color: var(--color-bg-light); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

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

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

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* --- Header --- */
.header {
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary);
}

.logo-icon {
    background: var(--color-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

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

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

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    padding-top: 140px; /* Header height + spacing */
    padding-bottom: 5rem;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, #eef2f6 100%);
    overflow: hidden;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

/* Mockup Animation */
.mockup-window {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    border: 1px solid var(--color-border);
}

.mockup-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    background: #f1f5f9;
    padding: 12px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--color-border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.mockup-body {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg);
}

.mockup-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text-muted);
}

.mockup-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    color: var(--color-primary);
    opacity: 0.5;
}

/* --- Features Section --- */
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: rgba(74, 123, 166, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.icon-wrapper svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

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

/* --- Tech Stack --- */
.tech-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.tech-item {
    background: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

/* --- CTA --- */
.cta {
    background-color: var(--color-secondary);
    color: white;
}

.cta h2 { color: white; margin-bottom: 1rem; }
.cta p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }

/* --- Footer --- */
.footer {
    padding: 2rem 0;
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand p {
    font-size: 0.85rem;
}

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

.footer-links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

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

/* --- Animations --- */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-200 { animation-delay: 0.2s; }

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

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

    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { margin-left: auto; margin-right: auto; }
    
    .hero-actions { justify-content: center; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu.active { display: flex; }
    
    .nav-menu a {
        padding: 0.8rem 0;
        width: 100%;
        text-align: center;
    }
    
    .hero { padding-top: 100px; }
}
