/* ==========================================================================
   Beyond the Rubber Stamp - The Insulated Docket Interrogation Toolkit
   Theme: Executive Cyber Slate (#07090e), Electric Cyan (#00f2fe), Purple (#a855f7)
   ========================================================================== */

:root {
    --bg-dark: #07090e;
    --bg-surface: #0e1524;
    --bg-card: rgba(14, 21, 36, 0.75);
    --border-color: rgba(0, 242, 254, 0.2);
    --border-highlight: #00f2fe;
    
    --primary-cyan: #00f2fe;
    --primary-blue: #00d2ff;
    --accent-purple: #a855f7;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
    
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --text-dark: #64748b;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Background Lights */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.15;
}

.bg-glow-1 {
    top: -150px;
    left: -100px;
    background: radial-gradient(circle, var(--primary-cyan) 0%, transparent 70%);
}

.bg-glow-2 {
    top: 40%;
    right: -150px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 90px 0;
}

.center {
    text-align: center;
}

/* Typography & Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, #38bdf8 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    margin-bottom: 50px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-cyan);
    margin-bottom: 12px;
    padding: 4px 12px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 20px;
}

.section-title {
    font-size: 38px;
    margin-bottom: 14px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: rgba(0, 242, 254, 0.4);
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 1px;
    color: var(--text-white);
}

.brand-subtitle {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--primary-cyan);
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-cyan);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, #0284c7 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(0, 242, 254, 0.5);
    background: linear-gradient(135deg, #38bdf8 0%, #0369a1 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 16px;
}

.full-width {
    width: 100%;
}

.icon-arrow {
    width: 18px;
    height: 18px;
}

/* Hero Section */
.hero-section {
    padding: 100px 0 70px;
    text-align: center;
}

.badge-hud {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.badge-text {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--primary-cyan);
    font-weight: 600;
}

.hero-title {
    font-size: 48px;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-muted);
    max-width: 820px;
    margin: 0 auto 36px;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.metric-card {
    padding: 28px;
    text-align: left;
}

.metric-icon {
    font-size: 26px;
    margin-bottom: 12px;
}

.metric-value {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
}

.metric-label {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Fiduciary Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 36px;
}

.comp-col {
    padding: 20px;
    border-radius: 12px;
}

.comp-cloud {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.comp-local {
    background: rgba(0, 242, 254, 0.05);
    border: 1px solid rgba(0, 242, 254, 0.35);
}

.comp-header {
    margin-bottom: 20px;
}

.comp-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 600;
}

.badge-cloud {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.badge-local {
    background: rgba(0, 242, 254, 0.2);
    color: var(--primary-cyan);
}

.comp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 14.5px;
    color: var(--text-muted);
}

.comp-list li strong {
    color: var(--text-white);
}

/* Diagram Container */
.diagram-container {
    padding: 32px;
    text-align: center;
    background: rgba(10, 15, 28, 0.9);
}

.pipeline-svg {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Forensic Audits Grid */
.audits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.audit-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.audit-num {
    font-family: var(--font-mono);
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-cyan);
    margin-bottom: 12px;
    opacity: 0.8;
}

.audit-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.audit-desc {
    color: var(--text-muted);
    font-size: 14.5px;
    margin-bottom: 16px;
}

.audit-points {
    list-style: none;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-white);
}

.audit-points li::before {
    content: "•";
    color: var(--primary-cyan);
    font-weight: bold;
    display: inline-block;
    width: 1em;
}

/* Platform Tabs */
.platform-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    background: rgba(0, 242, 254, 0.12);
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.tab-content {
    display: none;
    padding: 36px;
}

.tab-content.active {
    display: block;
}

.tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
}

.pill {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-weight: 600;
}

.pill-cyan { background: rgba(0, 242, 254, 0.15); color: var(--primary-cyan); }
.pill-blue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.pill-purple { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }

.feature-checklist {
    list-style: none;
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.feature-checklist strong {
    color: var(--text-white);
}

.tab-code {
    background: #04060a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.code-header {
    background: #090e18;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-dark);
}

.tab-code pre {
    padding: 18px;
    overflow-x: auto;
}

.tab-code code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.6;
}

/* Sample Preview Terminal */
.preview-terminal {
    background: #04060a;
    border: 1px solid rgba(0, 242, 254, 0.25);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
}

.terminal-bar {
    background: #0c1220;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    margin-right: 8px;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    margin-left: 8px;
}

.terminal-content {
    padding: 32px;
    font-family: var(--font-body);
}

.md-title {
    font-size: 24px;
    margin-bottom: 6px;
    color: var(--primary-cyan);
}

.md-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 18px;
}

.md-hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 18px 0;
}

.md-h2 {
    font-size: 18px;
    margin: 22px 0 12px;
    color: #f8fafc;
}

.md-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14.5px;
    color: #cbd5e1;
}

.badge-danger {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 6px;
}

.badge-warning {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 6px;
}

.preview-table-wrap {
    overflow-x: auto;
    margin: 14px 0;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.preview-table th, .preview-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-table th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
}

.highlight-row {
    background: rgba(0, 242, 254, 0.08);
    color: var(--primary-cyan);
}

/* Pricing Card */
.cta-box {
    padding: 60px 40px;
    max-width: 720px;
    margin: 0 auto;
}

.pricing-card {
    background: #090e18;
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 12px;
    padding: 36px;
    margin-top: 32px;
    text-align: left;
}

.pricing-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.pricing-header h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.price {
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 800;
    color: var(--primary-cyan);
}

.price .currency {
    font-size: 28px;
    vertical-align: super;
}

.price .period {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 15px;
    color: #e2e8f0;
    margin-bottom: 28px;
}

/* FAQ Grid */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.faq-card {
    padding: 28px;
    text-align: left;
}

.faq-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-cyan);
}

.faq-card p {
    font-size: 14.5px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #04060a;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* Modern HTML Dialog Modal */
.modal-dialog {
    padding: 0;
    border: 1px solid rgba(0, 242, 254, 0.4);
    background: #090e1a;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    margin: auto;
    color: var(--text-white);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.modal-dialog::backdrop {
    background: rgba(3, 5, 10, 0.85);
    backdrop-filter: blur(8px);
}

.modal-card {
    padding: 36px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-white);
}

.modal-header {
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 14px;
    background: #040711;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-white);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

/* User Valid / Invalid feedback */
.form-group input:user-valid {
    border-color: rgba(16, 185, 129, 0.5);
}

.form-group input:user-invalid {
    border-color: rgba(239, 68, 68, 0.7);
}

.form-status {
    margin-top: 14px;
    font-size: 14px;
    min-height: 20px;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .metrics-grid, .comparison-grid, .audits-grid, .tab-grid, .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 34px;
    }
    
    .nav-links {
        display: none;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
