:root {
    /* LifeOS Brand Colors */
    --blue-bright: #00B4FF;
    --blue-deep: #2B7CD4;
    --blue-glow: rgba(0, 180, 255, 0.35);
    --gold: #FFD43D;
    --gold-warm: #FFB800;
    --gold-glow: rgba(255, 212, 61, 0.35);
    --green-lime: #7ED957;
    --green-bright: #4CD964;
    --green-glow: rgba(126, 217, 87, 0.35);
    --orange: #FF9500;
    --orange-glow: rgba(255, 149, 0, 0.3);

    /* Gradient */
    --gradient-brand: linear-gradient(135deg, var(--blue-bright) 0%, var(--gold) 50%, var(--green-lime) 100%);
    --gradient-hero: linear-gradient(135deg, var(--blue-deep) 0%, var(--green-lime) 100%);
}

/* Light Mode (Default) */
:root {
    --bg-dark: #F5F5F7;
    --bg-darker: #FFFFFF;
    --bg-card: rgba(0, 0, 0, 0.03);
    --bg-elevated: rgba(0, 0, 0, 0.05);
    --text-primary: #1D1D1F;
    --text-secondary: #515154;
    --text-tertiary: #86868B;
    --border: rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.06);
    --icon-filter: invert(0);
    --ambient-opacity: 0.15;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --window-bg: rgba(255, 255, 255, 0.9);
    --window-header-bg: rgba(0, 0, 0, 0.03);
    --preview-bg: rgba(0, 0, 0, 0.02);
    --nav-bg: rgba(235, 245, 255, 0.95);
    --modal-overlay-bg: rgba(0, 0, 0, 0.4);
    --widget-bg: rgba(0, 0, 0, 0.03);
    --widget-border: rgba(0, 0, 0, 0.08);
    --chart-bg: rgba(0, 0, 0, 0.04);
    --value-line-bg: rgba(0, 0, 0, 0.08);
    --progress-bg: rgba(0, 0, 0, 0.06);
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-dark: #1C1C1E;
        --bg-darker: #0D0D0F;
        --bg-card: rgba(44, 44, 46, 0.7);
        --bg-elevated: rgba(58, 58, 60, 0.6);
        --text-primary: #F5F5F7;
        --text-secondary: #ABABAF;
        --text-tertiary: #86868B;
        --border: rgba(255, 255, 255, 0.12);
        --border-light: rgba(255, 255, 255, 0.08);
        --icon-filter: invert(1);
        --ambient-opacity: 0.4;
        --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
        --window-bg: rgba(44, 44, 46, 0.7);
        --window-header-bg: rgba(0, 0, 0, 0.35);
        --preview-bg: rgba(0, 0, 0, 0.25);
        --nav-bg: rgba(13, 13, 15, 0.85);
        --modal-overlay-bg: rgba(0, 0, 0, 0.7);
        --widget-bg: rgba(255, 255, 255, 0.03);
        --widget-border: rgba(255, 255, 255, 0.06);
        --chart-bg: rgba(0, 0, 0, 0.2);
        --value-line-bg: rgba(255, 255, 255, 0.15);
        --progress-bg: rgba(255, 255, 255, 0.06);
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Ambient Background */
.ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: var(--ambient-opacity);
    animation: orbFloat 20s ease-in-out infinite;
}

