/* Style settings for DayFlow Premium Landing Page */
:root {
    --bg-dark: #F8FAFC; /* RawBackgroundLight from Android app theme */
    --bg-surface: #FFFFFF; /* RawSurfaceLight from Android app theme */
    --primary: #6366F1; /* BluePrimary from Android app theme */
    --primary-hover: #4F46E5; /* BluePrimaryDark from Android app theme */
    --primary-rgb: 99, 102, 241;
    --secondary: #8B5CF6; /* PurpleSecondary from Android app theme */
    --secondary-hover: #7C3AED;
    --secondary-rgb: 139, 92, 246;
    --teal-accent: #06B6D4; /* AccentTeal from Android app theme */
    --teal-accent-rgb: 6, 182, 212;
    --blue-glow: #6366F1;
    --green-glow: #06B6D4;
    --text-main: #0F172A; /* RawTextPrimaryLight from Android app theme */
    --text-sub: #64748B; /* RawTextSecondaryLight from Android app theme */
    --glass-bg: rgba(255, 255, 255, 0.7); /* Translucent pure white glass cards */
    --glass-border: rgba(99, 102, 241, 0.08); /* Indigo tinted border outline */
    --glass-shadow: rgba(99, 102, 241, 0.06); /* Extremely clean light theme shadow */
    --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Blobs */
.blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.06;
    z-index: -1;
    pointer-events: none;
}

.blob-1 {
    background: var(--primary);
    top: -100px;
    left: -200px;
    animation: floatBlob 20s infinite alternate;
}

.blob-2 {
    background: var(--secondary);
    top: 500px;
    right: -200px;
    animation: floatBlob 25s infinite alternate-reverse;
}

.blob-3 {
    background: var(--blue-glow);
    bottom: 100px;
    left: 20%;
    animation: floatBlob 30s infinite alternate;
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 50px) scale(1.15); }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 6%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulseIcon 3s infinite;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

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

.nav-links a {
    color: var(--text-sub);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-main);
}

/* Buttons Styling */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(var(--primary-rgb), 0.4);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
    padding: 180px 8% 100px;
    min-height: 100vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 20px;
    background: linear-gradient(to right, #0F172A, #334155);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-sub);
    margin-bottom: 36px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    width: 100%;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 16px 28px;
    border-radius: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 12px;
    color: var(--text-sub);
}

.stat-divider {
    width: 1px;
    height: 35px;
    background: var(--glass-border);
}

/* Hero Phone Mockup */
.hero-mockup-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-container {
    background: #F8FAFC;
    border: 12px solid #0F172A;
    border-radius: 48px;
    width: 320px;
    height: 640px;
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.08);
    position: relative;
    overflow: hidden;
    animation: floatPhone 6s ease-in-out infinite;
}

@keyframes floatPhone {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px 4px;
    font-size: 11px;
    font-weight: bold;
    color: var(--text-main);
    background: var(--bg-surface);
}

.status-icons {
    display: flex;
    gap: 6px;
}

.app-screen-content {
    background-color: var(--bg-surface);
    height: calc(100% - 32px);
    padding: 12px 18px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.app-sub {
    font-size: 11px;
    color: var(--text-sub);
    font-weight: 600;
}

.app-title {
    font-size: 16px;
    font-weight: 800;
}

.app-header-icons {
    display: flex;
    gap: 12px;
    color: var(--text-sub);
    font-size: 12px;
}

.app-card {
    background: #FFFFFF;
    border: 1px solid rgba(99, 102, 241, 0.08);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.03);
}

.progress-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.circle-progress {
    position: relative;
    width: 48px;
    height: 48px;
}

.svg-circle {
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: #E2E8F0;
    stroke-width: 3.5;
}

.circle-fg {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3.5;
    stroke-linecap: round;
}

.percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 800;
}

.progress-details .card-title {
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 2px;
}

.progress-details .card-desc {
    font-size: 10px;
    color: var(--text-sub);
}

.app-categories {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    overflow-x: auto;
}

.app-categories::-webkit-scrollbar {
    display: none;
}

.app-categories .badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
    background: #EEF2F6;
    border: 1px solid #E2E8F0;
    color: var(--text-sub);
}

.app-categories .badge.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.app-tasks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    border: 1px solid rgba(99, 102, 241, 0.08);
    padding: 10px;
    border-radius: 12px;
}

.app-task-item.completed {
    opacity: 0.6;
}

.app-task-item .chk {
    color: var(--primary);
    font-size: 13px;
}

.app-task-item .task-name {
    font-size: 11px;
    font-weight: 600;
    display: block;
}

.app-task-item .task-cat {
    font-size: 8px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 2px;
}

.task-cat.personal {
    background: rgba(255, 101, 132, 0.15);
    color: var(--secondary);
}

.task-cat.work {
    background: rgba(14, 165, 233, 0.15);
    color: var(--blue-glow);
}

.task-cat.study {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green-glow);
}

.floating-action-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 8px 16px rgba(var(--primary-rgb), 0.4);
}

/* Floating Cards on Desktop */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 14px 18px;
    border-radius: 18px;
    box-shadow: 0 20px 40px var(--glass-shadow);
}

