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

body {
    font-family: 'Source Sans 3', sans-serif;
    /* mobile-first: light gray background, no image */
    background: #F5F5F7;
    color: #1d1d1f;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* desktop and larger: add background image */
@media (min-width: 769px) {
    body {
        background: #F5F5F7 url('noisybackground.jpg') center center / cover no-repeat fixed;
    }
}

/* iOS Safari specific fixes - ensure no background image on mobile */
@supports (-webkit-touch-callout: none) {
    @media (max-width: 768px) {
        html,
        body {
            background: #F5F5F7 !important;
            background-image: none !important;
            background-attachment: scroll !important;
        }
        
        .main-content {
            background: transparent !important;
            background-image: none !important;
        }
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Newsreader', serif;
}

/* Main Content - Single Scrollable Page */
.main-content {
    position: relative;
    width: 100%;
}

.section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    scroll-margin-top: 100px;
}

html {
    scroll-behavior: smooth;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 80px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.logo {
    font-family: 'Bitcount', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #1d1d1f;
    cursor: pointer;
    transition: opacity 0.3s;
}

.logo:hover {
    opacity: 0.6;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 80px;
}

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

.nav-links a {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: opacity 0.3s;
    cursor: pointer;
    position: relative;
}

.nav-links a:hover {
    opacity: 0.6;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.login {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
}

.login:hover {
    opacity: 0.6;
}

.signup {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.signup:hover {
    background: #333;
    transform: translateY(-1px);
}

/* Hero Section (Home Page) */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 120px 40px 40px;
}

.card-visual {
    position: relative;
    width: 1000px;
    height: 450px;
    margin-bottom: 50px;
    perspective: 1000px;
    opacity: 0.8;
}

.card {
    position: absolute;
    width: 580px;
    height: 360px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transition: transform 0.6s ease;
    overflow: hidden;
    z-index: 1;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.card-left {
    left: 50px;
    top: 45px;
    transform: rotateY(-15deg) rotateX(5deg);
    background: linear-gradient(135deg, 
        rgba(20, 184, 166, 0.2) 0%, 
        rgba(59, 130, 246, 0.2) 100%);
}

.card-right {
    right: 50px;
    top: 0;
    transform: rotateY(15deg) rotateX(5deg);
    background: linear-gradient(135deg, 
        rgba(236, 72, 153, 0.2) 0%, 
        rgba(168, 85, 247, 0.2) 100%);
}

.card:hover {
    transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
}

h1 {
    font-family: 'Newsreader', serif;
    font-size: 72px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 16px;
    color: #1d1d1f;
    max-width: 900px;
    position: relative;
    z-index: 10;
}

.gradient-text {
    color: #1d1d1f;
}

.subtitle {
    font-size: 28.6px;
    color: #2d2d2f;
    margin-bottom: 32px;
    max-width: 900px;
    line-height: 1.5;
    position: relative;
    z-index: 10;
}

.app-buttons {
    display: flex;
    gap: 16px;
    max-width: 900px;
    position: relative;
    z-index: 10;
}

.cta-secondary {
    text-decoration: none;
}

.cta-primary,
.cta-secondary {
    padding: 18px 42px;
    border-radius: 12px;
    font-size: 19.5px;
    font-weight: 400;
    font-family: 'Newsreader', serif;
    cursor: pointer;
    transition: all 0.3s;
    background: #1d1d1f;
    color: white;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.cta-primary:hover,
.cta-secondary:hover {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.app-store,
.google-play {
    width: 160px;
    height: 48px;
    background: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.app-store::before {
    content: 'Download on the';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #fff;
}

.app-store::after {
    content: 'App Store';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.google-play::before {
    content: 'GET IT ON';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #fff;
}

.google-play::after {
    content: 'Google Play';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.app-store:hover,
.google-play:hover {
    background: #333;
    transform: translateY(-2px);
}

/* Content Pages */
.content-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 160px 40px 80px;
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    min-height: 100vh;
}

.content-page::-webkit-scrollbar {
    width: 8px;
}

.content-page::-webkit-scrollbar-track {
    background: transparent;
}

.content-page::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.content-page::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.content-page h1 {
    font-size: 64px;
    margin-bottom: 16px;
}

.content-page .subtitle {
    margin-bottom: 80px;
}

/* Pricing Page */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    width: 100%;
    max-width: 900px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 24px;
    padding: 24px 32px;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured {
    border: 1px solid #1d1d1f;
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 32px;
    background: #1d1d1f;
    color: white;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 400;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #1d1d1f;
}

.price {
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.currency {
    font-size: 24px;
    font-weight: 600;
    color: #1d1d1f;
}

.amount {
    font-size: 56px;
    font-weight: 700;
    color: #1d1d1f;
}

.amount .decimal {
    font-size: 0.6em;
    font-weight: 400;
    color: #6e6e73;
}

.period {
    font-size: 16px;
    color: #6e6e73;
}

.plan-desc {
    color: #6e6e73;
    margin-bottom: 32px;
    font-size: 20px;
    font-weight: 500;
}

.features-list {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.features-list li {
    padding: 12px 0;
    color: #1d1d1f;
    position: relative;
    padding-left: 28px;
}

.features-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #1d1d1f;
    font-weight: 700;
    font-size: 20px;
}

.plan-btn {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid #1d1d1f;
    background: transparent;
    color: #1d1d1f;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
}

.plan-btn:hover {
    background: #1d1d1f;
    color: white;
    transform: translateY(-2px);
}

.plan-btn.primary {
    background: #1d1d1f;
    border: none;
    color: white;
}

.plan-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Features Page */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    width: 100%;
    max-width: 1200px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.feature-item h3 {
    font-family: 'Newsreader', serif;
    font-size: 24px;
    margin-bottom: 24px;
    color: #1d1d1f;
    text-align: center;
}

.feature-item p {
    color: #6e6e73;
    line-height: 1.6;
    font-size: 16px;
    text-align: left;
}

/* Support Page */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 80px;
}

.support-card {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.support-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.15);
}

.support-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all 0.3s;
}

.support-icon svg {
    width: 28px;
    height: 28px;
    stroke: #1d1d1f;
    transition: all 0.3s;
}

.support-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.support-card p {
    color: #6e6e73;
    line-height: 1.6;
    margin-bottom: 24px;
    font-size: 15px;
}

.support-btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: 2px solid #1d1d1f;
    background: transparent;
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
}

.support-btn:hover {
    background: #1d1d1f;
    color: white;
    transform: translateY(-2px);
}

/* FAQ Section */
.faq-section {
    width: 100%;
    max-width: 800px;
    text-align: left;
    margin-top: 0;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Legal Content Pages (Privacy Policy, Terms of Use) */
.legal-content {
    width: 100%;
    max-width: 900px;
    text-align: left;
    margin-top: 40px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 24px;
    padding: 48px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-content::-webkit-scrollbar {
    width: 8px;
}

.legal-content::-webkit-scrollbar-track {
    background: transparent;
}

.legal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.legal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.legal-content section {
    margin-bottom: 48px;
}

.legal-content section:last-child {
    margin-bottom: 0;
}

.legal-content h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1d1d1f;
    font-family: 'Newsreader', serif;
}

.legal-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #1d1d1f;
    font-family: 'Newsreader', serif;
}

.legal-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.legal-content ul {
    margin-left: 24px;
    margin-bottom: 16px;
    list-style-type: disc;
}

.legal-content li {
    font-size: 16px;
    line-height: 1.8;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.legal-content strong {
    font-weight: 600;
    color: #1d1d1f;
}

.faq-section::-webkit-scrollbar {
    width: 8px;
}

.faq-section::-webkit-scrollbar-track {
    background: transparent;
}

.faq-section::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.faq-section::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 24px 32px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateX(4px);
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.faq-answer {
    color: #6e6e73;
    line-height: 1.6;
    font-size: 15px;
}

/* Gradient Blobs - Hidden for clean UI */
.gradient-blob {
    display: none;
}

/* Responsive */

/* mobile styles (default) - applied to all screens below 769px */
.navbar {
    padding: 16px 20px;
    flex-wrap: wrap;
}

.nav-left {
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.nav-links {
    display: none;
}

.nav-actions {
    gap: 12px;
}

.login {
    font-size: 13px;
}

.signup {
    text-decoration: none;
    padding: 10px 20px;
    font-size: 13px;
}

.logo {
    font-size: 22px;
}

.hero {
    padding: 100px 20px 40px;
}

.hero > div:last-child {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    margin-top: 40px;
    justify-content: center !important;
}

h1 {
    font-size: 38px;
    line-height: 1.2;
    max-width: 100%;
}

.content-page h1 {
    font-size: 32px;
}

.subtitle {
    font-size: 16px;
    max-width: 100%;
    padding: 0 10px;
}

.card-visual {
    width: 100%;
    max-width: 100%;
    height: 280px;
    margin-bottom: 30px;
}

.card {
    width: 240px;
    height: 160px;
}

.card-left {
    left: 5%;
    top: 20px;
    transform: rotateY(-5deg) rotateX(2deg);
}

.card-right {
    right: 5%;
    top: 0;
    transform: rotateY(5deg) rotateX(2deg);
}

.app-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 12px;
    padding: 0 20px;
}

.cta-primary,
.cta-secondary {
    width: 100%;
    max-width: 100%;
    padding: 14px 24px;
    font-size: 16px;
}

.content-page {
    padding: 120px 20px 60px;
}

.pricing-grid,
.features-grid,
.support-grid {
    grid-template-columns: 1fr;
    gap: 24px;
}

.pricing-card,
.feature-item,
.support-card {
    padding: 24px 20px;
}

.plan-desc {
    font-size: 18px;
}

.faq-section {
    max-height: calc(100vh - 250px);
}

.legal-content {
    padding: 32px 24px;
    max-height: calc(100vh - 250px);
}

.legal-content h2 {
    font-size: 24px;
}

.legal-content h3 {
    font-size: 18px;
}

/* Tablet and up: show nav links */
@media (min-width: 769px) {
    .navbar {
        padding: 24px 80px;
        flex-wrap: nowrap;
    }
    
    .nav-left {
        gap: 80px;
        flex: initial;
        min-width: initial;
    }
    
    .nav-links {
        display: flex;
    }
    
    .nav-actions {
        gap: 16px;
    }
    
    .login {
        font-size: 16px;
    }
    
    .signup {
        font-size: 16px;
    }
    
    .logo {
        font-size: 28px;
    }
    
    .hero {
        padding: 120px 80px 60px;
    }
    
    .hero > div:last-child {
        position: absolute;
        bottom: 40px;
        right: 80px;
        justify-content: flex-end;
    }
    
    h1 {
        font-size: 64px;
        max-width: 800px;
    }
    
    .content-page h1 {
        font-size: 56px;
    }
    
    .subtitle {
        font-size: 22px;
        max-width: 600px;
        padding: 0;
    }
    
    .card-visual {
        width: 100%;
        max-width: 800px;
        height: 400px;
        margin-bottom: 0;
    }
    
    .card {
        width: 450px;
        height: 280px;
    }
    
    .card-left {
        left: 20px;
        top: 0;
        transform: rotateY(-10deg) rotateX(5deg);
    }
    
    .card-right {
        right: 20px;
        top: 0;
        transform: rotateY(10deg) rotateX(5deg);
    }
    
    .app-buttons {
        flex-direction: row;
        width: auto;
        max-width: none;
        gap: 16px;
        padding: 0;
    }
    
    .cta-primary,
    .cta-secondary {
        width: auto;
        max-width: none;
        padding: 16px 32px;
        font-size: 18px;
    }
    
    .content-page {
        padding: 160px 80px 80px;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    
    .support-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    
    .pricing-card,
    .feature-item,
    .support-card {
        padding: 32px 40px;
    }
    
    .plan-desc {
        font-size: 20px;
    }
    
    .faq-section {
        max-height: none;
    }
    
    .legal-content {
        padding: 48px 60px;
        max-height: none;
    }
    
    .legal-content h2 {
        font-size: 32px;
    }
    
    .legal-content h3 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 16px;
    }
    
    .nav-left {
        gap: 12px;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-actions {
        gap: 8px;
    }
    
    .login {
        font-size: 12px;
    }
    
    .signup {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .hero {
        padding: 90px 16px 30px;
    }
    
    h1 {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .content-page h1 {
        font-size: 26px;
    }
    
    .subtitle {
        font-size: 14px;
        margin-bottom: 24px;
        line-height: 1.5;
    }
    
    .card-visual {
        width: 100%;
        height: 220px;
        margin-bottom: 24px;
    }
    
    .card {
        width: 180px;
        height: 120px;
    }
    
    .card-left {
        left: 3%;
        top: 15px;
        transform: rotateY(-5deg) rotateX(2deg);
    }
    
    .card-right {
        right: 3%;
        top: 0;
        transform: rotateY(5deg) rotateX(2deg);
    }
    
    .app-buttons {
        gap: 10px;
        padding: 0 16px;
    }
    
    .cta-primary,
    .cta-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .content-page {
        padding: 100px 16px 40px;
    }
    
    .pricing-card,
    .feature-item,
    .support-card {
        padding: 20px 16px;
    }
    
    .pricing-card h3,
    .feature-item h3,
    .support-card h3 {
        font-size: 20px;
    }
    
    .plan-desc {
        font-size: 16px;
    }
    
    .price .amount {
        font-size: 48px;
    }
    
    .features-list li,
    .support-card p,
    .feature-item p {
        font-size: 14px;
    }
    
    .faq-question {
        font-size: 16px;
    }
    
    .faq-answer {
        font-size: 13px;
    }
    
    .faq-item {
        padding: 20px 16px;
    }
    
    .faq-section {
        max-height: calc(100vh - 200px);
    }
    
    .legal-content {
        padding: 24px 16px;
        max-height: calc(100vh - 200px);
    }
    
    .legal-content h2 {
        font-size: 20px;
    }
    
    .legal-content h3 {
        font-size: 16px;
    }
    
    .legal-content p,
    .legal-content li {
        font-size: 14px;
    }
    
    .support-btn,
    .plan-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}