/* Global Reset and Fonts */
body {
    font-family: system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #f1f5f9;
    background-color: #0f172a; /* Deep slate background */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Professional Navigation Bar */
nav {
    background-color: #0f172a;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
}
.nav-brand { color: #fbbf24; font-size: 1.3rem; font-weight: 800; text-decoration: none; text-transform: uppercase; letter-spacing: 1px; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; }
.nav-links li { margin-left: 25px; }
.nav-links a { color: #cbd5e1; text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s ease; }
.nav-links a:hover, .nav-links a.active { color: #fbbf24; }

/* Headers / Hero Sections */
header { background-color: transparent; padding: 4rem 2rem; text-align: center; border-bottom: 1px solid #334155; }
.header-logo { height: 220px; width: auto; display: block; margin: 0 auto 1.5rem auto; max-width: 100%; }
.header-icon { width: 50px; height: 50px; color: #fbbf24; margin-bottom: 15px; }
h1 { color: #fbbf24; margin-top: 0; font-size: 2.8rem; font-weight: 800; letter-spacing: -0.5px; }
h2 { color: #fbbf24; margin-top: 2.5rem; border-bottom: 2px solid #334155; padding-bottom: 8px; display: inline-block; }
h3 { color: #fbbf24; margin-top: 2rem; }
p { font-size: 1.1rem; color: #cbd5e1; }
p.subtitle { color: #94a3b8; max-width: 700px; margin: 1rem auto; font-size: 1.15rem; }

/* Layout Containers */
.container { padding: 2.5rem 2rem; max-width: 1000px; margin: 0 auto; flex: 1; }

/* Cards & App Grids */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.app-card { background: #1e293b; border: 1px solid #334155; padding: 2.5rem; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.2); transition: transform 0.2s ease, border-color 0.2s ease; display: flex; flex-direction: column; justify-content: space-between; }
.app-card:hover { transform: translateY(-5px); border-color: #fbbf24; }
.app-card h3 { margin-top: 0; color: #fbbf24; border-bottom: 1px solid #334155; padding-bottom: 12px; }
.link-list { list-style: none; padding: 0; margin: 1rem 0; }
.link-list li { margin-bottom: 0.75rem; }
.link-list a { color: #38bdf8; text-decoration: none; font-weight: 600; }
.link-list a:hover { color: #fbbf24; }

/* Buttons */
.cta-container { display: flex; gap: 15px; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.cta-button { display: inline-flex; align-items: center; justify-content: center; background-color: #fbbf24; color: #0f172a; padding: 14px 28px; text-decoration: none; border-radius: 8px; font-weight: bold; font-size: 1.05rem; transition: all 0.2s ease; border: none; cursor: pointer; }
.cta-button:hover { background-color: #ffffff; color: #0f172a; transform: scale(1.02); }
.cta-button.ios { background-color: #38bdf8; color: #0f172a; }
.cta-button.ios:hover { background-color: #ffffff; }

/* Forms & Legal Boxes */
.legal-box { background: #1e293b; padding: 25px; border-radius: 12px; border-left: 5px solid #fbbf24; margin: 25px 0; border: 1px solid #334155; border-left-width: 5px; }
form { max-width: 600px; margin: 0 auto; background: #1e293b; padding: 2.5rem; border-radius: 16px; border: 1px solid #334155; }
.form-group { margin-bottom: 1.5rem; }
label { display: block; margin-bottom: 0.5rem; font-weight: bold; color: #fbbf24; }
input, textarea { width: 100%; padding: 12px; border: 1px solid #334155; border-radius: 8px; background-color: #0f172a; color: #f1f5f9; box-sizing: border-box; font-family: inherit; font-size: 1rem; }
input:focus, textarea:focus { outline: none; border-color: #fbbf24; box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.2); }

/* Tables & Blog Elements */
.author-date { color: #64748b; font-size: 0.95rem; margin-bottom: 2.5rem; border-bottom: 1px solid #334155; padding-bottom: 1rem; }

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 2.5rem 0;
    border-radius: 12px;
    background: #1e293b;
    border: 1px solid #334155;
}

table { width: 100%; border-collapse: collapse; overflow: hidden; }
th, td { padding: 16px; border: 1px solid #334155; text-align: left; }
th { background-color: #0f172a; color: #fbbf24; font-weight: 600; }

/* The Vault Manual Accordions */
details { background: #1e293b; border: 1px solid #334155; border-radius: 12px; margin-bottom: 1.2rem; overflow: hidden; transition: border-color 0.2s ease; }
details[open] { border-color: #64748b; }
summary { font-size: 1.15rem; font-weight: bold; color: #f1f5f9; cursor: pointer; padding: 1.5rem; list-style: none; display: flex; align-items: center; background: #1e293b; transition: background 0.2s ease; }
summary:hover { background: #263348; }
summary::-webkit-details-marker { display: none; }
.section-icon { width: 28px; height: 28px; color: #fbbf24; margin-right: 15px; flex-shrink: 0; }
.guide-content { padding: 0 1.5rem 1.5rem 4.5rem; color: #cbd5e1; font-size: 1.05rem; border-top: 1px solid #334155; margin-top: 0.5rem; padding-top: 1.5rem; }
.guide-item { margin-bottom: 1.2rem; display: flex; align-items: flex-start; }
.bullet { color: #64748b; margin-right: 12px; margin-top: 4px; font-size: 0.8rem; }
.guide-item strong { color: #38bdf8; }

/* App Screenshots in Accordions */
.guide-image {
    max-width: 350px;
    width: calc(100% - 4.5rem);
    height: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin: 1rem 0 1.5rem 4.5rem;
    display: block;
}

/* Footer */
footer { text-align: center; padding: 3rem 1rem; border-top: 1px solid #334155; background-color: transparent; color: #64748b; margin-top: 4rem; }
.footer-legal { margin-top: 1rem; }
.footer-legal a { color: #94a3b8; text-decoration: none; margin: 0 12px; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.footer-legal a:hover { color: #fbbf24; }

/* Mobile Optimization */
@media (max-width: 768px) {
    nav { flex-direction: column; padding: 1.2rem; }
    .nav-links { margin-top: 1.2rem; flex-wrap: wrap; justify-content: center; }
    .nav-links li { margin: 8px 12px; }
    h1 { font-size: 2.2rem; }
    .header-logo { height: 160px; }
    
    .guide-content { padding-left: 1.5rem; }
    
    /* Adjusted alignment for mobile images */
    .guide-image { 
        margin-left: 1.5rem; 
        width: calc(100% - 3rem); 
    }
}