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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #F5F5F7;
    color: #1A1A1A;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, .logo, .btn, .habit-card h3 {
    font-family: 'Fredoka', 'Inter', system-ui, sans-serif;
    font-weight: 600;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(245, 245, 247, 0.92);
    backdrop-filter: blur(12px);
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, #FF9BD2, #8FD3F4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #6B6B6B;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 15px;
}

.nav-links a:hover {
    color: #FF9BD2;
    text-decoration: none;
}

.btn-download {
    background: linear-gradient(135deg, #FF9BD2, #8FD3F4);
    color: white !important;
    padding: 10px 28px;
    border-radius: 100px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(255, 155, 210, 0.25);
}

.btn-download:hover {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(255, 155, 210, 0.3);
    color: white;
    text-decoration: none;
}

/* Hero Section */
.hero {
    padding: 140px 40px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    gap: 60px;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    min-width: 280px;
}

.hero-badge {
    background: rgba(255, 155, 210, 0.15);
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    color: #FF5F6D;
    margin-bottom: 24px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FF9BD2, #8FD3F4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: 18px;
    color: #6B6B6B;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #A8FF78, #78FFD6);
    color: #1A1A1A;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    font-family: 'Fredoka', sans-serif;
    box-shadow: 0 4px 14px rgba(168, 255, 120, 0.3);
}

.btn-primary:hover {
    transform: scale(0.96);
    box-shadow: 0 2px 10px rgba(168, 255, 120, 0.4);
    text-decoration: none;
}

.btn-secondary {
    background: linear-gradient(135deg, #FFC371, #FF5F6D);
    color: white;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    font-family: 'Fredoka', sans-serif;
    box-shadow: 0 4px 12px rgba(255, 95, 109, 0.25);
}

.btn-secondary:hover {
    transform: scale(0.96);
    box-shadow: 0 2px 8px rgba(255, 95, 109, 0.3);
    text-decoration: none;
}

.hero-image {
    flex: 1;
    min-width: 280px;
    background: linear-gradient(135deg, #FF9BD2, #8FD3F4);
    border-radius: 32px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.1);
}

.hero-image svg {
    width: 100%;
    max-width: 320px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1));
}

/* Habits Section */
.habits {
    background: #F5F5F7;
    padding: 80px 40px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(135deg, #FF9BD2, #8FD3F4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-subtitle {
    text-align: center;
    color: #6B6B6B;
    margin-bottom: 56px;
    font-size: 18px;
}

.habits-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.habit-card {
    background: linear-gradient(135deg, rgba(255, 155, 210, 0.08), rgba(143, 211, 244, 0.08));
    backdrop-filter: blur(2px);
    padding: 24px;
    border-radius: 28px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 155, 210, 0.2);
    box-shadow: 0 8px 20px rgba(0,0,0,0.02);
}

.habit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(255, 155, 210, 0.2);
    border-color: rgba(255, 155, 210, 0.4);
}

.habit-icon {
    font-size: 38px;
    margin-bottom: 18px;
}

.habit-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #FF9BD2, #8FD3F4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.habit-card p {
    color: #6B6B6B;
    font-size: 14px;
    line-height: 1.4;
}

/* Features Section */
.features {
    padding: 80px 40px;
    background: linear-gradient(135deg, rgba(255, 155, 210, 0.05), rgba(143, 211, 244, 0.05));
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
    border-radius: 28px;
    transition: all 0.2s;
}

.feature:hover {
    transform: translateY(-4px);
    background: white;
    box-shadow: 0 12px 28px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 52px;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 22px;
    margin-bottom: 12px;
    font-family: 'Fredoka', sans-serif;
    color: #1A1A1A;
}

.feature p {
    color: #6B6B6B;
    font-size: 15px;
}

