/* How Lunar Works page-specific styles */

/* Container override - narrower than default */
.container {
    max-width: 1016px;
}

.full-width {
    width: 100%;
}

.hide {
    display: none;
}

/* Intro Section */
.intro-section {
    background: linear-gradient(135deg, #0f1419 0%, #0a0e1a 100%);
    padding: 100px 40px;
    text-align: center;
}

.intro-section h1 {
    margin-bottom: 60px;
    color: #f5f5f5;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    display: flex;
    flex-direction: column;
}

.intro-section .title-highlight {
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-text {
    font-size: 24px;
    line-height: 1.8;
    color: #d1d5db;
    max-width: 900px;
    margin: 0 auto;
}

.intro-text strong {
    color: #00d4ff;
    font-weight: 700;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1a1f35 0%, #0a0e1a 100%);
    padding: 80px 40px;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 24px;
    color: #a0aec0;
    max-width: 700px;
    margin: 0 auto;
}

/* Step Cards */
.step {
    margin-bottom: 80px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -60px;
    transform: translateX(-50%);
    width: 4px;
    height: 40px;
    background: linear-gradient(180deg, #00d4ff 0%, #00ff88 100%);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #0a0e1a;
    margin: 0 auto 30px;
}

.step-content {
    background: linear-gradient(135deg, #1a1f35 0%, #0f1419 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 50px;
}

.step-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #00d4ff;
    text-align: center;
}

.step-description {
    font-size: 20px;
    color: #a0aec0;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: center;
}

/* Visual Diagrams */
.visual {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: 40px;
    margin-top: 30px;
}

.icon-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.icon-box {
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid #00d4ff;
    border-radius: 12px;
    padding: 20px 30px;
    font-size: 18px;
    font-weight: 600;
    color: #00d4ff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.arrow {
    font-size: 32px;
    color: #00ff88;
}

.code-block {
    background: #0a0e1a;
    border: 1px solid #00d4ff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-family: var(--font-mono);
    font-size: 14px;
    color: #00ff88;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Special code block for visual JSON representation - no wrapping */
.code-block-nowrap {
    background: #0a0e1a;
    border: 1px solid #00d4ff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    font-family: var(--font-mono);
    font-size: 14px;
    color: #00ff88;
    max-width: 100%;
    overflow-x: auto;
}

.code-block-nowrap pre {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    line-height: 1.6;
    white-space: pre;
}

.code-block pre {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.json-placeholder {
    display: inline-block;
    width: 200px;
    height: 14px;
    background: linear-gradient(
        135deg,
        rgba(0, 212, 255, 0.9) 0%,
        rgba(0, 255, 136, 0.9) 25%,
        rgba(0, 212, 255, 0.9) 50%,
        rgba(0, 255, 136, 0.9) 75%,
        rgba(0, 212, 255, 0.9) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 16s ease-in-out infinite;
    border-radius: 3px;
    vertical-align: middle;
}

.json-placeholder-60 {
    width: 60%;
    max-width: 240px;
    height: 7px;
    display: block;
    opacity: 0.6;
    background: #f87171;
}

.json-placeholder-80 {
    width: 80%;
    max-width: 320px;
    height: 9px;
    display: block;
}

.json-placeholder-90 {
    width: 90%;
    max-width: 360px;
    height: 9px;
    display: block;
}

.json-placeholder-100 {
    width: 100%;
    max-width: 400px;
    height: 9px;
    display: block;
    margin-bottom: 5px;
    background: #f87171;
}
.json-text-placeholder {
    display: inline-block;
    background: linear-gradient(
        135deg,
        rgba(0, 212, 255, 0.9) 0%,
        rgba(0, 255, 136, 0.9) 25%,
        rgba(0, 212, 255, 0.9) 50%,
        rgba(0, 255, 136, 0.9) 75%,
        rgba(0, 212, 255, 0.9) 100%
    );
    background-size: 400% 400%;
    animation: gradientShift 16s ease-in-out infinite;
    border-radius: 3px;
    vertical-align: middle;
    color: #0a0e1a;
    font-weight: 600;
    line-height: 1;
}

.checklist {
    list-style: none;
    margin: 20px 0;
}

.checklist li {
    padding: 15px 20px;
    background: rgba(0, 255, 136, 0.1);
    border-left: 4px solid #00ff88;
    margin-bottom: 10px;
    border-radius: 4px;
    font-size: 18px;
}

.checklist li::before {
    content: '✓';
    color: #00ff88;
    font-weight: 700;
    margin-right: 15px;
    font-size: 20px;
}

.checklist li.error {
    background: rgba(255, 100, 100, 0.1);
    border-left-color: #ff6464;
}

.checklist li.error::before {
    content: '✗';
    color: #ff6464;
}

/* CTA Section - page-specific override */
.cta-section {
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

/* Diagram images */
.diagram-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.diagram-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 60px;
}

.diagram-step-reverse {
    flex-direction: row-reverse;
}

.diagram-step-wrapper {
    margin-bottom: 20px;
    position: relative;
}

.diagram-step-title {
    display: flex;
    flex-direction: column;
}

.diagram-step-card {
    background: linear-gradient(135deg, #1a1f35 0%, #0f1419 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 920px;
    margin: 0 auto;
}

.diagram-text {
    flex: 1;
    max-width: 400px;
}

.diagram-visual {
    flex: 1;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tag Cloud Styles - Radial Layout with Central Logo */
.tag-cloud-container {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag-cloud-image {
    display: none;
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.data-line {
    stroke: rgba(0, 212, 255, 0.3);
    stroke-width: 1.5;
    stroke-dasharray: 5, 5;
    animation: dataFlow 2s linear infinite;
}

@keyframes dataFlow {
    0% {
        stroke-dashoffset: 0;
        stroke: rgba(0, 212, 255, 0.3);
    }
    50% {
        stroke: rgba(0, 255, 136, 0.5);
    }
    100% {
        stroke-dashoffset: -10;
        stroke: rgba(0, 212, 255, 0.3);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.tag-cloud {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    height: 100%;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1.5px solid rgba(0, 212, 255, 0.4);
    border-radius: 18px;
    color: #00d4ff;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: absolute;
    cursor: default;
    transform: translate(-50%, -50%);
}

.tag-icon {
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    filter: grayscale(0.2) brightness(1.1);
}

.tag-svg {
    width: 13px;
    height: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tag-svg svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Tag positions are calculated dynamically by JavaScript */
/* This ensures no overlaps and proper chaotic distribution */

.tag:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
    z-index: 10;
}

.tag.tag-green {
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.1);
}

.tag.tag-green:hover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.2);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.tag.tag-blue {
    color: #00d4ff;
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.1);
}

.tag.tag-blue:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.3);
}

/* Hover interactions: highlight corresponding data source bullets */
.diagram-step-card:has(.tag.tag-blue:hover) .data-source-code {
    background: rgba(0, 212, 255, 0.15);
}

.diagram-step-card:has(.tag.tag-green:hover) .data-source-tools {
    background: rgba(0, 255, 136, 0.15);
}

.central-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(
        circle,
        rgba(0, 212, 255, 0.15) 0%,
        rgba(0, 212, 255, 0.05) 50%,
        transparent 100%
    );
    border-radius: 50%;
    z-index: 3;
    animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
    0%,
    100% {
        box-shadow:
            0 0 20px rgba(0, 212, 255, 0.3),
            0 0 40px rgba(0, 255, 136, 0.2);
    }
    50% {
        box-shadow:
            0 0 30px rgba(0, 212, 255, 0.5),
            0 0 60px rgba(0, 255, 136, 0.3);
    }
}

.central-logo img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

/* Policy Category - no hover effects on non-clickable cards */
.policy-category {
    background: linear-gradient(135deg, #1a1f35 0%, #0f1419 100%);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.policy-title {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.policy-title img {
    margin-top: 2px;
}

/* Policy Category Buttons (clickable) - restore hover effects */
.policy-category-btn {
    padding: 15px;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

/* Inactive state styles */
.policy-category-btn:not(.active) {
    background: rgba(0, 212, 255, 0.1);
    border-left: 4px solid #00d4ff;
    font-weight: normal;
}

.policy-category-btn:not(.active):hover {
    transform: translateX(4px);
    background: rgba(0, 212, 255, 0.15);
}

/* Active state styles */
.policy-category-btn.active {
    background: rgba(0, 255, 136, 0.1);
    border-left: 4px solid #00ff88;
    font-weight: 600;
}

.policy-category-btn.active:hover {
    transform: translateX(2px);
    background: rgba(0, 255, 136, 0.15);
}

/* AI button specific styles - Purple/Pink gradient theme */
.policy-category-btn-ai {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
    border-left: 4px solid #a855f7;
    border-image: linear-gradient(180deg, #a855f7 0%, #ec4899 100%) 1;
}

.policy-category-btn-ai .btn-text {
    background: linear-gradient(135deg, #d8b4fe 0%, #f9a8d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}

.policy-category-btn-ai:hover {
    transform: translateX(4px);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(236, 72, 153, 0.25) 100%);
    box-shadow: 0 2px 12px rgba(168, 85, 247, 0.3);
}

.policy-category-btn-ai.active {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(236, 72, 153, 0.25) 100%);
    box-shadow: 0 2px 12px rgba(168, 85, 247, 0.3);
}

.policy-category-btn-ai.active .btn-text {
    font-weight: 600;
}

.policy-category-btn-ai.active:hover {
    transform: translateX(2px);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3) 0%, rgba(236, 72, 153, 0.3) 100%);
    box-shadow: 0 2px 12px rgba(168, 85, 247, 0.35);
}

/* AI Example section styling when active */
.policy-example[data-category='ai'] h4 {
    color: #d8b4fe;
}

.policy-example[data-category='ai'] .policy-step-label {
    color: #c084fc;
}

.policy-example[data-category='ai'] .policy-step-note a.inline-link {
    color: #a855f7;
}

.policy-example[data-category='ai'] .policy-step-note a.inline-link:hover {
    color: #c084fc;
}

.example-badge {
    display: inline-block;
    margin-left: 12px;
    padding: 3px 8px;
    background: rgba(107, 114, 128, 0.2);
    border: 1px solid rgba(107, 114, 128, 0.4);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
    position: relative;
    top: -2px;
    height: 100%;
}

.policy-category-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.policy-category h4 {
    font-size: 18px;
    color: #00ff88;
    margin-bottom: 16px;
}

.policy-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: #a0aec0;
    line-height: 1.5;
}

.policy-item:last-child {
    border-bottom: none;
}

.policy-item strong {
    color: #f5f5f5;
}

/* Integration Points Section */
.integration-section {
    margin: 0 auto;
    max-width: 1016px;
}

.integration-badge {
    text-align: center;
    margin-bottom: 30px;
}

.integration-badge-inner {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(0, 255, 136, 0.15) 100%);
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 30px;
    padding: 10px 24px;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.integration-badge-text {
    font-size: 14px;
    font-weight: 700;
    color: #00d4ff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Three Column Layout Container - Now Two Columns */
.integration-three-column {
    margin: 0 auto;
    padding: 40px 0px;
    display: grid;
    grid-template-columns: 345px 1fr;
    gap: 30px;
    align-items: start;
    position: relative;
    justify-items: start;
}

.integration-text {
    padding-right: 20px;
}

/* Grid Wrapper for Integration Points + Outputs (2x2 grid) */
.integration-grid-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 1;
}

/* Each row contains a card + its outputs side by side */
.integration-grid-row {
    display: grid;
    grid-template-columns: 380px 240px;
    gap: 50px;
    align-items: start;
    position: relative;
}

.integration-connection-lines {
    display: none;
}

.output-group {
    position: relative;
    z-index: 2;
}

/* Blue gradient light for GitHub row - starts from right edge of card, flows to outputs */
.integration-grid-row:first-child .integration-point.github::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(0, 212, 255, 0.28) 0%,
        rgba(0, 212, 255, 0.2) 25%,
        rgba(0, 212, 255, 0.1) 55%,
        rgba(0, 212, 255, 0) 100%
    );
    clip-path: polygon(0 30%, 100% -20%, 100% 120%, 0 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: -1;
    display: block !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show blue light on hover */
.integration-grid-row:first-child .integration-point.github:hover::after {
    opacity: 1;
}

/* Green gradient light for CI/CD row - starts from right edge of card, flows to outputs */
.integration-grid-row:last-child .integration-point.cicd::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(0, 255, 136, 0.28) 0%,
        rgba(0, 255, 136, 0.2) 25%,
        rgba(0, 255, 136, 0.1) 55%,
        rgba(0, 255, 136, 0) 100%
    );
    clip-path: polygon(0 30%, 100% -20%, 100% 120%, 0 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: -1;
    display: block !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.integration-point-title-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* Show green light on hover */
.integration-grid-row:last-child .integration-point.cicd:hover::after {
    opacity: 1;
}

/* Add transition to strong tags with padding already applied */
.highlight-code-repos,
.highlight-cicd-pipelines {
    transition: background 0.3s ease;
    border-radius: 4px;
    padding: 1px 3px;
}

/* Highlight text on left column when hovering cards */
.integration-three-column:has(.integration-point.github:hover) .highlight-code-repos {
    background: rgba(0, 212, 255, 0.2);
}

.integration-three-column:has(.integration-point.cicd:hover) .highlight-cicd-pipelines {
    background: rgba(0, 255, 136, 0.2);
}

/* Keep output groups positioned correctly */
.output-group.git-outputs,
.output-group.cicd-outputs {
    position: relative;
    z-index: 2;
}

.output-group-label {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.output-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 3px 0;
    font-size: 14px;
    color: #d1d5db;
    line-height: 1.5;
}

.output-icon {
    font-size: 16px;
    flex-shrink: 0;
    filter: grayscale(0.2) brightness(1.1);
}

.git-outputs {
    margin-top: 0;
}

.cicd-outputs {
    margin-top: 0;
}

.integration-text {
    flex: 1;
    max-width: 400px;
}

.integration-title {
    font-size: 32px;
    line-height: 40px;
    color: #f5f5f5;
    margin-bottom: 20px;
}

.integration-description {
    font-size: 18px;
    line-height: 1.8;
    color: #a0aec0;
    margin-bottom: 20px;
}

.integration-docs-link {
    font-size: 16px;
    margin-top: 24px;
}

.integration-visual {
    flex: 1;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-points-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.integration-point {
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    position: relative;
    transition: all 0.3s;
}

.integration-point:last-child {
    margin-bottom: 0;
}

.integration-point.github {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.12) 0%, rgba(0, 212, 255, 0.06) 100%);
    border: 2px solid rgba(0, 212, 255, 0.5);
}

.integration-point.github:hover {
    border-color: #00d4ff;
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.25);
}

.integration-point.cicd {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.12) 0%, rgba(0, 255, 136, 0.06) 100%);
    border: 2px solid rgba(0, 255, 136, 0.5);
}

.integration-point.cicd:hover {
    border-color: #00ff88;
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.25);
}

/* Execution Flow Section */
.execution-flow-header {
    text-align: center;
    margin: 0 0 60px;
}

.execution-flow-title {
    font-size: 36px;
    color: #f5f5f5;
    margin-bottom: 15px;
}

.execution-flow-subtitle {
    font-size: 18px;
    color: #a0aec0;
    max-width: 700px;
    margin: 0 auto;
}

/* Footer override */
footer {
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

/* Tooltip Styles */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-content {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    background: linear-gradient(135deg, #1a2332 0%, #0f1621 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    padding: 16px;
    width: 320px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(5px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0.3s;
    z-index: 1000;
    pointer-events: none;
}

.tooltip-wrapper:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 6px solid transparent;
    border-top-color: rgba(0, 255, 136, 0.3);
}

.tooltip-content::before {
    content: '';
    position: absolute;
    top: 100%;
    right: 21px;
    border: 5px solid transparent;
    border-top-color: #1a2332;
}

.tooltip-title {
    font-size: 14px;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 10px;
}

.tooltip-text {
    font-size: 13px;
    color: #d1d5db;
    line-height: 1.6;
}

.tooltip-text p {
    margin: 0 0 12px 0;
}

.tooltip-text p:last-child {
    margin-bottom: 0;
}

.tooltip-highlight {
    color: #00d4ff;
    font-family: var(--font-mono);
    font-weight: 600;
}

/* Hide output groups by default, show only on card hover */
.output-group.git-outputs,
.output-group.cicd-outputs {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding-top: 10px;
}

/* Show git outputs when hovering GitHub card */
.integration-grid-row:first-child:has(.integration-point.github:hover) .git-outputs {
    opacity: 1;
    pointer-events: auto;
}

/* Show CI/CD outputs when hovering CI/CD card */
.integration-grid-row:last-child:has(.integration-point.cicd:hover) .cicd-outputs {
    opacity: 1;
    pointer-events: auto;
}

/* =========================================
   SECTION TITLES & HEADERS
   ========================================= */

.section-header {
    /* margin-top: 60px; */
    text-align: center;
    margin-bottom: 20px;
}

.section-header h2,
.section-header h3 {
    text-align: center;
    margin-bottom: 20px;
}

/* =========================================
   HERO ILLUSTRATION
   ========================================= */

.hero-illustration-wrapper {
    margin-bottom: 40px;
}

.hero-illustration {
    text-align: center;
}

.hero-illustration img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 40px rgba(0, 212, 255, 0.2));
}

/* =========================================
   INTEGRATION POINT CARDS - INNER ELEMENTS
   ========================================= */

.integration-point-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.integration-point-icon {
    background: #0a0e1a;
    border-radius: 12px;
    padding: 12px;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.integration-point-icon.blue {
    border: 2px solid #00d4ff;
}

.integration-point-icon.green {
    border: 2px solid #00ff88;
}

.integration-point-info {
    flex: 1;
}

.integration-point-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.integration-point-title.blue {
    color: #00d4ff;
}

.integration-point-title.green {
    color: #00ff88;
}

.integration-point-subtitle {
    font-size: 14px;
    color: #a0aec0;
    line-height: 1.4;
    white-space: nowrap;
}

.integration-point-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: help;
    text-decoration: underline dotted;
}

.integration-point-badge.blue {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
    text-decoration-color: rgba(0, 212, 255, 0.4);
}

.integration-point-badge.green {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    text-decoration-color: rgba(0, 255, 136, 0.4);
}

.integration-point-features {
    font-size: 15px;
    color: #d1d5db;
    line-height: 1.6;
}

.integration-point-feature {
    display: flex;
    align-items: start;
    gap: 10px;
    margin-bottom: 8px;
}

.integration-point-feature:last-child {
    margin-bottom: 0;
}

.integration-point-feature .bullet {
    font-size: 18px;
    line-height: 1;
}

.integration-point-feature .bullet.blue {
    color: #00d4ff;
}

.integration-point-feature .bullet.green {
    color: #00ff88;
}

.integration-point-note {
    margin-top: 16px;
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

.output-group-label-text {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.output-group-label-text.blue {
    color: #00d4ff;
}

.output-group-label-text.green {
    color: #00ff88;
}

/* =========================================
   DIAGRAM STEP CARDS - INNER ELEMENTS
   ========================================= */

.diagram-step-title {
    font-size: 32px;
    line-height: 40px;
    color: #f5f5f5;
    margin-bottom: 20px;
}

.diagram-step-text {
    font-size: 18px;
    line-height: 1.8;
    color: #a0aec0;
    margin-bottom: 20px;
}

.diagram-step-text:last-child {
    margin-bottom: 0;
}

.diagram-step-text strong {
    color: #00d4ff;
    font-weight: 600;
}

.diagram-step-text a {
    color: #00d4ff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #00d4ff;
}

.diagram-step-text a:hover {
    color: #00ff88;
    border-bottom-color: #00ff88;
}

/* Data Source List */
.data-source-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.data-source-item {
    font-size: 17px;
    line-height: 1.8;
    color: #a0aec0;
    padding: 2px 8px 2px 35px;
    margin-left: -9px;
    position: relative;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
    border-radius: 4px;
}

.data-source-item .bullet {
    position: absolute;
    left: 5px;
    font-weight: 700;
}

.data-source-item.code-blue .bullet {
    color: #00d4ff;
}

.data-source-item.code-blue strong {
    color: #00d4ff;
    font-weight: 600;
}

.data-source-item.tools .bullet {
    color: #00ff88;
}

.data-source-item.tools strong {
    color: #00ff88;
    font-weight: 600;
}

.data-source-item.coming-soon {
    opacity: 0.5;
}

.data-source-item.coming-soon .bullet,
.data-source-item.coming-soon strong {
    color: #6b7280;
    font-weight: 600;
}

.coming-soon-badge {
    display: inline-block;
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    margin-left: 6px;
}

/* Tag Cloud Note */
.tag-cloud-note {
    text-align: center;
    margin-top: 15px;
    color: #6b7280;
    font-size: 14px;
    font-style: italic;
    opacity: 0.8;
}

/* =========================================
   GITHUB PR PREVIEW
   ========================================= */

.github-pr-preview {
    background: #0d1117;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #30363d;
}

.github-pr-header {
    background: #161b22;
    padding: 18px;
    border-bottom: 1px solid #30363d;
    display: flex;
    align-items: center;
    gap: 16px;
}

.github-pr-icon {
    background: #6e7681;
    padding: 10px;
    border-radius: 8px;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 14px;
}

.github-pr-status {
    flex: 1;
}

.github-pr-status-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.github-pr-status-row-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.github-pr-status-text {
    font-size: 17px;
    font-weight: 600;
    color: #f85149;
}

.github-pr-progress {
    margin-top: 8px;
    height: 6px;
    background: #21262d;
    border-radius: 3px;
    overflow: hidden;
}

.github-pr-progress-bar {
    width: 75%;
    height: 100%;
    background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
}

.github-pr-checks {
    background: #0d1117;
}

.github-pr-check {
    padding: 16px 24px;
    border-bottom: 1px solid #30363d;
    display: flex;
    align-items: center;
    gap: 12px;
}

.github-pr-check-icon {
    flex-shrink: 0;
}

.github-pr-check-logo {
    width: 32px;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.github-pr-check-content {
    flex: 1;
}

.github-pr-footer {
    background: #161b22;
    padding: 18px;
    border-top: 1px solid #30363d;
}

.github-pr-footer-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.github-pr-footer-text {
    font-size: 15px;
    font-weight: 600;
    color: #c9d1d9;
}

/* =========================================
   RESULT SUMMARY BOX
   ========================================= */

.result-summary {
    padding: 60px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 255, 136, 0.1) 100%);
    border-radius: 20px;
    border: 2px solid #00ff88;
    text-align: center;
    margin: 0 auto;
    max-width: 920px;
}

.result-summary h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #00ff88;
}

.result-summary-text {
    font-size: 24px;
    line-height: 1.6;
    color: #f5f5f5;
    margin-bottom: 40px;
}

.result-summary-text strong {
    font-weight: 700;
}

.result-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.result-stat {
    max-width: 200px;
}

.result-stat-value {
    font-size: 48px;
    font-weight: 700;
    color: #00ff88;
}

.result-stat-label {
    font-size: 18px;
    color: #a0aec0;
    margin-top: 10px;
}

/* =========================================
   CTA CARD GRID
   ========================================= */

.cta-card-grid {
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cta-card {
    display: block;
    padding: 30px 40px;
    background: transparent;
    border: 2px solid;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
}

.cta-card.red {
    border-color: rgba(255, 100, 100, 0.3);
}

.cta-card.red:hover {
    background: rgba(255, 100, 100, 0.05);
    border-color: #ff6464;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 100, 100, 0.2);
}

.cta-card.blue {
    border-color: rgba(0, 212, 255, 0.3);
}

.cta-card.blue:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: #00d4ff;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.2);
}

.cta-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.cta-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #f5f5f5;
    line-height: 1.3;
}