.ambient-orb.blue {
    width: 600px;
    height: 600px;
    background: var(--blue-bright);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.ambient-orb.gold {
    width: 500px;
    height: 500px;
    background: var(--gold);
    top: 30%;
    right: -150px;
    animation-delay: -7s;
}

.ambient-orb.green {
    width: 550px;
    height: 550px;
    background: var(--green-lime);
    bottom: -100px;
    left: 30%;
    animation-delay: -14s;
}

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

/* Noise Texture */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-switcher a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.lang-switcher a:hover,
.lang-switcher a.active {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.nav-cta {
    padding: 0.75rem 1.5rem;
    background: var(--gradient-hero);
    border: none;
    border-radius: 12px;
    color: var(--bg-darker);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.925rem;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-cta svg {
    flex-shrink: 0;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--blue-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    backdrop-filter: blur(12px);
    animation: fadeInUp 0.7s ease forwards;
    opacity: 0;
}

.hero h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(3.5rem, 9vw, 6.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.75rem;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.7s ease 0.15s forwards;
    opacity: 0;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 3rem;
    animation: fadeInUp 0.7s ease 0.3s forwards;
    opacity: 0;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 0.7s ease 0.45s forwards;
    opacity: 0;
}

.btn-primary {
    padding: 1rem 2rem;
    background: var(--text-primary);
    border: none;
    border-radius: 14px;
    color: var(--bg-darker);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary svg {
    flex-shrink: 0;
    vertical-align: middle;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.cta-note {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* App Preview */
.hero-preview {
    margin-top: 5rem;
    position: relative;
    animation: fadeInUp 0.7s ease 0.6s forwards;
    opacity: 0;
}

.app-window {
    width: min(1000px, 92vw);
    background: var(--window-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(24px);
    box-shadow: var(--card-shadow), 0 0 60px var(--blue-glow);
}

.window-header {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: var(--window-header-bg);
    border-bottom: 1px solid var(--border-light);
}

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

.window-dot.red { background: #FF5F57; }
.window-dot.yellow { background: #FEBC2E; }
.window-dot.green { background: #28C840; }

.window-content {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1.25rem;
    min-height: 450px;
}

.sidebar-preview {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.75rem;
    background: var(--preview-bg);
    border-radius: 14px;
    height: 380px;
    align-self: start;
}

.sidebar-item {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.6rem;
    color: var(--text-tertiary);
    transition: all 0.25s ease;
    cursor: pointer;
}

.sidebar-item.active {
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.15), rgba(126, 217, 87, 0.15));
    color: var(--blue-bright);
}

.sidebar-item:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
}

.sidebar-item svg,
.sidebar-item img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
}

.sidebar-item.active img,
.sidebar-item:hover img {
    opacity: 1;
}

/* Light mode: dark icons */
.sidebar-item img {
    filter: brightness(0) saturate(100%);
}

/* Dark mode: white icons */
@media (prefers-color-scheme: dark) {
    .sidebar-item img {
        filter: brightness(0) saturate(100%) invert(1);
    }
}

.main-preview {
    background: var(--preview-bg);
    border-radius: 14px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    height: 380px;
}

/* Placeholder Elements */
.placeholder-text {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.placeholder-text.small {
    width: 50%;
    height: 10px;
    margin-bottom: 0.75rem;
}

.placeholder-text.large {
    width: 70%;
    height: 20px;
    margin-bottom: 0.75rem;
}

.placeholder-text.medium {
    width: 85%;
    height: 10px;
    margin-bottom: 0;
}

.placeholder-text.wide {
    width: 120px;
    height: 16px;
}

.placeholder-badge {
    width: 80px;
    height: 24px;
    background: rgba(126, 217, 87, 0.15);
    border-radius: 100px;
}

/* Preview Screens */
.preview-screen {
    display: none;
    opacity: 0;
    animation: screenFadeIn 0.35s ease forwards;
}

.preview-screen.active {
    display: block;
    opacity: 1;
}

.screen-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Preview Table - Placeholder to fill whitespace */
.preview-table {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
    background: var(--widget-bg);
    border: 1px solid var(--widget-border);
    border-radius: 8px;
    overflow: hidden;
}

.preview-table-header {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--widget-border);
}

@media (prefers-color-scheme: light) {
    .preview-table-header {
        background: rgba(0, 0, 0, 0.06);
    }
}

.preview-table-header-cell {
    height: 6px;
    background: var(--value-line-bg);
    border-radius: 3px;
    opacity: 0.7;
}

.preview-table-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.preview-table-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid var(--widget-border);
}

.preview-table-row:last-child {
    border-bottom: none;
}

.preview-table-cell {
    height: 7px;
    background: var(--value-line-bg);
    border-radius: 3px;
}

@keyframes screenFadeIn {
    from { opacity: 0; transform: translateX(8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Shared Elements */
.line {
    height: 8px;
    background: var(--value-line-bg);
    border-radius: 4px;
}
.line.w30 { width: 30%; }
.line.w35 { width: 35%; }
.line.w40 { width: 40%; }
.line.w50 { width: 50%; }
.line.w60 { width: 60%; }
.line.w65 { width: 65%; }
.line.w70 { width: 70%; }
.line.w80 { width: 80%; }

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot.green { background: var(--green-lime); }
.dot.blue { background: var(--blue-bright); }
.dot.gold { background: var(--gold); }
.dot.orange { background: var(--orange); }

/* Dashboard Screen */
.dash-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.dash-widgets-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.dash-widgets .widget-card {
    padding: 0.6rem 0.75rem;
}

.dash-widgets .widget-value {
    font-size: 0.9rem;
}

/* === UNIFIED CARD STYLES === */
/* Base card style for all stat/metric cards */
.widget-card,
.stat-card,
.run-stat,
.metric-box,
.habit-streak-card {
    background: var(--widget-bg);
    border: 1px solid var(--widget-border);
    border-radius: 10px;
    padding: 0.75rem;
    text-align: left;
}

/* Unified label style (small, uppercase, tertiary) */
.widget-label,
.stat-card-label,
.run-stat-label,
.metric-label,
.streak-label {
    font-size: 0.55rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

/* Unified value style (mono, prominent) */
.widget-value,
.stat-card-value,
.run-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Color-coded values */
.run-stat-value { color: var(--blue-bright); }
.streak-number { color: var(--green-lime); }

.widget-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.widget-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.widget-value-line {
    height: 14px;
    width: 60%;
    background: var(--value-line-bg);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.chart-header-mini {
    margin-bottom: 0.5rem;
}

.chart-header-mini .chart-title {
    font-size: 0.6rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.mini-sparkline {
    height: 24px;
}

.mini-sparkline svg {
    width: 100%;
    height: 100%;
}

.mini-progress {
    height: 6px;
    background: var(--progress-bg);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 3px;
}
.progress-bar.gold { background: var(--gold); }
.progress-bar.orange { background: var(--orange); }

.dash-chart {
    flex: 1;
    background: var(--widget-bg);
    border: 1px solid var(--widget-border);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    flex: 1;
}

.cbar {
    flex: 1;
    background: linear-gradient(180deg, var(--blue-bright), rgba(0, 180, 255, 0.3));
    border-radius: 3px;
}

/* Finance Screen - New Design with Numbers */
.finance-screen {
    gap: 0.75rem !important;
}

.stat-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.stat-card-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.stat-card-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.stat-card-dot.green { background: var(--green-lime); }
.stat-card-dot.gold { background: var(--gold); }
.stat-card-dot.blue { background: var(--blue-bright); }

.stat-card-bar {
    height: 3px;
    background: var(--progress-bg);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.15rem;
}

.stat-card-bar-fill {
    height: 100%;
    border-radius: 2px;
}

.stat-card-bar-fill.green { background: linear-gradient(90deg, var(--green-lime), var(--green-bright)); }
.stat-card-bar-fill.gold { background: linear-gradient(90deg, var(--gold-warm), var(--gold)); }
.stat-card-bar-fill.blue { background: linear-gradient(90deg, var(--blue-deep), var(--blue-bright)); }

/* Finance Chart Area */
.finance-chart-area {
    flex: 1;
    background: var(--widget-bg);
    border: 1px solid var(--widget-border);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
}

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

.chart-title {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.chart-period {
    font-size: 0.6rem;
    color: var(--text-tertiary);
    padding: 0.2rem 0.4rem;
    background: var(--bg-elevated);
    border-radius: 4px;
}

.finance-chart-area .finance-chart {
    flex: 1;
    min-height: 80px;
}

.finance-chart-area .finance-chart svg {
    width: 100%;
    height: 100%;
}

/* Legacy Finance Styles */
.finance-top {
    flex: 1;
    background: var(--chart-bg);
    border-radius: 10px;
    padding: 0.75rem;
}

.finance-chart {
    height: 100%;
}

.finance-chart svg {
    width: 100%;
    height: 100%;
}

.finance-bottom {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
}

.fin-donut {
    width: 90px;
    height: 90px;
    background: var(--chart-bg);
    border-radius: 10px;
    padding: 0.75rem;
}

.fin-donut svg {
    width: 100%;
    height: 100%;
}

.fin-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}

.hbar-row {
    height: 10px;
    background: var(--progress-bg);
    border-radius: 5px;
    overflow: hidden;
}

.hbar {
    height: 100%;
    border-radius: 5px;
}
.hbar.blue { background: var(--blue-bright); }
.hbar.green { background: var(--green-lime); }
.hbar.gold { background: var(--gold); }

/* Goals Screen */
.goals-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.goals-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--widget-bg);
    border: 1px solid var(--widget-border);
    border-radius: 10px;
    padding: 0.75rem;
}

.big-ring {
    width: 60px;
    height: 60px;
    position: relative;
    flex-shrink: 0;
}

.big-ring svg {
    width: 100%;
    height: 100%;
}

.ring-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
}

.goals-summary {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: left;
}

.goals-summary-label {
    font-size: 0.55rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.goals-summary-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

.goal-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    background: var(--widget-bg);
    border: 1px solid var(--widget-border);
    border-radius: 10px;
}

.goal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.goal-dot.green { background: var(--green-lime); }
.goal-dot.blue { background: var(--blue-bright); }
.goal-dot.gold { background: var(--gold); }

.goal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    text-align: left;
}

.goal-name {
    font-size: 0.7rem;
    color: var(--text-primary);
    font-weight: 500;
}

.goal-percent {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-tertiary);
    flex-shrink: 0;
    min-width: 28px;
    text-align: right;
}

.goal-bar {
    height: 4px;
    background: var(--progress-bg);
    border-radius: 2px;
    overflow: hidden;
}

.goal-bar .fill {
    height: 100%;
    border-radius: 3px;
}
.goal-bar .fill.green { background: var(--green-lime); }
.goal-bar .fill.blue { background: var(--blue-bright); }
.goal-bar .fill.gold { background: var(--gold); }

/* Habits Screen */
.habits-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.habit-streak-card {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 60px;
}

.streak-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.35rem;
    font-weight: 700;
}

.habits-calendar-card {
    background: var(--widget-bg);
    border: 1px solid var(--widget-border);
    border-radius: 10px;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.habits-calendar {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.calendar-row {
    display: flex;
    gap: 0.2rem;
}

.cal-day {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: var(--progress-bg);
}

.cal-day.filled.green {
    background: var(--green-lime);
}

.cal-day.filled.gold {
    background: var(--gold);
}

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

.habit-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem;
    background: var(--widget-bg);
    border: 1px solid var(--widget-border);
    border-radius: 10px;
}

.habit-check {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.habit-check.filled {
    background: var(--green-lime);
    border-color: var(--green-lime);
}

.habit-content {
    flex: 1;
    text-align: left;
}

.habit-name {
    font-size: 0.7rem;
    color: var(--text-primary);
    font-weight: 500;
}

.habit-streak-mini {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-tertiary);
    min-width: 20px;
    text-align: right;
}

/* Running Screen */
.run-header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.run-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.run-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.stat-value {
    height: 12px;
    width: 50%;
    background: var(--value-line-bg);
    border-radius: 3px;
}

.run-map {
    background: var(--widget-bg);
    border: 1px solid var(--widget-border);
    border-radius: 10px;
    padding: 0.75rem;
    height: 70px;
}

.run-map svg {
    width: 100%;
    height: 100%;
}

.metric-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.metric-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
}

.metric-value.blue { color: var(--blue-bright); }
.metric-value.green { color: var(--green-lime); }
.metric-value.gold { color: var(--gold); }

.metric-box .metric-ring {
    align-self: center;
}

.metric-ring {
    width: 40px;
    height: 40px;
}

.metric-ring svg {
    width: 100%;
    height: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Backgrounds */
.section-bg {
    position: relative;
}

.section-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.section-bg > * {
    position: relative;
    z-index: 1;
}

.section-bg.features-bg::before {
    background: linear-gradient(180deg, rgba(126, 217, 87, 0.06) 0%, rgba(0, 180, 255, 0.04) 100%);
}

.section-bg.philosophy-bg::before {
    background: linear-gradient(180deg, rgba(0, 180, 255, 0.04) 0%, rgba(255, 212, 61, 0.06) 100%);
}

.section-bg.targets-bg::before {
    background: linear-gradient(180deg, rgba(255, 212, 61, 0.04) 0%, rgba(255, 149, 0, 0.06) 100%);
}

.section-bg.cta-bg::before {
    background: linear-gradient(180deg, rgba(255, 149, 0, 0.04) 0%, rgba(126, 217, 87, 0.06) 100%);
}

/* Features Section */
.features {
    padding: 8rem 2rem;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.section-header h2 .gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 550px;
    margin: 0 auto;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    transition: all 0.35s ease;
    box-shadow: var(--card-shadow);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue-bright);
    box-shadow: 0 20px 40px -15px var(--blue-glow);
}

/* Plus Card - Custom Views */
.feature-card.plus-card {
    border-style: dashed;
    border-color: var(--border);
    background: rgba(44, 44, 46, 0.3);
}

.feature-card.plus-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--text-tertiary);
}

.feature-card.plus-card .feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border);
    border-radius: 14px;
    background: transparent;
}

.feature-card.plus-card .feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--text-tertiary);
}

