/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: #000;
}

.modal-content h2 {
    margin-bottom: 0.5rem;
    color: #0066cc;
}

.modal-content p {
    margin-bottom: 1.5rem;
    color: #666;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.hero p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background: #0066cc;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 2rem;
    transition: background 0.2s;
}

.cta-button:hover {
    background: #0056b3;
}

.forecast-hero-image {
    max-width: 1200px;
    width: 100%;
    border: 2px solid #0066cc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.forecast-hero-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Ticker request section */
.ticker-request-section {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.ticker-request-section p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #333;
}

.ticker-request-section button {
    background: #0066cc;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ticker-request-section button:hover {
    background: #0056b3;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .modal-content {
        padding: 1.5rem;
    }
}
.modal-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1001; /* Add this - higher than modal overlay */
}

.modal-content {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    font-weight: normal;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 0.5rem;
    color: #0066cc;
    font-size: 1.75rem;
}

.modal-content > p {
    margin-bottom: 2rem;
    color: #666;
    font-size: 0.95rem;
}

#tickerRequestForm .form-group {
    margin-bottom: 1.25rem;
}

#tickerRequestForm label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

#tickerRequestForm input[type="text"],
#tickerRequestForm input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

#tickerRequestForm input:focus {
    outline: none;
    border-color: #0066cc;
}

#tickerRequestForm .submit-btn {
    width: 100%;
    background: #0066cc;
    color: white;
    border: none;
    padding: 0.875rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 1rem;
}

#tickerRequestForm .submit-btn:hover {
    background: #0056b3;
}

#tickerRequestForm .submit-btn:disabled {
    background: #999;
    cursor: not-allowed;
}

.cf-turnstile {
    margin: 1.5rem 0;
}

.hero .forecast-hero-image {
    margin-top: 3rem;
}

/* Home page wrapper */
.home-wrapper {
    min-height: calc(100vh - 200px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.home-hero {
    text-align: center;
    padding: 1rem 0 0.5rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.home-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.home-highlight {
    color: #4a9eff;
}

.home-ad-top {
    text-align: center;
    margin: 1rem 0 2rem 0;
}

.home-ad-bottom {
    text-align: center;
    margin: 2rem 0 1rem 0;
}

.feature-link {
    text-decoration: none;
    color: inherit;
}

.feature-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.feature-card-header h3,
.feature-card-title {
    margin: 0;
    font-size: 0.8rem;
    color: #e8e8e8;
}

.feature-card-icon {
    flex-shrink: 0;
}

.feature-card p,
.feature-card-desc {
    margin: 0;
    color: #8e8e8e;
    font-size: 0.7rem;
    line-height: 1.4;
}

/* Edge Bundling Styles */
#edge-bundle-container {
    position: relative;
    margin: 0 auto 2rem;
    width: fit-content;
    z-index: 10;
}
#edge-bundle-container svg {
    overflow: visible;
}
.bundle-link {
    fill: none;
    stroke: rgba(148, 163, 184, 0.3);
    stroke-width: 1.5;
}
.bundle-link.link-source,
.bundle-link.link-target {
    stroke-opacity: 1;
    stroke-width: 2;
}
.bundle-link.link-source {
    stroke: #22c55e;
}
.bundle-link.link-target {
    stroke: #ef4444;
}
.bundle-node {
    font: 12px system-ui, sans-serif;
    font-weight: 600;
    cursor: pointer;
    fill: #94a3b8;
}
.bundle-node:hover {
    fill: #ffffff !important;
}
.bundle-node.node-source {
    fill: #22c55e !important;
}
.bundle-node.node-target {
    fill: #ef4444 !important;
}
.bundle-node.clickable {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s;
}
.bundle-node.clickable:hover {
    text-decoration-color: currentColor;
}
.bundle-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 1000;
    max-width: 250px;
    white-space: nowrap;
}
.bundle-tooltip.visible {
    opacity: 1;
}
.bundle-circle-node {
    cursor: pointer;
}
.bundle-circle-node circle {
    transition: transform 0.15s ease-out, filter 0.15s ease-out;
}
.bundle-circle-node:hover circle {
    transform: scale(1.2);
    filter: brightness(1.3);
}
.bundle-circle-node.clickable {
    cursor: pointer;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.feature-card {
    background: #0f1419;
    border: 1px solid #2a2e35;
    border-radius: var(--radius);
    padding: 0.75rem;
    transition: all 0.2s ease;
    height: 100%;
    min-height: 60px;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    border-color: #4a9eff;
    transform: translateY(-2px);
}

@media (max-width: 1200px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}