/* Zero-overhead separation layout */
.tenant-map {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15), transparent 42%),
        rgba(15, 19, 31, 0.72);
}

.secure-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 164px;
    height: 164px;
    transform: translate(-50%, -50%) scale(calc(0.95 + (var(--sec-progress, 0.5) * 0.1)));
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.12);
    background: rgba(99, 102, 241, 0.06);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.08);
    animation: coreBreath 4.8s var(--ease) infinite;
    transition: transform 0.1s linear;
}

@keyframes coreBreath {
    50% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.1); }
}

.secure-core svg {
    width: 58px;
    color: var(--blue);
}

.tenant-node {
    position: absolute;
    width: 150px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    animation: nodeFloat 6s ease-in-out infinite;
}

.node-b { animation-delay: -1.5s; }
.node-c { animation-delay: -3s; }
.node-d { animation-delay: -4.5s; }

@keyframes nodeFloat {
    50% { transform: translateY(-12px); }
}

.tenant-node strong { display: block; }
.tenant-node span { color: var(--muted); font-size: 0.78rem; }
.node-a { left: 36px; top: 60px; }
.node-b { right: 36px; top: 90px; }
.node-c { left: 70px; bottom: 70px; }
.node-d { right: 70px; bottom: 55px; }

.connection {
    position: absolute;
    inset: 0;
    opacity: 0.65;
}

.terminal {
    min-height: 500px;
    overflow: hidden;
    font-family: "SFMono-Regular", Consolas, monospace;
    background: rgba(2, 5, 12, 0.75);
}

.terminal-lines {
    display: grid;
    gap: 10px;
    height: 410px;
    overflow: hidden;
    padding: 18px;
    color: rgba(222, 231, 255, 0.82);
    font-size: 0.84rem;
    line-height: 1.45;
}

.terminal-line {
    animation: terminalIn 420ms var(--ease);
}

.terminal-line .ok { color: var(--green); }
.terminal-line .tenant { color: var(--blue); }
.terminal-line .cmd { color: var(--amber); }

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

.section-kicker {
    display: grid;
    gap: 16px;
    margin-bottom: 40px;
}

.control-grid {
    display: grid;
    gap: 16px;
}

.slider-row {
    display: grid;
    gap: 10px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

input[type="range"] {
    accent-color: var(--green);
    height: 6px;
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-item {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    margin-top: 0;
    view-transition-name: var(--rank-transition);
}

.rank-pos {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #06111c;
    background: var(--green);
    font-weight: 900;
}

.score {
    color: var(--amber);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.toggle-card {
    display: grid;
    gap: 20px;
}

.mode-switch {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.4);
}

.mode-switch button {
    position: relative;
    z-index: 1;
    border: 0;
    border-radius: 8px;
    padding: 14px;
    color: var(--muted);
    background: transparent;
    font-weight: 900;
    transition: color 0.3s var(--ease);
}

.mode-switch button.active { color: #06111c; }

.switch-glider {
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 6px;
    width: calc(50% - 9px);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    transition: transform 420ms var(--ease);
}

.mode-switch.eco .switch-glider { transform: translateX(calc(100% + 6px)); }

.bar-list {
    display: grid;
    gap: 18px;
}

.bar-label {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-weight: 800;
    font-size: 0.85rem;
}

.bar {
    height: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
}

.bar span {
    display: block;
    width: 50%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--blue), var(--green));
    transition: width 520ms var(--ease);
}

.facet-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
}

.filter-group {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.02);
    font-weight: 800;
    transition: all 220ms var(--ease);
}

.filter-btn.active,
.filter-btn:hover {
    color: #fff;
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.08);
}

.counter {
    color: var(--green);
    font-variant-numeric: tabular-nums;
}

.estimator textarea {
    min-height: 250px;
    resize: vertical;
    padding: 16px;
    line-height: 1.55;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.88rem;
}

.field-stack {
    display: grid;
    gap: 10px;
}

.field-stack label {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 900;
}

.field-stack input,
.field-stack select {
    height: 52px;
    padding: 0 14px;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    padding: 0 24px;
    color: #06111c;
    background: linear-gradient(135deg, var(--blue), var(--green));
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15);
    font-weight: 950;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(16, 185, 129, 0.25);
}

.estimate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.estimate-card {
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    transition: transform 0.3s var(--ease);
}