.cta-card-title .red {
    color: #ff6464;
}

.cta-card-title .green {
    color: #00ff88;
}

.cta-card-arrow {
    font-size: 32px;
    flex-shrink: 0;
}

.cta-card-arrow.red {
    color: #ff6464;
}

.cta-card-arrow.blue {
    color: #00d4ff;
}

/* =========================================
   EXAMPLE GUARDRAILS SECTION
   ========================================= */

.example-guardrails-section {
    margin-left: auto;
    margin-right: auto;
}

.example-guardrails-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
}

/* Sidebar */
.guardrails-sidebar {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 40px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.guardrails-sidebar h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #00d4ff;
    text-align: left;
}

.guardrails-category-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Policy Examples */
.policy-example h4 {
    font-size: 24px;
    color: #00ff88;
    margin-bottom: 30px;
    display: flex;
}

.policy-step {
    margin-bottom: 30px;
}

.policy-step:last-child {
    margin-bottom: 0;
}

.policy-step-label {
    color: #a0aec0;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

.policy-step-note {
    color: #a0aec0;
    font-size: 16px;
    margin-top: 15px;
    font-style: italic;
}

/* Subtle CTAs in examples */
.example-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.example-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-radius: 8px;
    border: 1px solid;
    text-decoration: none;
    transition: all 0.3s ease;
}

