/* --- Custom Properties & Design Tokens --- */
:root {
    --bg-primary: #120b0b;
    --bg-secondary: #1d1212;
    --bg-tertiary: #2a1b1b;
    --bg-card: rgba(42, 27, 27, 0.45);
    
    --color-primary: #ff7b72;
    --color-primary-hover: #f25c54;
    --color-accent: #DCC7B4;
    --color-accent-rgb: 220, 199, 180;
    --color-primary-rgb: 255, 123, 114;
    
    --text-main: #f5eded;
    --text-muted: #bdaeae;
    --text-inverse: #120b0b;
    
    --border-color: rgba(255, 123, 114, 0.15);
    --border-color-focus: rgba(255, 123, 114, 0.4);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
    --shadow-inset: inset 0 2px 4px rgba(255, 255, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-main);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Layout Utilities --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    background: rgba(255, 123, 114, 0.08);
    border: 1px solid var(--border-color);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}

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

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    animation: floatGlow 12s ease-in-out infinite alternate;
}

.main-glow {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.sec-glow {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    top: 300px;
    left: -150px;
    animation-delay: -3s;
}

.footer-glow {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    bottom: -100px;
    left: 20%;
    opacity: 0.25;
}

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

/* --- Header & Navigation --- */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(18, 11, 11, 0.75);
    border-bottom: 1px solid rgba(255, 123, 114, 0.08);
    transition: var(--transition-fast);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo-icon {
    font-size: 1.75rem;
    transition: transform var(--transition-fast);
}

.nav-logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-fast);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}

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

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.nav-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--text-inverse);
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 123, 114, 0.2);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 123, 114, 0.35);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 9rem 2rem 5rem;
    min-height: 95vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
    width: 100%;
}

.primary-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--text-inverse);
    box-shadow: 0 10px 25px rgba(255, 123, 114, 0.25);
    flex: 0 1 auto;
}

.primary-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 123, 114, 0.4);
}

.secondary-cta {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    width: 100%;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* --- Phone Mockup --- */
.hero-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.phone-frame {
    width: 310px;
    height: 630px;
    background: #251616;
    border-radius: 44px;
    padding: 12px;
    box-shadow: var(--shadow-lg), 0 0 0 4px #422a2a, 0 20px 50px rgba(0, 0, 0, 0.8);
    position: relative;
    transform: rotateY(-8deg) rotateX(5deg);
    transition: transform var(--transition-slow);
}

.phone-frame:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #FAF6F0;
    border-radius: 34px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.phone-video {
    width: 100%;
    flex: 1;
    object-fit: cover;
    display: block;
    border-bottom-left-radius: 34px;
    border-bottom-right-radius: 34px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.phone-status-bar {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1.5rem 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #4A2E15;
    background-color: #FAF6F0;
    user-select: none;
}

.phone-app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem;
    justify-content: space-between;
}

.app-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #FAF6F0;
    padding: 0.2rem 1.5rem 0.8rem;
    border-bottom: 1px solid rgba(74, 46, 21, 0.08);
}

.app-coin {
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(74, 46, 21, 0.05);
    color: #4A2E15;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    border: 1px solid rgba(74, 46, 21, 0.08);
}

.app-avatar {
    font-size: 1.25rem;
}

.app-timer-display {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-ring-circle {
    stroke-dasharray: 534;
    stroke-dashoffset: 80;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.35s;
}

.timer-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.timer-val {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.timer-state {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    font-weight: 700;
    margin-top: 0.25rem;
}

.app-cat-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.5rem 0;
}

.cat-bubble {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
}

.cat-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--bg-tertiary) transparent;
    display: block;
    width: 0;
}

.app-cat-sprite {
    font-size: 3rem;
    animation: appCatPulse 3s ease-in-out infinite;
}

@keyframes appCatPulse {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.02); }
}

.app-controls {
    margin-bottom: 1rem;
}

.app-btn-start {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--text-inverse);
    border: none;
    padding: 0.8rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 123, 114, 0.2);
}

/* --- Features Section --- */
.features-section {
    padding: 7rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.section-description {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.feature-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-color-focus);
    box-shadow: var(--shadow-md), 0 0 20px rgba(255, 123, 114, 0.05);
}

.feature-icon {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 123, 114, 0.08);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.feature-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Interactive Demo Section --- */
.demo-section {
    background-color: var(--bg-secondary);
    padding: 7rem 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.demo-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
    align-items: center;
}

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

.demo-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.demo-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.demo-tips {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
}

.tip-item {
    display: flex;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 16px;
}

.tip-icon {
    font-size: 1.25rem;
}

.tip-item p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--text-muted);
}

.tip-item strong {
    color: var(--text-main);
}

