:root {
    --bg: #05070d;
    --bg-alt: #0d111d;
    --card: rgba(255, 255, 255, 0.04);
    --stroke: rgba(255, 255, 255, 0.08);
    --primary: #6c63ff;
    --primary-dark: #4b44d1;
    --secondary: #1fc7c1;
    --muted: rgba(255, 255, 255, 0.68);
    --text: #f2f4ff;
    --danger: #ff6b6b;
    --success: #2dd4bf;
    --radius: 16px;
    --shadow: 0 30px 60px rgba(7, 14, 35, 0.4);
    font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at top left, rgba(108, 99, 255, 0.2), transparent 45%), var(--bg);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    font-family: inherit;
}

main {
    scroll-margin-top: 100px;
}

/* Ensure all sections account for sticky header */
section {
    scroll-margin-top: 100px;
}

/* First section on pages should have top padding (except hero which has its own) */
main > section:first-of-type:not(.hero) {
    padding-top: 2rem;
}

/* Ensure sections with IDs (anchor targets) have proper spacing */
section[id] {
    scroll-margin-top: 100px;
}

/* Dashboard panels */
.dashboard-main {
    scroll-margin-top: 100px;
}

.panel {
    scroll-margin-top: 100px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 16px;
    padding: 8px 12px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 16px;
}

.container {
    width: min(1200px, 90vw);
    margin: 0 auto;
}

.container.narrow {
    width: min(800px, 90vw);
    text-align: center;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brand-icon {
    width: 200px;
    height: 200px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(5, 7, 13, 0.45);
}

.site-header .brand-icon {
    width: 200px;
    height: 200px;
}

.site-nav {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.link-muted {
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: linear-gradient(120deg, var(--primary), #8f7cff);
    color: #fff;
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--stroke);
}

.btn-tertiary {
    background: transparent;
    border: 1px solid var(--stroke);
    color: #fff;
}

.btn:hover {
    transform: translateY(-2px);
}

.hero {
    padding: 6rem 0 4rem;
    scroll-margin-top: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: var(--secondary);
}

.lead {
    font-size: 1.2rem;
    color: var(--muted);
}

.hero-meta {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    font-size: 2rem;
    font-weight: 600;
}

.hero-visual {
    background: var(--card);
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    position: relative;
}

.virtual-card-floating {
    position: absolute;
    top: -60px;
    right: -40px;
    z-index: 5;
    transform: rotate(8deg);
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% {
        transform: rotate(8deg) translateY(0);
    }
    50% {
        transform: rotate(8deg) translateY(-10px);
    }
}

.virtual-card {
    width: 320px;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6c63ff 100%);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.virtual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.card-chip {
    width: 40px;
    height: 32px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 6px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 20px;
    background: linear-gradient(135deg, #c9a961 0%, #ffd700 100%);
    border-radius: 3px;
}

.card-number {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Courier New', monospace;
    margin: 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.card-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 0.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    letter-spacing: 0.05em;
}

.card-brand {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dashboard-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.dashboard-head {
    display: flex;
    justify-content: space-between;
}

.badge {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
}

.badge-live {
    background: rgba(45, 212, 191, 0.15);
    color: var(--success);
}

.balance .amount {
    font-size: 2.5rem;
    margin: 0.2rem 0;
}

.trend {
    font-weight: 600;
}

.trend.positive {
    color: var(--success);
}

.trend.negative {
    color: var(--danger);
}

.dashboard-stats {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.treasury-signals-container {
    position: relative;
}

.treasury-signals-btn {
    width: 100%;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(120deg, rgba(108, 99, 255, 0.2), rgba(31, 199, 193, 0.15));
    border: 1px solid rgba(108, 99, 255, 0.3);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 0.9rem;
}

.treasury-signals-btn:hover {
    background: linear-gradient(120deg, rgba(108, 99, 255, 0.3), rgba(31, 199, 193, 0.25));
    border-color: rgba(108, 99, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.2);
}

.treasury-signals-btn[aria-expanded="true"] {
    background: linear-gradient(120deg, rgba(108, 99, 255, 0.35), rgba(31, 199, 193, 0.3));
    border-color: var(--primary);
}

.treasury-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.treasury-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--muted);
}

.treasury-signals-btn[aria-expanded="true"] .treasury-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.treasury-features {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0;
}

.treasury-signals-btn[aria-expanded="true"] + .treasury-features,
.treasury-features.expanded {
    max-height: 500px;
    opacity: 1;
    margin-top: 1rem;
    padding: 0;
}

.treasury-feature-item {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 8px;
    padding: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.treasury-feature-item:hover {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.1);
}

.treasury-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    background: rgba(108, 99, 255, 0.2);
    color: var(--primary);
    border: 1px solid rgba(108, 99, 255, 0.3);
}

.treasury-feature-item:nth-child(2) .treasury-badge {
    background: rgba(31, 199, 193, 0.2);
    color: var(--secondary);
    border-color: rgba(31, 199, 193, 0.3);
}

.treasury-feature-item:nth-child(3) .treasury-badge {
    background: rgba(255, 107, 107, 0.2);
    color: var(--danger);
    border-color: rgba(255, 107, 107, 0.3);
}

.treasury-label {
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0 0 0.25rem 0;
    font-weight: 500;
}

.treasury-value {
    font-size: 0.9rem;
    color: var(--text);
    margin: 0;
    font-weight: 600;
}

.fx-rates-expanded {
    grid-column: 1 / -1;
    padding: 1rem;
}

.fx-rates-container {
    width: 100%;
}

.fx-rates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.fx-rates-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.fx-filter-select {
    padding: 0.5rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--stroke);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.fx-filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}

.fx-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.fx-search-input {
    padding: 0.5rem 2.5rem 0.5rem 0.75rem;
    background: var(--bg);
    border: 1px solid var(--stroke);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.85rem;
    font-family: inherit;
    width: 200px;
    transition: all 0.3s ease;
}

.fx-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
    width: 250px;
}