.metric-card {
    top: 50px;
    left: -40px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatMetric 8s ease-in-out infinite alternate;
}

.streak-icon {
    font-size: 20px;
    color: var(--secondary);
    background: rgba(var(--secondary-rgb), 0.15);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.streak-num {
    font-weight: 800;
    font-size: 16px;
    display: block;
}

.streak-label {
    font-size: 11px;
    color: var(--text-sub);
}

@keyframes floatMetric {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(-2deg); }
}

.graph-card {
    bottom: 40px;
    right: -40px;
    width: 190px;
    animation: floatGraph 9s ease-in-out infinite alternate;
}

.graph-title {
    font-size: 11px;
    font-weight: bold;
    color: var(--text-sub);
    display: block;
    margin-bottom: 12px;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 60px;
}

.bar {
    width: 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    height: var(--h);
    position: relative;
}

.bar.active {
    background: var(--primary);
}

.bar span {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8px;
    color: var(--text-sub);
    font-weight: bold;
}

@keyframes floatGraph {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(12px) rotate(2deg); }
}

/* Features Grid */
.features {
    padding: 120px 8%;
    background-color: var(--bg-dark);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-sub);
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 36px;
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.f-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 24px;
}

.f-icon.purple { background: rgba(var(--primary-rgb), 0.12); color: var(--primary); }
.f-icon.coral { background: rgba(var(--secondary-rgb), 0.12); color: var(--secondary); }
.f-icon.blue { background: rgba(var(--primary-rgb), 0.12); color: var(--primary); }
.f-icon.green { background: rgba(var(--teal-accent-rgb), 0.12); color: var(--teal-accent); }
.f-icon.teal { background: rgba(var(--teal-accent-rgb), 0.12); color: var(--teal-accent); }
.f-icon.yellow { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.6;
}

/* Interactive Demo */
.demo-section {
    padding: 100px 8%;
    background-color: var(--bg-dark);
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.demo-planner {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 40px var(--glass-shadow);
}

.demo-planner-header {
    margin-bottom: 24px;
}

.demo-planner-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.demo-progress-bar {
    background: rgba(255, 255, 255, 0.05);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-bar-fill {
    background: var(--primary);
    height: 100%;
    transition: width 0.4s ease;
}

.demo-progress-text {
    font-size: 11px;
    color: var(--text-sub);
    font-weight: bold;
}

.demo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.demo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.demo-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.demo-item.completed {
    opacity: 0.55;
    background: rgba(255, 255, 255, 0.01);
}

.demo-item .chk-icon {
    font-size: 18px;
    color: var(--primary);
}

.demo-item span.text {
    font-size: 14px;
    font-weight: 600;
}

.demo-item.completed span.text {
    text-decoration: line-through;
}

.demo-input-row {
    display: flex;
    gap: 12px;
}

.demo-input-row input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 14px 18px;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.demo-input-row input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
}

.btn-add {
    background: var(--primary);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add:hover {
    background: var(--primary-hover);
}

.demo-pitch {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pitch-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 101, 132, 0.12);
    color: var(--secondary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 20px;
}

.demo-pitch h3 {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.demo-pitch p {
    color: var(--text-sub);
    font-size: 16px;
    margin-bottom: 24px;
}

.pitch-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.pitch-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
}

.text-purple {
    color: var(--primary);
}

/* Legal Dialog Popup Styles (Translucent Glassmorphic) */
.legal-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.legal-modal-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.legal-modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    width: 100%;
    max-width: 650px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px var(--glass-shadow);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.legal-modal-backdrop.show .legal-modal-card {
    transform: scale(1);
}

.legal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    background: linear-gradient(135deg, var(--primary), #5247e6);
    color: white;
}

.legal-modal-header h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.legal-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.legal-modal-body h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    margin: 24px 0 10px;
}

.legal-modal-body h3:first-of-type {
    margin-top: 0;
}

.legal-modal-body p, .legal-modal-body ul {
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.legal-modal-body ul {
    padding-left: 20px;
}

.legal-modal-body li {
    margin-bottom: 6px;
}

.legal-modal-body .meta-date {
    color: var(--primary);
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 16px;
    display: block;
}

/* Footer Styles */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 80px 8% 30px;
    background-color: var(--bg-dark);
    position: relative;
    z-index: 1;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-sub);
    font-size: 14px;
    margin-top: 16px;
    max-width: 320px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-links h4, .footer-info h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: bold;
    color: var(--text-main);
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

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

.footer-info {
    color: var(--text-sub);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-info a {
    color: var(--text-main);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 12px;
}

/* Responsive Scaling */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 140px;
        text-align: center;
        gap: 80px;
    }

    .hero-content {
        align-items: center;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-actions {
        justify-content: center;
    }

    .demo-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 20px;
    }

    .nav-links {
        display: none; /* Hide nav links on tablet/mobile for simplistic navbar */
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .phone-container {
        width: 280px;
        height: 560px;
    }

    .floating-card {
        display: none; /* Hide floating abstract cards on small mobile screens */
    }
}
