/* ============================================
   Trackworth — The Vault
   Private Banking Aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --vault-black: #0B0E13;
    --vault-deep: #101520;
    --vault-navy: #1A2240;
    --vault-steel: #243055;
    --gold: #C9A84C;
    --gold-light: #E4C96A;
    --gold-dim: rgba(201,168,76,0.15);
    --gold-glow: rgba(201,168,76,0.08);
    --silver: #8B95A8;
    --silver-light: #B0B8C8;
    --text: #E8EAF0;
    --text-muted: #8B95B0;
    --text-dim: #5D6580;
    --border: rgba(201,168,76,0.12);
    --border-subtle: rgba(255,255,255,0.06);
    --card: rgba(26,34,64,0.5);
    --card-hover: rgba(36,48,85,0.6);
    --shadow-gold: 0 0 80px rgba(201,168,76,0.06);
    --shadow-deep: 0 20px 60px rgba(0,0,0,0.4);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--vault-black);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--gold-light); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute; top: -100%; left: 1rem;
    background: var(--gold); color: var(--vault-black);
    padding: 0.5rem 1rem; border-radius: var(--radius-xs);
    z-index: 200; font-weight: 600;
}
.skip-link:focus { top: 1rem; color: var(--vault-black); }

.section-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
section { padding: 8rem 0; position: relative; }

/* ---- Nav ---- */
nav {
    position: fixed; top: 0; width: 100%;
    padding: 1rem 2rem;
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(11,14,19,0.85);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 100;
}
.nav-logo {
    font-family: var(--font-display);
    font-size: 1.35rem;
    color: var(--text); text-decoration: none;
    display: flex; align-items: center; gap: 0.6rem;
    letter-spacing: -0.01em;
}
.nav-icon { border-radius: 10px; }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
    color: var(--silver); text-decoration: none;
    font-size: 0.85rem; font-weight: 500; transition: color 0.2s;
    letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--text); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.5rem; padding: 0.75rem 1.8rem;
    border-radius: var(--radius-sm); font-size: 0.88rem;
    font-weight: 600; font-family: var(--font-body);
    text-decoration: none; transition: all 0.3s;
    cursor: pointer; border: none; line-height: 1.4;
    letter-spacing: 0.02em;
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold), #B8943F);
    color: var(--vault-black);
    box-shadow: 0 4px 20px rgba(201,168,76,0.25);
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--vault-black);
    box-shadow: 0 6px 30px rgba(201,168,76,0.35);
    transform: translateY(-2px);
}
.btn-outline {
    background: transparent;
    color: var(--silver-light);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-glow);
}
.btn-large { padding: 1rem 2.4rem; font-size: 0.95rem; border-radius: var(--radius); }

.app-store-badge { display: inline-flex; align-items: center; transition: all 0.25s; }
.app-store-badge:hover { opacity: 0.85; transform: translateY(-2px); }
.app-store-badge img { height: 3.2rem; width: auto; }

/* ---- Hero ---- */
.hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 8rem 2rem 5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: -20%; right: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--vault-black));
    pointer-events: none;
}
.hero .section-inner {
    display: flex; align-items: center; gap: 5rem;
    max-width: 1100px; margin: 0 auto; width: 100%;
    position: relative; z-index: 1;
}
.hero-text { flex: 1; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: var(--gold-dim);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.72rem; font-weight: 700;
    color: var(--gold);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--text);
}
.hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.12rem);
    color: var(--silver);
    max-width: 460px;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 300;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.hero-stats {
    display: flex; gap: 3.5rem;
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-subtle);
}
.hero-stat .val {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--gold);
}
.hero-stat .lbl {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 500;
}

/* Vault Icon Float */
.hero-visual {
    flex-shrink: 0;
    position: relative;
}
.vault-icon-hero {
    width: 280px; height: 280px;
    border-radius: 56px;
    box-shadow: var(--shadow-deep), var(--shadow-gold), 0 0 0 1px var(--border);
    animation: vault-float 6s ease-in-out infinite;
}
@keyframes vault-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-14px) rotate(1deg); }
}