.feature-card.plus-card .feature-title {
    color: var(--text-secondary);
}

.feature-card.plus-card .feature-desc {
    color: var(--text-tertiary);
}

/* Backup Foundation Card */
.features-foundation {
    margin-top: 1.25rem;
}

.feature-card.foundation-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.75rem;
    padding: 1.25rem 1.75rem;
}

.feature-card.foundation-card .feature-icon {
    margin-bottom: 0;
}

.feature-card.foundation-card .feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.feature-card.foundation-card .feature-title {
    margin-bottom: 0;
}

.feature-card.foundation-card .feature-desc {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.feature-card.foundation-card .feature-tags {
    margin-top: 0;
    flex-shrink: 0;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 1.25rem;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.feature-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    padding: 0.375rem 0.75rem;
    background: var(--bg-elevated);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Philosophy Section */
.philosophy {
    padding: 8rem 2rem;
    position: relative;
    z-index: 2;
}

.philosophy-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-header {
    margin-bottom: 3.5rem;
}

.philosophy-header h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.philosophy-lead {
    color: var(--text-secondary);
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.usp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.usp-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue-bright);
    box-shadow: 0 15px 40px -10px var(--blue-glow);
}

.usp-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.25rem;
    object-fit: contain;
}

.usp-card:nth-child(2) .usp-icon,
.usp-card:nth-child(4) .usp-icon {
    width: 58px;
    height: 58px;
}

