/* Thin border at bottom of header */
header.sticky-top {
    border-bottom: 1px solid #ddd;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Push footer to bottom on short pages */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body > footer,
body > section:last-of-type ~ footer {
    margin-top: auto;
}

/* Brand color - change this to update buttons and accent sections */
:root {
    --brand-color: #0AB1A7;
    --brand-color-hover: #08958c;
    --brand-color-rgb: 10, 177, 167;
}

/* System font stack - like PaperMod */
body,
h1, h2, h3, h4, h5, h6,
.navbar,
.btn,
p, a, li, span, div {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* Reduce corner radius on all buttons */
.btn-main,
.btn-main-sm,
.btn-outline {
    border-radius: 8px !important;
}

/* Custom button color */
.btn-main {
    background-color: var(--brand-color) !important;
    border-color: var(--brand-color) !important;
    box-shadow: 0 10px 25px rgba(var(--brand-color-rgb), 0.4) !important;
}

.btn-main:hover,
.btn-main:focus,
.btn-main:active {
    background-color: var(--brand-color-hover) !important;
    border-color: var(--brand-color-hover) !important;
    box-shadow: 0 10px 25px rgba(var(--brand-color-rgb), 0.6) !important;
}

/* Promo/accent section background */
.bg-orange {
    background-color: var(--brand-color) !important;
}

/* Dark gray section background */
.bg-dark-gray {
    background-color: #4C4C4C !important;
}

/* Hero section button row */
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

/* Outline button style (secondary CTA) */
.hero-buttons .btn.btn-outline {
    background: transparent !important;
    border: 1px solid #fff !important;
    color: #fff !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    padding: 15px 40px !important;
    display: inline-block !important;
    margin-left: 4px;
    background-image: none !important;
}

.hero-buttons .btn.btn-outline:hover,
.hero-buttons .btn.btn-outline:focus,
.hero-buttons .btn.btn-outline:active {
    background-color: var(--brand-color) !important;
    border-color: var(--brand-color) !important;
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(var(--brand-color-rgb), 0.4) !important;
}

/* Problem section */
#problem .heading {
    padding-bottom: 17px;
}

.problem-lead {
    max-width: 700px;
    color: #555;
    font-size: 1.1rem;
    text-align: left;
    margin: 0 auto 20px;
}

.problem-card {
    text-align: left;
    padding: 30px 20px;
}

.problem-card i {
    color: var(--brand-color);
    font-size: 2.5rem;
}

.problem-card h4 {
    font-size: 1.15rem;
}

.problem-card p {
    color: #666;
    font-size: 0.95rem;
}

/* Code block styling */
.code-block {
    background-color: #0d1117;
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.code-block-header {
    background-color: #010409;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.code-block-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.code-block-dot.red { background-color: #ff5f57; }
.code-block-dot.yellow { background-color: #febc2e; }
.code-block-dot.green { background-color: #28c840; }

.code-block-title {
    margin-left: 8px;
    color: #6c7086;
    font-size: 0.8rem;
}

.code-block .highlight {
    margin: 0;
}

.code-block .highlight pre,
.code-block pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
    background-color: #272822 !important;
}

.code-block .highlight code,
.code-block code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Visualization slider dots */
.visualization-slider .slick-dots {
    bottom: -30px;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.visualization-slider .slick-dots li {
    display: inline-block;
    margin: 0 4px;
}

.visualization-slider .slick-dots li button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    font-size: 0;
    padding: 0;
    cursor: pointer;
}

.visualization-slider .slick-dots li.slick-active button {
    background-color: var(--brand-color);
}

.visualization-slider {
    margin-bottom: 30px;
}

.visualization-slider video {
    width: 100%;
    display: block;
    object-fit: contain;
}

/* Ensure Slick slides have proper dimensions for video */
.visualization-slider .slick-slide {
    height: auto !important;
}

.visualization-slider .slick-track {
    display: flex;
    align-items: center;
}

/* Smaller image for tall/portrait images */
.img-small {
    max-height: 360px;
    width: auto;
}

/* Content page lists (privacy, terms) */
.content ul, .content ol {
    list-style: disc;
    padding-left: 20px;
}

.content ul li, .content ol li {
    margin-bottom: 4px;
}

/* Subscription form */
.call-to-action .form-control {
    border-radius: 8px !important;
}

.call-to-action .btn-submit {
    background-color: var(--brand-color) !important;
    border-color: var(--brand-color) !important;
    padding: 10px 25px;
    border-radius: 8px !important;
}
