/* ============================================
   MINIMAL CLEAN DESIGN - Auth Signer
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #e0e7ff;
    --text: #1a1a1a;
    --text-secondary: #666;
    --text-muted: #999;
    --border: #e5e5e5;
    --bg: #fff;
    --bg-subtle: #fafafa;
    --green: #22c55e;
    --blue: #3b82f6;
    --yellow: #f59e0b;
    --purple: #8b5cf6;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 80px;
}

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

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.logo span {
    font-weight: 600;
    font-size: 16px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    padding: 120px 24px 60px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background: var(--bg-subtle);
}

.btn-secondary.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.coming-soon-badge {
    font-size: 10px;
    font-weight: 600;
    background: var(--yellow);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.public-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--green);
    background: #dcfce7;
    border-radius: 20px;
}

/* Google Sign Up Button */
.btn-google {
    background: var(--primary);
    font-weight: 600;
}

.btn-google:hover {
    background: var(--primary-dark);
}

/* Nav Login Button */
.nav-login {
    color: var(--primary) !important;
    font-weight: 600 !important;
}

/* ============================================
   INTERACTIVE DEMO
   ============================================ */
.demo {
    padding: 80px 24px;
    background: var(--bg-subtle);
}

.demo-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: center;
}

.demo-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.demo-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.demo-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.demo-nav-btn:hover {
    border-color: var(--text-muted);
    color: var(--text);
}

.demo-nav-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.demo-nav-btn.active svg {
    stroke: #fff;
}

.demo-nav-btn span:first-of-type {
    flex: 1;
}

.demo-badge {
    background: var(--yellow);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.demo-nav-btn.active .demo-badge {
    background: rgba(255,255,255,0.3);
}

/* App Window */
.demo-app {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.demo-app-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}

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

.demo-window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.demo-window-dots span:first-child { background: #ff5f57; }
.demo-window-dots span:nth-child(2) { background: #ffbd2e; }
.demo-window-dots span:last-child { background: #28ca42; }

.demo-app-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.demo-app-body {
    display: flex;
    height: 420px;
}

/* Sidebar */
.demo-sidebar {
    width: 60px;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
}

.demo-sidebar-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.demo-sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 24px;
}

.demo-sidebar-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.demo-sidebar-item:hover {
    color: #999;
    background: rgba(255,255,255,0.05);
}

.demo-sidebar-item.active {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.15);
}

.demo-sidebar-item.has-badge::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--yellow);
    border-radius: 50%;
    border: 2px solid #1a1a1a;
}

.demo-sidebar-user {
    margin-top: auto;
}

.demo-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

/* Content Area */
.demo-content {
    flex: 1;
    padding: 24px;
    overflow: hidden;
    position: relative;
}

.demo-screen {
    display: none;
    animation: fadeIn 0.3s ease;
}

.demo-screen.active {
    display: block;
}

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

.demo-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.demo-content-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.demo-greeting {
    font-size: 13px;
    color: var(--text-muted);
}

.demo-btn-small {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s ease;
}

.demo-btn-small:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.demo-pending-count {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

/* Dashboard Stats */
.demo-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.demo-stat-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
}

.demo-stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.demo-stat-value {
    font-size: 20px;
    font-weight: 600;
}

.demo-stat-value.orange {
    color: var(--primary);
}

.demo-quick-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-quick-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-subtle);
    border-radius: 8px;
}

.demo-quick-item span:first-of-type {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
}

.demo-quick-item:hover {
    background: #f0f0f0;
}

.demo-quick-item.selected {
    background: #e0e7ff;
    outline: 2px solid var(--primary);
}