.estimate-card:hover {
    transform: translateY(-1px);
}

.estimate-card span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.estimate-card strong {
    display: block;
    margin-top: 10px;
    color: #fff;
    font-size: 1.35rem;
    font-variant-numeric: tabular-nums;
}

.chart-wrap {
    height: 460px;
    padding: 24px;
}

.benchmark-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.benchmark-chip {
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.benchmark-chip strong {
    display: block;
    color: #fff;
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
}

.benchmark-chip span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
}

.chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.contact-panel {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 28px;
    text-align: left;
}

[dir="rtl"] .contact-form { text-align: right; }

.contact-form .primary-btn {
    grid-column: 1 / -1;
}

.api-key {
    display: none;
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(16, 185, 129, 0.34);
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
    font-family: "SFMono-Regular", Consolas, monospace;
    color: var(--green);
    overflow-wrap: anywhere;
    animation: keyReveal 700ms var(--ease);
}

.api-key.visible { display: block; }

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0 24px;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    font-weight: 900;
    transition: all 220ms var(--ease);
}

.ghost-btn:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

@keyframes keyReveal {
    from { opacity: 0; transform: scale(0.96) translateY(14px); filter: blur(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}


/* ─────────────────────────────────────────────
   Trusted-by strip
───────────────────────────────────────────── */
.trusted-strip {
    padding: 20px 0 68px;
}
.trusted-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}
.trusted-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(210, 220, 245, 0.28);
    white-space: nowrap;
}
.logo-track {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    align-items: center;
    justify-content: center;
}
.co-wordmark {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: rgba(210, 220, 245, 0.22);
    white-space: nowrap;
    padding: 0 18px;
    transition: color 0.25s var(--ease);
}
.co-wordmark:hover { color: rgba(210, 220, 245, 0.48); }
.trusted-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    display: inline-block;
}

/* ─────────────────────────────────────────────
   Developer Quickstart
───────────────────────────────────────────── */
.integration-grid {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 28px;
    align-items: start;
    margin-top: 44px;
}
.integration-steps {
    display: grid;
    gap: 10px;
}
.integration-step {
    display: flex;
    gap: 18px;
    padding: 20px 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    color: var(--muted);
    text-align: left;
    width: 100%;
}
.integration-step:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(210, 220, 245, 0.85);
}
.integration-step.active {
    border-color: rgba(99, 102, 241, 0.22);
    background: rgba(99, 102, 241, 0.05);
    color: #fff;
}
.step-number {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--blue);
    opacity: 0.6;
    padding-top: 3px;
    min-width: 22px;
    flex-shrink: 0;
}
.integration-step.active .step-number { opacity: 1; }
.step-body h4 {
    font-size: 0.92rem;
    font-weight: 900;
    margin: 0 0 7px;
    font-family: inherit;
    letter-spacing: -0.01em;
}
.step-body p {
    font-size: 0.83rem;
    line-height: 1.57;
    margin: 0;
}

/* Code panel */
.qstart-panel {
    overflow: hidden;
    background: rgba(2, 5, 14, 0.82) !important;
}
.qstart-chrome {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(6, 9, 20, 0.6);
}
.chrome-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}
.chrome-dots span {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    display: block;
    opacity: 0.7;
}
.chrome-tabs {
    display: flex;
    gap: 4px;
    flex: 1;
}
.code-tab {
    padding: 6px 13px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(210, 220, 245, 0.38);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    transition: all 0.2s var(--ease);
    cursor: pointer;
}
.code-tab:hover { color: rgba(210, 220, 245, 0.7); }
.code-tab.active {
    border-color: rgba(99, 102, 241, 0.1);
    background: rgba(99, 102, 241, 0.08);
    color: var(--blue);
}

.code-block-wrap {
    display: flex;
    gap: 0;
}
.code-line-nos {
    padding: 20px 0 20px 16px;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.15);
    user-select: none;
    min-width: 36px;
    text-align: right;
}
.code-block {
    margin: 0;
    padding: 20px 20px 20px 14px;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.79rem;
    line-height: 1.7;
    color: rgba(222, 231, 255, 0.82);
    white-space: pre;
    overflow-x: auto;
    flex: 1;
    tab-size: 2;
}