.fx-search-input::placeholder {
    color: var(--muted);
}

.fx-search-icon {
    position: absolute;
    right: 0.75rem;
    font-size: 0.9rem;
    color: var(--muted);
    pointer-events: none;
}

.fx-rate-item.hidden {
    display: none;
}

.fx-rates-empty {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
}

.fx-rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.fx-rate-item {
    background: rgba(108, 99, 255, 0.05);
    border: 1px solid rgba(108, 99, 255, 0.2);
    border-radius: 6px;
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    transition: all 0.3s ease;
}

.fx-rate-item:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: rgba(108, 99, 255, 0.4);
    transform: translateY(-2px);
}

.fx-pair {
    font-size: 0.7rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fx-value {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.fx-change {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.fx-change.positive {
    color: var(--success);
    background: rgba(45, 212, 191, 0.15);
}

.fx-change.negative {
    color: var(--danger);
    background: rgba(255, 107, 107, 0.15);
}

.trust {
    padding: 3rem 0;
    scroll-margin-top: 100px;
}

.logo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    font-weight: 600;
    color: var(--muted);
}

.statistics {
    padding: 4rem 0;
    background: var(--card);
    border-top: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.statistics .stat {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

.statistics .muted {
    font-size: 1rem;
}

.trust-grid,
.feature-grid,
.use-cases-grid,
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.trust-grid article,
.feature-grid article,
.testimonial-grid article,
.use-cases article {
    padding: 1.5rem;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--stroke);
    transition: all 0.3s ease;
}

.trust-grid article:hover,
.testimonial-grid article:hover,
.use-cases article:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.1);
    transform: translateY(-2px);
}

.feature-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid var(--stroke);
    background: var(--card);
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.1);
    transform: translateY(-2px);
}


.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.feature-header h3 {
    margin: 0;
    flex: 1;
}

.feature-toggle {
    background: transparent;
    border: 1px solid var(--stroke);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
    color: var(--text);
}

