* {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* API code styles */
.text-primary {
    color: #60a5fa !important;
}

.doc-section pre code {
    color: #f3f4f6;
}

.code-block {
    background: #1f2937;
    border-radius: 0.5rem;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    color: #f3f4f6;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.code-block .method {
    color: #34d399;
}

.code-block .url {
    color: #60a5fa;
}

.code-block .string {
    color: #fbbf24;
}

.code-block .number {
    color: #a78bfa;
}

/* Animations and visual effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.hero-section {
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
    padding-top: 4.5rem;
    padding-bottom: 4rem;
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 3rem;
    min-height: 440px;
}

.hero-copy {
    text-align: left;
}

.hero-typed-line {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin-bottom: 0.35rem;
    padding-bottom: 0.15em;
    font-size: 1.5rem;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.02em;
}

@media (min-width: 640px) {
    .hero-typed-line {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .hero-typed-line {
        font-size: 2.25rem;
    }
}

.hero-typed-line::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #312e81 0%, #6366f1 55%, #c7d2fe 100%);
    opacity: 0.45;
}

.hero-typed-text {
    font-weight: 500;
    background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 45%, #6366f1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-typed-cursor {
    display: inline-block;
    margin-left: 1px;
    font-weight: 300;
    color: #6366f1;
    animation: hero-cursor-blink 1s step-end infinite;
}

@keyframes hero-cursor-blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-typed-cursor {
        animation: none;
    }
}

.hero-actions {
    justify-content: flex-start;
}

.hero-endpoints {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-endpoints button {
    border: 0;
    border-radius: 0.5rem;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    padding: 0.4rem 0.7rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.hero-endpoints button:hover {
    background: #e5e7eb;
    color: #312e81;
}

.hero-endpoints button.is-active {
    background: #e0e7ff;
    color: #4338ca;
    box-shadow: inset 0 0 0 1px #a5b4fc;
}

.hero-terminal {
    --hero-scroll: 0;
    min-width: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #111827;
    box-shadow: 0 20px 45px rgba(17, 24, 39, 0.18);
    opacity: calc(1 - var(--hero-scroll) * 0.18);
    transform: translate3d(0, calc(var(--hero-scroll) * 48px), 0);
    transition: box-shadow 220ms ease;
}

.hero-terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #20212b;
    padding: 0.75rem 1rem;
}

.hero-terminal-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
}

.hero-terminal-dot--red {
    background: #ff5f56;
}

.hero-terminal-dot--yellow {
    background: #ffbd2e;
}

.hero-terminal-dot--green {
    background: #27c93f;
}

.hero-terminal-body {
    height: 420px;
    overflow: auto;
    scrollbar-color: #4b5563 #111827;
    scrollbar-width: thin;
}

.hero-terminal-code,
.hero-terminal-code * {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.hero-terminal-code {
    padding: 1.5rem;
    color: #e5e7eb;
    font-size: 0;
    line-height: 0;
    white-space: pre-wrap;
    -webkit-font-smoothing: antialiased;
}

.hero-api-example {
    display: none;
    font-size: 0.8125rem;
    line-height: 1.65;
}

.hero-api-example.is-active {
    display: block;
    animation: endpointExampleFade 180ms ease-out;
}

.hero-api-example--latest {
    margin-top: -1.875rem;
}

.terminal-command {
    display: flex;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #374151;
    white-space: nowrap;
}

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

.hero-terminal-code .terminal-prompt {
    color: #34d399;
    font-weight: 700;
}

@media (max-width: 1023px) {
    .hero-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 3rem;
        min-height: auto;
    }

    .hero-copy {
        max-width: 48rem;
        margin: 0 auto;
        text-align: center;
    }

    .hero-copy p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-endpoints {
        justify-content: center;
    }

    .hero-terminal {
        width: 100%;
        max-width: 48rem;
        margin: 0 auto;
    }

    .hero-terminal-body {
        height: 380px;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .hero-terminal-body {
        height: 340px;
    }
}

/* Indices-inspired background pattern - Chart lines */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg width='200' height='200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,150 Q50,100 100,80 T200,40' stroke='%236366f1' stroke-width='1.5' fill='none' opacity='0.15'/%3E%3Cpath d='M0,160 Q60,120 120,100 T200,60' stroke='%238b5cf6' stroke-width='1.5' fill='none' opacity='0.12'/%3E%3Ccircle cx='100' cy='80' r='2' fill='%236366f1' opacity='0.2'/%3E%3Ccircle cx='120' cy='100' r='2' fill='%238b5cf6' opacity='0.18'/%3E%3C/svg%3E");
    background-size: 400px 400px;
    background-position: 0 0;
    background-repeat: repeat;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

.hero-gradient {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(99, 102, 241, 0.06) 100%);
    border-radius: 50%;
    filter: blur(80px);
    animation: float 10s ease-in-out infinite reverse;
    z-index: 0;
}