.demo-widget-wrapper {
    display: flex;
    justify-content: center;
}

.demo-widget {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.widget-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.4rem;
    border-radius: 100px;
    margin-bottom: 2rem;
}

.widget-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 0.5rem;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.widget-tab.active {
    background: var(--color-primary);
    color: var(--text-inverse);
    box-shadow: 0 4px 10px rgba(255, 123, 114, 0.25);
}

.widget-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.widget-timer {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
    line-height: 1;
}

.widget-cat-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    height: 130px;
    justify-content: flex-end;
}

.widget-cat-svg-container {
    position: relative;
    width: 140px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.cozy-cat-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* --- Procedural Cat Animations --- */

/* 1. Tail Sway & Twitch Transitions (smooth fade between awake and sleep tail curves) */
.awake-tail, .sleeping-tail {
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.cozy-cat-svg:not(.sleeping) .awake-tail {
    opacity: 1;
}

.cozy-cat-svg:not(.sleeping) .sleeping-tail {
    opacity: 0;
}

.cozy-cat-svg.sleeping .awake-tail {
    opacity: 0;
}

.cozy-cat-svg.sleeping .sleeping-tail {
    opacity: 1;
}

/* Tail base waving movement (awake) */
.cat-tail-group {
    transform-origin: 30px -18px;
    animation: tailSway 3.5s ease-in-out infinite alternate;
}

@keyframes tailSway {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(10deg); }
}

/* Tail slight twitch movement (sleeping) */
.cozy-cat-svg.sleeping .cat-tail-group {
    animation: tailSleepTwitch 4s ease-in-out infinite alternate;
}

@keyframes tailSleepTwitch {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.01) rotate(1.5deg); }
}

/* 2. Body Breathing (subtle vertical scaling) */
.cat-body-group {
    transform-origin: 0px 0px;
    animation: catBreathe 2s ease-in-out infinite alternate;
}

@keyframes catBreathe {
    0% { transform: scaleY(1); }
    100% { transform: scaleY(1.03); }
}

/* 3. Head Transitions & Floating (separated layers for smooth sleep slide + continuous breathing float) */
.cat-head-group {
    transform-origin: 0px 30px;
    transform: translateY(-66px) rotate(0deg);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sleep pose offset */
.cozy-cat-svg.sleeping .cat-head-group {
    transform: translateY(-56px) rotate(8deg);
}

/* Continuous Head Breathing float */
.cat-head-float-group {
    transform-origin: 0px 30px;
    animation: catHeadFloat 2s ease-in-out infinite alternate;
}

@keyframes catHeadFloat {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-3px) rotate(0.5deg); }
}

/* --- Eyes Opacity Transitions (smooth crossfade) --- */
.cat-eyes-awake, .cat-eyes-sleeping, .cat-eyes-happy {
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cozy-cat-svg:not(.sleeping):not(.happy) .cat-eyes-awake {
    opacity: 1 !important;
}

.cozy-cat-svg.sleeping .cat-eyes-sleeping {
    opacity: 1 !important;
}

.cozy-cat-svg.happy .cat-eyes-happy {
    opacity: 1 !important;
}

/* 4. Floating Zzz... Vector Animations (Exact app behavior) */
.zzz-group {
    opacity: 0;
    transform-box: fill-box;
}

.cozy-cat-svg.sleeping .zzz-group {
    animation: floatZzzAnim 3.2s linear infinite;
}

.zzz-group.zzz-1 { --startX: 9px; --startY: -78px; --scaleMult: 0.5; animation-delay: 0s; }
.zzz-group.zzz-2 { --startX: 22.5px; --startY: -90px; --scaleMult: 0.8; animation-delay: 1.06s; }
.zzz-group.zzz-3 { --startX: 36px; --startY: -102px; --scaleMult: 1.2; animation-delay: 2.13s; }

@keyframes floatZzzAnim {
    0% {
        opacity: 0;
        transform: translate(var(--startX), var(--startY)) scale(0.5);
    }
    25% {
        opacity: 0.707;
        transform: translate(calc(var(--startX) + 9px), calc(var(--startY) - 18px)) scale(calc(0.5 + 0.25 * var(--scaleMult)));
    }
    50% {
        opacity: 1;
        transform: translate(var(--startX), calc(var(--startY) - 36px)) scale(calc(0.5 + 0.5 * var(--scaleMult)));
    }
    75% {
        opacity: 0.707;
        transform: translate(calc(var(--startX) - 9px), calc(var(--startY) - 54px)) scale(calc(0.5 + 0.75 * var(--scaleMult)));
    }
    100% {
        opacity: 0;
        transform: translate(var(--startX), calc(var(--startY) - 72px)) scale(calc(0.5 + 1.0 * var(--scaleMult)));
    }
}

/* 5. Floating Hearts Vector Animations (Exact app behavior) */
.heart-group {
    opacity: 0;
    transform-box: fill-box;
}

.cozy-cat-svg.happy .heart-group {
    animation: floatHeartAnim 2.5s linear infinite;
}

.heart-group.h1 { --startX: -14px; --startY: -78px; --scaleMult: 0.5; animation-delay: 0s; }
.heart-group.h2 { --startX: 13px; --startY: -84px; --scaleMult: 0.7; animation-delay: 0.62s; }
.heart-group.h3 { --startX: -7px; --startY: -90px; --scaleMult: 0.9; animation-delay: 1.25s; }
.heart-group.h4 { --startX: 7px; --startY: -72px; --scaleMult: 0.6; animation-delay: 1.87s; }

@keyframes floatHeartAnim {
    0% {
        opacity: 0;
        transform: translate(var(--startX), var(--startY)) scale(0.4);
    }
    20% {
        opacity: 0.9;
        transform: translate(calc(var(--startX) + 4px), calc(var(--startY) - 14px)) scale(calc(0.4 + 0.2 * var(--scaleMult)));
    }
    70% {
        opacity: 0.9;
        transform: translate(calc(var(--startX) - 4px), calc(var(--startY) - 50px)) scale(calc(0.4 + 0.7 * var(--scaleMult)));
    }
    100% {
        opacity: 0;
        transform: translate(var(--startX), calc(var(--startY) - 72px)) scale(calc(0.4 + 1.0 * var(--scaleMult)));
    }
}

.widget-actions {
    display: flex;
    gap: 1rem;
}

.widget-btn {
    flex: 1;
    padding: 1rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
}

.widget-btn.primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--text-inverse);
    box-shadow: 0 6px 20px rgba(255, 123, 114, 0.2);
}