.example-cta.blue {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.2);
}

.example-cta.blue:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    transform: translateY(-2px);
}

.example-cta.green {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.2);
}

.example-cta.green:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
    transform: translateY(-2px);
}

.example-cta-content {
    flex: 1;
}

.example-cta-title {
    color: #f5f5f5;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.example-cta-subtitle {
    color: #a0aec0;
    font-size: 14px;
}

.example-cta-arrow {
    font-size: 24px;
    color: #00d4ff;
    flex-shrink: 0;
    margin-left: 16px;
}

.example-cta-icon {
    flex-shrink: 0;
    margin-left: 16px;
}

/* Full Guardrail Library */
.guardrail-library-title {
    text-align: center;
    font-size: 28px;
    margin: 50px 0 30px;
}

.guardrail-library-cta {
    text-align: center;
    margin-top: 40px;
    padding: 24px;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.guardrail-library-cta p {
    font-size: 16px;
    color: #a0aec0;
    line-height: 1.6;
}

.guardrail-library-cta .green {
    color: #00ff88;
}

.guardrail-library-cta .blue {
    color: #00d4ff;
}

/* =========================================
   GRADUAL ENFORCEMENT SECTION
   ========================================= */

/* Added top margin while use id in url. */
#gradual-enforcement,
#git-agent-card,
#cicd-agent-card,
#example-guardrails,
#examples-container,
#full-guardrail-library,
#video-tutorial,
#why-not-ci {
    scroll-margin-top: 92px;
}

