/* ==========================================================================
   KALPAVRIKSHA GLOBAL DESIGN SYSTEM (main.css)
   ========================================================================== */

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

:root {
    /* Color Palette */
    --bg-color: #030508;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    /* Premium Gold Theme */
    --accent: #d4af37;
    --accent-soft: #e8c766;
    --accent-glow: rgba(212, 175, 55, 0.15);
    
    /* Card & Borders */
    --card-bg: rgba(10, 15, 26, 0.65);
    --border-color: rgba(212, 175, 55, 0.18);
    --border-soft: rgba(255, 255, 255, 0.06);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset & Core ───────────────────────────────────────────────────────── */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Premium ambient background glows */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(1200px 700px at 50% -10%, rgba(212, 175, 55, 0.20), transparent 70%),
        radial-gradient(800px 600px at 90% 15%, rgba(129, 110, 247, 0.15), transparent 60%),
        radial-gradient(800px 600px at 10% 45%, rgba(20, 184, 166, 0.10), transparent 60%),
        radial-gradient(1100px 700px at 50% 110%, rgba(56, 120, 246, 0.14), transparent 70%),
        linear-gradient(180deg, #07090e 0%, #04060a 40%, #020305 100%);
}

.wrap {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

a {
    color: var(--accent-soft);
    text-decoration: none;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

a:hover {
    color: #fff;
}

strong {
    color: #fff;
    font-weight: 600;
}

/* ── Typography ────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #fff;
    letter-spacing: -0.03em;
}

/* ── Header / Hero ──────────────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 7rem 0 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(212, 175, 55, 0.08);
    color: var(--accent-soft);
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.03);
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    position: relative;
}

.status-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(1); opacity: .8 }
    70% { transform: scale(3.2); opacity: 0 }
    100% { transform: scale(1); opacity: 0 }
}

.logo {
    width: 130px;
    height: auto;
    display: block;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 0 32px rgba(212, 175, 55, 0.35));
    transition: transform var(--transition-smooth);
}
.logo:hover {
    transform: rotate(5deg) scale(1.03);
}

h1 {
    font-weight: 800;
    font-size: 3.5rem;
    line-height: 1.12;
    margin: 0 auto 1.5rem;
    max-width: 20ch;
}

h1 .gold {
    background: linear-gradient(135deg, var(--accent) 5%, var(--accent-soft) 55%, #f6e6b4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lede {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 0 auto 2.5rem;
    max-width: 54ch;
}

/* ── Custom Browser Mockup Frame (Safari style) ────────────────────────── */
.browser-mockup {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    background: #090c12;
    box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85), 0 0 40px rgba(212, 175, 55, 0.02);
    position: relative;
}

.browser-header {
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-soft);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.browser-dot.red { background: #ff5f56; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #27c93f; }

.browser-address {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    font-family: monospace;
    max-width: 380px;
    margin: 0 auto;
}

/* ── Interactive Statement Import Simulator ────────────────────────────── */
.sim-card {
    max-width: 800px;
    margin: 3.5rem auto 0;
}

.sim-container {
    padding: 2rem;
    background: rgba(10, 15, 28, 0.85);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.sim-dropzone {
    border: 2px dashed var(--border-color);
    background: rgba(212, 175, 55, 0.02);
    border-radius: 12px;
    width: 100%;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sim-dropzone:hover {
    border-color: var(--accent);
    background: rgba(212, 175, 55, 0.05);
    transform: scale(0.99);
}

.sim-dropzone svg {
    color: var(--accent-soft);
    transition: transform var(--transition-fast);
}

.sim-dropzone:hover svg {
    transform: translateY(-4px);
}

.sim-progress-wrapper {
    width: 100%;
    max-width: 420px;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.sim-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.sim-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
    border-radius: 10px;
    transition: width 0.1s linear;
}

.sim-laser {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent), 0 0 20px var(--accent);
    display: none;
    z-index: 10;
    animation: laser-scan 2.5s ease-in-out infinite;
}

@keyframes laser-scan {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Friendly step-list inside the simulator */
.sim-steps-list {
    list-style: none;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sim-step-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s ease;
}

.sim-step-item.active {
    color: #fff;
}

.sim-step-item.done {
    color: var(--text-muted);
}

.sim-step-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    transition: all 0.3s ease;
    position: relative;
}

/* Pending: faint ring */
.sim-step-icon.pending {
    border-color: var(--border-soft);
    opacity: 0.35;
}

/* Active: spinning ring */
.sim-step-icon.spinning {
    border-color: transparent;
    border-top-color: var(--accent);
    border-width: 2px;
    border-style: solid;
    background: transparent;
    animation: sim-spin 0.7s linear infinite;
}

@keyframes sim-spin {
    to { transform: rotate(360deg); }
}

/* Done: gold filled checkmark */
.sim-step-icon.checked {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-soft) 100%);
    border-color: transparent;
    animation: sim-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sim-pop {
    0% { transform: scale(0.6); }
    100% { transform: scale(1); }
}

.sim-step-icon.checked::after {
    content: '';
    display: block;
    width: 8px;
    height: 5px;
    border-left: 2px solid #030508;
    border-bottom: 2px solid #030508;
    transform: rotate(-45deg) translate(1px, -1px);
}

/* Simulated Dashboard Result */
.sim-results {
    display: none;
    width: 100%;
    animation: fadeEffect 0.5s ease-out;
}

.sim-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: left;
}

.sim-dashboard-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sim-dashboard-title {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    font-weight: 700;
}

.sim-dashboard-val {
    font-size: 1.85rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.sim-dashboard-val .gold-text {
    color: var(--accent-soft);
}

.sim-holdings-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.sim-holdings-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    animation: slideUpIn 0.4s ease-out forwards;
    opacity: 0;
    transform: translateY(8px);
}

@keyframes slideUpIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ── Interactive Showcase Tabs ────────────────────────────────────────── */
.showcase-container {
    max-width: 900px;
    margin: 4rem auto 0;
}

.showcase-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-soft);
    padding: 0.4rem;
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

.showcase-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.showcase-tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.showcase-tab.active {
    color: #030508;
    background: linear-gradient(135deg, #ffffff 0%, #ecedf0 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.showcase-view {
    position: relative;
}

.showcase-slide {
    display: none;
    animation: fadeEffect var(--transition-smooth);
}

.showcase-slide.active {
    display: block;
}

@keyframes fadeEffect {
    from { opacity: 0; transform: scale(0.99); }
    to { opacity: 1; transform: scale(1); }
}

.shot img {
    display: block;
    width: 100%;
    height: auto;
}

.shot::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, transparent 75%, rgba(3, 5, 8, 0.4) 100%);
}