.feature-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.feature-toggle[aria-expanded="true"] {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.feature-toggle[aria-expanded="true"] .toggle-icon {
    transform: rotate(45deg);
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.3s ease;
    display: inline-block;
}

.feature-summary {
    margin: 0;
    color: var(--muted);
}

.feature-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.feature-card[aria-expanded="true"] .feature-details,
.feature-card.expanded .feature-details {
    max-height: 500px;
    opacity: 1;
    margin-top: 1.5rem;
}

.feature-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-details li {
    padding-left: 1.5rem;
    position: relative;
    color: var(--text);
    line-height: 1.6;
}

.feature-details li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

.card-generator {
    padding: 4rem 0;
    background: var(--bg-alt);
    scroll-margin-top: 100px;
}

.generator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

.generator-form {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    transition: all 0.3s ease;
}

.generator-form:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.1);
}

.generator-form label {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.generator-form input,
.generator-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    background: var(--bg);
    border: 1px solid var(--stroke);
    border-radius: 8px;
    color: var(--text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.generator-form input:hover,
.generator-form select:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.1);
}

.generator-form input:focus,
.generator-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.2);
}

.generator-form input::placeholder {
    color: var(--muted);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.form-actions button {
    flex: 1;
}

.generator-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.virtual-card-preview {
    width: 100%;
    max-width: 400px;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6c63ff 100%);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.virtual-card-preview:hover {
    transform: translateY(-5px);
}

.virtual-card-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.virtual-card-preview .card-chip {
    width: 50px;
    height: 40px;
}

.virtual-card-preview .card-number {
    font-size: 1.5rem;
    margin: 1.5rem 0;
}

.virtual-card-preview .card-brand {
    font-size: 1.75rem;
}

.card-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
}

.card-actions button {
    flex: 1;
}

.card-actions button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.use-cases {
    padding: 4rem 0;
    scroll-margin-top: 100px;
}

.use-cases-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.use-cases ul {
    padding-left: 1.2rem;
}

.testimonial-grid .quote {
    font-size: 1.1rem;
    font-style: italic;
}

.text-center {
    text-align: center;
}

.cta {
    padding: 4rem 0;
    scroll-margin-top: 100px;
}

.cta-card {
    background: linear-gradient(120deg, rgba(108, 99, 255, 0.25), rgba(31, 199, 193, 0.25));
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    border: 1px solid var(--stroke);
    align-items: center;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer {
    border-top: 1px solid var(--stroke);
    background: rgba(5, 7, 13, 0.95);
    padding: 3rem 0;
    margin-top: 3rem;
}

.site-footer.slim {
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.muted {
    color: var(--muted);
}

.subpage .page-hero {
    padding: 4rem 0 2rem;
    scroll-margin-top: 100px;
}

.feature-categories .container,
.mission-grid,
.team-grid {
    display: grid;
    gap: 2rem;
}

.contact {
    scroll-margin-top: 100px;
    padding-top: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(108, 99, 255, 0.2);
    display: grid;
    place-items: center;
    font-weight: 600;
    margin-bottom: 1rem;
}

.accordion-section,
.pricing-faq {
    padding: 3rem 0;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-control {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    color: inherit;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
}

.accordion-content {
    display: none;
    border-left: 2px solid var(--primary);
    padding: 0 1.5rem 1rem;
    color: var(--muted);
}

.accordion-control[aria-expanded="true"] {
    background: rgba(108, 99, 255, 0.1);
}

.accordion-control[aria-expanded="true"] + .accordion-content {
    display: block;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--secondary);
    font-weight: 600;
}

.link-arrow::after {
    content: '→';
    transition: transform 0.2s;
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

.dev-grid,
.dev-overview .container {
    gap: 1.5rem;
}

.stepper {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    counter-reset: steps;
    padding: 0;
}

.step-label {
    font-size: 0.85rem;
    color: var(--secondary);
}

.status-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, 0.02);
}

.dev-tabs {
    padding: 3rem 0;
}

.tab-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tab-controls button {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    color: inherit;
    cursor: pointer;
}

.tab-controls button[aria-selected="true"] {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
}

.tab-panels article {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: var(--card);
    transition: all 0.3s ease;
}

.tab-panels article:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.1);
    transform: translateY(-2px);
}