/* ---- Evidence Banner ---- */
.evidence-banner {
    background: linear-gradient(90deg, var(--vault-deep), var(--vault-navy), var(--vault-deep));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
    padding: 1.5rem 2rem;
    font-size: 0.85rem;
    color: var(--silver);
    letter-spacing: 0.04em;
    font-weight: 400;
}
.evidence-banner strong { color: var(--gold); font-weight: 700; }
.evidence-divider {
    display: inline-block;
    width: 1px; height: 14px;
    background: var(--text-dim);
    margin: 0 1.5rem;
    vertical-align: middle;
}

/* ---- Section Headers ---- */
.section-label {
    font-family: var(--font-body);
    font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 0.2em; color: var(--gold);
    font-weight: 700; margin-bottom: 0.75rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.15;
}
.section-desc {
    font-size: 1rem;
    color: var(--silver);
    max-width: 520px;
    line-height: 1.7;
    font-weight: 300;
}

/* ---- Features ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}
.feature-card {
    padding: 2rem;
    background: var(--card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
    opacity: 0;
    transition: opacity 0.35s;
}
.feature-card:hover {
    background: var(--card-hover);
    border-color: var(--border);
    transform: translateY(-3px);
    box-shadow: var(--shadow-deep);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    background: var(--gold-dim);
    border: 1px solid var(--border);
}
.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.feature-card p {
    font-size: 0.88rem;
    color: var(--silver);
    font-weight: 300;
    line-height: 1.65;
}

/* ---- Privacy Section ---- */
.privacy-section {
    background: linear-gradient(180deg, var(--vault-black), var(--vault-deep), var(--vault-black));
}
.privacy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}
.privacy-visual {
    position: relative;
    display: flex; justify-content: center;
}
.vault-lock {
    width: 200px; height: 200px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem;
    background: radial-gradient(circle, var(--gold-dim), transparent);
    box-shadow: 0 0 120px rgba(201,168,76,0.08);
    position: relative;
}
.vault-lock::before {
    content: '';
    position: absolute; inset: -20px;
    border-radius: 50%;
    border: 1px solid var(--border);
}
.vault-lock::after {
    content: '';
    position: absolute; inset: -40px;
    border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.04);
}
.privacy-points { list-style: none; }
.privacy-points li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-subtle);
    display: flex; gap: 1rem; align-items: flex-start;
    font-size: 0.95rem; color: var(--silver);
    font-weight: 300;
}
.privacy-points li:last-child { border-bottom: none; }
.privacy-check {
    color: var(--gold);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.privacy-points strong { color: var(--text); font-weight: 600; }

/* ---- Comparison ---- */
.comparison-section {
    background: var(--vault-deep);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 3rem;
    font-size: 0.88rem;
}
.comparison-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    border-bottom: 1px solid var(--border);
}
.comparison-table th:last-child {
    color: var(--gold);
}
.comparison-table td {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--silver);
    font-weight: 300;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table td:last-child {
    color: var(--gold);
    font-weight: 600;
}
.comparison-table .check { color: var(--gold); }
.comparison-table .cross { color: var(--text-dim); }