.shot-caption {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-top: 1rem;
    font-weight: 500;
}

/* ── Form & CTAs ────────────────────────────────────────────────────────── */
.cta {
    max-width: 400px;
    margin: 0 auto;
}

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

input[type="email"] {
    padding: 1rem 1.35rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-fast);
    backdrop-filter: blur(8px);
}

input[type="email"]:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15), inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

input[type="email"]::placeholder {
    color: var(--text-muted);
    opacity: .5;
}

/* Premium Button with shine effect */
.button-link {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    color: #030508;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    /* Animate only tweenable props. `transition: all` tried to interpolate the
       hover background (gradient -> solid #fff), which browsers can't tween, so it
       rendered a discrete mid-transition flash (the hover flicker). */
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), color var(--transition-fast);
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.button-link::before {
    content: '';
    position: absolute;
    top: 0; left: -150%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
}

.button-link:hover::before {
    left: 150%;
    transition: all 0.8s ease-in-out;
}

.button-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -4px rgba(212, 175, 55, 0.25), 0 8px 20px -6px rgba(0, 0, 0, 0.5);
    background: #ffffff;
    /* Re-assert dark text: the global `a:hover { color: #fff }` rule has higher
       specificity than `.button-link`, so without this an `<a class="button-link">`
       turns white-on-white (blank) on hover. */
    color: #030508;
}

.button-link:active {
    transform: translateY(1px);
}

