/* Modern CSS Reset and Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-primary: #7c3aed;
    --color-primary-light: #a78bfa;
    --color-primary-dark: #6d28d9;
    --color-secondary: #10b981;
    --color-secondary-light: #6ee7b7;
    --color-secondary-dark: #059669;

    --color-background: #ffffff;
    --color-surface: #fafafa;
    --color-text: #0f0f0f;
    --color-text-secondary: #525252;
    --color-text-muted: #a3a3a3;
    --color-border: #e5e5e5;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #10b981 100%);
    --gradient-purple: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #6ee7b7 100%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;
    --font-size-6xl: 4.5rem;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--font-size-xl);
    color: var(--color-text);
}

/* Logo Image Styling - Fix massive logo issue */
.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.footer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: var(--space-2xl);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--gradient-purple);
    top: -200px;
    right: -200px;
    animation: float 20s infinite ease-in-out;
}

.gradient-orb-2 {
    width: 800px;
    height: 800px;
    background: var(--gradient-green);
    bottom: -400px;
    left: -300px;
    animation: float 25s infinite ease-in-out reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: clamp(var(--font-size-4xl), 8vw, var(--font-size-6xl));
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}

.hero-description {
    font-size: var(--font-size-lg);
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: calc(var(--space-xl) * 1.5);
    max-width: 600px;
}

.hero-statement {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: calc(var(--space-2xl) * 1.25);
}

.hero-badges {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.badge svg {
    width: 16px;
    height: 16px;
    color: var(--color-primary);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--font-size-base);
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-surface);
    border-color: var(--color-text);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: var(--font-size-lg);
}

/* Analytics Screen Styles */
.analytics-screen {
    background: #1a1a1f;
    color: white;
    padding: 0 !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.analytics-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.week-section {
    padding: 20px;
}

.week-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.week-dates {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.week-chart-container {
    background: rgba(255, 255, 255, 0.05);
    margin: 0 20px;
    padding: 20px;
    border-radius: 12px;
}

.week-average {
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.time-chart {
    position: relative;
}

.chart-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 120px;
    position: relative;
}

.day-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    min-height: 120px;
}

.day-col .infinity {
    position: absolute;
    top: 0;
    font-size: 14px;
    font-weight: 600;
}

.day-col .blocks {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
}

.create-block {
    width: 25px;
    background: #a78bfa;
    border-radius: 3px;
}

.day-col .day {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.creating {
    background: #a78bfa;
}

.dot.consuming {
    background: #60a5fa;
}

.activity-section {
    padding: 20px;
}

.activity-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.activity-period {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.calendar-grid {
    margin-top: 15px;
}

.weekdays {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
}

.calendar-squares {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.sq {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.sq.active {
    background: #7c3aed;
}

/* Phone Mockup */
.hero-visual {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.phone-frame {
    width: 320px;
    height: 640px;
    background: linear-gradient(145deg, #1f1f1f, #2a2a2a);
    border-radius: 40px;
    padding: 10px;
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.3),
        0 30px 60px -30px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    position: relative;
    transform: perspective(1000px) rotateY(-10deg);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: #ffffff;
    position: relative;
}

.app-time {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.app-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #000;
    border-radius: 0 0 15px 15px;
}

.app-status {
    display: flex;
    gap: 4px;
    align-items: center;
}

.app-status svg {
    height: 11px;
    color: #000;
}

.app-content {
    padding: 20px;
}

.stats-card {
    background: linear-gradient(145deg, #f9fafb, #ffffff);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stats-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #0f0f0f;
}

.balance-visual {
    margin-bottom: 16px;
}

.balance-bar {
    display: flex;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
}

.balance-create {
    background: var(--gradient-purple);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.balance-consume {
    background: var(--gradient-green);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.balance-label {
    font-size: 10px;
    opacity: 0.9;
}

.balance-value {
    font-size: 12px;
    font-weight: 600;
}

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

.stat {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 10px;
    color: #737373;
    margin-bottom: 2px;
}

.stat-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #0f0f0f;
}

.timer-section {
    margin-top: 20px;
}

.timer-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.timer-btn {
    padding: 16px;
    border-radius: 16px;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.timer-btn svg {
    width: 24px;
    height: 24px;
}

.create-btn {
    background: var(--gradient-purple);
    color: white;
}

.consume-btn {
    background: var(--gradient-green);
    color: white;
}

.app-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 20px;
    background: #1a1a1f;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px;
    opacity: 0.4;
    transition: opacity var(--transition-fast);
}

.nav-item span {
    font-size: 10px;
    font-weight: 500;
    color: white;
}

.nav-item.active {
    opacity: 1;
}

.nav-item.active svg {
    fill: #a78bfa;
}

.nav-item svg {
    width: 24px;
    height: 24px;
}

/* Features Section */
.features {
    padding: var(--space-2xl) 0;
    background: var(--color-surface);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.feature-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-icon {
    margin-bottom: var(--space-lg);
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

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

/* Privacy Section */
.privacy {
    padding: var(--space-2xl) 0;
}

.privacy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.privacy-description {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}

.privacy-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.privacy-item {
    display: flex;
    gap: var(--space-md);
}

.privacy-item svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.privacy-item h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 4px;
}

.privacy-item p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.privacy-card {
    background: linear-gradient(145deg, var(--color-surface), white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
}

.lock-icon {
    margin-bottom: var(--space-lg);
}

.privacy-card h3 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.privacy-card p {
    color: var(--color-text-secondary);
}

/* CTA Section */
.cta {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--color-surface) 0%, white 100%);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(var(--font-size-3xl), 5vw, var(--font-size-5xl));
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.cta-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.cta-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.cta-note {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

/* Footer */
.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 700;
    font-size: var(--font-size-lg);
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        transform: none;
    }

    .phone-frame {
        transform: perspective(1000px) rotateY(0);
        width: 280px;
        height: 560px;
    }

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

    .privacy-content {
        grid-template-columns: 1fr;
    }

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

    .desktop-only {
        display: none;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-6xl: 3rem;
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .hero-badges {
        flex-direction: column;
    }

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

    .footer-links {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}