/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6d28d9;
    --primary-dark: #5b21b6;
    --secondary-color: #16a34a;
    --text-color: #1c1917;
    --text-light: #57534e;
    --bg-color: #ffffff;
    --bg-light: #f6f5f4;
    --bg-gray: #f3f1f5;
    --border-color: #e7e5e4;
    --shadow: 0 4px 6px -1px rgba(49, 16, 90, 0.08);
    --shadow-lg: 0 24px 40px -16px rgba(49, 16, 90, 0.28);
    --gradient-primary: linear-gradient(145deg, #7c3aed 0%, #5b21b6 100%);
    --gradient-secondary: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Header Navigation */
header {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 20s infinite;
}

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

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out;
}

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

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Features Section */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Content Section */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.content-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.content-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.content-section h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.content-section p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.content-section ul, .content-section ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--text-light);
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.content-section a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.content-section a:hover {
    border-bottom-color: var(--primary-color);
}

.breadcrumb {
    background: var(--bg-light);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb span {
    color: var(--text-light);
}

/* Footer */
footer {
    background: var(--text-color);
    color: white;
    padding: 3rem 2rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

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

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
    }

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

    .hero p {
        font-size: 1.125rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Landing */
.hero-layout {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: center;
    text-align: left;
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.hero .eyebrow {
    color: rgba(255, 255, 255, 0.85);
}

.hero-layout h1 {
    font-size: 3.25rem;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.hero-layout p {
    font-size: 1.125rem;
    max-width: 36rem;
}

.store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.store-badges a {
    display: inline-flex;
    line-height: 0;
}

.store-badges img {
    height: 44px;
    width: auto;
}

.store-badges .badge-play {
    height: 64px;
    margin: -10px 0;
}

.hero-note {
    margin-top: 1rem;
    font-size: 0.95rem !important;
    opacity: 0.85;
}

.hero-devices {
    position: relative;
    min-height: 520px;
}

.device {
    display: block;
    width: min(250px, 46%);
    border-radius: 1.75rem;
    border: 6px solid #1c1428;
    box-shadow: var(--shadow-lg);
    background: #1c1428;
}

.device-front {
    position: relative;
    z-index: 2;
    margin-left: 8%;
}

.device-back {
    position: absolute;
    right: 0;
    top: 48px;
    z-index: 1;
    width: min(230px, 42%);
}

.phone-rail-wrap {
    background: var(--bg-light);
    padding: 4rem 0 3rem;
}

.phone-rail {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 0.5rem 2rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    scroll-snap-type: x mandatory;
}

.phone-rail figure {
    flex: 0 0 210px;
    scroll-snap-align: start;
    margin: 0;
}

.phone-rail img {
    width: 100%;
    border-radius: 1.5rem;
    border: 5px solid #1c1428;
    box-shadow: var(--shadow);
    display: block;
}

.phone-rail figcaption {
    text-align: center;
    margin-top: 0.75rem;
    font-weight: 600;
    color: var(--text-color);
}

.showcase {
    max-width: 1120px;
    margin: 0 auto;
    padding: 4.5rem 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}

.showcase + .showcase {
    padding-top: 0;
}

.showcase.reverse .showcase-copy {
    order: 2;
}

.showcase h2 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.showcase p.lead {
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.65rem;
    color: var(--text-color);
    line-height: 1.5;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: var(--secondary-color);
}

.shot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1.25rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    background: white;
}

.shot-phone {
    width: min(280px, 100%);
    margin: 0 auto;
    border-radius: 1.75rem;
    border: 6px solid #1c1428;
}

.plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.plans.stack {
    grid-template-columns: 1fr;
    margin-top: 0;
}

.feature-card .btn-primary,
.content-section .btn-primary {
    background: var(--primary-color);
    color: white;
}

.plan-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.plan-card h3 {
    margin-bottom: 0.25rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0.5rem 0 0.75rem;
}

.plan-price span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
}

.plan-card.current {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.15);
}

.plan-card p {
    color: var(--text-light);
}

.band {
    background: var(--gradient-primary);
    color: white;
    padding: 4.5rem 2rem;
    text-align: center;
}

.band h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.band p {
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.band .store-badges {
    justify-content: center;
}

#features,
#plans,
#download,
.showcase {
    scroll-margin-top: 5rem;
}

@media (max-width: 860px) {
    .hero-layout,
    .showcase,
    .plans {
        grid-template-columns: 1fr;
    }

    .hero-layout,
    .hero-layout h1,
    .hero-layout p {
        text-align: center;
    }

    .hero-layout p {
        margin-left: auto;
        margin-right: auto;
    }

    .store-badges {
        justify-content: center;
    }

    .hero-devices {
        min-height: 0;
        display: flex;
        justify-content: center;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .device,
    .device-back,
    .device-front {
        position: static;
        width: min(180px, 46%);
        margin: 0;
    }

    .showcase.reverse .showcase-copy {
        order: 0;
    }

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

