/* ============================================================
   Gramma Robotics — Landing Page
   ============================================================ */

:root {
    --bg: #F9FAFB;
    --text: #111827;
    --text-muted: #6B7280;
    --primary: #0D9488;
    --primary-dark: #0B7F74;
    --primary-light: #CCFBF1;
    --coral: #F97066;
    --white: #FFFFFF;
    --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ── Navbar ───────────────────────────────────────────────── */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2.5rem;
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.nav-logo {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 2.5rem 2rem;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 540px;
}

/* Staggered fade-in */
.hero-content > * {
    opacity: 0;
    animation: fadeInUp 0.7s ease forwards;
}

.badge { animation-delay: 0.1s; }
h1 { animation-delay: 0.2s; }
.subtitle { animation-delay: 0.35s; }
.description { animation-delay: 0.5s; }
.cta-group { animation-delay: 0.65s; }

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

.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.25rem;
}

h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    text-wrap: balance;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.4;
    text-wrap: pretty;
}

.description {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 460px;
    text-wrap: pretty;
}

.cta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 500;
    color: var(--white);
    background: var(--primary);
    padding: 0.85rem 1.75rem;
    border-radius: 100px;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.25);
}

.btn-primary .arrow {
    transition: transform 0.25s;
}

.btn-primary:hover .arrow {
    transform: translateX(3px);
}

a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.email-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Animation Canvas ─────────────────────────────────────── */

.hero-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    opacity: 0;
    animation: fadeIn 1.2s ease 0.3s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

#canvas {
    display: block;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 1;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 860px) {
    .hero {
        flex-direction: column-reverse;
        padding: 0 1.5rem 1.5rem;
        gap: 0.5rem;
        justify-content: center;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        align-items: center;
    }

    .hero-visual {
        width: 100%;
        max-height: 38vh;
    }

    #canvas {
        max-width: 320px;
        max-height: 38vh;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem 1.25rem;
    }

    .nav-logo {
        font-size: 0.95rem;
    }

    .hero {
        padding: 0 1.25rem 1rem;
    }

    .description {
        font-size: 0.875rem;
    }

    #canvas {
        max-width: 260px;
    }
}

/* ── Reduced Motion ───────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .hero-content > *,
    .hero-visual {
        animation: none;
        opacity: 1;
    }
}