.gradual-enforcement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    align-items: start;
}

/* Enforcement Levels */
.enforcement-levels {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.enforcement-level {
    position: relative;
}

.enforcement-level-card {
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    border: 2px solid;
}

.enforcement-level-card.draft {
    background: linear-gradient(
        135deg,
        rgba(107, 114, 128, 0.1) 0%,
        rgba(107, 114, 128, 0.05) 100%
    );
    border-color: rgba(107, 114, 128, 0.4);
}

.enforcement-level-card.score {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-color: rgba(59, 130, 246, 0.4);
}

.enforcement-level-card.report-pr {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(251, 191, 36, 0.05) 100%);
    border-color: rgba(251, 191, 36, 0.4);
}

.enforcement-level-card.block-pr {
    background: linear-gradient(
        135deg,
        rgba(255, 100, 101, 0.1) 0%,
        rgba(255, 100, 101, 0.05) 100%
    );
    border-color: rgba(255, 100, 101, 0.4);
}

.enforcement-level-card.block-deploy {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border-color: rgba(220, 38, 38, 0.5);
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.15);
}

.enforcement-level-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.enforcement-level-number {
    margin-top: 4px;
}

.enforcement-level-number {
    font-weight: 700;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 12px;
    white-space: nowrap;
}

.enforcement-level-number.draft {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #0a0e1a;
}

