/* OSINT API Specific Styling */
.osint-body {
    background: var(--bg-color);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

.osint-hero {
    text-align: center;
    padding: 8rem 2rem 4rem;
    background: radial-gradient(circle at top center, rgba(192, 108, 59, 0.15) 0%, transparent 60%);
}

.osint-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary);
    letter-spacing: -1px;
}

.osint-hero .highlight {
    background: -webkit-linear-gradient(45deg, #c06c3b, #fcae51);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.osint-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--secondary);
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(192, 108, 59, 0.2);
    color: #fcae51;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(192, 108, 59, 0.4);
}

/* Features Grid */
.osint-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.feature-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(192, 108, 59, 0.4);
}

.feature-card .feature-icon {
    font-size: 2rem;
    color: #c06c3b;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 1rem;
}

/* Sandbox Terminal */
.osint-sandbox {
    max-width: 1000px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.osint-sandbox h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.sandbox-subtitle {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 3rem;
}

.terminal-container {
    background: var(--terminal-bg, #0d1117);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin-bottom: 2rem;
}

.terminal-header {
    background: var(--terminal-header, #161b22);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    flex-grow: 1;
    text-align: center;
    color: #8b949e;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    margin-right: 48px; /* Offset the dots width for true center */
}

.terminal-body {
    padding: 1.5rem;
    min-height: 250px;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.term-line { margin-bottom: 0.5rem; }
.cmd-line { color: #8b949e; }
.term-success { color: #3fb950; }
.term-error { color: #f85149; }
.term-json {
    color: #e3b341;
    white-space: pre-wrap;
    word-break: break-all;
    background: rgba(227, 179, 65, 0.05);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

.terminal-input-row {
    display: flex;
    align-items: center;
    padding: 0 1.5rem 1.5rem;
    font-family: 'Fira Code', monospace;
}

.prompt {
    color: #3fb950;
    margin-right: 0.75rem;
    font-size: 0.9rem;
}

#terminal-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: #c9d1d9;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    outline: none;
}

.sandbox-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    align-items: flex-end; /* Keeps the bottom aligned with Run Query */
}

.control-group {
    flex: 1 1 250px; /* flex-grow, flex-shrink, flex-basis */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 600;
}

.key-input-wrapper {
    display: flex;
    flex-wrap: wrap; /* Allow flex items to wrap to fix overflow */
    gap: 0.5rem;
}

.key-input-wrapper input {
    flex: 1 1 150px; /* Allow the input to shrink and grow but maintain a min size */
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    min-width: 0; /* Prevent flex blowout */
}

.key-input-wrapper input:focus {
    outline: none;
    border-color: var(--accent);
}

.key-input-wrapper .btn {
    white-space: nowrap; /* Prevent button text from wrapping weirdly */
}

select {
    width: 100%; /* Ensure it spans the container */
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

select:focus { border-color: var(--accent); }

.btn-group-bottom { flex: 0 0 auto; }

/* Pricing */
.osint-pricing {
    max-width: 1200px;
    margin: 6rem auto;
    padding: 0 2rem 8rem;
}

.osint-pricing h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    background: rgba(192, 108, 59, 0.05);
    border-color: rgba(192, 108, 59, 0.4);
    transform: scale(1.05);
}

.badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pricing-features li i {
    color: #3fb950;
    margin-top: 3px;
}

.pricing-features li i.inactive {
    color: #475569;
}

.plan-btn { width: 100%; margin-top: auto; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal:not(.hidden) { display: flex; }

.modal-content {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    animation: modalPop 0.3s ease-out forwards;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
}

.close-btn {
    background: none;
    border: none;
    color: #8b949e;
    font-size: 1.25rem;
    cursor: pointer;
}

.close-btn:hover { color: #fff; }

.modal-body { padding: 1.5rem; }
.modal-body p { margin-bottom: 1.5rem; color: var(--secondary); }
.modal-body strong { color: var(--accent); }

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.form-group input {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.75rem;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    outline: none;
}
.form-group input:focus { border-color: var(--accent); }

.cc-input {
    position: relative;
    display: flex;
    align-items: center;
}
.cc-input i {
    position: absolute;
    left: 1rem;
    color: #8b949e;
    font-size: 1.25rem;
}
.cc-input input { padding-left: 3rem; color: #8b949e; }

.full-width { width: 100%; }
