/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: #111204;
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
    padding-top: 100px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0px 0;
    
}

.nav-container {
    max-width: 1271px;
    margin: 0 auto;
    padding: 0 20px;
    background: #222222;
    border-radius: 25px;
    height: 91px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.nav-logo {
    font-size: 32px;
    font-weight: 700;
    line-height: 44.8px;
    margin-left: 36px;
}

.logo-cash {
    color: white;
}

.logo-hammer {
    color: #509efd;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
    border-radius: 25px;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #509efd;
}

.nav-btn {
    margin-right: 36px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    margin-right: 20px;
}

.bar {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Buttons */
.btn {
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: #509efd;
    color: white;
    height: 56px;
    width: 160px;
    font-size: 16px;
}

.btn-primary:hover {
    background: #4088e6;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #509efd;
    color: white;
    padding: 18px 24px;
    font-size: 14px;
    border-radius: 8px;
}

.btn-secondary:hover {
    background: #4088e6;
    transform: translateY(-2px);
}

.btn-arrow {
    width: 17px;
    height: 17px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 120px;
    
}
.hero-section {
    padding: 100px 20px 0; /* вместо 172px */
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-blur {
    position: absolute;
    width: 416px;
    height: 309px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(80, 157, 253, 0.4);
    border-radius: 208px / 154.5px;
    filter: blur(174px);
}

.star {
    position: absolute;
    width: 159px;
    height: 159px;
    animation: float 6s ease-in-out infinite;
}

.star-1 {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.star-2 {
    bottom: 30%;
    right: 25%;
    width: 24px;
    height: 24px;
    animation-delay: 2s;
}

.star-3 {
    bottom: 20%;
    left: 25%;
    width: 23px;
    height: 23px;
    animation-delay: 4s;
}

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

.hero-content {
    text-align: center;
    max-width: 1127px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 80px;
    font-weight: 700;
    line-height: 103px;
    letter-spacing: -1.92px;
    margin-bottom: 38px;
    color: white;
}

.gradient-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: #509efd;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 400;
    line-height: 25.2px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 14px;
    max-width: 564px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btn {
    margin-top: 14px;
}

/* Conditions Section */
.conditions {
    padding: 125px 0 40px;
    text-align: center;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 62px;
}

.section-line {
    width: 110px;
    height: 1px;
    background: #509efd;
}

.section-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.43px;
    line-height: 24px;
    color: white;
    white-space: nowrap;
}

.stats-cards {
    display: flex;
    justify-content: center;
    gap: 21px;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-card {
    background: #222222;
    border-radius: 22px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    min-height: 114px;
}

.stats-card:first-child {
    width: 570px;
}

.stats-card:last-child {
    width: 612px;
}

.stat-item {
    position: relative;
    text-align: center;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 16px;
    font-weight: 500;
    color: white;
    line-height: 25px;
    letter-spacing: 0.08px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #509efd;
    line-height: 25px;
    letter-spacing: 0.17px;
}

.help-icon {
    position: absolute;
    top: -5px;
    right: -20px;
    width: 16px;
    height: 16px;
}

/* Section Labels */
.section-label {
    font-size: 16px;
    font-weight: 400;
    color: #509efd;
    letter-spacing: 1.12px;
    line-height: 22.4px;
    margin-bottom: 38px;
    text-stroke: 1px #509efd;
    -webkit-text-stroke: 1px #509efd;
}

/* How We Work Section */
.how-we-work {
    padding: 40px 0 214px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 150px;
    padding-right: 134px;
}

.work-content {
     display: flex;
  justify-content: space-between;
  align-items: flex-start; /* <-- вот это ключевое */
  margin-bottom: 107px;
}
@media (min-width: 769px) {
  .work-text {
    margin-left: -150px;
  }
}
@media (min-width: 969px) {
  .section-label {
    margin-left: -150px;
  }
}
@media (max-width: 968px) {
  .work-content {
    flex-direction: column;
    gap: 40px; /* расстояние между блоками */
  }

  .work-text,
  .work-description {
    width: 100%;
    margin-left: 0 !important;
  }
}
.work-text {
    width: 606px;
     margin-bottom: 100px;
}

.work-text h2 {
    font-size: 54px;
    font-weight: 600;
    line-height: 58px;
    letter-spacing: -0.44px;
    color: white;
}
.section-label {
  text-align: center;
  display: block;
  margin: 0 auto;
}

.work-description {
    width: 550px;
    position: relative;
}

.work-description p {
    font-size: 24px;
    font-weight: 300;
    line-height: 33.6px;
    letter-spacing: -0.48px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.comfort-badge {
    background: #509efd;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 24px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 33.6px;
    letter-spacing: -0.48px;
    display: inline-block;
}

.workflow-steps {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.workflow-step {
    flex: 1;
    max-width: 410px;
}

.step-icon-container {
    position: relative;
    height: 93px;
    margin-bottom: 40px;
}

.step-icon {
    width: 93px;
    height: 93px;
    background: #509efd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon img {
    width: 65px;
    height: 65px;
}

.step-arrow {
    position: absolute;
    top: 40px;
    left: 93px;
    width: 220px;
    height: 15px;
}

.step-content h3 {
    font-size: 26px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    line-height: normal;
    letter-spacing: -0.26px;
    margin-bottom: 20px;
    max-width: 379px;
}

.step-content p {
    font-size: 18px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    line-height: 25.2px;
    max-width: 283px;
}

.help-icon-inline {
    width: 16px;
    height: 16px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Competencies Section */
.competencies {
    padding: 229px 0 198px;
    text-align: center;
}

.competencies-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 89.6px;
    letter-spacing: -0.61px;
    margin: 30px 0;
}

.features-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-badge {
    background: #509efd;
    border-radius: 8px;
    padding: 11px 35px;
    font-size: 17px;
    font-weight: 300;
    color: white;
    line-height: 25.2px;
    white-space: nowrap;
}

/* Neural Network Section */
.neural-network {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 130px 109px;
}

.neural-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.neural-text {
    width: 606px;
}

.neural-text h2 {
    font-size: 54px;
    font-weight: 600;
    line-height: 58px;
    letter-spacing: -0.44px;
    color: white;
}

.neural-features {
    display: flex;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.neural-feature {
    margin-bottom: 40px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
}
@media (max-width: 768px) {
  .neural-features {
    flex-direction: column;
    gap: 20px;
  }
}

.neural-feature h3 {
    font-size: 20px;
    font-weight: 500;
    color: white;
    line-height: normal;
    letter-spacing: -0.20px;
    margin-bottom: 10px;
}

.neural-feature p {
    font-size: 16px;
    font-weight: 400;
    color: #9593a4;
    line-height: 23px;
    letter-spacing: -0.16px;
    max-width: 255px;
}

.before-after {
    padding: 0 60px;
}

.before-after-container {
    display: flex;
    align-items: center;
    justify-content: center; /* ключевая строка */
    gap: 40px;
    margin-top: 40px; /* по желанию */
}

.before-image,
.after-image {
    width: 400px;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
}

.transformation-arrow {
    display: flex;
    align-items: center;
    gap: 9px;
}

.arrow-line {
    width: 82px;
    height: 5px;
}

.magic-icon {
    width: 81px;
    height: 81px;
}

/* Footer CTA */
.footer-cta {
    padding: 109px 0;
    position: relative;
    text-align: center;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.cta-blur {
    position: absolute;
    width: 365px;
    height: 271px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #3a6aa4;
    border-radius: 182.5px / 135.5px;
    filter: blur(500px);
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 869px;
    margin: 0 auto;
}

.cta-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 65px;
    letter-spacing: -2.25px;
    color: white;
    margin-bottom: 58px;
}

.cta-btn {
    width: 228px;
    height: 56px;
    font-size: 16px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-container {
        max-width: 95%;
    }
    
    .how-we-work {
        padding-left: 50px;
        padding-right: 50px;
    }
    
    .neural-network {
        padding: 0 50px 109px;
    }
    
    .before-after {
        padding: 0 20px;
    }
}

@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 119px;
        flex-direction: column;
        background: #222222;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-radius: 25px;
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 48px;
        line-height: 60px;
    }

    .work-content {
         display: flex;
  justify-content: space-between;
  align-items: flex-start; /* <-- вот это ключевое */
  margin-bottom: 107px;
    }

    .work-text,
    .work-description {
        width: 100%;
        margin-bottom: 100px;
    }

    .work-text h2 {
        font-size: 36px;
        line-height: 44px;
    }

    .workflow-steps {
        flex-direction: column;
        gap: 60px;
    }

    .step-arrow {
        display: none;
    }

    .neural-content {
        flex-direction: column;
        gap: 40px;
    }

    .neural-text,
    .neural-features {
        width: 100%;
    }

    .neural-text h2 {
        font-size: 36px;
        line-height: 44px;
    }

    .before-after-container {
        flex-direction: column;
        gap: 20px;
    }

    .before-image,
    .after-image {
        width: 300px;
        height: 375px;
    }

    .transformation-arrow {
        transform: rotate(90deg);
    }

    .stats-cards {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .stats-card {
        width: 100% !important;
        max-width: 500px;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .competencies-title {
        font-size: 48px;
        line-height: 60px;
    }

    .cta-title {
        font-size: 48px;
        line-height: 55px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        height: 70px;
    }

    .nav-logo {
        font-size: 24px;
        margin-left: 15px;
    }

    .nav-btn {
        width: 120px;
        height: 45px;
        font-size: 14px;
        margin-right: 15px;
    }

    .hero {
        padding-top: 100px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-title {
        font-size: 36px;
        line-height: 44px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 22px;
    }

    .how-we-work {
        padding: 40px 20px 100px;
    }

    .work-text h2 {
        font-size: 28px;
        line-height: 36px;
    }

    .work-description p {
        font-size: 18px;
        line-height: 26px;
    }

    .comfort-badge {
        font-size: 18px;
        line-height: 26px;
    }

    .step-content h3 {
        font-size: 20px;
        line-height: 28px;
    }

    .step-content p {
        font-size: 16px;
        line-height: 22px;
    }

    .neural-network {
        padding: 0 20px 60px;
    }

    .neural-text h2 {
        font-size: 28px;
        line-height: 36px;
    }

    .before-image,
    .after-image {
        width: 250px;
        height: 300px;
    }

    .features-badges {
        gap: 12px;
    }

    .feature-badge {
        font-size: 14px;
        padding: 8px 20px;
    }

    .competencies-title {
        font-size: 36px;
        line-height: 44px;
    }

    .cta-title {
        font-size: 36px;
        line-height: 44px;
        letter-spacing: -1px;
    }

    .cta-btn {
        width: 200px;
        height: 50px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
        line-height: 36px;
    }

    .work-text h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .neural-text h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .competencies-title {
        font-size: 28px;
        line-height: 36px;
    }

    .cta-title {
        font-size: 28px;
        line-height: 36px;
    }

    .before-image,
    .after-image {
        width: 200px;
        height: 250px;
    }

    .stats-card {
        padding: 15px;
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 14px;
    }
}

.help-icon-wrapper {
    position: absolute;
    top: -5px;
    right: -20px;
    width: 16px;
    height: 16px;
    
z-index: 1;
  overflow: visible;
  


}

.help-icon-wrapper .help-tooltip {
    position: absolute;
    top: -8px;
    left: 100%;
    margin-left: 8px;
    background: #222;
    color: white;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
}

.help-icon-wrapper:hover .help-tooltip {
    opacity: 1;
}

.help-inline-wrapper {
    position: relative;
    display: inline-block;
}

.help-inline-tooltip {
    position: absolute;
    top: 100%;
    left: 100%;
    margin-top: 4px;
    margin-left: 6px;
    background-color: #222;
    color: white;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
}

.help-inline-wrapper:hover .help-inline-tooltip {
    opacity: 1;
}

@media (max-width: 768px) {
  .arrow-line {
    display: none;
  }

  .magic-icon {
    transform: scaleX(-1);
  }
}

@media (max-width: 768px) {
  #connect-btn {
    width: 110px;
    height: 40px;
    font-size: 13px;
    padding: 0 10px;
  }

  .nav-logo {
    font-size: 22px;
    margin-left: 10px;
    line-height: 1.2;
  }
}

.help-icon-wrapper .help-tooltip {
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  margin-left: 0;
}

.work-text {
  margin-bottom: 60px; /* или больше — по вкусу */
}

@media (max-width: 768px) {
  .hero {
    padding-top: 40px; /* было 100px */
  }

  .hero-content {
    margin-top: -40px; /* поднимем сам блок выше */
  }


  .star-1,
  {
    top: auto;
    bottom: auto;
    transform: translateY(-10px); /* поднимаем визуально */
  }
}

@media (max-width: 768px) {
  .hero-blur {
    top: 45%; /* опускаем ниже */
    transform: translate(-50%, -50%);
    width: 320px;
    height: 240px;
    filter: blur(130px);
  }
}

.neural-network .section-label {
  margin-bottom: 40px;
}

@media (min-width: 969px) {
  .how-we-work .section-label {
    text-align: left;
    margin-left: 0;
    padding-left: 0px; /* можно регулировать отступ */
  }
}

@media (min-width: 969px) {
  .neural-network .section-label {
    text-align: left;
    margin-left: 0px; /* можешь увеличить или уменьшить */
  }
}

@media (min-width: 969px) {
  .neural-feature:first-child {
    margin-left: 40px; /* можешь менять значение по вкусу */
  }
}

.how-we-work .section-label {
  margin-bottom: 38px;
}

@media (max-width: 768px) {
  .comfort-badge {
    margin-top: 12px; /* или 8px, если нужно плотнее */
  }
}

@media (max-width: 768px) {
  .work-description p {
    margin-bottom: 8px;
  }

  .comfort-badge {
    margin-top: 8px;
  }
}
