/* ==========================================================================
   SMSRiver Public Directory & Marketing Landing Page Design System
   World-Class Developer Telecom Architecture (directory-home.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Animations & Keyframes
   -------------------------------------------------------------------------- */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.92); }
}

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

/* --------------------------------------------------------------------------
   Hero Section: Split-Visual Architecture
   -------------------------------------------------------------------------- */
.hero-split-visual {
    position: relative;
    padding: 56px 0 48px;
    background: radial-gradient(circle at 50% -10%, rgba(37, 99, 235, 0.05) 0%, rgba(248, 250, 252, 0) 55%), linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-subtle, #e2e8f0);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.22fr 0.98fr;
    gap: 48px;
    align-items: center;
}

/* Hero Status Pill */
.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: var(--radius-pill, 9999px);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    font-size: 0.8rem;
    color: var(--text-secondary, #334155);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    line-height: 1.4;
    flex-wrap: wrap;
}

.telecom-status-led {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #059669;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.2);
    display: inline-block;
    flex-shrink: 0;
}

/* Hero Typography */
.directory-hero-title {
    font-size: clamp(2.35rem, 4.6vw, 3.35rem);
    font-weight: 850;
    letter-spacing: -0.038em;
    line-height: 1.1;
    color: var(--text-primary, #09090b);
    margin: 0 0 18px;
}

.directory-hero-title span {
    color: var(--accent-cyan, #2563eb);
    display: inline-block;
}

.hero-subhead {
    font-size: 1.05rem;
    line-height: 1.62;
    color: var(--text-secondary, #475569);
    max-width: 58ch;
    margin: 0 0 24px;
    letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   Hero Search Bar Combobox Widget
   -------------------------------------------------------------------------- */
.search-box-wrapper {
    background: #ffffff;
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 12px;
    box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.05), 0 1px 3px -1px rgba(15, 23, 42, 0.03);
    display: flex;
    align-items: center;
    padding: 6px;
    margin-bottom: 18px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    box-sizing: border-box;
}

.search-box-wrapper:focus-within {
    border-color: var(--accent-cyan, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);
}

.search-country-wrapper {
    display: flex;
    align-items: center;
    padding-left: 8px;
    position: relative;
}

.search-country-select {
    border: none;
    background: transparent;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--sans-font, inherit);
    color: var(--text-primary, #0f172a);
    padding: 9px 10px;
    cursor: pointer;
    outline: none;
    white-space: nowrap;
}

.search-divider {
    width: 1px;
    height: 28px;
    background: var(--border-subtle, #e2e8f0);
    margin: 0 4px;
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    padding-left: 8px;
}

.search-input-field {
    width: 100%;
    border: none;
    background: transparent;
    padding: 9px 10px;
    font-size: 0.92rem;
    font-family: var(--sans-font, inherit);
    color: var(--text-primary, #0f172a);
    outline: none;
}

.search-input-field::placeholder {
    color: var(--text-muted, #94a3b8);
    font-family: var(--sans-font, inherit);
}

.search-submit-btn {
    background: var(--accent-cyan, #2563eb);
    color: #ffffff !important;
    border: 1px solid var(--accent-cyan, #2563eb);
    border-radius: 8px;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 0.88rem;
    font-family: var(--sans-font, inherit);
    cursor: pointer;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}

.search-submit-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.search-submit-btn:active {
    transform: translateY(0);
}

/* Quick Navigation Pills */
.home-country-shortcuts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    background: #ffffff;
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: var(--radius-pill, 9999px);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--sans-font, inherit);
    color: var(--text-secondary, #475569);
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.quick-pill:hover,
.quick-pill.active {
    border-color: var(--accent-cyan-border, #bfdbfe);
    color: var(--accent-cyan, #2563eb);
    background: var(--accent-cyan-subtle, #eff6ff);
    transform: translateY(-1px);
}

/* Hero Proof Metrics Strip */
.hero-metric-card,
.stat-metric-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-metric-card:hover,
.stat-metric-card:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06);
}

.hero-metric-val {
    font-size: 1.55rem;
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.hero-metric-lbl {
    font-size: 0.74rem;
    font-weight: 650;
    color: var(--text-muted, #64748b);
    margin-top: 4px;
    letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   Hero Right Column: Authentic Carrier Dispatcher Card
   -------------------------------------------------------------------------- */
.hero-dispatcher-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-top: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 24px 26px;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 12px 28px -4px rgba(15, 23, 42, 0.08);
    position: relative;
    backdrop-filter: blur(10px);
}

.hero-dispatcher-line {
    padding: 16px 18px;
    background: #f8fafc;
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 10px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.hero-dispatcher-line:hover {
    border-color: var(--accent-cyan-border, #bfdbfe);
    background: #ffffff;
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.hero-secondary-lines {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

/* --------------------------------------------------------------------------
   Numbers Directory & Switchboard Controls
   -------------------------------------------------------------------------- */
.switchboard-toolbar {
    background: #ffffff;
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-top: 1px solid #f8fafc;
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 16px -4px rgba(15, 23, 42, 0.02);
    margin-bottom: 28px;
}

.switchboard-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.switchboard-region-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 9999px;
    border: 1px solid var(--border-subtle, #e2e8f0);
}

.switchboard-region-tabs .filter-tab-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary, #475569);
    cursor: pointer;
    transition: all 0.15s ease;
}

.switchboard-region-tabs .filter-tab-btn:hover {
    color: var(--text-primary, #0f172a);
}

.switchboard-region-tabs .filter-tab-btn.active {
    background: #ffffff;
    color: var(--text-primary, #0f172a);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    font-weight: 700;
}

.switchboard-search-input {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 8px;
    padding: 8px 36px 8px 34px;
    font-size: 0.85rem;
    color: var(--text-primary, #0f172a);
    font-family: var(--sans-font, inherit);
    outline: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    box-sizing: border-box;
}

.switchboard-search-input:focus {
    background: #ffffff;
    border-color: var(--accent-cyan, #2563eb);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.tabs-scroll-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.switchboard-tab-btn {
    background: #ffffff;
    border: 1px solid var(--border-subtle, #e2e8f0);
    color: var(--text-secondary, #475569);
    padding: 7px 15px;
    border-radius: var(--radius-pill, 9999px);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--sans-font, inherit);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.switchboard-tab-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--text-primary, #0f172a);
}

.switchboard-tab-btn.active {
    background: var(--accent-cyan, #2563eb);
    color: #ffffff !important;
    border-color: var(--accent-cyan, #2563eb);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

/* --------------------------------------------------------------------------
   Country Pool Headers & Number Cards
   -------------------------------------------------------------------------- */
.country-pool-section {
    margin-bottom: 36px;
}

.country-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: linear-gradient(90deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-left: 3px solid #3b82f6;
    border-radius: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.country-header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.country-flag-icon {
    width: 28px;
    height: 19px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.country-header-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin-right: 6px;
}

.country-header-dial {
    font-family: var(--mono-font, monospace);
    font-weight: 700;
    color: var(--accent-cyan, #2563eb);
    font-size: 0.88rem;
}

.country-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-toggle-see-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--border-subtle, #e2e8f0);
    color: var(--text-secondary, #475569);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 650;
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-toggle-see-more:hover {
    border-color: #cbd5e1;
    color: var(--text-primary, #0f172a);
}

.country-header-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-cyan, #2563eb);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.country-header-link:hover {
    text-decoration: underline;
}

/* Number Cards Grid */
.numbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.number-card-item {
    background: #ffffff;
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-top: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 18px 20px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.number-card-item:hover {
    border-color: var(--accent-cyan, #2563eb);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -3px rgba(37, 99, 235, 0.1), 0 3px 6px -2px rgba(15, 23, 42, 0.04);
}

.number-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.number-card-number-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 1.15rem;
    font-weight: 850;
    font-family: var(--mono-font, monospace);
    letter-spacing: -0.01em;
    color: var(--text-primary, #0f172a);
}

.country-char-code {
    color: var(--accent-cyan, #2563eb);
    font-weight: 850;
    margin-right: 6px;
}

.number-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    text-align: center;
    background: #f8fafc;
    color: var(--text-primary, #0f172a);
    border: 1px solid var(--border-subtle, #e2e8f0);
    padding: 9px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.84rem;
    font-family: var(--sans-font, inherit);
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    min-height: 44px;
    box-sizing: border-box;
}

.number-action-btn:hover {
    background: var(--accent-cyan, #2563eb);
    border-color: var(--accent-cyan, #2563eb);
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
    transform: translateY(-1px);
}

.number-action-btn-offline {
    opacity: 0.75;
}

/* --------------------------------------------------------------------------
   Live SMS Streaming Waterfall Feed
   -------------------------------------------------------------------------- */
.section-live-inbox {
    padding: 56px 0;
    border-top: 1px solid var(--border-subtle, #e2e8f0);
    background: #ffffff;
}

.live-inbox-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.status-beacon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-family: var(--mono-font, monospace);
    color: #047857;
    font-weight: 750;
    padding: 6px 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 9999px;
}

.status-beacon-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #059669;
    box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.25);
}

.service-filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.stream-waterfall-container {
    background: #ffffff;
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    contain: layout;
}

.stream-waterfall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #0b1120;
    border-bottom: 1px solid #1e293b;
    font-family: var(--mono-font, monospace);
    font-size: 0.74rem;
    font-weight: 750;
    color: #94a3b8;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.stream-waterfall-feed {
    display: flex;
    flex-direction: column;
}

.stream-event-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-subtle, #e2e8f0);
    transition: background-color 0.15s ease;
    background: #ffffff;
}

.stream-event-card:last-child {
    border-bottom: none;
}

.stream-event-card:hover {
    background: #f8fafc;
}

.stream-event-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 280px;
    flex-shrink: 0;
}

.stream-phone-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stream-phone-link {
    font-family: var(--mono-font, monospace);
    font-weight: 750;
    color: var(--text-primary, #0f172a);
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.15s ease;
}

.stream-phone-link:hover {
    color: var(--accent-cyan, #2563eb);
}

.stream-service-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    background: #f1f5f9;
    border: 1px solid var(--border-subtle, #e2e8f0);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-secondary, #334155);
}

.stream-event-payload {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.stream-otp-capsule {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    box-shadow: 0 1px 2px rgba(5, 150, 105, 0.08);
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.stream-otp-label {
    font-family: var(--mono-font, monospace);
    font-size: 0.72rem;
    font-weight: 800;
    color: #047857;
    letter-spacing: 0.04em;
}

.stream-otp-digits {
    font-family: var(--mono-font, monospace);
    font-size: 0.95rem;
    font-weight: 850;
    color: #064e3b;
    letter-spacing: 0.08em;
}

.stream-msg-text {
    color: var(--text-secondary, #334155);
    font-size: 0.88rem;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stream-event-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.stream-timestamp {
    font-family: var(--mono-font, monospace);
    font-size: 0.76rem;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
}

.stream-inbox-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle, #e2e8f0);
    background: #ffffff;
    color: var(--text-secondary, #475569);
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.stream-inbox-link:hover {
    border-color: var(--accent-cyan-border, #bfdbfe);
    color: var(--accent-cyan, #2563eb);
    background: var(--accent-cyan-subtle, #eff6ff);
}

/* --------------------------------------------------------------------------
   Section: Operational Switchboard Protocol (How It Works)
   -------------------------------------------------------------------------- */
.section-how-it-works {
    padding: 60px 0;
    background: #f8fafc;
    border-top: 1px solid var(--border-subtle, #e2e8f0);
    border-bottom: 1px solid var(--border-subtle, #e2e8f0);
}

.section-center-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px;
}

.section-heading {
    font-size: clamp(1.8rem, 3.2vw, 2.25rem);
    font-weight: 850;
    letter-spacing: -0.03em;
    color: var(--text-primary, #0f172a);
    margin: 0 0 8px;
    line-height: 1.18;
}

.section-subheading {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary, #475569);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Section: Developer Platform & Interactive Code Switcher
   -------------------------------------------------------------------------- */
.section-developer-platform {
    padding: 64px 0;
    background: #ffffff;
}

.developer-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.dev-platform-card {
    background: #ffffff;
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dev-platform-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px -3px rgba(15, 23, 42, 0.08);
}

.dev-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin-bottom: 8px;
}

.dev-card-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary, #475569);
    margin: 0 0 16px;
}

.dev-card-link {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-cyan, #2563eb);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.15s ease;
}

.dev-card-link:hover {
    gap: 8px;
    text-decoration: underline;
}

/* Interactive Developer Code Console */
.developer-code-console {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 28px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.3), 0 8px 12px -6px rgba(15, 23, 42, 0.2);
}

.dev-console-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #0b1120;
    border-bottom: 1px solid #1e293b;
    flex-wrap: wrap;
    gap: 12px;
}

.dev-console-tabs {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    max-width: 100%;
}

.dev-tab-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: var(--mono-font, monospace);
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.dev-tab-btn:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

.dev-tab-btn.active,
.dev-tab-btn[aria-selected="true"] {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.28);
}

.dev-console-body {
    padding: 20px 24px;
    font-family: var(--mono-font, monospace);
    font-size: 0.88rem;
    line-height: 1.7;
    color: #e2e8f0;
    overflow-x: auto;
    background: #0f172a;
}

/* --------------------------------------------------------------------------
   Section: Telecom Architecture & Reliability Bento
   -------------------------------------------------------------------------- */
.telecom-architecture-bento {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
}

.telecom-bento-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 26px;
    background: #ffffff;
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-top: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.telecom-bento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
    border-color: #cbd5e1;
}

.bento-col-7 {
    grid-column: span 7 / span 7;
}

.bento-col-5 {
    grid-column: span 5 / span 5;
}

/* Bento Card Themed Visual Variations */
.bento-carrier {
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
    border-color: #bae6fd;
}
.bento-carrier:hover {
    border-color: #7dd3fc;
    box-shadow: 0 14px 28px -4px rgba(2, 132, 199, 0.12), 0 4px 8px -2px rgba(2, 132, 199, 0.04);
}

.bento-edge {
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
    border-color: #bbf7d0;
}
.bento-edge:hover {
    border-color: #86efac;
    box-shadow: 0 14px 28px -4px rgba(5, 150, 105, 0.12), 0 4px 8px -2px rgba(5, 150, 105, 0.04);
}

.bento-mcp {
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
    border-color: #e9d5ff;
}
.bento-mcp:hover {
    border-color: #d8b4fe;
    box-shadow: 0 14px 28px -4px rgba(147, 51, 234, 0.12), 0 4px 8px -2px rgba(147, 51, 234, 0.04);
}

.bento-security {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-color: #e2e8f0;
}
.bento-security:hover {
    border-color: #cbd5e1;
    box-shadow: 0 14px 28px -4px rgba(15, 23, 42, 0.09), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
}

.bento-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.telecom-bento-card:hover .bento-icon-box {
    transform: scale(1.06);
}

.bento-icon-blue {
    background: #e0f2fe;
    color: #0284c7;
    border: 1px solid #bae6fd;
}

.bento-icon-emerald {
    background: #dcfce7;
    color: #059669;
    border: 1px solid #bbf7d0;
}

.bento-icon-purple {
    background: #f3e8ff;
    color: #9333ea;
    border: 1px solid #e9d5ff;
}

.bento-icon-slate {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.bento-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 11px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    font-family: var(--mono-font, monospace);
    letter-spacing: 0.01em;
    transition: all 0.15s ease;
}

.bento-pill-blue {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.bento-pill-emerald {
    background: #dcfce7;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.bento-pill-purple {
    background: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #e9d5ff;
}

.bento-pill-slate {
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
}

/* --------------------------------------------------------------------------
   Sections: Privacy & FAQ Accordion
   -------------------------------------------------------------------------- */
.section-privacy {
    padding: 36px 0;
    background: #ffffff;
}

.content-constrained-960 {
    max-width: 960px;
    margin: 0 auto;
}

.section-faq {
    padding: 56px 0 64px;
    background: #f8fafc;
    border-top: 1px solid var(--border-subtle, #e2e8f0);
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.faq-portal-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-cyan, #2563eb);
    text-decoration: none;
}

.faq-portal-link:hover {
    text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Tactile Copy Buttons & Feedback
   -------------------------------------------------------------------------- */
.btn-copy {
    background: #ffffff;
    border: 1px solid var(--border-subtle, #e2e8f0);
    color: var(--text-secondary, #475569);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 650;
    font-family: var(--sans-font, inherit);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.btn-copy:hover {
    border-color: var(--accent-cyan, #2563eb);
    color: var(--accent-cyan, #2563eb);
}

.btn-copy:active {
    transform: scale(0.98);
}

.btn-copy.btn-copied {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #047857 !important;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .developer-platform-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .telecom-architecture-bento {
        grid-template-columns: 1fr;
    }
    .bento-col-7,
    .bento-col-5 {
        grid-column: span 1 / span 1;
    }
}

@media (max-width: 768px) {
    .stream-event-card {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px 18px;
    }
    .stream-event-left {
        min-width: 0;
        width: 100%;
        justify-content: space-between;
    }
    .stream-event-payload {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .stream-msg-text {
        white-space: normal;
        word-break: break-word;
        line-height: 1.5;
        max-height: 4.8em;
        overflow: hidden;
    }
    .stream-event-actions {
        width: 100%;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid var(--border-subtle, #e2e8f0);
    }
    .hero-secondary-lines {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .search-box-wrapper {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }
    .search-divider {
        display: none;
    }
    .search-country-select,
    .search-input-field,
    .search-submit-btn {
        width: 100%;
    }
    .switchboard-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .switchboard-region-tabs {
        width: 100%;
        overflow-x: auto;
    }
    .dev-console-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .dev-console-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .dev-console-body {
        padding: 14px 16px;
        font-size: 0.8rem;
    }
}
