/* ==========================================
   WALLOMATE - Apple-Inspired Dark Theme
   ========================================== */

/* CSS Custom Properties */
:root {
    /* Colors */
    --bg-primary: #0a0f1a;
    --bg-secondary: #0f1729;
    --bg-card: #1a2332;
    --bg-card-hover: #222d40;
    --green-accent: #3ecf4c;
    --green-glow: rgba(62, 207, 76, 0.3);
    --blue-accent: #3b82f6;
    --blue-glow: rgba(59, 130, 246, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #8b95a5;
    --text-muted: #5a6478;
    --border-color: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-main: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;

    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Gradient Orbs */
.bg-gradient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
    filter: blur(100px);
    animation: float 20s ease-in-out infinite;
}

.bg-gradient::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
    filter: blur(100px);
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(5deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

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

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.text-gradient {
    background: linear-gradient(135deg, var(--green-accent) 0%, #00d4aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-blue-gradient {
    background: linear-gradient(135deg, var(--blue-accent) 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar.scrolled {
    background: rgba(10, 15, 26, 0.85);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 32px;
    width: auto;
    transition: var(--transition-fast);
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-cta {
    display: flex;
    gap: 12px;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--green-accent);
    color: #000;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px var(--green-glow);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* Store Buttons */
.store-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.store-badge {
    display: inline-block;
    height: 44px;
    transition: var(--transition-smooth);
}

.store-badge img {
    height: 100%;
    width: auto;
    display: block;
}

.store-badge:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.store-btn:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.store-btn svg {
    width: 28px;
    height: 28px;
}

.store-btn-text {
    text-align: left;
}

.store-btn-text span {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.store-btn-text strong {
    font-size: 1.1rem;
    font-weight: 600;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--section-padding) 0;
    padding-top: 140px;
    position: relative;
}

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

/* Desktop: Visual on right, content on left */
.hero-content {
    order: 1;
}

.hero-visual {
    order: 2;
}

.hero-content {
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(62, 207, 76, 0.1);
    border: 1px solid rgba(62, 207, 76, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--green-accent);
    margin-bottom: 24px;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px transparent;
    }

    50% {
        box-shadow: 0 0 20px var(--green-glow);
    }
}

.hero-title {
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 620px;
    background: linear-gradient(145deg, #1a2332 0%, #0f1729 100%);
    border-radius: 50px;
    padding: 12px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: float-phone 6s ease-in-out infinite;
}

@keyframes float-phone {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

/* Floating Elements */
.floating-card {
    position: absolute;
    background: rgba(26, 35, 50, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 5;
}

.floating-card-1 {
    top: 15%;
    right: -15%;
    animation: float-card 8s ease-in-out infinite;
}

.floating-card-2 {
    top: 40%;
    right: -25%;
    animation: float-card 8s ease-in-out infinite;
    animation-delay: -2s;
}

.floating-card-3 {
    top: 65%;
    right: -10%;
    animation: float-card 8s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes float-card {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-10px) translateX(5px);
    }
}

.card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon.income {
    background: rgba(62, 207, 76, 0.1);
    color: var(--green-accent);
}

.card-icon.budget {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.card-icon.bills {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.card-icon svg {
    width: 18px;
    height: 18px;
}

.floating-card .amount {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.floating-card .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ==========================================
   SECTIONS COMMON
   ========================================== */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

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

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-top: 16px;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ==========================================
   FEATURES SECTION - MEET MATE
   ========================================== */
.features-mate {
    background: linear-gradient(180deg, transparent 0%, rgba(62, 207, 76, 0.03) 50%, transparent 100%);
}

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

/* Desktop: Visual on left, content on right */
.mate-content {
    order: 2;
}

.mate-visual {
    order: 1;
}

.mate-visual {
    position: relative;
}

.chat-interface {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.chat-header img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.chat-header-text h4 {
    font-size: 1rem;
    font-weight: 600;
}

.chat-header-text span {
    font-size: 0.875rem;
    color: var(--green-accent);
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-bubble {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-bubble.user {
    align-self: flex-end;
    background: var(--blue-accent);
    color: white;
    border-bottom-right-radius: 6px;
}

.chat-bubble.ai {
    align-self: flex-start;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 6px;
}

.chat-bubble.ai .highlight {
    color: var(--green-accent);
    font-weight: 600;
}

.mate-content h2 {
    margin-bottom: 24px;
}

.mate-content>p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.mate-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mate-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.mate-feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(62, 207, 76, 0.1);
    border-radius: 12px;
    flex-shrink: 0;
}

.mate-feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--green-accent);
}

.mate-feature h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.mate-feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================
   SAFE TO SPEND SECTION
   ========================================== */
.safe-spend {
    background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.03) 50%, transparent 100%);
}

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

.spend-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.spend-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.spend-amount {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.spend-month {
    font-size: 1rem;
    color: var(--green-accent);
    margin-bottom: 32px;
}

.spend-breakdown {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.spend-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 0.95rem;
}

.spend-item .label {
    color: var(--text-secondary);
}

.spend-item .value {
    font-weight: 600;
}

.spend-item .value.positive {
    color: var(--green-accent);
}

.spend-item .value.negative {
    color: var(--text-primary);
}

.safe-spend-content h2 {
    margin-bottom: 24px;
}

.safe-spend-content>p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

/* ==========================================
   BUDGETING SECTION - MERGED LAYOUT
   ========================================== */
/* Budgeting Section - Merged Layout */
/* Budgeting Section - Merged Layout */
.budgeting {
    padding: 60px 0;
}

.budgeting .section-header {
    margin-bottom: 40px;
}

.budgeting-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

/* Left: Features Card */
.budget-features-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.budget-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.budget-feature-item:last-of-type {
    border-bottom: none;
}

.budget-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-accent) 0%, #00d4aa 100%);
    border-radius: 12px;
    flex-shrink: 0;
}

.budget-feature-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #818cf8 100%);
}

.budget-feature-icon.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.budget-feature-icon svg {
    width: 24px;
    height: 24px;
    color: #000;
}

.budget-feature-text h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.budget-feature-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.budget-tagline {
    text-align: center;
    padding-top: 16px;
    margin-top: 4px;
}

.budget-tagline p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.budget-tagline strong {
    color: var(--green-accent);
    font-size: 1.05rem;
}

/* Right: App-Style Preview */
.budget-app-preview {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    transition: var(--transition-smooth);
}

.app-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.app-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.app-card-icon.green {
    background: rgba(62, 207, 76, 0.15);
}

.app-card-icon.blue {
    background: rgba(59, 130, 246, 0.15);
}

.app-card-icon.blue svg {
    color: var(--blue-accent);
}

.app-card-icon.orange {
    background: rgba(245, 158, 11, 0.15);
}

.app-card-icon.orange svg {
    color: #f59e0b;
}

.app-card-icon svg {
    width: 20px;
    height: 20px;
    color: var(--green-accent);
}

.app-card-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.app-card-header span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

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

.app-card-header-simple h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--green-accent);
}

.app-card-header-simple span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Budget Items */
.budget-item {
    margin-bottom: 16px;
}

.budget-item:last-child {
    margin-bottom: 0;
}

.budget-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

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

.category-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 16px;
}

.budget-category strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.budget-amount {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.budget-percent {
    text-align: right;
    font-size: 0.9rem;
    font-weight: 700;
}

.budget-percent.red {
    color: #ef4444;
}

.budget-percent.yellow {
    color: #f59e0b;
}

.budget-percent.green {
    color: var(--green-accent);
}

.budget-percent small {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-secondary);
}

/* Top Spent Items */
.top-spent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.top-spent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.top-spent-item>div {
    flex: 1;
}

.top-spent-item .category-icon {
    flex-shrink: 0;
}

.top-spent-item strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.top-spent-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.top-spent-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Bill Items */
.bill-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bill-item>div {
    flex: 1;
}

.bill-item .category-icon {
    flex-shrink: 0;
}

.bill-item strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.bill-item span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.bill-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Progress Bar for Budget Preview */
.budget-item .progress-bar {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    overflow: hidden;
}

.budget-item .progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1.2s ease;
}

/* Legacy styles for backwards compat */
.budgeting-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.budget-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: var(--transition-smooth);
}

.budget-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.budget-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green-accent) 0%, #00d4aa 100%);
    border-radius: 16px;
    margin-bottom: 24px;
}

