html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a0a;
    color: #ffffff;
    position: relative;
}

.hero-waves-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 800px; /* Adjust based on hero section size */
    z-index: -1;
    pointer-events: none;
}

section {
    scroll-margin-top: 100px;
}

.container {
    max-width: 1400px;
}

/* Header */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-text {
    font-family: 'Trajan Pro', 'Cinzel', 'Forum', Georgia, serif;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: 2px;
    background: linear-gradient(180deg, #E0B570 0%, #CB9E5E 50%, #A88148 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #d4af37;
}

/* Button Styles */
.btn {
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-login {
    background: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
}

.btn-login:hover {
    background: #d4af37;
    color: #0a0a0a;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #0a0a0a;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
    color: #0a0a0a;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
    transform: translateY(-2px) scale(1.05);
}

.btn-secondary {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #0a0a0a;
    padding: 15px 40px;
    font-size: 16px;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
    color: #0a0a0a;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.7);
    transform: translateY(-3px) scale(1.08);
}

/* Ripple Effect */
.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span {
    position: relative;
    z-index: 1;
}

/* Hero Section Custom Styles */
.hero-title {
    font-size: 48px;
    font-weight: 600;
}

.hero-subtitle {
    color: #999;
    font-size: 16px;
}

/* Features Section Custom Styles */
.features-title {
    font-size: 28px;
}

.feature-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.feature-img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    flex-shrink: 0;
}

.feature-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.feature-card h3 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.feature-card p {
    color: #999;
    font-size: 13px;
    line-height: 1.4;
}

/* Glow Animation */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    }
}

.btn-primary:active, .btn-secondary:active {
    animation: glow 0.3s ease-in-out;
}

/* Security Section Custom Styles */
.text-gold {
    background: linear-gradient(180deg, #E0B570 0%, #CB9E5E 50%, #A88148 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.security-subtitle {
    color: #999;
    font-size: 16px;
}

.security-card {
    background: linear-gradient(180deg, #181818 0%, #0a0a0a 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    padding: 50px 30px;
    transition: all 0.4s ease;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    max-width: 360px;
    margin: 0 auto;
}

.security-card:hover {
    background: linear-gradient(180deg, #222222 0%, #0d0d0d 100%);
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.security-img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.security-card h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
}

.security-card p {
    color: #b0b0b0;
    font-size: 16px;
    line-height: 1.5;
}

.security-card.active {
    background: linear-gradient(180deg, #2a2a2a 0%, #151515 100%);
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
    transform: translateY(-5px);
}

/* API Integration Section Styles */
.api-container {
    background: #111111;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}

.api-left {
    padding: 60px 80px;
    position: relative;
    z-index: 2;
}

.api-title {
    font-size: 56px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
}

.api-subtitle {
    font-size: 24px;
    color: #cccccc;
    line-height: 1.4;
}

.api-features {
    font-size: 22px;
    color: #ffffff;
}

.api-icon-code {
    color: #d4af37;
    font-family: monospace;
    font-weight: bold;
    font-size: 24px;
    width: 40px;
    display: inline-block;
}

.api-icon-dot {
    width: 8px;
    height: 8px;
    background-color: #d4af37;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    margin-right: 24px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
}

.btn-outline-gold {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 30px;
    font-weight: 500;
}

.btn-outline-gold:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* The Glowing Vertical Divider */
.api-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, 
        rgba(212,175,55,0) 0%, 
        rgba(212,175,55,0.2) 20%, 
        rgba(255,230,150,1) 50%, 
        rgba(212,175,55,0.2) 80%, 
        rgba(212,175,55,0) 100%
    );
    box-shadow: 0 0 25px 5px rgba(212, 175, 55, 0.6);
    z-index: 10;
}

.api-right {
    background: #15161a; /* slight tint matching image background */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure image doesn't break rounded corners */
    position: relative;
    z-index: 1;
}

.api-image {
    width: 100%;
    height: 100%;
    object-fit: contain; /* makes sure the entire image fits within the bounds without being cut */
    mix-blend-mode: lighten;
    padding: 20px; /* Add slight padding so it breathes within the box */
}

/* Contact Form Section Styles */
.contact-container {
    background: #0a0a0a;
    border-radius: 24px;
    position: relative;
}

.contact-left {
    padding-right: 40px;
}

.contact-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
}

.contact-subtitle {
    font-size: 18px;
    color: #999;
    line-height: 1.6;
}

.form-wrapper {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.1);
}

.form-group {
    position: relative;
}

.form-label {
    color: #bbb;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.custom-input {
    background: rgba(10, 10, 10, 0.8) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
}

.custom-input::placeholder {
    color: #666 !important;
}

.custom-input:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3) !important;
    outline: none !important;
}