.enforcement-level-number.score {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #0a0e1a;
}

.enforcement-level-number.report-pr {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0a0e1a;
}

.enforcement-level-number.block-pr {
    background: linear-gradient(135deg, #ff6465 0%, #ef4444 100%);
    color: #0a0e1a;
}

.enforcement-level-number.block-deploy {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #f5f5f5;
}

.enforcement-level-info {
    flex: 1;
}

.enforcement-level-name {
    font-family: ui-monospace, monospace;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.enforcement-level-name.draft {
    color: #9ca3af;
}
.enforcement-level-name.score {
    color: #60a5fa;
}
.enforcement-level-name.report-pr {
    color: #fbbf24;
}
.enforcement-level-name.block-pr {
    color: #ff6465;
}
.enforcement-level-name.block-deploy {
    color: #dc2626;
}

.enforcement-level-desc {
    font-size: 13px;
    color: #9ca3af;
    line-height: 1.5;
}

.enforcement-level-icon {
    font-size: 24px;
}

.enforcement-level-icon.draft {
    color: rgba(107, 114, 128, 0.5);
}
.enforcement-level-icon.score {
    color: rgba(59, 130, 246, 0.6);
}
.enforcement-level-icon.report-pr {
    color: rgba(251, 191, 36, 0.6);
}
.enforcement-level-icon.block-pr {
    color: rgba(255, 100, 101, 0.6);
}
.enforcement-level-icon.block-deploy {
    color: rgba(220, 38, 38, 0.6);
}

.enforcement-level-connector {
    position: absolute;
    left: 29px;
    bottom: -6px;
    width: 3px;
    height: 6px;
}

.enforcement-level-connector.draft-to-score {
    background: linear-gradient(180deg, rgba(107, 114, 128, 0.4) 0%, rgba(59, 130, 246, 0.4) 100%);
}

.enforcement-level-connector.score-to-report {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.4) 0%, rgba(251, 191, 36, 0.4) 100%);
}