.usp-card p {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
}

/* Target Audience Section */
.targets {
    padding: 8rem 2rem;
    position: relative;
    z-index: 2;
}

.targets .section-header {
    margin-bottom: 4rem;
}

.targets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.target-card {
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    transition: all 0.35s ease;
    box-shadow: var(--card-shadow);
}

.target-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px -15px var(--gold-glow);
}

.target-card h3 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.target-age {
    color: var(--blue-bright);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.25rem;
}

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

/* CTA Section */
.cta {
    padding: 8rem 2rem;
    position: relative;
    z-index: 2;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-inner {
    padding: 4rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 32px;
    text-align: center;
    backdrop-filter: blur(24px);
    box-shadow: var(--card-shadow);
}

.cta-inner h2 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-inner > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-inner .btn-primary {
    margin-bottom: 1rem;
}

.cta-note {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* Footer */
footer {
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-light);
    position: relative;
    z-index: 2;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.footer-logo {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s ease;
}

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

.footer-center {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.made-with {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.made-with-logo {
    height: 20px;
    width: auto;
    opacity: 0.85;
    transition: opacity 0.25s ease;
}

.made-with-logo:hover {
    opacity: 1;
}

.footer-right {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border);
    color: var(--text-primary);
}

.lang-btn svg {
    width: 16px;
    height: 16px;
}

/* Language Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--modal-overlay-bg);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 90%;
    max-width: 320px;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.3s ease;
    box-shadow: var(--card-shadow);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
}

.modal-title {
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-tertiary);
    transition: color 0.25s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-body {
    padding: 0.5rem;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.25s ease;
}

.lang-option:hover {
    background: var(--bg-elevated);
}

.lang-option.active {
    background: rgba(126, 217, 87, 0.15);
}

.lang-flag {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.375rem 0.625rem;
    background: var(--bg-elevated);
    border-radius: 6px;
    color: var(--text-secondary);
}

.lang-name {
    flex: 1;
    font-weight: 500;
}

.lang-check {
    width: 18px;
    height: 18px;
    color: var(--green-lime);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-right {
        gap: 1rem;
    }
    
    .nav-cta {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }
    
    .usp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .usp-card {
        padding: 1.5rem 1rem;
    }

    .philosophy-header {
        margin-bottom: 2.5rem;
    }
    
    .targets-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-center {
        order: -1;
    }
}

@media (max-width: 768px) {
    .window-content {
        grid-template-columns: 1fr;
    }

    .sidebar-preview {
        display: none;
    }

    .preview-widgets {
        grid-template-columns: 1fr;
    }
}

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

    .feature-card.foundation-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .feature-card.foundation-card .feature-icon {
        margin: 0 auto;
    }

    .feature-card.foundation-card .feature-tags {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .cta-inner {
        padding: 2.5rem 1.5rem;
    }

    .stat-cards-row {
        grid-template-columns: 1fr;
    }

    .stat-card-value {
        font-size: 0.95rem;
    }
}