.demo-amount {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Chain Icons */
.demo-chain-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

.demo-chain-icon.small {
    width: 18px;
    height: 18px;
}

.demo-chain-icon.eth { background: #627EEA; }
.demo-chain-icon.btc { background: #F7931A; }
.demo-chain-icon.sol { background: linear-gradient(135deg, #9945FF, #14F195); }
.demo-chain-icon.matic { background: #8247E5; }

/* Wallet List */
.demo-wallet-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-wallet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.15s ease;
}

.demo-wallet-item:hover {
    border-color: var(--text-muted);
    background: #f5f5f5;
}

.demo-wallet-item.selected {
    border-color: var(--primary);
    background: #e0e7ff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.demo-wallet-info {
    flex: 1;
}

.demo-wallet-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.demo-wallet-address {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Monaco', monospace;
}

.demo-wallet-balance {
    text-align: right;
}

.demo-wallet-amount {
    display: block;
    font-size: 14px;
    font-weight: 500;
}

.demo-wallet-usd {
    font-size: 12px;
    color: var(--text-muted);
}

/* Approval List */
.demo-approval-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-approval-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
}

.demo-approval-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.demo-approval-type {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: #e0e7ff;
    padding: 3px 8px;
    border-radius: 4px;
}

.demo-approval-time {
    font-size: 11px;
    color: var(--text-muted);
}

.demo-approval-amount {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
}

.demo-to {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'SF Mono', 'Monaco', monospace;
}

.demo-signers {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
}

.demo-signer {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    position: relative;
}

.demo-signer.signed {
    background: #dcfce7;
    color: #166534;
}

.demo-signer.signed svg {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--green);
    border-radius: 50%;
    padding: 1px;
    color: #fff;
}

.demo-signer.pending {
    background: #fef3c7;
    color: #92400e;
}

.demo-signer-text {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 4px;
}

.demo-approval-actions {
    display: flex;
    gap: 8px;
}

.demo-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.demo-btn.approve {
    background: var(--green);
    color: #fff;
}

.demo-btn.approve:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

.demo-btn.reject {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.demo-btn.reject:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* Policy List */
.demo-policy-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-policy-item {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
}

.demo-policy-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.demo-policy-name {
    font-size: 14px;
    font-weight: 500;
}

.demo-policy-status {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--border);
    color: var(--text-muted);
}

.demo-policy-status.active {
    background: #dcfce7;
    color: #166534;
}

.demo-policy-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.demo-policy-code {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2a2a3c;
}

.demo-policy-code-header {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: #16161e;
}

.demo-policy-code-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3a3a4c;
}

.demo-policy-code-label {
    font-size: 10px;
    color: #555;
    margin-left: auto;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
}

.demo-policy-rule {
    display: block;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 11px;
    color: #a0aec0;
    background: #1e1e2e;
    padding: 10px 12px;
    line-height: 1.6;
}

.demo-policy-rule .hl-str {
    color: #a3e635;
}

.demo-policy-rule .hl-num {
    color: #f9a8d4;
}

.demo-policy-rule .hl-kw {
    color: #93c5fd;
}

.demo-policy-rule .hl-key {
    color: #7c85f5;
}

.demo-policy-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.demo-policy-tag {
    font-size: 10px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    background: #e0e7ff;
    color: var(--primary);
}

/* Activity List */
.demo-activity-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.demo-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
}

.demo-activity-item:hover {
    background: var(--bg-subtle);
}

.demo-activity-item.selected {
    background: #e0e7ff;
    border-radius: 8px;
}

.demo-activity-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.demo-activity-icon.green {
    background: #dcfce7;
    color: #166534;
}

.demo-activity-icon.blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.demo-activity-icon.red {
    background: #fee2e2;
    color: #dc2626;
}

.demo-activity-icon.purple {
    background: #ede9fe;
    color: #7c3aed;
}

.demo-activity-info {
    flex: 1;
}

.demo-activity-title {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.demo-activity-desc {
    font-size: 12px;
    color: var(--text-muted);
}

.demo-activity-time {
    font-size: 11px;
    color: var(--text-muted);
}

/* Demo Responsive */
@media (max-width: 900px) {
    .demo-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .demo-text {
        text-align: center;
    }

    .demo-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .demo-nav-btn {
        padding: 10px 14px;
    }

    .demo-nav-btn span:first-of-type {
        flex: none;
    }
}

@media (max-width: 600px) {
    .demo-app-body {
        height: 380px;
    }

    .demo-sidebar {
        width: 50px;
    }

    .demo-content {
        padding: 16px;
    }

    .demo-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
}

/* ============================================
   SCREENS SECTION
   ============================================ */
.screens {
    padding: 80px 24px;
    background: var(--bg-subtle);
}

.screens-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.screen-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.screen-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    background: #e0e7ff;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.screen-preview {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 16px;
    height: 140px;
    overflow: hidden;
}

.screen-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.screen-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Mini App Preview */
.mini-app {
    display: flex;
    height: 100%;
    background: var(--bg);
    border-radius: 4px;
    overflow: hidden;
}

.mini-sidebar {
    width: 50px;
    background: var(--bg-subtle);
    border-right: 1px solid var(--border);
    padding: 8px 6px;
}

.mini-logo {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 4px;
    margin-bottom: 12px;
}

.mini-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-nav-item {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
}

.mini-nav-item.active {
    background: var(--primary);
}

.mini-nav-item.has-badge {
    position: relative;
}

.mini-nav-item.has-badge::after {
    content: '';
    position: absolute;
    right: -2px;
    top: -2px;
    width: 6px;
    height: 6px;
    background: var(--yellow);
    border-radius: 50%;
}

.mini-content {
    flex: 1;
    padding: 8px;
}

.mini-header {
    height: 8px;
    width: 60%;
    background: var(--border);
    border-radius: 4px;
    margin-bottom: 10px;
}

.mini-cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mini-card {
    height: 28px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* Wallet List Mini */
.wallet-list-mini {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wallet-item-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: var(--bg-subtle);
    border-radius: 4px;
}

.wallet-icon-mini {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.wallet-icon-mini.eth { background: #627EEA; }
.wallet-icon-mini.btc { background: #F7931A; }
.wallet-icon-mini.sol { background: linear-gradient(135deg, #9945FF, #14F195); }

.wallet-info-mini {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
}

.wallet-bal-mini {
    width: 24px;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
}

/* Approval Mini */
.approval-mini {
    background: var(--bg-subtle);
    border-radius: 4px;
    padding: 8px;
}

.approval-badge-mini {
    width: 40px;
    height: 6px;
    background: #e0e7ff;
    border-radius: 3px;
    margin-bottom: 6px;
}

.approval-amount-mini {
    width: 50px;
    height: 12px;
    background: var(--border);
    border-radius: 4px;
    margin-bottom: 8px;
}

.approval-signers-mini {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.signer-mini {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.signer-mini.signed {
    background: #dcfce7;
}

.signer-mini.pending {
    background: #fef3c7;
}

.approval-actions-mini {
    display: flex;
    gap: 4px;
}

.btn-mini {
    flex: 1;
    height: 10px;
    border-radius: 3px;
}

.btn-mini.approve {
    background: var(--green);
}

.btn-mini.reject {
    background: var(--border);
}

/* Activity Mini */
.activity-list-mini {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.activity-item-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: var(--bg-subtle);
    border-radius: 4px;
}

.activity-icon-mini {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

.activity-icon-mini.green { background: #dcfce7; }
.activity-icon-mini.blue { background: #dbeafe; }
.activity-icon-mini.purple { background: #ede9fe; }

/* Policy Mini */
.policy-list-mini {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.policy-item-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: var(--bg-subtle);
    border-radius: 4px;
}

.policy-icon-mini {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e0e7ff;
}

.policy-info-mini {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
}

.policy-status-mini {
    width: 20px;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
}

.policy-status-mini.active {
    background: #dcfce7;
}

.activity-info-mini {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    padding: 80px 24px;
    background: var(--bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    align-items: start;
}

.feature {
    text-align: center;
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   HOW IT WORKS / ARCHITECTURE DIAGRAM
   ============================================ */
.how-it-works {
    padding: 80px 24px;
    background: var(--bg-subtle);
}

/* Single horizontal flex row */
.architecture-diagram {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    max-width: 1060px;
    margin: 0 auto 32px;
}

/* Cards */
.arch-device {
    flex: 1;
    max-width: 280px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
}

.arch-device-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: var(--bg-subtle);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.arch-device.custody-service .arch-device-icon {
    background: #f3e8ff;
    color: #7c3aed;
}

.arch-device h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.arch-role {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.arch-features {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.arch-features li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    border-bottom: 1px solid var(--border);
}

.arch-features li:last-child {
    border-bottom: none;
}

.arch-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.arch-device.custody-service .arch-features li::before {
    background: #7c3aed;
}

.arch-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.arch-badge.blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.arch-badge.green {
    background: #dcfce7;
    color: #166534;
}

.arch-badge.purple {
    background: #f3e8ff;
    color: #7c3aed;
}

/* Arrow connectors between cards */
.arch-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    flex-shrink: 0;
    min-width: 140px;
}

.arch-arrow-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    line-height: 1.4;
    background: var(--bg-subtle);
    padding: 6px 14px;
    border-radius: 10px;
    flex-shrink: 0;
}

.arch-arrow-line {
    display: flex;
    align-items: center;
    width: 100%;
}

.arch-arrow-track {
    flex: 1;
    min-width: 12px;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--border) 0,
        var(--border) 6px,
        transparent 6px,
        transparent 10px
    );
}

.arch-arrow-head {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    flex-shrink: 0;
}

.arch-arrow-head.right {
    border-left: 8px solid var(--primary);
}

.arch-arrow-head.left {
    border-right: 8px solid var(--primary);
}

/* Flow Steps */
.arch-flow-steps {
    display: flex;
    justify-content: center;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 32px;
    flex-wrap: wrap;
}

.arch-flow-steps .flow-step {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flow-number {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.flow-text {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Key Point */
.arch-key-point {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
    padding: 24px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.key-point-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.arch-key-point p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.arch-key-point strong {
    color: var(--text);
}

/* How It Works Responsive */
@media (max-width: 900px) {
    .architecture-diagram {
        flex-direction: column;
        align-items: center;
    }

    .arch-device {
        max-width: 360px;
        width: 100%;
    }

    .arch-arrow {
        padding: 12px 0;
        min-width: auto;
        width: 100%;
        max-width: 360px;
    }

    .arch-arrow-line {
        width: 60%;
        margin: 0 auto;
    }

    .arch-flow-steps {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

@media (max-width: 500px) {
    .arch-key-point {
        flex-direction: column;
        text-align: center;
    }

    .key-point-icon {
        margin: 0 auto;
    }
}

/* ============================================
   CHAINS
   ============================================ */
.chains {
    padding: 60px 24px;
    text-align: center;
    background: var(--bg-subtle);
}

.chains-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.chains-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.chain {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.chain span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ============================================
   CTA
   ============================================ */
.cta {
    padding: 80px 24px;
    text-align: center;
    background: var(--bg);
}

.cta-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
    padding: 80px 24px;
    max-width: 640px;
    margin: 0 auto;
}

.faq-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-item {
    background: var(--bg);
}

.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.faq-q:hover {
    background: var(--bg-subtle);
}

.faq-q svg {
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}

.faq-item.active .faq-q svg {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.faq-item.active .faq-a {
    max-height: 200px;
}

.faq-a p {
    padding: 0 20px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 40px 24px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
}

.footer-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.footer-logo span {
    font-weight: 600;
    font-size: 14px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .screens-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nav-link:not(:last-child) {
        display: none;
    }

    .chains-list {
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .screens-grid {
        grid-template-columns: 1fr;
    }

    .screen-preview {
        height: 120px;
    }
}

@media (max-width: 500px) {
    .hero {
        padding: 100px 20px 40px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
