:root {
    /* Clean Professional Palette */
    --bg-base: #ffffff;
    --bg-subtle: #f9fafb;
    --border: #e5e7eb;
    --primary: #2563eb;
    /* Modern Blue */
    --primary-hover: #1d4ed8;
    --text-main: #111827;
    --text-muted: #4b5563;
    --text-light: #9ca3af;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Navigation / Brand Header */
nav {
    padding: 1.5rem 2rem;
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 100;
}

.nav-logo {
    font-size: clamp(1.1rem, 4vw, 1.25rem);
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.nav-logo span {
    color: var(--primary);
}

/* Hero Section */
header {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5rem 1.25rem 3rem;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 40%),
        radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.03), transparent 40%);
}

.badge {
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: clamp(0.75rem, 2vw, 0.85rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

h1 {
    font-size: clamp(2.25rem, 9vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    max-width: 900px;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.btn {
    padding: 0.9rem 2.25rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.4);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: white;
}

.btn-outline:hover {
    background: var(--bg-subtle);
    border-color: var(--text-light);
}

/* Remote Tagline */
.remote-status {
    margin-top: clamp(3rem, 8vh, 5rem);
    padding: 1rem 1.5rem;
    background: var(--bg-subtle);
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 1px dashed var(--border);
}

.pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
}

.pulse::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #10b981;
    border-radius: 50%;
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.status-text {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Features Section */
.section {
    padding: clamp(4rem, 12vh, 10rem) 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 8vh, 5rem);
}

.section-header h2 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-base);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Footer */
footer {
    padding: 4rem 1.25rem;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 0.9rem;
    background: var(--bg-subtle);
}

/* --- Responsive Breakpoints --- */

/* Tablets & Smaller Desktops */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices */
@media (max-width: 640px) {
    nav {
        padding: 1.25rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .cta-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        min-width: unset;
    }

    .card {
        text-align: center;
        align-items: center;
    }

    .remote-status {
        width: 100%;
        border-radius: 12px;
    }
}

/* Landscape orientation fix for short screens */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        min-height: unset;
        padding: 8rem 1rem 4rem;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .badge {
        display: none;
    }
}