.btn-submit {
    background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
    color: #0a0a0a;
}

@media (max-width: 991px) {
    .api-left {
        padding: 40px 30px;
    }
    .api-container {
        border: 1px solid rgba(212, 175, 55, 0.2);
    }
}
/* Footer Styles */
.footer {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    background-color: #050505;
}

.footer-text {
    color: #888;
    font-size: 16px;
    line-height: 1.5;
}

.footer-heading {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #d4af37;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
}
.gold-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(212,175,55,0) 0%, rgba(212,175,55,1) 50%, rgba(212,175,55,0) 100%);
    width: 100%;
}

.orchestration-card {
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 40px 20px;
    transition: all 0.4s ease;
    cursor: pointer;
    max-width: 360px;
    margin: 0 auto;
}

.orchestration-card:hover {
    background: linear-gradient(180deg, #222 0%, #111 100%);
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.orchestration-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
}

.orchestration-card h3 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
}

.orchestration-card.active {
    background: linear-gradient(180deg, #2a2a2a 0%, #151515 100%);
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
    transform: translateY(-5px);
}

.orchestration-card p {
    color: #999;
    font-size: 14px;
    line-height: 1.5;
}

/* Feature Details Dynamic Section */
.feature-card.active {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.25);
    transform: translateY(-5px);
}

.feature-details-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease-out, margin-top 0.5s ease-out;
}

.feature-details-wrapper.open {
    grid-template-rows: 1fr;
    margin-top: 1.5rem;
}

.feature-details-inner {
    overflow: hidden;
}

.feature-details-content {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 15px;
    padding: 30px;
    color: #bbb;
    font-size: 15px;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.4s ease-out 0.1s;
}

.feature-details-wrapper.open .feature-details-content {
    opacity: 1;
}

.feature-details-content p {
    margin-bottom: 15px;
}
.feature-details-content p:last-child {
    margin-bottom: 0;
}

/* Modal Styles */
.custom-modal-content {
    background-color: #111111;
    border: 1px solid rgba(212, 175, 55, 0.8);
    border-radius: 16px;
    box-shadow: 0 0 80px rgba(212, 175, 55, 0.4), inset 0 0 20px rgba(212, 175, 55, 0.05);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #666;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 5px;
}

.modal-close-btn:hover {
    color: #d4af37;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
    transform: scale(1.1);
}

.modal-input {
    background: #1a1a1a !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
}

.modal-input:focus {
    border-color: #d4af37 !important;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3) !important;
    outline: none !important;
}

.modal-input.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 12px rgba(220, 53, 69, 0.3) !important;
}

.loading-hourglass {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(180deg); }
    50% { transform: rotate(180deg); }
    60% { transform: rotate(360deg); }
    100% { transform: rotate(360deg); }
}

#hero-waves {
    /* Игнорируем события мыши на холсте, чтобы браузер не пытался просчитывать hover-эффекты при скролле */
    pointer-events: none;
    /* Принудительно выносим Canvas на отдельный слой GPU */
    transform: translateZ(0);
    will-change: transform;
    /* Убедитесь, что он не мешает позиционированию */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0; /* Или ваш текущий z-index под контентом */
}