.widget-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 123, 114, 0.35);
}

.widget-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.widget-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* --- FAQ Section --- */
.faq-section {
    padding: 7rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--border-color-focus);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

.faq-arrow {
    font-size: 0.75rem;
    color: var(--color-primary);
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Download / Footer CTA Section --- */
.download-section {
    padding: 7rem 2rem;
    position: relative;
}

.download-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.download-card {
    background: linear-gradient(135deg, rgba(42, 27, 27, 0.8) 0%, rgba(29, 18, 18, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 36px;
    padding: 4.5rem 3rem;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-card h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.download-card > p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.app-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.app-badge-btn {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.6rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: #fff;
    min-width: 185px;
    text-align: left;
    transition: var(--transition-normal);
    text-decoration: none;
    user-select: none;
}

.app-badge-btn:not(.disabled-badge):hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 20px rgba(255, 123, 114, 0.15);
    background: #111;
}

.app-badge-btn.disabled-badge {
    opacity: 0.45;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

.badge-icon-svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    flex-shrink: 0;
}

.badge-text {
    display: flex;
    flex-direction: column;
}

.badge-sub {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.badge-main {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.newsletter-wrapper {
    border-top: 1px solid rgba(255, 123, 114, 0.1);
    padding-top: 3rem;
    width: 100%;
    max-width: 550px;
}

.newsletter-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.news-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 0.4rem;
    border-radius: 16px;
    transition: border-color var(--transition-fast);
}

.newsletter-form:focus-within {
    border-color: var(--border-color-focus);
}

.news-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
}

.news-input::placeholder {
    color: #635353;
}

.news-btn {
    background: var(--color-primary);
    color: var(--text-inverse);
    font-weight: 700;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

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

.form-feedback {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    min-height: 20px;
}

.form-feedback.success {
    color: #81c784;
}

.form-feedback.error {
    color: #e57373;
}

/* --- Footer --- */
.app-footer {
    background-color: var(--bg-primary);
    border-top: 1px solid rgba(255, 123, 114, 0.05);
    padding: 4.5rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 0.6fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 255px;
}

.footer-column h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-column a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--text-main);
    transform: translateX(3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 123, 114, 0.05);
    padding-top: 2rem;
    text-align: center;
    color: #5c4e4e;
    font-size: 0.85rem;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 5rem;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .demo-info {
        align-items: center;
        text-align: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* In production, we'd add simple JS mobile menu drawer toggle */
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .download-card {
        padding: 3rem 1.5rem;
    }
    
    .download-card h2 {
        font-size: 2.25rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .widget-timer {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .app-badge-btn {
        width: 100%;
    }
    
    .newsletter-form {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0.75rem;
    }
    
    .news-input, .news-btn {
        border-radius: 12px;
        width: 100%;
    }
    
    .news-input {
        background-color: var(--bg-tertiary);
        border: 1px solid var(--border-color);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}