/* ---- Pricing ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
    max-width: 960px;
    margin-left: auto; margin-right: auto;
}
.price-card {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    background: var(--card);
    position: relative;
    transition: all 0.35s;
}
.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-deep);
}
.price-card.featured {
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(201,168,76,0.06), var(--card));
    box-shadow: var(--shadow-gold);
}
.price-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--gold), #B8943F);
    color: var(--vault-black);
    font-size: 0.68rem; font-weight: 700;
    padding: 0.3rem 1rem; border-radius: 100px;
    white-space: nowrap;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.price-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}
.price-card .price-sub {
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}
.price-amount {
    font-family: var(--font-display);
    font-size: 2.6rem;
    color: var(--text);
    margin: 0.75rem 0 0.25rem;
}
.price-amount span {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--text-dim);
}
.price-save {
    font-size: 0.78rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1.5rem;
    min-height: 1.2rem;
}
.price-card ul { list-style: none; margin: 1.25rem 0; }
.price-card li {
    padding: 0.3rem 0;
    font-size: 0.85rem;
    color: var(--silver);
    display: flex; align-items: center; gap: 0.6rem;
    font-weight: 300;
}
.price-card .check { color: var(--gold); font-weight: 700; font-size: 0.85rem; }
.price-card .no { color: var(--text-dim); }

/* ---- FAQ ---- */
.faq-list { max-width: 680px; margin: 3.5rem auto 0; }
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-q {
    font-family: var(--font-display);
    font-size: 1.02rem;
    color: var(--text);
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 0;
    gap: 1rem;
}
.faq-q::after {
    content: '+'; font-size: 1.3rem; color: var(--gold);
    flex-shrink: 0; transition: transform 0.2s;
    font-family: var(--font-body);
}
.faq-item input[type="checkbox"] { display: none; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item input:checked ~ .faq-a { max-height: 400px; }
.faq-item input:checked ~ .faq-q::after { content: '\2212'; }
.faq-a p {
    padding-bottom: 1.5rem;
    font-size: 0.92rem;
    color: var(--silver);
    line-height: 1.75;
    font-weight: 300;
}

/* ---- CTA Section ---- */
.cta-section {
    text-align: center;
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 60%);
    pointer-events: none;
}
.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    color: var(--text);
    position: relative;
}
.cta-section p {
    font-size: 1.05rem;
    color: var(--silver);
    margin-bottom: 2.5rem;
    max-width: 440px;
    margin-left: auto; margin-right: auto;
    font-weight: 300;
    position: relative;
}

/* ---- Disclaimer ---- */
.disclaimer {
    text-align: center;
    padding: 1.75rem 2rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    border-top: 1px solid var(--border-subtle);
    max-width: 560px; margin: 0 auto;
    font-weight: 300;
}

/* ---- Footer ---- */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 3.5rem 2rem;
    background: var(--vault-deep);
}
.footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; justify-content: space-between;
    align-items: flex-start; flex-wrap: wrap; gap: 2.5rem;
}
.footer-brand { max-width: 280px; }
.footer-brand .name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.footer-brand p { font-size: 0.82rem; color: var(--text-dim); font-weight: 300; }
.footer-links { display: flex; gap: 4rem; }
.footer-col h4 {
    font-size: 0.68rem; text-transform: uppercase;
    letter-spacing: 0.16em; color: var(--silver);
    margin-bottom: 0.85rem; font-weight: 600;
}
.footer-col a {
    display: block; color: var(--text-dim); text-decoration: none;
    font-size: 0.85rem; padding: 0.25rem 0; transition: color 0.2s;
    font-weight: 400;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    max-width: 1100px; margin: 2rem auto 0;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.75rem; color: var(--text-dim);
}

/* ---- Animations ---- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    section { padding: 5rem 0; }
    .section-inner { padding: 0 1.25rem; }
    .nav-links a:not(.btn) { display: none; }
    .hero { min-height: auto; padding: 7rem 1.25rem 3rem; }
    .hero .section-inner { flex-direction: column; text-align: center; gap: 3rem; }
    .hero-text { display: flex; flex-direction: column; align-items: center; }
    .hero-sub { text-align: center; }
    .hero-ctas { justify-content: center; }
    .hero-stats { justify-content: center; flex-wrap: wrap; gap: 2rem; }
    .hero-stat { text-align: center; }
    .vault-icon-hero { width: 200px; height: 200px; border-radius: 40px; }
    .features-grid { grid-template-columns: 1fr; }
    .privacy-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 360px; }
    .comparison-table { font-size: 0.78rem; }
    .comparison-table th, .comparison-table td { padding: 0.65rem 0.8rem; }
    .footer-inner { flex-direction: column; }
    .footer-links { flex-direction: column; gap: 1.75rem; }
    .evidence-divider { display: none; }
    .evidence-banner { font-size: 0.78rem; line-height: 2; }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .fade-in { opacity: 1; transform: none; }
}
