.hero {
    padding: 120px 2rem 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: baseline;
    gap: 4rem;
    justify-content: space-between;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    text-wrap: nowrap;
}

.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-block;
    background: rgba(30, 144, 255, 0.1);
    border: 1px solid rgba(30, 144, 255, 0.3);
    color: var(--accent-primary);
    padding: 0.35rem 0.9rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-sub-text {
    max-width: 500px;
    margin-bottom: 1rem;
}

.hero-display-content {
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    position: relative;
    max-width: 650px;
    border-radius: 5px;
}

.hero-display-content.before::before,
.hero-display-content.after::before {
    content: 'GPT-5.2';
    text-transform: uppercase;
    position: absolute;
    text-wrap: nowrap;
    background-color: var(--bg-tertiary);
    padding: 5px 15px;
    font-size: 12px;
    top: -20px;
    border-radius: 4px;
}

.hero-display-content.after::before {
    content: 'Explofi AI';
    background-color: var(--accent-primary);
    color: white;
}

.hero-display-content.after {
    border-color: var(--accent-primary);
}

.hero-display {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.fake-h3 {
    font-weight: 500;
    font-size: 17px;
    margin-bottom: .5rem;
}

.hero-display-text {
    margin-bottom: .2rem;
    font-size: 15px;
    line-height: 30px;
}



.tooltip-wrap {
    position: relative;
    display: inline-flex;
}


.tooltip-wrap::after {
    content: attr(data-tip);
    position: absolute;
    z-index: 9999;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    white-space: nowrap;
    padding: 8px 13px;
    background: #0f0f13;
    color: #e8e8f0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
}


.tooltip-wrap::before {
    content: '';
    position: absolute;
    z-index: 10000;
    width: 0;
    height: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
}


.tooltip-wrap:hover::after,
.tooltip-wrap:hover::before {
    opacity: 1;
    transition-delay: 0.15s;
}


.tooltip-wrap.tooltip-top::after {
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
}

.tooltip-wrap.tooltip-top:hover::after {
    transform: translateX(-50%) translateY(0);
}

.tooltip-wrap.tooltip-top::before {
    bottom: calc(100% + 10px - 7px + 1px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #0f0f13;
}

.tooltip-wrap.tooltip-top:hover::before {
    transform: translateX(-50%) translateY(0);
}

.hero-display-spec {
    background-color: var(--accent-light);
}

.top-features {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 5rem 1rem;
    width: 100%;
    border-top: 1px solid var(--accent-light);
    border-bottom: 1px solid var(--accent-light);
}

.top-features-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    gap: 1rem;
    padding: 2rem 0;
}

.top-feature {
    padding: 0 1.5rem;
    width: 33%;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.top-feature:nth-child(2) {
    border-left: 1px solid var(--accent-light);
    border-right: 1px solid var(--accent-light);
}


.second-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem;
    width: 100%;
    position: relative;
     background-image:
      linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.second-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(0,0,0,0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0,0,0,0.02) 1px, transparent 1px);
    background-size: 8px 8px;
    z-index: -1;
  }

.second-main-content,
.top-features-tag {
    width: 100%;
    max-width: 1200px;
}

.top-feature-header {
    font-size: 1.1rem;
    font-weight: 700;
}

.second-main-content-text h2 {
    font-size: 2.25rem;
    font-weight: 800;
}

.second-main-content-text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    margin-bottom: 2rem;
}

.second-main-display-fe-item {
    padding: 10px 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid var(--border-color);
    margin-bottom: 5px;
}

.second-main-display-fe {
    width: 500px;
    border: 1px solid var(--border-color);
    padding: 10px 10px;
    border-radius: 5px;
    background-color: white;
}

.second-main-display-fe-input {
    color: var(--text-secondary);
    font-size: 14px;
}

@keyframes negAnimation {


    0% {
        border-color: var(--border-color);
    }

    50% {
        border-color: var(--error-color);
    }

    100% {
        border-color: var(--border-color);
    }
}

@keyframes posAnimation {
    0% {
        border-color: var(--border-color);
    }

    50% {
        border-color: var(--success-color);
    }

    100% {
        border-color: var(--border-color);
    }
}


.second-main-display-fe-item.neg {
    animation: infinite negAnimation 2s ease;
}

.second-main-display-fe-item.pos {
    animation: infinite posAnimation 2s ease;
}

.second-main-display {
    display: flex;
    align-items: flex-end;
    gap: 4rem;
}

.second-main-display-text p {
    margin-bottom: 5px;
    line-height: 30px;
}

.second-main-display-btn {
    margin-top: 1rem;
}

.third-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem;
    width: 100%;
}

.third-main-content {
    width: 100%;
    max-width: 1200px;
}

.third-main-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
}

.third-main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.third-main-header p {
    max-width: 400px;
}

.third-main-step-icon {
    padding: 5px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    border: 2px solid var(--accent-primary);
    margin-bottom: 1rem;
}

.third-main-step {
    display: inline-flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    width: 33%;
}

.third-main-step-headr h3 {
    font-weight: 500;
}

.third-main-step-headr {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.third-main-step-headr::before {
    content: attr(step);
    position: absolute;
    color: var(--accent-primary);
    top: -15px;
    font-size: 13px;
}

.third-main-display {
    border-top: 1px solid var(--accent-light);
    padding-top: 2rem;
    display: flex;
    gap: 2rem;
}

.end {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem;
    width: 100%;
}

.end-content {
    width: 100%;
    max-width: 1200px;
}

.end-content-header {
    text-align: center;
}

.end-content-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
}

@media (max-width: 1220px) {
    .second-main-display {
        align-items: baseline;
    }
}

@media (max-width: 1023px) {
    .hero-content {
        flex-direction: column;
    }

    .hero-display-content {
        max-width: none;
    }

    .second-main-display {
        flex-direction: column;
        gap: 2rem;
    }

    .second-main-display-fe-wrapper {
        order: 1;
    }

    .second-main-display-text {
        order: 2;
    }
}

@media (max-width: 900px) {
    .third-main-header {
        flex-direction: column;
        align-items: baseline;
    }
}

@media (max-width: 800px) {
    .top-features-content {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        padding: 0;
    }
    .third-main-display {
        flex-direction: column;
        align-items: center;
    }
    .top-feature:nth-child(2) {
        border: none;
    }
    .top-feature {
        width: 100%;
    }
    .third-main-step {
        width: 100%;
    }
}

@media (max-width: 650px) {
    .second-main-display-fe {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .second-main-display-btn {
        width: 100%;
        text-align: center;
    }
    .hero-content h1 {
        text-wrap: wrap;
    }
}