.budget-icon svg {
    width: 28px;
    height: 28px;
    color: #000;
}

.budget-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.budget-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Progress Bar */
.progress-demo {
    margin-top: 20px;
}

.progress-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.progress-fill.green {
    background: var(--green-accent);
}

.progress-fill.yellow {
    background: #f59e0b;
}

.progress-fill.red {
    background: #ef4444;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsive for Budgeting Split */
@media (max-width: 1024px) {
    .budgeting-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .budget-app-preview {
        order: -1;
    }
}

@media (max-width: 768px) {
    .budget-features-card {
        padding: 28px;
    }

    .budget-feature-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
}

/* ==========================================
   SECURITY SECTION
   ========================================== */
.security {
    background: var(--bg-secondary);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.security-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.security-card:hover {
    transform: translateY(-4px);
    border-color: rgba(62, 207, 76, 0.3);
}

.security-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(62, 207, 76, 0.1);
    border-radius: 14px;
    flex-shrink: 0;
}

.security-icon svg {
    width: 26px;
    height: 26px;
    color: var(--green-accent);
}

.security-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.security-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.trust-badge svg {
    width: 24px;
    height: 24px;
    color: var(--green-accent);
}

/* ==========================================
   PRICING SECTION
   ========================================== */
.pricing {
    padding: 60px 0 40px;
}

.pricing .section-header {
    margin-bottom: 40px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    transition: var(--transition-smooth);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured {
    border-color: var(--green-accent);
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(62, 207, 76, 0.05) 100%);
    padding-top: 20px;
}

.pricing-badge {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.pricing-badge span {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-badge .best-value {
    background: rgba(62, 207, 76, 0.15);
    color: var(--green-accent);
    border: 1px solid rgba(62, 207, 76, 0.3);
}

.pricing-badge .save {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue-accent);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.pricing-name {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 4px;
}

.pricing-price .currency {
    font-size: 1.25rem;
    font-weight: 600;
}

.pricing-price .amount {
    font-size: 2.5rem;
    font-weight: 700;
}

.pricing-price .period {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-price .original {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
}

.pricing-billed {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.free-trial-note {
    text-align: center;
    margin-top: 24px;
    padding: 14px 20px;
    background: rgba(62, 207, 76, 0.05);
    border: 1px solid rgba(62, 207, 76, 0.2);
    border-radius: 12px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.free-trial-note p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.free-trial-note strong {
    color: var(--green-accent);
}

/* Trial Timeline */
.trial-timeline {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.trial-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    max-width: 140px;
}

.trial-step-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(62, 207, 76, 0.1);
    border-radius: 50%;
    flex-shrink: 0;
}

.trial-step-icon svg {
    width: 18px;
    height: 18px;
    color: var(--green-accent);
}

.trial-step-icon.muted {
    background: rgba(139, 149, 165, 0.1);
}

.trial-step-icon.muted svg {
    color: var(--text-secondary);
}

.trial-step-text h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.trial-step-text p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ==========================================
   DOWNLOAD CTA SECTION
   ========================================== */
.download-cta {
    text-align: center;
    padding: 160px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.download-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.5;
}

.download-cta .container {
    position: relative;
    z-index: 2;
}

.download-cta h2 {
    margin-bottom: 16px;
}

.download-cta>.container>p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 40px;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

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

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

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

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {

    .hero .container,
    .mate-grid,
    .safe-spend-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    /* Mobile: Reset order to natural DOM flow (text first, then visual) */
    .hero-content,
    .hero-visual,
    .mate-content,
    .mate-visual {
        order: 0;
    }

    .floating-card {
        display: none;
    }

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

    .security-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }

    .navbar .container {
        flex-direction: column;
        gap: 16px;
    }

    .nav-cta {
        width: 100%;
        justify-content: center;
    }

    .store-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .phone-mockup {
        width: 260px;
        height: 540px;
    }



    .spend-amount {
        font-size: 3rem;
    }

    .mate-content,
    .safe-spend-content {
        text-align: center;
    }

    .mate-features {
        align-items: center;
    }

    .mate-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .trust-badges {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer .container {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 14px 28px;
    }

    .budget-card,
    .security-card,
    .pricing-card {
        padding: 24px;
    }
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials {
    background: linear-gradient(180deg, transparent 0%, rgba(62, 207, 76, 0.02) 50%, transparent 100%);
}

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

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.25rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-primary);
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.author-info strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
}

.author-info span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

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