.button-link:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.form-microcopy {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 1rem;
}

/* ── Sections ───────────────────────────────────────────────────────────── */
section {
    padding: 6rem 0;
}

/* Full-bleed surface bands give the page rhythm: each section reads as its
   own zone instead of one continuous scroll. The 100vw + centered transform
   breaks the band out of the .wrap container (body has overflow-x: hidden). */
.section-band {
    position: relative;
    isolation: isolate;
}
.section-band::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.015);
}
/* Highlighted middle zone (the product tour) gets a soft gold wash. */
.section-band.band-feature::before {
    background:
        radial-gradient(1000px 360px at 50% 0%, rgba(212, 175, 55, 0.05), transparent 70%),
        rgba(255, 255, 255, 0.024);
}

.eyebrow {
    width: fit-content;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-soft);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.eyebrow::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    margin-bottom: 1rem;
}

.section-sub {
    color: var(--text-muted);
    text-align: center;
    max-width: 54ch;
    margin: 0 auto 4rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ── Modern Bento Grid layout ───────────────────────────────────────────── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5), 0 0 24px rgba(212, 175, 55, 0.05);
}

.bento-card-bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 100%, rgba(212, 175, 55, 0.05), transparent 60%);
    z-index: 1;
}

.bento-card.col-6 { grid-column: span 6; }
.bento-card.col-4 { grid-column: span 4; }
.bento-card.col-8 { grid-column: span 8; }

.bento-header {
    z-index: 2;
    margin-bottom: 2rem;
}

.bento-header .pillar-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.18);
    color: var(--accent-soft);
    margin-bottom: 1.5rem;
}

.bento-card:hover .bento-header .pillar-icon {
    transform: scale(1.08) rotate(3deg);
    background: rgba(212, 175, 55, 0.15);
    color: #fff;
}

.bento-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

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

/* Bento Graphics */
.bento-graphic {
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 130px;
}

/* Floating badge graphic */
.currency-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.currency-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: float-badge 3s ease-in-out infinite alternate;
}

.currency-badge:nth-child(even) {
    animation-delay: 1.5s;
}

.currency-badge.currency-badge-more {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.28);
    color: var(--accent-soft);
}

