/* ============================================
   PILZY LANDING PAGE — Design System
   Colors from the app:
   Yellow:    #F5C344
   Teal:      #3CAEA3
   Teal Dark: #2F9C95
   Charcoal:  #364F55
   Mint BG:   #F0F6F2
   ============================================ */

:root {
    --yellow: #F5C344;
    --yellow-soft: #fdf3d7;
    --teal: #3CAEA3;
    --teal-dark: #2F9C95;
    --teal-soft: #d7f0ee;
    --teal-glow: rgba(60, 174, 163, 0.25);
    --charcoal: #364F55;
    --charcoal-light: #4a6a72;
    --mint: #F0F6F2;
    --mint-deep: #e4efe8;
    --white: #ffffff;
    --text-primary: #2d3e42;
    --text-secondary: #6b8a90;
    --text-muted: #96b0b5;

    --font-display: 'Nunito', -apple-system, sans-serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --radius-pill: 999px;

    --shadow-soft: 0 2px 20px rgba(54, 79, 85, 0.06);
    --shadow-card: 0 4px 32px rgba(54, 79, 85, 0.08);
    --shadow-elevated: 0 8px 48px rgba(54, 79, 85, 0.12);
    --shadow-teal: 0 8px 32px rgba(60, 174, 163, 0.2);

    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============ RESET & BASE ============ */

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

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

body {
    font-family: var(--font-body);
    background-color: var(--mint);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ============ FLOATING PILLS BG ============ */

.floating-pills {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.pill {
    position: absolute;
    border-radius: var(--radius-pill);
    opacity: 0.07;
}

.pill-1 {
    width: 80px;
    height: 32px;
    background: var(--teal);
    top: 12%;
    left: 8%;
    animation: floatPill 18s ease-in-out infinite;
}

.pill-2 {
    width: 60px;
    height: 24px;
    background: var(--yellow);
    top: 25%;
    right: 12%;
    animation: floatPill 22s ease-in-out infinite reverse;
}

.pill-3 {
    width: 100px;
    height: 40px;
    background: var(--teal-dark);
    top: 55%;
    left: 5%;
    animation: floatPill 20s ease-in-out infinite 2s;
}

.pill-4 {
    width: 50px;
    height: 20px;
    background: var(--yellow);
    top: 70%;
    right: 8%;
    animation: floatPill 16s ease-in-out infinite 1s;
}

.pill-5 {
    width: 70px;
    height: 28px;
    background: var(--teal);
    top: 85%;
    left: 15%;
    animation: floatPill 24s ease-in-out infinite 3s;
}

.pill-6 {
    width: 45px;
    height: 18px;
    background: var(--charcoal);
    top: 40%;
    right: 20%;
    animation: floatPill 19s ease-in-out infinite 4s;
}

.pill-7 {
    width: 90px;
    height: 36px;
    background: var(--teal);
    top: 8%;
    right: 35%;
    animation: floatPill 21s ease-in-out infinite 2s;
}

.pill-8 {
    width: 55px;
    height: 22px;
    background: var(--yellow);
    top: 92%;
    left: 40%;
    animation: floatPill 17s ease-in-out infinite 5s;
}

@keyframes floatPill {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-30px) rotate(5deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
    75% { transform: translateY(-40px) rotate(7deg); }
}

/* ============ NAVIGATION ============ */

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(240, 246, 242, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(60, 174, 163, 0.1);
    padding: 10px 0;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.nav-logo:hover {
    transform: scale(1.03);
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.nav-logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--charcoal);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--charcoal-light);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--teal);
    background: var(--teal-soft);
}

.nav-github {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin-left: 4px;
    color: var(--charcoal);
}

.nav-github:hover {
    color: var(--teal);
    background: var(--teal-soft);
}

/* ============ BUTTONS ============ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
}

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

.btn-primary:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(60, 174, 163, 0.3);
}

.btn-ghost {
    background: transparent;
    color: var(--charcoal);
    border: 2px solid rgba(54, 79, 85, 0.15);
}

.btn-ghost:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: rgba(60, 174, 163, 0.05);
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.05rem;
}

/* ============ HERO ============ */

#hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 32px 80px;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid rgba(60, 174, 163, 0.15);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--teal-dark);
    margin-bottom: 28px;
    box-shadow: var(--shadow-soft);
    animation: fadeSlideUp 0.8s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--charcoal);
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    animation: fadeSlideUp 0.8s ease-out 0.1s backwards;
}

.hero-highlight {
    color: var(--teal);
    position: relative;
}

.hero-highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 12px;
    background: var(--yellow);
    opacity: 0.35;
    border-radius: 4px;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 440px;
    animation: fadeSlideUp 0.8s ease-out 0.2s backwards;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.8s ease-out 0.3s backwards;
}

.hero-phone {
    position: relative;
    flex-shrink: 0;
    animation: fadeSlideUp 1s ease-out 0.4s backwards;
}

.phone-frame {
    position: relative;
    width: 300px;
    background: var(--white);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-elevated), 0 0 0 1px rgba(54, 79, 85, 0.06);
    overflow: hidden;
    z-index: 2;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: var(--charcoal);
    border-radius: 0 0 18px 18px;
    z-index: 3;
    opacity: 0;
}

