/* API Platform Specific Styles */

/* === HERO SECTION === */
.api-hero {
    padding: 160px 0 120px;
    min-height: 45vh;
    background: 
        radial-gradient(circle at 20% 50%, rgba(123, 109, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 224, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 0, 117, 0.08) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    margin: 0 40px;
    display: flex;
    align-items: center;
}

.api-hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.api-hero-text {
    flex: 1 1 500px;
    text-align: center;
    animation: fadeInLeft 1s ease-out;
}

.api-hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 27px;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #7b6dff 0%, #00e0ff 50%, #ff0075 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    display: block;
}

.hero-subtitle {
    color: #fff;
    font-weight: 300;
    opacity: 0.9;
    display: block;
    margin-top: 8px;
}

.api-hero-text h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
    background: linear-gradient(135deg, #7b6dff 0%, #00e0ff 50%, #ff0075 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
}

.api-hero-text p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.api-hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.cta-btn.primary {
    background-color: #000;
    color: #fff;
}

.cta-btn.primary::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(130deg, #ff4d8c, #b347ff, #007bff, #00e0ff, #ff4d8c);
    background-size: 400% 400%;
    animation: ctaBorderShift 6s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.cta-btn.primary:hover {
    background-color: #111;
    transform: translateY(-3px);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

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

.api-hero-visual {
    flex: 1 1 400px;
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease-out;
}

/* === CODE PREVIEW === */
.code-preview {
    background: rgba(17, 17, 17, 0.9);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    width: 100%;
    max-width: 450px;
    min-width: 350px;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(34, 34, 34, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-dots {
    display: flex;
    gap: 8px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #555;
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27ca3f; }

.code-title {
    color: #ddd;
    font-size: 0.9rem;
    font-weight: 500;
}

.code-content {
    padding: 24px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
}

.code-line {
    margin-bottom: 12px;
    text-align: left;
}

.code-keyword { color: #ff79c6; }
.code-string { color: #50fa7b; }
.code-property { color: #8be9fd; }
.code-comment { color: #6272a4; }

.code-response {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.typing-indicator {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #7b6dff;
    border-radius: 50%;
    animation: typing 1.5s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.3s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.6s; }

.api-response-text {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(80, 250, 123, 0.1);
    border: 1px solid rgba(80, 250, 123, 0.3);
    border-radius: 8px;
    animation: fadeInResponse 0.5s ease-out;
}

@keyframes typing {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

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

/* === SECTION CONTAINER === */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* === FEATURES SECTION === */
.api-features {
    padding: 140px 0;
    background: transparent;
    position: relative;
    z-index: 2;
}

.api-features h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #7b6dff 0%, #00e0ff 50%, #ff0075 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: rgba(34, 34, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #7b6dff, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(123, 109, 255, 0.2);
    border-color: rgba(123, 109, 255, 0.3);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    margin-bottom: 24px;
}

.feature-icon svg {
    color: #7b6dff;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.feature-card p {
    color: #aaa;
    margin-bottom: 20px;
    line-height: 1.6;
}

.feature-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.feature-benefits span {
    color: #bbb;
    font-size: 0.9rem;
}

/* === CODE EXAMPLES SECTION === */
.code-examples {
    padding: 140px 0;
    position: relative;
    z-index: 2;
}

.code-examples h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #7b6dff 0%, #00e0ff 50%, #ff0075 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
}

.code-tabs {
    background: rgba(17, 17, 17, 0.8);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-buttons {
    display: flex;
    background: rgba(34, 34, 34, 0.8);
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    color: #aaa;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
}

.tab-btn.active {
    color: #7b6dff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #7b6dff;
}

.tab-btn:hover:not(.active) {
    color: #ddd;
}

.tab-content {
    position: relative;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.code-block {
    position: relative;
    text-align: left;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(34, 34, 34, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-lang {
    color: #ddd;
    font-weight: 500;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.code-block pre {
    margin: 0;
    padding: 24px;
    background: rgba(0, 0, 0, 0.4);
    overflow-x: auto;
    text-align: left;
    white-space: pre;
}

.code-block code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #f8f8f2;
    text-align: left;
    display: block;
    white-space: pre;
}

/* === GET STARTED SECTION === */
.get-started {
    padding: 140px 0;
    background: transparent;
    position: relative;
    z-index: 2;
}

.get-started h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    background: linear-gradient(135deg, #7b6dff 0%, #00e0ff 50%, #ff0075 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
}

.get-started-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.get-started-card {
    background: rgba(34, 34, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.get-started-card:hover {
    transform: translateY(-8px);
    border-color: rgba(123, 109, 255, 0.3);
    box-shadow: 0 20px 40px rgba(123, 109, 255, 0.15);
}

.card-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #7b6dff, #9d8dff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    margin: 0 auto 24px;
}

.get-started-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.get-started-card p {
    color: #aaa;
    margin-bottom: 24px;
    line-height: 1.6;
}

.get-started-card p code {
    background: rgba(123, 109, 255, 0.1);
    color: #7b6dff;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
}

.card-cta {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.card-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(130deg, #ff4d8c, #b347ff, #007bff, #00e0ff, #ff4d8c);
    background-size: 400% 400%;
    animation: ctaBorderShift 6s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card-cta:hover {
    background-color: #111;
    transform: translateY(-3px);
}

/* === PRICING SECTION === */
.pricing-section {
    padding: 140px 0;
    position: relative;
    z-index: 2;
}

.pricing-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #7b6dff 0%, #00e0ff 50%, #ff0075 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
}

.pricing-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.pricing-intro.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.toggle-label {
    color: #aaa;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
}

.toggle-switch input {
    display: none;
}

.toggle-switch label {
    display: block;
    width: 60px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-switch label::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 24px;
    height: 24px;
    background: #7b6dff;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.toggle-switch input:checked + label::after {
    left: 32px;
}

.discount {
    color: #7b6dff;
    font-weight: 600;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(34, 34, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.popular {
    border-color: #7b6dff;
    box-shadow: 0 0 30px rgba(123, 109, 255, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #7b6dff, #9d8dff);
    color: #fff;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.pricing-amount {
    margin-bottom: 12px;
}

.currency {
    font-size: 1.5rem;
    color: #7b6dff;
    font-weight: 600;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.period {
    color: #aaa;
    font-size: 1rem;
}

.custom-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #7b6dff;
}

.pricing-header p {
    color: #aaa;
    margin-bottom: 32px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: #ddd;
}

.pricing-cta {
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.pricing-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(130deg, #ff4d8c, #b347ff, #007bff, #00e0ff, #ff4d8c);
    background-size: 400% 400%;
    animation: ctaBorderShift 6s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.pricing-cta:hover {
    background-color: #111;
    transform: translateY(-3px);
}

.hidden {
    display: none;
}

/* === DOCUMENTATION SECTION === */
.documentation-section {
    padding: 140px 0;
    background: transparent;
    position: relative;
    z-index: 2;
}

.documentation-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #7b6dff 0%, #00e0ff 50%, #ff0075 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
}

.docs-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.docs-intro.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

.docs-card {
    background: rgba(34, 34, 34, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
}

.docs-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.docs-card.animate-in:hover {
    transform: translateY(-8px) scale(1);
    border-color: rgba(123, 109, 255, 0.3);
    box-shadow: 0 20px 40px rgba(123, 109, 255, 0.15);
}

.docs-card.featured.animate-in:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 25px 50px rgba(123, 109, 255, 0.3);
}

.docs-icon {
    margin-bottom: 24px;
}

.docs-icon svg {
    color: #7b6dff;
}

.docs-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: #fff;
}

.docs-card p {
    color: #aaa;
    margin-bottom: 20px;
    line-height: 1.6;
}

.docs-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 24px 0 24px 0;
    text-align: left;
    flex-grow: 1;
    align-items: center;
}

/* Console style only for SDK card */
.docs-card:nth-child(2) .docs-features {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(123, 109, 255, 0.3);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    font-family: 'Monaco', 'Consolas', monospace;
    overflow: hidden;
    display: block;
}

.docs-card:nth-child(2) .docs-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: rgba(123, 109, 255, 0.1);
    border-bottom: 1px solid rgba(123, 109, 255, 0.2);
}

.docs-card:nth-child(2) .docs-features::after {
    content: '●●●';
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 12px;
    color: #7b6dff;
    letter-spacing: 4px;
}

.docs-features span {
    color: #bbb;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.docs-features span::before {
    content: '';
}

/* Console commands style only for SDK card */
.docs-card:nth-child(2) .docs-features span {
    color: #50fa7b;
    font-size: 0.85rem;
    display: block;
    margin: 6px 0;
    position: relative;
    z-index: 1;
}

.docs-card:nth-child(2) .docs-features span:first-child {
    margin-top: 40px;
}

.docs-card:nth-child(2) .docs-features span::before {
    content: '$ ';
    color: #7b6dff;
    font-weight: bold;
}

.docs-card:hover .docs-features span {
    color: #ddd;
}

/* Console hover effects only for SDK card */
.docs-card:nth-child(2):hover .docs-features span {
    color: #fff;
}

.docs-card:nth-child(2):hover .docs-features {
    border-color: rgba(123, 109, 255, 0.5);
    box-shadow: 0 0 20px rgba(123, 109, 255, 0.2);
}

.docs-card:nth-child(2):hover .docs-features::before {
    background: rgba(123, 109, 255, 0.2);
}

/* Featured documentation card */
.docs-card.featured {
    background: linear-gradient(135deg, rgba(123, 109, 255, 0.1) 0%, rgba(0, 224, 255, 0.05) 100%);
    border: 2px solid rgba(123, 109, 255, 0.3);
    position: relative;
}

.docs-card.featured:not(.animate-in) {
    transform: translateY(30px) scale(0.98);
}

.docs-card.featured::before {
    content: 'РЕКОМЕНДУЕМ';
    position: absolute;
    top: -12px;
    left: 20px;
    background: linear-gradient(45deg, #7b6dff, #00e0ff);
    color: #000;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(123, 109, 255, 0.4);
}



.docs-cta {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    z-index: 0;
    margin-top: auto;
    align-self: center;
    width: fit-content;
}

.docs-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(130deg, #ff4d8c, #b347ff, #007bff, #00e0ff, #ff4d8c);
    background-size: 400% 400%;
    animation: ctaBorderShift 6s linear infinite;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.docs-cta:hover {
    background-color: #111;
    transform: translateY(-3px);
}

/* === FINAL CTA SECTION === */
.final-cta {
    padding: 140px 0;
    background: linear-gradient(135deg, rgba(123, 109, 255, 0.1) 0%, rgba(0, 224, 255, 0.05) 100%);
    position: relative;
    z-index: 2;
    border-radius: 20px;
    margin: 0 40px;
}

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

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #7b6dff 0%, #00e0ff 50%, #ff0075 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
}

.cta-content p {
    font-size: 1.1rem;
    color: #aaa;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.cta-content p.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.savings-highlight {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.savings-item {
    text-align: center;
    padding: 20px;
    background: rgba(123, 109, 255, 0.1);
    border: 1px solid rgba(123, 109, 255, 0.3);
    border-radius: 16px;
    min-width: 120px;
    transition: all 0.2s ease;
}

.savings-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(123, 109, 255, 0.25);
}

.savings-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #7b6dff;
    margin-bottom: 5px;
}

.savings-text {
    font-size: 0.9rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-buttons.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* === ANIMATIONS === */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* === SCROLL ANIMATIONS === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-left.fade-in {
    opacity: 1;
    transform: translateX(0);
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-slide-right.fade-in {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-scale.fade-in {
    opacity: 1;
    transform: scale(1);
}

.animate-fade {
    opacity: 0;
    transition: all 0.6s ease-out;
}

.animate-fade.fade-in {
    opacity: 1;
}

.stagger-animation {
    transition-delay: var(--delay, 0s);
}

/* Hero content animations */
.api-hero-text {
    opacity: 0;
    transform: translateX(-40px);
    animation: slideInFromLeft 1s ease-out 0.3s forwards;
}

.api-hero-visual {
    opacity: 0;
    transform: translateX(40px) scale(0.9);
    animation: slideInFromRight 1s ease-out 0.6s forwards;
}

.api-hero-buttons {
    opacity: 0;
    transform: translateY(30px);
    animation: buttonsAppear 0.8s ease-out 0.9s forwards;
}

.code-preview {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: codePreviewAppear 1s ease-out 0.8s forwards;
}

.code-line {
    opacity: 0;
    transform: translateX(-20px);
    animation: codeLineAppear 0.6s ease-out forwards;
}

.code-line:nth-child(1) { animation-delay: 1.2s; }
.code-line:nth-child(2) { animation-delay: 1.4s; }
.code-line:nth-child(3) { animation-delay: 1.6s; }

@keyframes slideInFromLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes buttonsAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes codePreviewAppear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes codeLineAppear {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Feature cards staggered animation */
.feature-card {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.feature-card:nth-child(1) { transition-delay: 0.1s; }
.feature-card:nth-child(2) { transition-delay: 0.2s; }
.feature-card:nth-child(3) { transition-delay: 0.3s; }

/* Get started cards animation */
.get-started-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.get-started-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.get-started-card:nth-child(1) { transition-delay: 0.1s; }
.get-started-card:nth-child(2) { transition-delay: 0.2s; }
.get-started-card:nth-child(3) { transition-delay: 0.3s; }

/* Documentation cards animation delays */
.docs-card:nth-child(1) { transition-delay: 0.1s; }
.docs-card:nth-child(2) { transition-delay: 0.2s; }

.docs-card.featured.animate-in {
    transform: translateY(0) scale(1.02);
}

/* Savings highlight animation */
.savings-item {
    opacity: 0;
    transform: translateY(15px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.2, 0, 0.2, 1);
}

.savings-item.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.savings-item:nth-child(1) { transition-delay: 0.05s; }
.savings-item:nth-child(2) { transition-delay: 0.1s; }
.savings-item:nth-child(3) { transition-delay: 0.15s; }

/* Section titles animation */
.api-features h2,
.code-examples h2,
.get-started h2,
.pricing-section h2,
.documentation-section h2,
.final-cta h2 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.api-features h2.animate-in,
.code-examples h2.animate-in,
.get-started h2.animate-in,
.pricing-section h2.animate-in,
.documentation-section h2.animate-in,
.final-cta h2.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Code tabs animation */
.code-tabs {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.code-tabs.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Pricing table animation */
.pricing-table-wrapper {
    opacity: 0;
    transform: translateY(50px) scale(0.98);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-table-wrapper.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .api-hero {
        padding: 120px 0 100px;
        min-height: 40vh;
    }
    
    .api-hero-content {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }
    
    .api-hero-text h1 {
        font-size: 2.5rem;
    }
    
    .api-hero-text h2 {
        font-size: 1.3rem;
    }
    
    .code-preview {
        min-width: 300px;
        max-width: 100%;
    }
    
    .section-container {
        padding: 0 20px;
    }
    
    .api-features h2,
    .code-examples h2,
    .get-started h2,
    .pricing-section h2,
    .documentation-section h2,
    .final-cta h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .api-hero-buttons {
        justify-content: center;
    }
    
    .features-grid,
    .get-started-grid,
    .pricing-grid,
    .docs-grid {
        grid-template-columns: 1fr;
        max-width: none;
    }
    
    .docs-card.featured {
        transform: none;
    }
    
    .docs-card.featured:hover {
        transform: translateY(-8px);
    }
    
    .tab-buttons {
        justify-content: flex-start;
    }
    
    .pricing-toggle {
        flex-wrap: wrap;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .api-hero {
        padding: 100px 0 80px;
        min-height: 35vh;
    }
    
    .api-hero-text h1 {
        font-size: 2rem;
    }
    
    .code-preview {
        min-width: 280px;
    }
    
    .api-features,
    .code-examples,
    .get-started,
    .pricing-section,
    .documentation-section,
    .final-cta {
        padding: 100px 0;
    }
    
    .feature-card,
    .get-started-card,
    .pricing-card,
    .docs-card {
        padding: 24px 20px;
    }
}

/* === PRICING TABLE === */
/* === BEAUTIFUL PRICING TABLE === */
.pricing-table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.95) 0%, rgba(34, 34, 34, 0.9) 100%);
    box-shadow: 
        0 25px 60px rgba(123, 109, 255, 0.15),
        0 12px 30px rgba(0, 224, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 0;
    animation: fadeInTable 1.2s cubic-bezier(.23,1.01,.32,1) both;
    backdrop-filter: blur(20px);
    border: 1px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.pricing-table-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, #7b6dff 0%, #00e0ff 50%, #ff0075 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.3;
    pointer-events: none;
}

@keyframes fadeInTable {
    from { 
        opacity: 0; 
        transform: translateY(40px) scale(0.96);
    }
    to { 
        opacity: 1; 
        transform: none;
    }
}

.pricing-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 480px;
    color: #fff;
    font-size: 1rem;
    background: transparent;
    position: relative;
}

.pricing-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.pricing-table th {
    background: linear-gradient(135deg, #7b6dff 0%, #9d8dff 50%, #00e0ff 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    padding: 24px 28px;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.pricing-table th:first-child {
    text-align: left;
    padding-left: 32px;
}

.pricing-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

/* Model rows styling */
.pricing-table td {
    padding: 20px 28px;
    border: none;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    position: relative;
}

.pricing-table td:first-child {
    color: #fff;
    font-weight: 600;
    background: linear-gradient(90deg, rgba(123, 109, 255, 0.08) 0%, transparent 100%);
    border-left: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    padding-left: 32px;
}

/* Price columns */
.pricing-table td:nth-child(2),
.pricing-table td:nth-child(3) {
    text-align: center;
    font-weight: 500;
    color: #ddd;
}

/* Provider-specific colors for model names */
.pricing-table tr[data-provider="openai"] td:first-child {
    border-left-color: #74aa9c;
    color: #74aa9c;
}

.pricing-table tr[data-provider="deepseek"] td:first-child {
    border-left-color: #00e0ff;
    color: #00e0ff;
}

.pricing-table tr[data-provider="claude"] td:first-child {
    border-left-color: #cc9b7a;
    color: #cc9b7a;
}

.pricing-table tr[data-provider="gemini"] td:first-child {
    border-left-color: #fabb05;
    color: #fabb05;
}

.pricing-table tr[data-provider="grok"] td:first-child {
    border-left-color: #ff6b6b;
    color: #ff6b6b;
}

.pricing-table tr[data-provider="llama"] td:first-child {
    border-left-color: #7b6dff;
    color: #7b6dff;
}

.pricing-table tr[data-provider="qwen"] td:first-child {
    border-left-color: #50fa7b;
    color: #50fa7b;
}

/* Zebra striping */
.pricing-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

/* Hover effects */
.pricing-table tbody tr {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-table tbody tr:hover {
    background: linear-gradient(90deg, 
        rgba(123, 109, 255, 0.12) 0%, 
        rgba(0, 224, 255, 0.08) 50%,
        rgba(255, 0, 117, 0.06) 100%);
    transform: scale(1.01);
    box-shadow: 
        0 4px 20px rgba(123, 109, 255, 0.15),
        0 0 40px rgba(123, 109, 255, 0.05);
}

.pricing-table tbody tr:hover td {
    color: #fff;
}

.pricing-table tbody tr:hover td:first-child {
    padding-left: 36px;
    font-weight: 700;
}

/* Visual separator between provider groups */
.pricing-table tr.provider-separator td {
    padding: 8px 0;
    background: transparent;
    border-bottom: 1px solid rgba(123, 109, 255, 0.2);
}

/* Provider header row */
.pricing-table tr.provider-header td {
    background: rgba(123, 109, 255, 0.1);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    padding: 16px 32px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-left: 4px solid #7b6dff;
}

/* Model icon */
.model-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    vertical-align: middle;
    filter: brightness(1.2);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.pricing-table tbody tr:hover .model-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Provider-specific icon colors */
.pricing-table tr[data-provider="openai"] .model-icon {
    filter: brightness(0) saturate(100%) invert(62%) sepia(52%) saturate(444%) hue-rotate(120deg) brightness(96%) contrast(88%);
}

.pricing-table tr[data-provider="deepseek"] .model-icon {
    filter: brightness(0) saturate(100%) invert(56%) sepia(100%) saturate(7497%) hue-rotate(176deg) brightness(106%) contrast(102%);
}

.pricing-table tr[data-provider="claude"] .model-icon {
    filter: brightness(0) saturate(100%) invert(70%) sepia(42%) saturate(507%) hue-rotate(335deg) brightness(98%) contrast(88%);
}

.pricing-table tr[data-provider="gemini"] .model-icon {
    filter: brightness(0) saturate(100%) invert(72%) sepia(91%) saturate(1116%) hue-rotate(360deg) brightness(103%) contrast(98%);
}

.pricing-table tr[data-provider="grok"] .model-icon {
    filter: brightness(0) saturate(100%) invert(60%) sepia(59%) saturate(2644%) hue-rotate(325deg) brightness(102%) contrast(101%);
}

.pricing-table tr[data-provider="llama"] .model-icon {
    filter: brightness(0) saturate(100%) invert(44%) sepia(63%) saturate(1565%) hue-rotate(227deg) brightness(99%) contrast(103%);
}

.pricing-table tr[data-provider="qwen"] .model-icon {
    filter: brightness(0) saturate(100%) invert(81%) sepia(59%) saturate(1678%) hue-rotate(70deg) brightness(102%) contrast(96%);
}

/* Hover effect enhancement - preserve color but increase brightness */
.pricing-table tbody tr[data-provider="openai"]:hover .model-icon {
    filter: brightness(0) saturate(100%) invert(62%) sepia(52%) saturate(444%) hue-rotate(120deg) brightness(120%) contrast(88%);
}

.pricing-table tbody tr[data-provider="deepseek"]:hover .model-icon {
    filter: brightness(0) saturate(100%) invert(56%) sepia(100%) saturate(7497%) hue-rotate(176deg) brightness(130%) contrast(102%);
}

.pricing-table tbody tr[data-provider="claude"]:hover .model-icon {
    filter: brightness(0) saturate(100%) invert(70%) sepia(42%) saturate(507%) hue-rotate(335deg) brightness(120%) contrast(88%);
}

.pricing-table tbody tr[data-provider="gemini"]:hover .model-icon {
    filter: brightness(0) saturate(100%) invert(72%) sepia(91%) saturate(1116%) hue-rotate(360deg) brightness(125%) contrast(98%);
}

.pricing-table tbody tr[data-provider="grok"]:hover .model-icon {
    filter: brightness(0) saturate(100%) invert(60%) sepia(59%) saturate(2644%) hue-rotate(325deg) brightness(125%) contrast(101%);
}

.pricing-table tbody tr[data-provider="llama"]:hover .model-icon {
    filter: brightness(0) saturate(100%) invert(44%) sepia(63%) saturate(1565%) hue-rotate(227deg) brightness(120%) contrast(103%);
}

.pricing-table tbody tr[data-provider="qwen"]:hover .model-icon {
    filter: brightness(0) saturate(100%) invert(81%) sepia(59%) saturate(1678%) hue-rotate(70deg) brightness(125%) contrast(96%);
}

/* Responsive design */
@media (max-width: 900px) {
    .pricing-table th, 
    .pricing-table td {
        padding: 16px 20px;
        font-size: 0.95rem;
    }
    
    .pricing-table th {
        font-size: 1rem;
        padding: 20px 20px;
    }
    
    .pricing-table td:first-child,
    .pricing-table th:first-child {
        padding-left: 24px;
    }
    
    .pricing-table tbody tr:hover td:first-child {
        padding-left: 28px;
    }
}

@media (max-width: 600px) {
    .pricing-table-wrapper {
        border-radius: 16px;
        margin-top: 30px;
        margin-left: -20px;
        margin-right: -20px;
    }
    
    .pricing-table {
        min-width: 100%;
    }
    
    .pricing-table th, 
    .pricing-table td {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .pricing-table th {
        font-size: 0.95rem;
        letter-spacing: 0.05em;
        padding: 16px 16px;
    }
    
    .pricing-table td:first-child,
    .pricing-table th:first-child {
        padding-left: 20px;
    }
    
    .pricing-table tbody tr:hover {
        transform: none;
    }
    
    .pricing-table tbody tr:hover td:first-child {
        padding-left: 20px;
    }
    
    .model-icon {
        width: 16px;
        height: 16px;
        margin-right: 8px;
    }
}

/* Animation for table rows on scroll */
.pricing-table tbody tr {
    opacity: 0;
    transform: translateX(-20px);
    transition: none;
}

.pricing-table tbody tr.animate-in {
    animation: fadeInRow 0.6s ease-out forwards;
}

.pricing-table tbody tr:nth-child(n) {
    animation-delay: calc(0.05s * var(--row-index, 1));
}

@keyframes fadeInRow {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Additional hover tooltips for model names */
.pricing-table tbody tr:not(.provider-separator) td:first-child {
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

.pricing-table tbody tr:not(.provider-separator) td:first-child:hover {
    color: #fff !important;
}

.pricing-table tbody tr:not(.provider-separator) td:first-child::after {
    content: 'Клик для копирования';
    position: absolute;
    bottom: 100%;
    left: 32px;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.pricing-table tbody tr:not(.provider-separator) td:first-child:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure separators don't get hover effects */
.pricing-table tr.provider-separator {
    pointer-events: none;
    cursor: default;
}

.pricing-table tr.provider-separator td {
    cursor: default;
}