/* Syntax highlighting tokens */
.c-method { color: #7ee8a2; font-weight: 700; }
.c-header  { color: #6366f1; }
.c-string  { color: #f59e0b; }
.c-key     { color: #6366f1; }
.c-num     { color: #8b5cf6; }
.c-comment { color: rgba(210, 220, 245, 0.35); font-style: italic; }

/* ─────────────────────────────────────────────
   Testimonials
───────────────────────────────────────────── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 44px;
}
.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    background: var(--panel);
    backdrop-filter: var(--glass);
    -webkit-backdrop-filter: var(--glass);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), box-shadow 0.4s var(--ease);
}
.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.4);
}
.testimonial-quote { flex: 1; }
.testimonial-text {
    margin: 14px 0 28px;
    color: rgba(210, 220, 245, 0.8);
    font-size: 0.9rem;
    line-height: 1.72;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--av-bg, rgba(255, 255, 255, 0.08));
    color: var(--av-color, #fff);
    display: grid;
    place-items: center;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.author-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.01em;
}
.author-role {
    display: block;
    margin-top: 3px;
    font-size: 0.74rem;
    color: var(--muted);
    font-weight: 700;
}

/* ─────────────────────────────────────────────
   Site Footer
───────────────────────────────────────────── */
.site-footer {
    margin-top: 80px;
    padding: 0 0 48px;
    position: relative;
}
.footer-art {
    margin-bottom: 0;
    opacity: 0.6;
    overflow: hidden;
    height: 80px;
    pointer-events: none;
}
.footer-art svg {
    width: 100%;
    height: 100%;
}
.footer-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    padding: 48px 0 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-brand .brand {
    font-size: 1rem;
    text-decoration: none;
}
.footer-tagline {
    margin: 18px 0 20px;
    font-size: 0.84rem;
    line-height: 1.65;
    color: rgba(210, 220, 245, 0.5);
    max-width: 280px;
}
.footer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.footer-badge {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.66rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(210, 220, 245, 0.38);
}
.footer-uptime-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
}
.footer-uptime-text {
    color: var(--green);
    font-weight: 700;
}
.footer-uptime-detail {
    color: rgba(210, 220, 245, 0.3);
}
.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-content: start;
}
.footer-col h4 {
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(210, 220, 245, 0.35);
    margin: 0 0 10px;
    font-family: inherit;
}
.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: rgba(210, 220, 245, 0.45);
    margin-bottom: 11px;
    text-decoration: none;
    transition: color 0.22s var(--ease);
    letter-spacing: -0.005em;
}
.footer-col a:hover { color: rgba(210, 220, 245, 0.9); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.75rem;
    color: rgba(210, 220, 245, 0.28);
}
.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-legal-links a {
    color: rgba(210, 220, 245, 0.28);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}
.footer-legal-links a:hover { color: rgba(210, 220, 245, 0.65); }
.footer-legal-links span[aria-hidden] {
    color: rgba(255, 255, 255, 0.12);
}

/* ─────────────────────────────────────────────
   Responsive additions
───────────────────────────────────────────── */
@media (max-width: 980px) {
    .integration-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-nav { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .footer-nav { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ─────────────────────────────────────────────
   Shared text/layout utilities (landing page)
───────────────────────────────────────────── */
.text-green { color: var(--green); }
.text-blue { color: var(--blue); }
.text-purple { color: var(--purple); }
.text-amber { color: var(--amber); }
.text-red { color: var(--red); }
.text-center { text-align: center; }

.panel-head--flush { padding: 0 0 12px; border-bottom: 0; }
.field-stack--spaced { margin-top: 12px; }
.primary-btn--block { width: 100%; margin-top: 14px; }
.section-kicker--center { text-align: center; align-items: center; }
.cta-actions--center { margin-top: 32px; justify-content: center; }
.pulse-dot--sm { width: 7px; height: 7px; flex-shrink: 0; }

.chrome-dot--red { background: #ff5f56; }
.chrome-dot--yellow { background: #febc2e; }
.chrome-dot--green { background: #28c840; }

.avatar--green { --av-bg: rgba(26, 58, 42, 0.9); --av-color: var(--green); }
.avatar--purple { --av-bg: rgba(42, 26, 58, 0.9); --av-color: var(--purple); }
.avatar--amber { --av-bg: rgba(42, 31, 10, 0.9); --av-color: var(--amber); }