.docs-grid .container,
.docs-snippets .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.pricing-grid .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.pricing-card {
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--stroke);
    background: var(--card);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.1);
    transform: translateY(-2px);
}

.pricing-card.highlight {
    border: 1px solid var(--primary);
    background: linear-gradient(160deg, rgba(108, 99, 255, 0.2), rgba(31, 199, 193, 0.2));
}

.blog-grid .container,
.related-posts .blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: var(--card);
    transition: all 0.3s ease;
}

.blog-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.1);
    transform: translateY(-2px);
}

.tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.post-hero {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem 0;
    border-bottom: 1px solid var(--stroke);
}

.post-body {
    padding: 3rem 0;
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input,
textarea,
select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--stroke);
    border-radius: 12px;
    color: #fff;
    padding: 0.8rem;
    font: inherit;
    transition: all 0.3s ease;
}

input:hover,
textarea:hover,
select:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.1);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(108, 99, 255, 0.2);
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-status {
    color: var(--muted);
    min-height: 1.2rem;
}

.auth {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth main {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 2rem;
    scroll-margin-top: 100px;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: min(1100px, 95vw);
    margin: 0 auto;
}

.auth-card,
.auth-aside {
    border: 1px solid var(--stroke);
    border-radius: 24px;
    padding: 2.5rem;
    background: rgba(5, 7, 13, 0.8);
    transition: all 0.3s ease;
}

.auth-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.1);
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.auth-tabs button {
    flex: 1;
    padding: 0.8rem;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    cursor: pointer;
}

.auth-tabs button[aria-selected="true"] {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
}

.auth-form .remember {
    flex-direction: row;
    align-items: center;
}