.enforcement-level-connector.report-to-block-pr {
    background: linear-gradient(180deg, rgba(251, 191, 36, 0.4) 0%, rgba(255, 100, 101, 0.4) 100%);
}

.enforcement-level-connector.block-pr-to-deploy {
    background: linear-gradient(180deg, rgba(255, 100, 101, 0.4) 0%, rgba(220, 38, 38, 0.4) 100%);
}

/* Code Example Panel */
.enforcement-code-panel {
    background: linear-gradient(135deg, #1a1f35 0%, #0f1419 100%);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
}

.enforcement-code-panel h4 {
    font-size: 18px;
    color: #00d4ff;
    margin-bottom: 20px;
    text-align: center;
}

.enforcement-code-block {
    background: #0a0e1a;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 20px;
    font-family: ui-monospace, monospace;
    font-size: 13px;
    line-height: 1.7;
    overflow-x: auto;
}

.enforcement-code-block > pre {
    white-space: pre-line;
    margin: 0;
    color: #d1d5db;
}

/* Benefits Grid */
.enforcement-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.enforcement-benefit {
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid;
}

.enforcement-benefit.blue {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.2);
}

.enforcement-benefit.green {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.2);
}

.enforcement-benefit.yellow {
    background: rgba(251, 191, 36, 0.05);
    border-color: rgba(251, 191, 36, 0.2);
}

