/* AnalChain Marketing Site Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* Navigation */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.search-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-image .dashboard-preview {
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
    transition: transform 0.3s ease;
}

.hero-image .dashboard-preview:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
}

/* Network Visualization */
.network-viz {
    position: relative;
    height: 150px;
    background: #1a1a2e;
    border-radius: 10px;
    overflow: hidden;
}

.node {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.node.central {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    width: 30px;
    height: 30px;
    animation: pulse 2s infinite;
}

.node.risk {
    top: 20%;
    left: 20%;
    background: var(--danger-color);
}

.node.safe {
    top: 70%;
    right: 20%;
    background: var(--success-color);
}

.node.unknown {
    top: 30%;
    right: 30%;
    background: var(--warning-color);
}

.connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    animation: flow 3s infinite;
}

.connection:nth-child(5) {
    top: 45%;
    left: 20%;
    width: 30%;
    transform: rotate(45deg);
}

.connection:nth-child(6) {
    top: 55%;
    left: 50%;
    width: 25%;
    transform: rotate(-30deg);
}

.connection:nth-child(7) {
    top: 35%;
    left: 45%;
    width: 20%;
    transform: rotate(15deg);
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes flow {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Trust Section */
.trust-section {
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

.trust-metric h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* Feature Cards */
.feature-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f3f4;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Use Case Cards */
.use-case-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #e9ecef;
    height: 100%;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.use-case-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.use-case-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.use-case-icon i {
    font-size: 1.5rem;
    color: white;
}

.use-case-content ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.use-case-content li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.use-case-content li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

/* Footer */
.footer-section {
    border-top: 1px solid #495057;
}

.social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
}

.footer-section a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-image .dashboard-preview {
        transform: none;
        margin-top: 2rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .use-case-card {
        flex-direction: column;
        text-align: center;
    }
    
    .trust-metric h3 {
        font-size: 2rem;
    }
}

/* Additional Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

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

/* Button Enhancements */
.btn {
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #146c43);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #146c43, #0f5132);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 135, 84, 0.4);
}

/* Form Enhancements */
.form-control-lg {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control-lg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Features Page Styles */
.risk-pattern-card {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.risk-pattern-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.pattern-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.industry-card {
    background: #fff;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    overflow: hidden;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.industry-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.industry-header i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.industry-content {
    padding: 1.5rem;
}

.industry-content h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.industry-content h6:first-child {
    margin-top: 0;
}

.industry-content ul {
    margin-bottom: 1rem;
}

.industry-content li {
    margin-bottom: 0.5rem;
    color: #6c757d;
}

/* Privacy Section */
.privacy-feature {
    text-align: center;
}

.privacy-feature i {
    font-size: 2rem;
    display: block;
}

.security-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
}

.diagram-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.security-layer {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.layer-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Pricing Page Styles */
.comparison-card {
    background: #fff;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-card.analchain {
    border-color: var(--success-color);
    position: relative;
    transform: scale(1.05);
}

.comparison-card.analchain::before {
    content: 'BEST VALUE';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.comparison-card.competitor {
    opacity: 0.8;
}

.comparison-header h4 {
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.price-period {
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
}

.comparison-features {
    text-align: left;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.pricing-card {
    background: #fff;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    padding: 2rem;
    text-align: center;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    border-width: 2px;
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

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

.pricing-description {
    color: #6c757d;
    font-size: 0.9rem;
}

.pricing-features {
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    margin-bottom: 0.5rem;
}

.roi-calculator {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-metric h3 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.savings-breakdown {
    border: 1px solid #e9ecef;
}

/* Documentation Page Styles */
.docs-sidebar {
    position: sticky;
    top: 100px;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.docs-sidebar a {
    text-decoration: none;
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
}

.docs-sidebar a:hover {
    color: var(--primary-color) !important;
}

.docs-content h2 {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.quickstart-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #e9ecef;
    height: 100%;
    text-align: center;
}

.quickstart-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.code-block {
    background: #1e1e1e;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.code-block code {
    color: #f8f8f2;
    background: none;
    padding: 0;
}

.api-endpoint {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.endpoint-header {
    background: #f8f9fa;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.method-get {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
}

.method-post {
    background: #007bff;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
}

.endpoint-url {
    font-family: monospace;
    font-weight: bold;
}

.endpoint-body {
    padding: 1rem;
}

.security-checklist .checklist-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.troubleshooting-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.solution {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.help-resources .resource-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* About Page Styles */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.code-block-visual {
    background: #1e1e1e;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    text-align: left;
}

.code-line {
    margin-bottom: 0.5rem;
    color: #50fa7b;
}

.mission-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #e9ecef;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.mission-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.story-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -25px;
    top: 0;
    width: 12px;
    height: 12px;
    background: #e9ecef;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
}

.timeline-marker.active {
    background: var(--primary-color);
}

.timeline-content {
    padding-left: 1rem;
}

.value-card {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    height: 100%;
}

.value-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.value-header i {
    font-size: 1.5rem;
}

.tech-card {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-3px);
}

.tech-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.community-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #e9ecef;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.community-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.community-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

/* Contact Page Styles */
.contact-option {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #e9ecef;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.contact-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.contact-features li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.contact-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.contact-form-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #e9ecef;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.response-time-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #e9ecef;
    height: 100%;
}

.response-icon {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.response-time {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Threat Intelligence Styles */
.threat-intel-card {
    background: #fff;
    border-radius: 15px;
    padding: 3rem;
    border: 2px solid #dc3545;
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.1);
}

.threat-intel-feature {
    margin-bottom: 1rem;
}

.threat-intel-pricing {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.price-display {
    margin-bottom: 1rem;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-amount {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #dc3545;
    line-height: 1;
}

.price-period {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
}

.threat-intel-categories {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: white;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comparison-card.analchain {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    .security-layer {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .docs-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    .timeline {
        padding-left: 1rem;
    }
    
    .timeline-marker {
        left: -15px;
    }
    
    .about-visual {
        margin-top: 2rem;
    }
}