.phone-screen {
    width: 100%;
    border-radius: 30px;
}

.hero-phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
    z-index: 1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

/* ============ PILL STRIP DECORATION ============ */

.pill-strip-section {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 32px 60px;
}

.pill-strip {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.strip-pill {
    width: 44px;
    height: 56px;
    border-radius: 22px;
    transition: var(--transition-spring);
    cursor: default;
}

.strip-pill.taken {
    background: var(--teal);
    box-shadow: 0 4px 16px rgba(60, 174, 163, 0.25);
}

.strip-pill.remaining {
    background: var(--white);
    border: 2px solid rgba(60, 174, 163, 0.2);
}

.strip-pill:hover {
    transform: translateY(-6px) scale(1.1);
}

.strip-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============ SECTIONS COMMON ============ */

section {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
    padding: 0 32px;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--teal);
    background: var(--teal-soft);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--charcoal);
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.text-teal { color: var(--teal); }
.text-yellow { color: var(--yellow); }

/* ============ FEATURES ============ */

#features {
    padding: 80px 32px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border: 1px solid rgba(60, 174, 163, 0.08);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--yellow));
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card);
    border-color: rgba(60, 174, 163, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--teal-soft);
    color: var(--teal);
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-icon-wrap.icon-yellow {
    background: var(--yellow-soft);
    color: #d4a62e;
}

.feature-icon-wrap.icon-charcoal {
    background: rgba(54, 79, 85, 0.08);
    color: var(--charcoal);
}

.feature-icon-wrap.icon-teal2 {
    background: rgba(47, 156, 149, 0.1);
    color: var(--teal-dark);
}

.feature-card:hover .feature-icon-wrap {
    transform: scale(1.1) rotate(-3deg);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============ SCREENS SHOWCASE ============ */

#screens {
    padding: 80px 0 100px;
}

.screens-carousel {
    display: flex;
    gap: 32px;
    padding: 0 32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: center;
    flex-wrap: wrap;
}

.screens-carousel::-webkit-scrollbar { display: none; }

.screen-item {
    flex-shrink: 0;
    scroll-snap-align: center;
    text-align: center;
}

.screen-phone {
    width: 220px;
    background: var(--white);
    border-radius: 32px;
    padding: 8px;
    box-shadow: var(--shadow-card);
    margin-bottom: 16px;
    transition: var(--transition);
    border: 1px solid rgba(60, 174, 163, 0.06);
}

.screen-phone:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-elevated);
}

.screen-img {
    width: 100%;
    border-radius: 26px;
}

.screen-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.screen-label-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--teal-soft);
    color: var(--teal);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}

/* ============ PRIVACY ============ */

#privacy {
    padding: 60px 32px 80px;
    max-width: 900px;
    margin: 0 auto;
}

.privacy-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 64px;
    text-align: center;
    border: 1px solid rgba(60, 174, 163, 0.1);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.privacy-card::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
    opacity: 0.5;
}

.privacy-card::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 195, 68, 0.12) 0%, transparent 70%);
}

.privacy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 24px;
    background: var(--teal-soft);
    color: var(--teal);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.privacy-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--charcoal);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.privacy-desc {
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 560px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}

.privacy-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.privacy-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    background: var(--mint);
    color: var(--charcoal);
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(60, 174, 163, 0.1);
}

.privacy-badge svg {
    color: var(--teal);
    flex-shrink: 0;
}

/* ============ CTA ============ */

#cta {
    padding: 60px 32px 80px;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    margin: 0 auto 28px;
    box-shadow: var(--shadow-card);
}

.cta-title {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--charcoal);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.cta-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ============ FOOTER ============ */

#footer {
    position: relative;
    z-index: 1;
    background: var(--white);
    border-top: 1px solid rgba(60, 174, 163, 0.08);
    padding: 48px 32px;
    text-align: center;
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.footer-brand-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--charcoal);
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ============ SCROLL ANIMATIONS ============ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

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

/* ============ RESPONSIVE ============ */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.3rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #hero {
        gap: 48px;
    }

    .phone-frame {
        width: 260px;
    }
}

@media (max-width: 768px) {
    #hero {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        gap: 48px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-subtitle {
        text-align: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .phone-frame {
        width: 240px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-card {
        padding: 28px 24px;
    }

    .section-title {
        font-size: 2rem;
    }

    .privacy-card {
        padding: 40px 28px;
    }

    .privacy-title {
        font-size: 1.7rem;
    }

    .cta-title {
        font-size: 1.9rem;
    }

    .screens-carousel {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .screen-phone {
        width: 200px;
    }

    .pill-strip {
        gap: 6px;
    }

    .strip-pill {
        width: 36px;
        height: 46px;
    }

    .nav-links .nav-link:not(.nav-github) {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.1rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .btn {
        padding: 12px 22px;
        font-size: 0.9rem;
    }

    .privacy-badges {
        flex-direction: column;
        align-items: center;
    }

    .strip-pill {
        width: 28px;
        height: 38px;
    }
}