/* Coloured currency symbol chip inside each badge */
.ccy-sym {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 800;
    font-style: normal;
    line-height: 1;
}
.ccy-usd { background: rgba(52, 211, 153, 0.16); color: #34d399; }
.ccy-eur { background: rgba(96, 165, 250, 0.16); color: #60a5fa; }
.ccy-gbp { background: rgba(167, 139, 250, 0.16); color: #a78bfa; }
.ccy-inr { background: rgba(251, 146, 60, 0.16); color: #fb923c; }
.ccy-jpy { background: rgba(251, 113, 133, 0.16); color: #fb7185; }

@keyframes float-badge {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
}

.security-vault {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: rgba(212, 175, 55, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
    color: var(--accent-soft);
    animation: pulse-vault 2.5s infinite alternate;
}

@keyframes pulse-vault {
    0% { box-shadow: 0 0 12px rgba(212, 175, 55, 0.05); transform: scale(1); }
    100% { box-shadow: 0 0 25px rgba(212, 175, 55, 0.2); transform: scale(1.04); }
}

/* Statement extraction flow ("No more manual entry" card):
   PDF gets scanned -> data flows -> fields are recognised, one by one. */
.extract-visual {
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.extract-doc {
    position: relative;
    flex-shrink: 0;
    width: 48px;
    height: 58px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    overflow: hidden;
}

/* scan line sweeping down the document */
.extract-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.55);
    animation: extract-scan-move 2.6s ease-in-out infinite;
}
@keyframes extract-scan-move {
    0%   { top: 6%; opacity: 0; }
    12%  { opacity: 1; }
    88%  { opacity: 1; }
    100% { top: 90%; opacity: 0; }
}

/* dots travelling from the document to the extracted fields */
.extract-flow {
    display: flex;
    align-items: center;
    gap: 5px;
}
.extract-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-soft);
    opacity: 0.18;
    animation: extract-flow-dot 1.4s ease-in-out infinite;
}
.extract-dot:nth-child(2) { animation-delay: 0.18s; }
.extract-dot:nth-child(3) { animation-delay: 0.36s; }
@keyframes extract-flow-dot {
    0%, 100% { opacity: 0.18; transform: scale(0.8); }
    40%      { opacity: 1; transform: scale(1); }
}

/* recognised fields populating one after another */
.extract-rows {
    flex-grow: 1;
    max-width: 190px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.extract-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 9px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    font-size: 0.72rem;
    opacity: 0;
    animation: extract-row-in 4.2s ease-in-out infinite;
}
.extract-row:nth-child(2) { animation-delay: 0.5s; }
.extract-row:nth-child(3) { animation-delay: 1s; }
@keyframes extract-row-in {
    0%, 6%    { opacity: 0; transform: translateX(8px); }
    18%, 82%  { opacity: 1; transform: translateX(0); }
    94%, 100% { opacity: 0; transform: translateX(8px); }
}
.er-label { color: var(--text-muted); }
.er-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.er-val {
    color: var(--text-main);
    font-weight: 700;
}
.er-check {
    font-style: normal;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(52, 211, 153, 0.16);
    color: #34d399;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.58rem;
    font-weight: 800;
}

/* Net-worth allocation panel (wide "unified dashboard" card) */
.networth-graphic {
    height: auto;
    width: 100%;
    align-items: stretch;
    margin-top: auto;
}

.networth-panel {
    width: 100%;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    padding: 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.networth-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.networth-headline {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.networth-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.networth-value {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.networth-change {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-soft);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 9999px;
    padding: 0.25rem 0.6rem;
}

.networth-bar {
    display: flex;
    width: 100%;
    height: 12px;
    border-radius: 9999px;
    overflow: hidden;
    gap: 2px;
    background: rgba(255, 255, 255, 0.03);
}

.networth-bar .seg {
    height: 100%;
    border-radius: 2px;
}

.networth-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.networth-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.networth-legend .dot {
    width: 9px;
    height: 9px;
    border-radius: 3px;
    display: inline-block;
}

/* Gold monochrome allocation scale (shared by bar + legend) */
.seg.seg-1 { background: var(--accent); }
.seg.seg-2 { background: rgba(212, 175, 55, 0.68); }
.seg.seg-3 { background: rgba(212, 175, 55, 0.46); }
.seg.seg-4 { background: rgba(212, 175, 55, 0.30); }
.seg.seg-5 { background: rgba(255, 255, 255, 0.16); }

/* Steps grid */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4.5rem;
}

.step {
    position: relative;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--accent-soft);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* ── FAQ Accordion ──────────────────────────────────────────────────────── */
.faq-section {
    max-width: 760px;
    margin: 0 auto;
}

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

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: rgba(212, 175, 55, 0.25);
    background: rgba(255, 255, 255, 0.03);
}

.faq-trigger {
    width: 100%;
    padding: 1.5rem;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    outline: none;
    transition: color var(--transition-fast);
}

.faq-trigger:focus-visible {
    background: rgba(212, 175, 55, 0.05);
}

.faq-icon-arrow {
    color: var(--text-dim);
    transition: transform var(--transition-smooth), color var(--transition-fast);
}

.faq-item.active .faq-icon-arrow {
    transform: rotate(180deg);
    color: var(--accent-soft);
}

.faq-item.active {
    background: rgba(10, 15, 26, 0.4);
    border-color: var(--border-color);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--transition-smooth), opacity var(--transition-smooth);
}

.faq-content-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ── Staging / Dev / Success Containers ──────────────────────────────────── */
.container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 4rem 3rem;
    border-radius: 28px;
    border: 1px solid var(--border-color);
    box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 175, 55, 0.03);
    max-width: 460px;
    width: 100%;
    animation: container-fade-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes container-fade-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.subtitle {
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 2.5rem;
    font-size: 1.02rem;
}

/* ── Checkout / License Box (Beta View) ────────────────────────────────── */
#trial-form-container {
    display: none;
    max-width: 520px;
    margin: 0 auto;
    text-align: left;
}

