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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #ffffff;
    overflow-x: hidden;
}

/* Ensure anchor jumps account for fixed navbar height */
html {
    scroll-padding-top: calc(72px + env(safe-area-inset-top, 0px));
}

/* Safe area variables */
:root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding-top: var(--safe-top);
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
    padding-bottom: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    padding-left: calc(2rem + var(--safe-left));
    padding-right: calc(2rem + var(--safe-right));
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #5A2D82;
}

.nav-cta {
    color: #5A2D82;
}

.nav-cta::after {
    background: #5A2D82;
}

.nav-cta:hover::after {
    background: #4A2470;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    padding-top: calc(2rem + var(--safe-top));
    padding-bottom: calc(2rem + var(--safe-bottom));
    padding-left: calc(2rem + var(--safe-left));
    padding-right: calc(2rem + var(--safe-right));
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.app-icon {
    margin-bottom: 2rem;
}

.icon-placeholder {
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.highlight {
    background: linear-gradient(135deg, #5A2D82, #6B3494);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #5A2D82, #6B3494);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(90, 45, 130, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.launch-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.launch-icon {
    font-size: 1.2rem;
}

.launch-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.waitlist-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Header with Logo Container */
.header-with-logo {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* App Logo Header */
.app-logo-header {
    width: 162px;
    height: 162px;
    margin-bottom: 0;
    object-fit: contain;
    flex-shrink: 0;
}

/* Simple Section */
.simple-section {
    background: #f8f9fa;
    padding: 8rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Hide Google reCAPTCHA v3 badge while keeping legal notice elsewhere */
.grecaptcha-badge {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.simple-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.simple-content {
    padding-right: 2rem;
}

.simple-title {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 0;
    color: #333;
}

.highlight-purple {
    color: #5A2D82;
    font-weight: 600;
}

.simple-description {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.btn-purple {
    background: #5A2D82;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-purple:hover {
    background: #4A2470;
    transform: translateY(-1px);
}

.simple-phone {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #000;
    border-radius: 40px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 32px;
    padding: 1rem 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.phone-brand {
    font-weight: 600;
    color: #333;
}

.phone-cta {
    color: #5A2D82;
    font-size: 0.9rem;
    font-weight: 500;
}

.today-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.tasks-remaining {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    flex-shrink: 0;
}

.task-checkbox.checked {
    background: #5A2D82;
    border-color: #5A2D82;
    position: relative;
}

.task-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.task-item.active .task-text {
    color: #5A2D82;
    font-weight: 500;
}

.task-text {
    color: #333;
    font-size: 0.9rem;
}

/* Features Section */
.features-section {
    background: white;
    padding: 8rem 2rem;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.features-title {
    font-size: 3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.features-subtitle {
    font-size: 1.25rem;
    color: #666;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card {
    text-align: center;
}

.feature-phone {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.feature-phone .phone-mockup {
    width: 250px;
    height: 500px;
    background: #000;
    border-radius: 35px;
    padding: 6px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.feature-phone .phone-screen {
    padding: 1rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.focus-content {
    text-align: center;
}

.focus-timer {
    font-size: 2.5rem;
    font-weight: 300;
    color: #333;
    margin-bottom: 1rem;
}

.focus-label {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.focus-circle {
    display: flex;
    justify-content: center;
}

.progress-content {
    width: 100%;
}

.progress-item {
    margin-bottom: 2rem;
}

.progress-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.progress-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: #5A2D82;
    margin-bottom: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5A2D82, #6B3494);
    border-radius: 4px;
    transition: width 1.5s ease;
}

.progress-fill[data-width="82%"] {
    width: 0%;
}

.progress-fill[data-width="64%"] {
    width: 0%;
}

.insights-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.insight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
}

.insight-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.insight-main {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.4;
}

.feature-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #666;
    font-size: 1rem;
}

/* Coming Soon Section */
.coming-soon-section {
    background: linear-gradient(135deg, #5A2D82, #6B3494);
    color: white;
    padding: 6rem 2rem;
    padding-left: calc(2rem + var(--safe-left));
    padding-right: calc(2rem + var(--safe-right));
    padding-bottom: calc(6rem + var(--safe-bottom));
    text-align: center;
}

.coming-soon-container {
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.coming-soon-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Referral Rewards Section */
.referral-rewards {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    margin: 3rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rewards-header {
    margin-bottom: 2rem;
}

.rewards-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.rewards-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

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

.reward-tier {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.reward-tier:hover {
    transform: translateY(-5px);
    background: rgba(90, 45, 130, 0.15);
    border-color: rgba(90, 45, 130, 0.4);
}

.tier-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tier-count {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.tier-reward {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 500;
}

.rewards-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.rewards-note p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
    font-style: italic;
}

.btn-waitlist {
    background: white;
    color: #5A2D82;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: var(--safe-bottom);
}

.btn-waitlist:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .simple-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .simple-content {
        padding-right: 0;
    }
    
    .header-with-logo {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .app-logo-header {
        width: 96px;
        height: 96px;
    }

    .simple-title {
        font-size: 2.5rem;
    }
    
    .features-section {
        padding: 4rem 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-title {
        font-size: 2rem;
    }
    
    .coming-soon-title {
        font-size: 2rem;
    }
    
    .rewards-tiers {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .referral-rewards {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .rewards-title {
        font-size: 1.5rem;
    }
    
    .phone-mockup {
        width: 250px !important;
        height: 500px !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .simple-title {
        font-size: 2rem;
    }
    
    .phone-mockup {
        width: 200px !important;
        height: 400px !important;
    }
    
    .feature-phone .phone-mockup {
        width: 200px !important;
        height: 400px !important;
    }
    
    .features-section {
        padding: 3rem 1rem;
    }
    
    .feature-phone .phone-screen {
        padding: 1rem;
    }
    
    /* Prevent image cropping inside phone screens on very small devices */
    .phone-screen img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    .features-subtitle {
        font-size: 1rem;
    }
}

/* Global responsive images */
img {
    max-width: 100%;
    height: auto;
}
/* Phone screen image sizing */
.phone-image,
.phone-screen img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}
/* Responsive fixes */
body { overflow-x: visible; }
.features-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.phone-mockup { width: 100%; max-width: 300px; height: auto; aspect-ratio: 1 / 2; }
.feature-phone .phone-mockup { width: 100%; max-width: 250px; height: auto; aspect-ratio: 1 / 2; }
