/* ShackPilot Landing Page */

:root {
    --teal: #2B7A65;
    --teal-dark: #1F5C4B;
    --teal-light: #3A9E82;
    --teal-bg: #F0F7F5;
    --dark: #1A1A2E;
    --gray-900: #1E1E2E;
    --gray-800: #2A2A3C;
    --gray-600: #6B7280;
    --gray-400: #9CA3AF;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --white: #FFFFFF;
    --gold: #D4A843;
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Nav */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--white);
}

.nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 28px;
}

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

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

/* Hero */

.hero {
    background: linear-gradient(160deg, var(--dark) 0%, var(--gray-900) 50%, var(--teal-dark) 100%);
    color: var(--white);
    padding: 140px 24px 100px;
    text-align: center;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
}

.hero-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(43, 122, 101, 0.4);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--gray-400);
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 32px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(43, 122, 101, 0.25);
    color: var(--teal-light);
    border: 1px solid rgba(43, 122, 101, 0.4);
}

/* App Store Button */

.appstore-btn {
    display: inline-block;
    margin-top: 28px;
    transition: opacity 0.2s, transform 0.2s;
}

.appstore-btn svg {
    width: 180px;
    height: 60px;
}

.appstore-btn:hover {
    opacity: 0.85;
    transform: scale(1.03);
}

/* Screenshots */

.screenshots {
    background: var(--gray-100);
}

.screenshot-showcase {
    display: flex;
    justify-content: center;
}

.screenshot-single {
    position: relative;
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    cursor: zoom-in;
}

.screenshot-single img {
    width: 100%;
    max-width: 960px;
    border-radius: 14px;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.18);
    display: block;
    transition: box-shadow 0.2s;
}

.screenshot-single:hover img,
.screenshot-single:focus img {
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.28);
}

.screenshot-single:focus {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
    border-radius: 14px;
}

.screenshot-zoom-hint {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 5px 10px;
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.screenshot-single:hover .screenshot-zoom-hint,
.screenshot-single:focus .screenshot-zoom-hint {
    opacity: 1;
}

/* Lightbox */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 16px 80px rgba(0, 0, 0, 0.6);
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover,
.lightbox-close:focus {
    background: rgba(255, 255, 255, 0.3);
    outline: none;
}

/* Sections */

.section {
    padding: 100px 0;
}

.section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.section-sub {
    text-align: center;
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 56px;
}

/* Grids */

.grid {
    display: grid;
    gap: 24px;
}

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

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

/* Feature Cards */

.features {
    background: var(--white);
}

.card {
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
    border-color: var(--teal-light);
    box-shadow: 0 4px 20px rgba(43, 122, 101, 0.08);
}

.card-icon {
    width: 44px;
    height: 44px;
    color: var(--teal);
    margin-bottom: 16px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Connection Modes */

.modes {
    background: var(--gray-100);
}

.mode-card {
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.mode-card.featured {
    border-color: var(--teal);
    box-shadow: 0 4px 20px rgba(43, 122, 101, 0.12);
}

.mode-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--teal);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
}

.mode-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.mode-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.mode-card ul {
    list-style: none;
    padding: 0;
}

.mode-card li {
    padding: 6px 0;
    font-size: 0.9rem;
    color: var(--gray-600);
    position: relative;
    padding-left: 20px;
}

.mode-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-light);
}

/* Digital Modes */

.digital {
    background: var(--white);
}

.digital-item {
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    transition: border-color 0.2s;
}

.digital-item:hover {
    border-color: var(--teal-light);
}

.digital-item h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--teal-dark);
}

.digital-item p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Radios */

.radios {
    background: var(--gray-100);
}

.radio-grid {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.radio-group h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-600);
    margin-bottom: 14px;
    text-align: center;
}

.radio-list {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.radio-chip {
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--white);
    border: 1px solid var(--gray-200);
    color: var(--dark);
}

.radio-chip.primary {
    background: var(--teal);
    color: var(--white);
    border-color: var(--teal);
}

.radio-chip.any {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.radio-note {
    text-align: center;
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-top: 10px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA */

.cta {
    background: linear-gradient(160deg, var(--dark) 0%, var(--teal-dark) 100%);
    color: var(--white);
    text-align: center;
}

.cta h2 {
    color: var(--white);
}

.cta .section-sub {
    color: var(--gray-400);
}

.tech-pills {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-pills span {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.08);
    color: var(--gray-400);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Footer */

footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
}

.footer-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

footer p {
    font-size: 0.9rem;
}

footer a {
    color: var(--teal-light);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Mobile Nav Toggle */

.nav-toggle {
    display: none;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    width: 28px;
    height: 28px;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gray-400);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle:checked ~ .nav-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle:checked ~ .nav-hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked ~ .nav-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .section {
        padding: 72px 0;
    }
}


@media (max-width: 600px) {
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 120px 20px 72px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-sub {
        font-size: 1.05rem;
    }

    .hero-icon {
        width: 88px;
        height: 88px;
        border-radius: 22px;
    }

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

    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 46, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px;
        gap: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-toggle:checked ~ .nav-links {
        display: flex;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