.enforcement-benefit-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.enforcement-benefit-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.enforcement-benefit.blue .enforcement-benefit-title {
    color: #00d4ff;
}
.enforcement-benefit.green .enforcement-benefit-title {
    color: #00ff88;
}
.enforcement-benefit.yellow .enforcement-benefit-title {
    color: #fbbf24;
}

.enforcement-benefit-text {
    font-size: 14px;
    color: #a0aec0;
    line-height: 1.6;
}

/* =========================================
   VIDEO SECTION
   ========================================= */

.video-section h3 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.video-section .section-tagline {
    font-size: 18px;
    margin-bottom: 40px;
}

.video-section .video-wrapper {
    padding-bottom: 50.625%;
}

.video-cta {
    text-align: center;
}

/* =========================================
   CI VS LUNAR COMPARISON
   ========================================= */

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 0 auto 60px;
}

.comparison-card {
    border-radius: 20px;
    padding: 40px;
    border: 3px solid;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.comparison-card.before {
    background: rgba(255, 100, 100, 0.1);
    border-color: #ff6464;
}

.comparison-card.after {
    background: rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
}
.comparison-card-title-wrapper {
    display: flex;
    flex-direction: column;
}

.comparison-card-title {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.comparison-card.before .comparison-card-title {
    color: #ff6464;
}

.comparison-card.after .comparison-card-title {
    color: #00ff88;
}

.comparison-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comparison-item {
    display: flex;
    gap: 16px;
    align-items: start;
}

.comparison-item-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
}

.comparison-item-title {
    font-size: 18px;
    font-weight: 700;
    color: #f5f5f5;
    margin-bottom: 6px;
}

.comparison-item-text {
    font-size: 15px;
    color: #a0aec0;
    line-height: 1.5;
}

.comparison-card-footer {
    margin-top: 30px;
    padding-top: 24px;
    text-align: center;
}

.comparison-card.before .comparison-card-footer {
    border-top: 2px solid rgba(255, 100, 100, 0.3);
}

.comparison-card.after .comparison-card-footer {
    border-top: 2px solid rgba(0, 255, 136, 0.3);
}

.comparison-footer-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.8;
}

.comparison-card.after .comparison-footer-text {
    color: #00ff88;
}

/* Comparison Summary */
.comparison-summary {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 255, 136, 0.1) 100%);
    border-radius: 20px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    text-align: center;
}

.comparison-summary-title {
    font-size: 24px;
    font-weight: 700;
    color: #00d4ff;
    margin-bottom: 12px;
}

.comparison-summary-text {
    font-size: 18px;
    color: #a0aec0;
    line-height: 1.6;
}

.comparison-summary-text .green {
    color: #00ff88;
}

.enforcement-code-block pre {
    margin: 0;
    color: #d1d5db;
}
/* =========================================
   RESPONSIVE OVERRIDES
   ========================================= */

@media (max-width: 1200px) {
    .integration-point-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .integration-three-column {
        grid-template-columns: 1fr 2fr;
    }
    .integration-grid-row {
        grid-template-columns: minmax(340px, 380px) 240px;
    }

    .integration-grid-row:first-child .integration-point.github::after,
    .integration-grid-row:last-child .integration-point.cicd::after {
        width: 290px;
    }
}