.section-animate,
.scroll-reveal-child {
    opacity: 0;
    transform: translate3d(0, 42px, 0);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal-child {
    transform: translate3d(0, 48px, 0) scale(0.96);
    transition-delay: calc(var(--reveal-index, 0) * 110ms);
}

.section-animate.is-revealed,
.scroll-reveal-child.is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .section-animate,
    .scroll-reveal-child,
    .hero-terminal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

.api-products-section {
    background:
        radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.06), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, #fafaff 100%);
}

.api-products-grid {
    gap: 1.5rem;
}

.api-product-card {
    --card-accent: #6366f1;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 25rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.03);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.api-product-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #818cf8, transparent 72%);
    opacity: 0.45;
}

.api-product-card:hover {
    transform: translateY(-5px);
    border-color: #c7d2fe;
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.1);
}

.api-product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.api-product-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    border-radius: 0.875rem;
    background: #f3f4ff;
    color: #6366f1;
    transition: transform 220ms ease;
}

.api-product-card:hover .api-product-card__icon {
    transform: scale(1.06);
}

.api-product-card__icon svg {
    width: 1.5rem;
    height: 1.5rem;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.api-product-card__meta code {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background: #f9fafb;
    color: #6b7280;
    padding: 0.35rem 0.65rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-product-card > p {
    line-height: 1.65;
}

.api-product-card ul {
    flex: 1;
    padding-top: 1.25rem;
    border-top: 1px solid #f0f1f5;
}

.api-product-card li svg {
    color: #6366f1 !important;
}

.api-product-card__link {
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin-top: auto;
    color: #4f46e5 !important;
    text-decoration: none;
}

.api-product-card__link span {
    transition: transform 150ms ease;
}

.api-product-card:hover .api-product-card__link span {
    transform: translateX(3px);
}

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.bg-gradient-animated {
    background: linear-gradient(-45deg, #f0f9ff, #faf5ff, #f0f9ff, #faf5ff);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

/* FAQ Styles */
.faq-toggle svg {
    transition: transform 0.3s ease;
}

.faq-toggle.active svg {
    transform: rotate(180deg);
}

.faq-toggle:focus{
    outline: none !important;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-content.show {
    max-height: 500px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.btn{
    border-radius: 0.5rem;
}

.list-group-item a{
    font-size: 16px;
}

@media (min-width: 500px) {
    .dotsContainer {
        width: 400px;
    }
}

@media (max-width: 768px) {
    .api-product-card {
        min-height: auto;
    }

    .enterprise-card-enhanced {
        min-height: auto;
        padding: 1.5rem !important;
    }
    
    .enterprise-card-enhanced .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .enterprise-card-enhanced .flex {
        width: 100%;
    }
    
    .enterprise-card-enhanced h3 {
        font-size: 1.75rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .enterprise-card-enhanced .text-5xl {
        font-size: 2.5rem !important;
    }
    
    .enterprise-card-enhanced .text-lg {
        font-size: 1rem !important;
    }
}

.live-rate {
    display: inline-block;
    min-width: 4.5ch;
    font-variant-numeric: tabular-nums;
}
