:root {
    --bg-main: #F4F8FB;
    --text-main: #1A1A1A;
    --text-muted: #64748B;
    --blue-primary: #3B82F6;
    --blue-primary-dark: #2563EB;
    --green-primary: #4ADE80;
    --orange-primary: #F97316;
    --yellow-primary: #FBBF24;
    --purple-primary: #8B5CF6;
    --pink-primary: #EC4899;
    --white: #FFFFFF;
    --card-shadow: 0 20px 40px rgba(0,0,0,0.06);
    --hover-shadow: 0 30px 60px rgba(0,0,0,0.1);
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

/* Background Clouds */
.clouds-bg {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1700px;
    background: linear-gradient(180deg, #E0F2FE 0%, #F4F8FB 100%);
    z-index: -1;
    overflow: hidden;
}



.hero-doodles {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: -1;
}

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

/* Utilities */
.text-blue { color: var(--blue-primary); }
.text-green { color: var(--green-primary); }
.text-orange { color: var(--orange-primary); }
.text-yellow { color: var(--yellow-primary); }
.text-purple { color: var(--purple-primary); }
.text-pink { color: var(--pink-primary); }

.bg-blue { background-color: var(--blue-primary); color: white; }
.bg-green { background-color: var(--green-primary); color: white; }
.bg-yellow { background-color: var(--yellow-primary); color: white; }
.bg-purple { background-color: var(--purple-primary); color: white; }
.bg-green-light { background-color: #DCFCE7; }
.bg-purple-light { background-color: #F3E8FF; }
.bg-orange-light { background-color: #FFEDD5; }
.bg-blue-light { background-color: #DBEAFE; }
.bg-pink-light { background-color: #FCE7F3; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-primary {
    background-color: var(--blue-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}
.btn-primary:hover {
    background-color: var(--blue-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}
.btn-small {
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Navigation */
.navbar {
    padding: 24px 0;
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.25rem;
}
.logo-img {
    width: 40px; height: 40px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.nav-links {
    display: flex;
    gap: 32px;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--blue-primary);
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 24px 120px;
    min-height: 80vh;
}
.hero-content {
    flex: 1;
    max-width: 500px;
}
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.hero-desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Store Badges */
.app-store-badges {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}
.store-badge {
    display: flex;
    align-items: center;
    background: #000;
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    gap: 12px;
    transition: transform 0.2s;
}
.store-badge:hover {
    transform: translateY(-2px);
}
.store-badge i {
    font-size: 28px;
}
.store-badge .badge-text {
    display: flex;
    flex-direction: column;
}
.store-badge .small {
    font-size: 0.65rem;
    line-height: 1;
}
.store-badge .large {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
}

/* Reviews Summary */
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 12px;
}
.stars {
    color: var(--yellow-primary);
    font-size: 1.1rem;
    display: flex;
    gap: 4px;
}
.rating-score {
    font-weight: 700;
    font-size: 1.1rem;
}
.rating-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Hero Visual / Phone Mockup */
.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.phone-mockup {
    width: 384px;
    height: 780px;
    background: #111;
    border-radius: 44px;
    padding: 12px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.2), inset 0 0 0 2px #333;
    position: relative;
    z-index: 10;
    transform: rotate(5deg) translateY(-20px);
}
.phone-screen {
    background: linear-gradient(180deg, #F0F7FF 0%, #FFFFFF 100%);
    width: 100%;
    height: 100%;
    border-radius: 34px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}
.phone-header {
    display: flex;
    justify-content: center;
    padding: 14px 20px 0;
    position: relative;
}
.notch {
    position: absolute;
    top: 0;
    width: 120px;
    height: 24px;
    background: #111;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}
.status-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}
.icons {
    display: flex;
    gap: 4px;
}

/* App Screenshot */
.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Elements */
.floating { animation: float 6s ease-in-out infinite; }
.floating-delay { animation: float 6s ease-in-out 3s infinite; }
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.mascot {
    position: absolute;
    width: 160px;
    height: 160px;
    object-fit: contain;
    z-index: 20;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
}
.star-mascot { top: 10%; left: -15%; }
.purple-mascot { bottom: 15%; right: -25%; width: 140px; height: 140px; }
.green-mascot { bottom: -15%; right: -15%; width: 180px; height: 180px; }

.floating-card {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    z-index: 30;
}
.streak-card {
    top: 20%; right: -15%;
    width: 180px;
}
.streak-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.streak-header i { font-size: 2rem; }
.streak-header h3 { font-size: 1.5rem; line-height: 1; }
.streak-header p { font-size: 0.75rem; color: var(--text-muted); }
.mini-heatmap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}
.hm-row { display: flex; gap: 4px; }
.hm-cell { width: 14px; height: 14px; border-radius: 3px; background: #E2E8F0; }
.hm-cell.active { background: var(--green-primary); }
.streak-footer { font-size: 0.8rem; font-weight: 600; text-align: center; }

.ai-coach-card {
    bottom: 30%; right: -25%;
    width: 220px;
    padding: 16px;
}
.ai-coach-card h4 { font-size: 0.9rem; margin-bottom: 6px; }
.ai-coach-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

/* Features Section */
.features-section {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 80px 24px;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--card-shadow);
    margin-bottom: 120px;
    position: relative;
    z-index: 10;
}
.feature-card {
    flex: 1;
    text-align: center;
}
.feature-icon {
    width: 64px; height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
}
.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Consistency Section */
.consistency-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 24px 120px;
}
.consistency-text {
    flex: 1;
    max-width: 400px;
    position: relative;
}
.tag-blue {
    color: var(--blue-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: inline-block;
}
.consistency-text h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}
.consistency-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.hand-arrow {
    position: absolute;
    right: -20px;
    bottom: -40px;
}
.consistency-visual {
    flex: 1.2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}
.glass-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 32px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(255,255,255,0.5);
    z-index: 10;
}
.main-heatmap-card {
    width: 400px;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.habit-icon-group {
    display: flex;
    align-items: center;
    gap: 16px;
}
.habit-title-wrapper h3 { font-size: 1.2rem; margin-bottom: 4px; }
.habit-title-wrapper p { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.habit-status-badge {
    background: var(--green-light);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 800;
}
.habit-status-badge span { color: var(--green-primary); text-transform: uppercase; letter-spacing: 0.5px; }

.heatmap-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.heatmap-section-title span:first-child { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.premium-grid .hm-cell { width: 38px; height: 38px; border-radius: 2px; transition: transform 0.2s; }
.premium-grid .hm-cell:hover { transform: scale(1.1); }
.lvl-0 { background: #F1F5F9; }
.lvl-1 { background: #BBF7D0; }
.lvl-2 { background: #86EFAC; }
.lvl-3 { background: #4ADE80; }
.lvl-4 { background: #22C55E; box-shadow: 0 4px 10px rgba(34, 197, 94, 0.2); }

.fade-3 { opacity: 0.4; }
.fade-2 { opacity: 0.6; }
.fade-1 { opacity: 0.8; }

.heatmap-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}
.active-day {
    color: var(--blue-primary);
    background: var(--blue-light);
    border-radius: 6px;
    padding: 2px 0;
}
.best-streak-card {
    top: -5%; left: 0;
    text-align: center;
    width: 140px;
}
.trophy-icon {
    color: var(--yellow-primary);
    font-size: 2rem;
    margin-bottom: 8px;
}
.goals-card {
    bottom: -5%; right: 0;
    text-align: center;
    width: 140px;
}
.target-icon {
    color: var(--pink-primary);
    font-size: 2rem;
    margin-bottom: 8px;
}
.goals-card h2 { font-size: 2rem; margin: 4px 0; }

/* Reviews Section */
.reviews-section {
    padding: 80px 24px 120px;
}
.section-title-center {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
}
.reviews-grid {
    display: flex;
    gap: 24px;
}
.review-card {
    flex: 1;
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 32px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.3s;
}
.review-card.highlight {
    transform: scale(1.05);
    border: 2px solid var(--blue-primary);
}
.review-text {
    font-size: 1.05rem;
    line-height: 1.6;
    font-style: italic;
    color: var(--text-main);
    flex: 1;
}
.reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
}
.avatar {
    width: 48px; height: 48px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}
.name {
    font-weight: 700;
}

/* FAQ Section */
.faq-section {
    padding: 0 24px 120px;
    max-width: 800px;
    margin: 0 auto;
}
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item summary {
    padding: 24px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--blue-primary);
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
    content: '−';
}
.faq-content {
    padding: 0 24px 24px;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CTA Section */
.cta-section {
    padding: 0 24px 80px;
}
.cta-banner {
    background: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
    border-radius: var(--border-radius-xl);
    padding: 60px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.3);
}
.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}
.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}
.cta-badges .store-badge.dark {
    background: white;
    color: black;
}

/* Footer */
.footer {
    padding: 80px 24px 40px;
    border-top: 1px solid #E2E8F0;
}
.footer-links {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #E2E8F0;
}
.link-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: 1px;
}
.link-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.2s;
}
.link-col a:hover {
    color: var(--blue-primary);
}
.social-icons {
    display: flex;
    gap: 16px;
}
.social-icons a {
    font-size: 1.2rem;
}
.footer-bottom {
    margin-top: 40px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .clouds-bg { height: 2000px; }
    .hero-doodles { opacity: 0.5; }
    .hero { flex-direction: column; text-align: center; gap: 60px; padding-top: 40px; }
    .hero-content { max-width: 100%; }
    .app-store-badges { justify-content: center; }
    .reviews-summary { justify-content: center; }
    .features-section { flex-wrap: wrap; }
    .feature-card { min-width: 250px; }
    .consistency-section { flex-direction: column; gap: 60px; text-align: center; }
    .consistency-text { max-width: 100%; }
    .hand-arrow { display: none; }
}

@media (max-width: 768px) {
    .clouds-bg { height: 2200px; }
    .hero-doodles { opacity: 0.25; }
    .reviews-grid { flex-direction: column; }
    .review-card.highlight { transform: none; }
    .cta-banner { flex-direction: column; text-align: center; gap: 40px; padding: 40px 24px; }
    .nav-links { display: none; }
    .hero-title { font-size: 3rem; }
    .footer-links { flex-wrap: wrap; gap: 40px; }
    .floating-card { transform: scale(0.8); }
    .streak-card { right: -50px; }
    .ai-coach-card { right: -50px; }
}
