:root {
    --primary: #FFB4AC;
    --on-primary: #561E1A;
    --primary-container: #73332E;
    --on-primary-container: #FFDAD5;
    --secondary: #D8C2BF;
    --on-secondary: #3E2D2B;
    --secondary-container: #534341;
    --on-secondary-container: #F1DEDC;
    --tertiary: #A08C8A;
    --on-tertiary: #ffffff;
    --surface: #1A1110;
    --on-surface: #F1DEDC;
    --surface-variant: #534341;
    --on-surface-variant: #D8C2BF;
    --outline: #A08C8A;
    --outline-variant: #534341;
    --surface-container-lowest: #0F0908;
    --surface-container-low: #1A1110;
    --surface-container: #211918;
    --surface-container-high: #2C2322;
    --surface-container-highest: #372D2C;
    
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 3px 6px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15), 0 6px 6px rgba(0,0,0,0.10);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--surface);
    color: var(--on-surface);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Landing Page Styles */
.main-header {
    height: 80px;
    display: flex;
    align-items: center;
    background-color: rgba(26, 17, 16, 0.85);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--outline-variant);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

@media (max-width: 600px) {
    .main-header .top-nav { display: none; }
    .brand span { font-size: 22px; }
    .brand-icon { width: 36px; height: 36px; }
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.brand-icon {
    width: 44px;
    height: 44px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-icon svg {
    width: 100%;
    height: 100%;
    shape-rendering: geometricPrecision;
}

.nav-btn {
    text-decoration: none;
    background-color: var(--primary);
    color: var(--on-primary);
    padding: 10px 24px;
    border-radius: 24px;
    font-weight: 600;
    transition: transform 0.2s;
}

.nav-btn:hover { transform: scale(1.05); }

.hero {
    padding: 140px 0;
    background: radial-gradient(circle at 70% 30%, #2c2322 0%, #1a1110 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 180, 172, 0.05) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

@media (max-width: 992px) {
    .hero { padding: 80px 0; }
    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .hero-content h1 { font-size: 40px; }
    .hero-btns { justify-content: center; }
}

.hero-content { flex: 1; }
.hero-content h1 { font-size: 56px; line-height: 1.1; margin-bottom: 24px; color: var(--on-surface); }
.hero-content p { font-size: 20px; color: var(--on-surface-variant); margin-bottom: 40px; }

.hero-btns { display: flex; gap: 16px; }

.btn {
    padding: 16px 32px;
    border-radius: 32px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary { background-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { box-shadow: var(--shadow-lg); }
.btn-secondary { background-color: var(--secondary); color: var(--on-secondary); }
.btn-secondary:hover { box-shadow: var(--shadow-lg); opacity: 0.9; }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background-color: var(--primary-container); }

.hero-mockup { 
    flex: 1; 
    display: flex; 
    justify-content: center; 
    position: relative;
    z-index: 10;
}

.phone-display {
    width: 320px;
    height: 650px;
    max-width: 100%;
    border-radius: 40px;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 480px) {
    .phone-display {
        width: 280px;
        height: 570px;
    }
}

.phone-display iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 40px;
    pointer-events: none; /* Allow scrolling index page over the phone */
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.download-cta { padding: 60px 0; background-color: var(--surface-container-low); }
.cta-card {
    background-color: var(--primary-container);
    padding: 60px;
    border-radius: 40px;
    text-align: center;
    color: var(--on-primary-container);
}
.cta-card h2 { font-size: 40px; margin-bottom: 16px; }
.cta-card p { font-size: 20px; margin-bottom: 32px; opacity: 0.8; }

.features { 
    padding: 100px 0; 
    background-color: var(--surface); 
}

.section-title { 
    text-align: center; 
    font-size: 42px; 
    margin-bottom: 60px; 
    color: #fff;
}

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

.feature-card {
    padding: 48px 40px;
    background-color: var(--surface-container);
    border: 1px solid var(--outline-variant);
    border-radius: 32px;
    transition: all 0.3s ease;
}

.feature-card:hover { 
    transform: translateY(-10px); 
    background-color: var(--surface-container-high);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-card i { 
    font-size: 44px; 
    color: var(--primary); 
    margin-bottom: 24px; 
}

.feature-card h3 { 
    font-size: 24px; 
    margin-bottom: 16px; 
    color: #fff;
}

.feature-card p { 
    color: var(--on-surface-variant); 
    line-height: 1.7;
}

/* Legal Page Styles */
.legal-page { background-color: var(--surface); color: var(--on-surface); }
.legal-content { padding: 80px 0; min-height: 80vh; }
.legal-content h1 { font-size: 48px; margin-bottom: 8px; color: #fff; }
.last-updated { color: var(--outline); margin-bottom: 60px; font-weight: 600; }

.legal-content section { margin-bottom: 40px; }
.legal-content h2 { font-size: 28px; color: var(--primary); margin-bottom: 16px; }
.legal-content h3 { font-size: 20px; margin-top: 24px; margin-bottom: 12px; }
.legal-content p { margin-bottom: 16px; font-size: 18px; color: var(--on-surface-variant); }
.legal-content ul { margin-bottom: 16px; padding-left: 24px; }
.legal-content li { margin-bottom: 12px; font-size: 18px; color: var(--on-surface-variant); }

.main-footer {
    padding: 80px 0;
    border-top: 1px solid var(--outline-variant);
    background-color: var(--surface-container-lowest);
    text-align: center;
}

.footer-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 24px; font-weight: 700; font-size: 24px; color: #fff; }
.footer-brand .brand-icon { width: 36px; height: 36px; }

.footer-links { display: flex; justify-content: center; gap: 40px; margin-bottom: 32px; }
.footer-links a { text-decoration: none; color: var(--primary); font-weight: 600; }

.copyright { color: var(--outline); font-size: 14px; }

/* Showcase Container (From previous version) */
.showcase-container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 280px;
    background-color: #fff;
    border-right: 1px solid var(--outline-variant);
    display: flex;
    flex-direction: column;
    padding: 24px;
    z-index: 100;
}

.nav-links { list-style: none; flex-grow: 1; }
.nav-links li {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--on-surface-variant);
    transition: all 0.2s ease;
    font-weight: 600;
}

.nav-links li.active { background-color: var(--primary-container); color: var(--on-primary-container); }

.content {
    flex-grow: 1;
    background: linear-gradient(135deg, #f0f2f5 0%, #e0e4eb 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    overflow-y: auto;
    position: relative;
}

.hero-section { text-align: center; margin-bottom: 40px; }
.hero-section h1 { font-size: 36px; font-weight: 700; margin-bottom: 8px; color: var(--on-surface); }
.hero-section p { color: var(--outline); }

/* Phone Frame */
.phone-frame {
    width: 400px;
    height: 860px;
    background-color: #0c0d0a;
    border-radius: 54px;
    padding: 8px;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.4);
    border: 2px solid #2a2b26;
    position: relative;
    display: flex;
    justify-content: center;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    width: 10px;
    height: 10px;
    background-color: #1a1b16;
    border-radius: 50%;
    z-index: 30;
}

.phone-inner {
    width: 100%;
    height: 100%;
    background-color: var(--surface);
    border-radius: 46px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #1a1b16;
}

.status-bar {
    height: 50px;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    z-index: 20;
}

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

/* Screen Container */
.screen-container { flex-grow: 1; position: relative; overflow: hidden; }
.screen { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; animation: fadeIn 0.4s ease-out; }

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

.scroll-content { flex-grow: 1; overflow-y: auto; padding: 20px; }

/* App UI Elements */
.btn-primary { background-color: var(--primary); color: var(--on-primary); }
.btn-tonal { background-color: var(--secondary-container); color: var(--on-secondary-container); }

/* OutlinedBox Style Input */
.input-group { margin-bottom: 12px; display: flex; flex-direction: column; }
.input-group input { 
    height: 60px; 
    border-radius: 12px; 
    border: 1.5px solid var(--outline); 
    padding: 0 16px; 
    font-size: 16px; 
    background: transparent; 
    font-family: inherit;
    color: var(--on-surface);
    transition: all 0.2s;
}
.input-group input::placeholder { color: var(--on-surface-variant); }
.input-group input:focus {
    border-color: var(--primary);
    border-width: 2px;
    outline: none;
}

.password-wrapper { position: relative; }
.password-wrapper i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--outline); cursor: pointer; }

/* Buttons */
.btn {
    height: 56px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.divider { display: flex; align-items: center; gap: 16px; margin: 20px 0; color: var(--outline); }
.divider::before, .divider::after { content: ''; height: 1px; background-color: var(--outline-variant); flex-grow: 1; }

.splash-screen { background-color: var(--surface-container-lowest); justify-content: center; align-items: center; }
.splash-logo { width: 140px; height: 140px; display: flex; align-items: center; justify-content: center; font-size: 80px; color: var(--primary); margin-bottom: 24px; }
.splash-text { text-align: center; }
.splash-text h2 { font-weight: 700; font-size: 32px; color: var(--on-surface); }
.splash-text p { color: var(--on-surface-variant); font-size: 16px; margin-top: 8px; }

.circular-progress { width: 40px; height: 40px; border: 4px solid var(--surface-variant); border-top: 4px solid var(--primary); border-radius: 50%; margin-top: 48px; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Home Screen Header Refinement */
.app-header {
    padding: 16px;
    background-color: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.password-count {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.search-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-bar {
    background-color: var(--surface-container-high);
    height: 56px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    flex-grow: 1;
}

.search-bar input {
    background: transparent;
    border: none;
    flex-grow: 1;
    font-family: inherit;
    font-size: 16px;
    outline: none;
}

.icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-surface-variant);
    cursor: pointer;
    transition: background 0.2s;
}

.icon-btn:hover { background-color: var(--surface-container-highest); }

/* Expandable Credential Card */
.credential-card-item {
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.item-top-div {
    padding: 16px;
    cursor: pointer;
}

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

.item-title { font-weight: 600; font-size: 18px; color: var(--on-surface); }
.item-date { font-size: 12px; color: var(--on-surface-variant); }

.item-pass-layout {
    background-color: var(--surface-container-low);
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    justify-content: space-between;
}

.item-pass-layout span { font-family: var(--font-mono); letter-spacing: 2px; }

.item-down-div {
    height: 0;
    overflow: hidden;
    background-color: #fff;
    border-top: 1px solid var(--surface-container-highest);
    display: flex;
    justify-content: space-around;
    align-items: center;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.credential-card-item.expanded .item-down-div {
    height: 60px;
}

.action-icon {
    font-size: 18px;
    color: var(--on-surface-variant);
    padding: 12px;
    cursor: pointer;
    transition: color 0.2s;
}

.action-icon:hover { color: var(--primary); }

.safe-hero { text-align: center; padding: 32px 20px; }
.safe-hero h3 { font-size: 28px; font-weight: 600; }

.fab { position: absolute; bottom: 24px; right: 24px; width: 64px; height: 64px; border-radius: 20px; background-color: var(--primary-container); color: var(--on-primary-container); border: none; font-size: 24px; box-shadow: var(--shadow-lg); cursor: pointer; }