@media (max-width: 1050px) {
    .example-cta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .intro-section {
        padding: 80px 40px;
    }
    .example-guardrails-grid {
        grid-template-columns: 1fr;
    }

    .guardrails-sidebar {
        position: unset;
        background: transparent;
        padding: 0;
        border-width: 0;
    }

    .guardrails-category-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .gradual-enforcement-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .comparison-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin-bottom: 40px;
    }

    .cta-card-grid {
        grid-template-columns: 1fr;
    }

    .example-cta-grid {
        grid-template-columns: 1fr 1fr;
    }

    .result-stats {
        gap: 40px;
    }

    .integration-point {
        margin-bottom: 0;
    }

    .integration-point-header {
        flex-wrap: wrap;
    }

    .integration-three-column {
        grid-template-columns: 1fr;
        gap: 60px;
        padding-bottom: 60px;
    }

    .diagram-step,
    .diagram-step-reverse,
    .diagram-step-card {
        flex-direction: column;
    }

    .diagram-text {
        max-width: 100%;
        text-align: center;
    }

    .data-source-list {
        text-align: left;
    }

    .diagram-visual {
        padding: 0px;
        min-height: 200px;
        width: 100%;
    }

    .diagram-step-card {
        padding: 40px;
        gap: 40px;
    }

    .integration-text {
        width: 100%;
        margin: 0 auto;
        max-width: 600px;
        text-align: center;
        padding: 0;
    }

    .integration-grid-wrapper {
        flex-direction: row;
        justify-content: space-around;
        width: 100%;
    }

    .integration-grid-row {
        grid-template-columns: 1fr;
        gap: 20px;
        height: 100%;
    }

    .integration-grid-row .integration-point.github,
    .integration-grid-row .integration-point.cicd {
        width: 300px;
        height: 300px;
    }

    .output-group.git-outputs,
    .output-group.cicd-outputs,
    .integration-grid-row:first-child .integration-point.github::after,
    .integration-grid-row:last-child .integration-point.cicd::after {
        opacity: 1;
        padding: calc(20 * (100vw / 1010)) /* top */ calc(10 * (100vw / 1010)) /* right */ 0px
            /* bottom */ calc(50 * (100vw / 1010));
    }

    .integration-grid-row:first-child .integration-point.github::after {
        left: 50%;
        top: 100%;
        transform: translateX(-50%);
        width: 130%;
        height: 225px;
        background: linear-gradient(
            180deg,
            rgba(0, 212, 255, 0.28) 0%,
            rgba(0, 212, 255, 0.2) 25%,
            rgba(0, 212, 255, 0.1) 55%,
            rgba(0, 212, 255, 0) 100%
        );
        clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
    }

    .integration-grid-row:last-child .integration-point.cicd::after {
        left: 50%;
        top: 100%;
        transform: translateX(-50%);
        width: 130%;
        height: 225px;
        background: linear-gradient(
            180deg,
            rgba(0, 255, 136, 0.28) 0%,
            rgba(0, 255, 136, 0.2) 25%,
            rgba(0, 255, 136, 0.1) 55%,
            rgba(0, 255, 136, 0) 100%
        );
        clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
    }

    .output-group {
        margin: 0 auto;
    }

    .tag-cloud-container {
        height: 480px;
    }
    .diagram-step-card,
    .result-summary {
        padding: 30px;
        max-width: 800px;
        margin: 0 auto;
    }

    .cta-card-grid {
        max-width: 800px;
    }

    .policy-category-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .example-guardrails-section {
        padding: 0;
    }
    .result-stat-value {
        font-size: 38px;
    }
    .enforcement-code-panel {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .intro-section {
        padding: 60px 20px;
    }
    .guardrails-sidebar {
        padding: 24px 0px;
    }

    .result-summary {
        padding: 40px 24px;
    }

    .result-summary h2 {
        font-size: 28px;
    }

    .result-summary-text {
        font-size: 18px;
    }

    .result-stat-value {
        font-size: 36px;
    }

    .cta-card {
        padding: 24px;
    }

    .cta-card-title {
        font-size: 20px;
    }

    .comparison-card {
        padding: 24px;
    }

    .video-section h3 {
        font-size: 28px;
    }

    .integration-grid-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .intro-text {
        font-size: 20px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .step-title {
        font-size: 28px;
    }

    .step-content {
        padding: 30px;
    }

    .icon-row {
        flex-direction: column;
    }

    .integration-grid-wrapper {
        flex-direction: column;
        gap: 60px;
    }
    .integration-grid-row {
        grid-template-columns: 1fr;
        gap: 20px;
        align-self: center;
    }
    .integration-grid-row .integration-point.github,
    .integration-grid-row .integration-point.cicd {
        height: 100%;
        width: 320px;
    }

    .policy-category-list {
        grid-template-columns: repeat(1, 1fr);
    }

    .diagram-step-card,
    .result-summary {
        padding: 30px 20px;
    }
    .diagram-visual {
        padding: 0;
    }

    .enforcement-code-panel,
    .comparison-summary {
        padding: 30px 20px;
    }
    .enforcement-benefit,
    .comparison-card {
        padding: 24px 20px;
    }

    .gradual-enforcement-grid {
        grid-template-columns: 1fr;
    }

    .result-stats {
        flex-direction: column;
        align-items: center;
    }

    .enforcement-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .tag-cloud-container {
        display: none;
    }
    .tag-cloud-image {
        display: block;
        margin: 0 auto;
        width: 100%;
    }

    .integration-grid-row:first-child .integration-point.github::after,
    .integration-grid-row:last-child .integration-point.cicd::after {
        width: 135%;
        clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%);
    }

    .example-cta-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .integration-grid-row .integration-point.github,
    .integration-grid-row .integration-point.cicd {
        min-width: unset;
        width: min-content;
    }
}