/* Stats Section */
.stats {
    background: linear-gradient(135deg, #FF9BD2, #8FD3F4);
    padding: 80px 40px;
    text-align: center;
    border-radius: 48px 48px 0 0;
    margin-top: 20px;
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item h2 {
    font-size: 56px;
    color: white;
    font-weight: 800;
    font-family: 'Fredoka', sans-serif;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-item p {
    color: rgba(255,255,255,0.9);
    font-size: 16px;
    margin-top: 8px;
    font-weight: 500;
}

/* CTA Section */
.cta {
    padding: 80px 40px 90px;
    text-align: center;
    background: #F5F5F7;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 16px;
    font-family: 'Fredoka', sans-serif;
    background: linear-gradient(135deg, #FF9BD2, #8FD3F4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta p {
    color: #6B6B6B;
    margin-bottom: 36px;
    font-size: 18px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn-primary {
    font-size: 18px;
    padding: 16px 42px;
    display: inline-block;
}

/* Footer */
.footer {
    background: #1A1A1A;
    color: #CCCCCC;
    padding: 48px 40px 32px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, #FF9BD2, #8FD3F4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'Fredoka', sans-serif;
}

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

.footer-links a {
    color: #CCCCCC;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #FF9BD2;
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: #8F8F8F;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Content Page Styles (Privacy Policy & Terms of Service) */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 40px 80px;
}

.content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #FF9BD2, #8FD3F4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.last-updated {
    color: #6B6B6B;
    font-style: italic;
    margin-bottom: 32px;
}

.highlight {
    background: linear-gradient(135deg, rgba(255, 155, 210, 0.1), rgba(143, 211, 244, 0.1));
    padding: 20px 24px;
    border-radius: 16px;
    border-left: 4px solid #FF9BD2;
    margin: 24px 0;
    backdrop-filter: blur(4px);
}

.highlight strong {
    color: #E91E8C;
}

h2 {
    color: #1A1A1A;
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 16px;
}

p {
    color: #4A4A4A;
    margin-bottom: 16px;
}

ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

li {
    color: #4A4A4A;
    margin: 8px 0;
}

.important {
    font-weight: bold;
    color: #E91E8C;
}

a {
    color: #E91E8C;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Blog Download Banner */
.blog-download-cta {
    align-items: center;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 155, 210, 0.55), transparent 24%),
        radial-gradient(circle at 18% 82%, rgba(143, 211, 244, 0.42), transparent 28%),
        linear-gradient(135deg, #171733 0%, #27204a 46%, #102f41 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(16, 20, 48, 0.28);
    display: flex;
    gap: 34px;
    justify-content: space-between;
    margin: 52px 0 8px;
    min-height: 260px;
    overflow: hidden;
    padding: 34px clamp(24px, 4vw, 52px);
    position: relative;
}

.blog-download-cta::before {
    animation: blogCtaSweep 6s ease-in-out infinite;
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.28) 50%, transparent 100%);
    content: "";
    height: 180%;
    left: -40%;
    position: absolute;
    top: -40%;
    transform: rotate(14deg);
    width: 28%;
}

.blog-download-cta::after {
    background:
        linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
    background-size: 34px 34px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(90deg, rgba(0,0,0,0.25), rgba(0,0,0,0.85));
    pointer-events: none;
    position: absolute;
}

.blog-download-cta-copy {
    max-width: 570px;
    position: relative;
    z-index: 1;
}

.blog-download-cta-kicker {
    color: #ffd1e8;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.blog-download-cta h2 {
    color: #ffffff;
    font-size: clamp(32px, 5vw, 58px);
    line-height: 0.98;
    margin: 0 0 14px;
    max-width: 620px;
}

.blog-download-cta p {
    color: rgba(255,255,255,0.78);
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
}

.blog-download-cta-button {
    animation: blogCtaPulse 2.4s ease-in-out infinite;
    box-shadow: 0 14px 32px rgba(255, 155, 210, 0.35);
    display: inline-block;
    font-size: 16px;
    font-weight: 700;
    margin-top: 22px;
    padding: 13px 34px;
    position: relative;
    text-align: center;
    white-space: nowrap;
    z-index: 1;
}

.blog-download-cta-visual {
    align-items: center;
    align-self: stretch;
    display: flex;
    flex: 0 0 min(360px, 38%);
    justify-content: center;
    min-height: 210px;
    position: relative;
    z-index: 1;
}

.blog-download-orbit {
    animation: blogCtaFloat 5s ease-in-out infinite;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    position: absolute;
}

.blog-download-orbit-one {
    height: 210px;
    width: 210px;
}

.blog-download-orbit-two {
    animation-delay: -1.7s;
    height: 150px;
    transform: rotate(-18deg);
    width: 300px;
}

.blog-download-phone {
    animation: blogPhoneLift 4.6s ease-in-out infinite;
    background: linear-gradient(180deg, #fff9fd 0%, #eaf7ff 100%);
    border: 8px solid #101224;
    border-radius: 30px;
    box-shadow: 0 26px 54px rgba(0,0,0,0.34), inset 0 0 0 1px rgba(255,255,255,0.5);
    min-height: 214px;
    padding: 22px 18px 18px;
    position: relative;
    transform: rotate(5deg);
    width: 154px;
}

.blog-download-phone-bar {
    background: #16182d;
    border-radius: 999px;
    height: 5px;
    left: 50%;
    position: absolute;
    top: 12px;
    transform: translateX(-50%);
    width: 46px;
}

.blog-download-habit-card,
.blog-download-streak {
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(16, 18, 36, 0.12);
    display: block;
    padding: 13px;
}

.blog-download-habit-card {
    background: linear-gradient(135deg, #ff9bd2, #8fd3f4);
    color: white;
    margin-top: 8px;
}

.blog-download-streak {
    background: white;
    color: #20233f;
    margin-top: 12px;
}

.blog-download-habit-card span,
.blog-download-streak span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.76;
}

.blog-download-habit-card strong,
.blog-download-streak strong {
    display: block;
    font-size: 17px;
    line-height: 1.15;
    margin-top: 5px;
}

.blog-download-habit-card em {
    background: rgba(255,255,255,0.22);
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    margin-top: 12px;
    padding: 4px 9px;
}

@keyframes blogCtaSweep {
    0%, 42% {
        left: -40%;
    }
    72%, 100% {
        left: 118%;
    }
}

@keyframes blogCtaPulse {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.03);
    }
}

@keyframes blogCtaFloat {
    0%, 100% {
        opacity: 0.62;
        transform: translateY(0) rotate(-8deg);
    }
    50% {
        opacity: 0.95;
        transform: translateY(-9px) rotate(7deg);
    }
}

@keyframes blogPhoneLift {
    0%, 100% {
        transform: translateY(0) rotate(5deg);
    }
    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

/* Progress Bar (Hero Demo) */
.progress-demo {
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.05);
    border-radius: 20px;
    overflow: hidden;
    margin-top: 16px;
}

.progress-fill {
    width: 68%;
    height: 100%;
    background: linear-gradient(90deg, #A8FF78, #78FFD6);
    border-radius: 20px;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { opacity: 0.9; }
    50% { opacity: 1; }
    100% { opacity: 0.9; }
}

/* Scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 14px 20px;
    }
    .nav-links {
        display: none;
    }
    .hero {
        padding: 110px 20px 60px;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 38px;
    }
    .hero-buttons {
        justify-content: center;
    }
    .section-title {
        font-size: 28px;
    }
    .stats-container {
        justify-content: center;
    }
    .stat-item h2 {
        font-size: 44px;
    }
    .cta h2 {
        font-size: 28px;
    }
    .content {
        padding: 120px 20px 60px;
    }
    .content h1 {
        font-size: 32px;
    }
    .blog-download-cta {
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
    }
    .blog-download-cta-button {
        width: 100%;
    }
    .blog-download-cta-visual {
        align-self: center;
        flex-basis: auto;
        min-height: 190px;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-download-cta::before,
    .blog-download-cta-button,
    .blog-download-orbit,
    .blog-download-phone {
        animation: none;
    }
}