.dashboard {
    min-height: 100vh;
    background: linear-gradient(180deg, #05070d, #080c18);
    color: #fff;
}

.dashboard-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sidebar {
    border-right: 1px solid var(--stroke);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.sidebar-link {
    background: transparent;
    border: none;
    color: inherit;
    text-align: left;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    cursor: pointer;
}

.sidebar-link.active {
    background: rgba(108, 99, 255, 0.15);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--stroke);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-info {
    padding: 0.75rem;
    background: var(--card);
    border-radius: 8px;
    border: 1px solid var(--stroke);
}

.user-email {
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 0.25rem 0;
    word-break: break-all;
}

.user-company {
    font-size: 0.8rem;
    margin: 0;
}

.user-email-header {
    color: var(--muted);
    font-size: 0.9rem;
    margin-right: 1rem;
}

.dashboard-main {
    padding: 2rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-grid article,
.card {
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 1.5rem;
    background: var(--card);
    transition: all 0.3s ease;
}

.stat-grid article:hover,
.card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.1);
    transform: translateY(-2px);
}

.layout-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
}

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.event-feed {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-feed li {
    padding: 0.8rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(5, 7, 13, 0.7);
    padding: 1rem;
}

.modal-content {
    background: var(--bg-alt);
    border-radius: 24px;
    padding: 2rem;
    width: min(420px, 90vw);
    position: relative;
    border: 1px solid var(--stroke);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
}

section,
article {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .site-nav {
        position: absolute;
        top: 72px;
        left: 5%;
        right: 5%;
        flex-direction: column;
        background: rgba(5, 7, 13, 0.95);
        padding: 1rem;
        border-radius: 16px;
        border: 1px solid var(--stroke);
        display: none;
    }

    .site-nav.open {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: 4rem;
    }

    .hero-meta {
        flex-direction: column;
    }

    .hero-visual {
        position: relative;
        overflow: visible;
    }

    .virtual-card-floating {
        position: absolute;
        top: -40px;
        right: 10px;
        transform: rotate(5deg) scale(0.75);
    }

    .virtual-card {
        width: 240px;
        height: 150px;
        padding: 1rem;
    }

    .card-number {
        font-size: 0.9rem;
        margin: 0.75rem 0;
    }

    .card-brand {
        font-size: 1.1rem;
        bottom: 1rem;
        right: 1rem;
    }

    .statistics-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .statistics .stat {
        font-size: 2.5rem;
    }

    .feature-header {
        gap: 0.75rem;
    }

    .feature-toggle {
        width: 28px;
        height: 28px;
    }

    .toggle-icon {
        font-size: 1.25rem;
    }

    .feature-details ul {
        gap: 0.5rem;
    }

    .generator-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .card-actions {
        flex-direction: column;
    }

    .virtual-card-preview {
        height: 220px;
        padding: 1.5rem;
    }

    .virtual-card-preview .card-number {
        font-size: 1.2rem;
    }

    .treasury-features {
        grid-template-columns: 1fr;
    }

    .treasury-signals-btn {
        height: 50px;
        font-size: 0.85rem;
        padding: 0 0.75rem;
    }

    .treasury-feature-item {
        padding: 0.6rem;
    }

    .fx-rates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .fx-rate-item {
        padding: 0.5rem;
    }

    .fx-pair {
        font-size: 0.65rem;
    }

    .fx-value {
        font-size: 0.8rem;
    }

    .fx-rates-header {
        flex-direction: column;
        align-items: stretch;
    }

    .fx-rates-controls {
        width: 100%;
    }

    .fx-filter-select,
    .fx-search-input {
        width: 100%;
        min-width: auto;
    }

    .fx-search-input:focus {
        width: 100%;
    }

    .cta-card {
        flex-direction: column;
    }

    .dashboard-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        flex-direction: row;
        overflow-x: auto;
    }

    .sidebar nav {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.4);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top::before {
    content: '↑';
    line-height: 1;
}

/* Dashboard feature styles */
.wallets-list,
.cards-list,
.api-keys-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wallet-item,
.card-item,
.api-key-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.wallet-item:hover,
.card-item:hover,
.api-key-item:hover {
    border-color: var(--primary);
    background: rgba(108, 99, 255, 0.05);
    transform: translateY(-2px);
}

.wallet-info,
.card-info,
.api-key-info {
    flex: 1;
}

.wallet-info h3,
.card-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.wallet-balance,
.card-number,
.api-key-value {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--text);
    margin: 0.25rem 0;
}

.wallet-currency,
.card-type,
.api-key-details {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}

.card-expiry {
    font-size: 0.8rem;
    color: var(--muted);
    margin: 0.25rem 0 0 0;
}

.status-active {
    color: var(--success);
    font-weight: 500;
}

.status-pending {
    color: var(--secondary);
    font-weight: 500;
}

.status-inactive {
    color: var(--muted);
    font-weight: 500;
}

.payment-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.summary-item {
    text-align: center;
    padding: 1rem;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

.summary-item h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.summary-item .amount {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-label span {
    font-size: 0.9rem;
    color: var(--text);
}

/* Welcome banner */
.welcome-banner {
    margin-top: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(31, 199, 193, 0.1));
    border: 1px solid rgba(108, 99, 255, 0.3);
    border-radius: 12px;
    animation: welcomeSlideIn 0.5s ease-out;
}

.welcome-content h3 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
    font-size: 1.2rem;
}

.welcome-content p {
    margin: 0 0 1rem 0;
    color: var(--text);
    line-height: 1.5;
}

@keyframes welcomeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .wallets-list,
    .cards-list,
    .api-keys-list {
        gap: 0.75rem;
    }

    .wallet-item,
    .card-item,
    .api-key-item {
        padding: 0.75rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .payment-summary {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .summary-item {
        padding: 0.75rem;
    }

    .summary-item .amount {
        font-size: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .back-to-top {
        transition: opacity 0.01ms !important;
    }
}