.trial-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    text-align: center;
}

.pricing-box {
    margin-bottom: 2rem;
}

.pricing-checklist {
    list-style: none;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.25rem 1.5rem;
    background: rgba(212, 175, 55, 0.04);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.pricing-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.pricing-checklist li span.checkmark {
    color: var(--accent-soft);
    font-weight: 800;
    line-height: 1;
}

.license-details {
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid var(--border-soft);
    line-height: 1.6;
}

.license-details h3 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.license-details ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.license-details li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.license-details li span.arrow {
    color: var(--accent);
    font-weight: 700;
    line-height: 1;
}

/* Success icon view */
.success-icon {
    width: 76px;
    height: 76px;
    background-color: rgba(212, 175, 55, 0.06);
    color: var(--accent-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem auto;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.1);
}

/* ── Doc Pages (Privacy, Terms, Refund) ────────────────────────────────── */
.doc {
    max-width: 780px;
    margin: 0 auto;
    padding-top: 2rem;
}

.back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2.5rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--border-soft);
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.01);
    transition: all var(--transition-fast);
}

.back:hover {
    color: var(--accent-soft);
    border-color: var(--border-color);
    background: rgba(212, 175, 55, 0.04);
    transform: translateX(-2px);
}

.doc h1 {
    font-weight: 800;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.04em;
}

.doc h2 {
    font-weight: 700;
    font-size: 1.35rem;
    margin: 3rem 0 1rem;
    color: #fff;
    letter-spacing: -0.02em;
}

.doc p, .doc li {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.1rem;
    line-height: 1.7;
}

.doc ul {
    padding-left: 1.5rem;
    margin-bottom: 1.1rem;
}

.doc li {
    margin-bottom: 0.6rem;
}

.doc .meta {
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.doc .note {
    background: rgba(212, 175, 55, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}

.doc .note strong {
    color: var(--accent-soft);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border-soft);
    margin-top: 5rem;
    padding: 4rem 0;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2.25rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.88rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-soft);
}

/* Staging mode indicator */
.staging-indicator {
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: #d97706;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: 0.05em;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dev-indicator {
    position: fixed;
    bottom: 16px;
    right: 16px;
    background: #059669;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: 0.05em;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Responsive Styling ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    h1 { font-size: 2.6rem; }
    .section-title { font-size: 2rem; }
    .bento-grid { gap: 1rem; }
    .bento-card.col-4, .bento-card.col-6, .bento-card.col-8 { grid-column: span 12; }
    .bento-graphic { height: auto; margin-top: 1.5rem; }
    .steps { grid-template-columns: 1fr; gap: 1.5rem; }
    section { padding: 4.5rem 0; }
    .hero { padding: 4rem 0 1rem; }
    .container { padding: 3rem 2rem; }
    .showcase-tabs { flex-wrap: wrap; }
    .showcase-tab { font-size: 0.82rem; padding: 0.5rem 1rem; }
    .footer-links { gap: 0.5rem 1.5rem; }
    .sim-results-grid { grid-template-columns: 1fr; }
    .nav-container { padding: 0 1rem; }
}

/* ── Navigation Bar ─────────────────────────────────────────────────────── */
.nav-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 70px;
    background: transparent;
    border-bottom: 1px solid transparent;
    z-index: 100;
    display: flex;
    align-items: center;
    transition: all var(--transition-fast);
}

.nav-bar.scrolled {
    background: rgba(3, 5, 8, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.nav-brand img {
    height: 28px;
    width: auto;
}

.nav-cta-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    color: #fff;
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.nav-cta-btn:hover {
    background: #fff;
    color: #030508;
    border-color: #fff;
    transform: translateY(-1px);
}

body {
    padding-top: 70px;
}

/* ── Final CTA Section ──────────────────────────────────────────────────── */
.final-cta-section {
    padding: 5rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

.final-cta-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 4rem 3rem;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
}

.final-cta-card h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.final-cta-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

