/* ═══════════════════════════════════════ */
/*  HOW-IT-WORKS INTRO OVERVIEW SECTION   */
/* ═══════════════════════════════════════ */

.hiw-intro-wrap {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

.hiw-intro-head {
    text-align: center;
    margin-bottom: 56px;
}

.hiw-intro-head h2 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 10px;
    color: #fff;
}

.hiw-intro-head p {
    font-size: 16px;
    color: #666;
}

.hiw-intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 800px) {
    .hiw-intro-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 16px;
        padding-bottom: 24px;
        margin: 0 -24px;
        padding-left: 24px;
        padding-right: 24px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .hiw-intro-grid::-webkit-scrollbar {
        display: none;
    }

    .hiw-intro-card {
        flex: 0 0 280px;
        scroll-snap-align: center;
        min-height: 320px;
        padding: 24px 20px;
        margin-bottom: 0;
    }

    .hiw-intro-card h3 {
        font-size: 18px;
    }

    .hiw-intro-card .hiw-intro-desc {
        font-size: 13px;
        line-height: 1.5;
    }

    .hiw-intro-head h2 {
        font-size: 32px;
    }

    .hiw-intro-head p {
        font-size: 14px;
    }
}

/* ─── Card ─── */
.hiw-intro-card {
    background: #111118;
    border: 1px solid #1c1c28;
    border-radius: 20px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: hiw-intro-up 0.6s ease forwards;
    transition: border-color 0.4s, box-shadow 0.4s;
    min-height: 420px;
    cursor: default;
}

.hiw-intro-card:nth-child(2) {
    animation-delay: 0.1s;
}

.hiw-intro-card:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes hiw-intro-up {
    to {
        opacity: 1;
        transform: none;
    }
}

.hiw-intro-card:hover {
    border-color: #2e2e42;
}

.hiw-intro-card:nth-child(1):hover,
.hiw-intro-card:nth-child(2):hover,
.hiw-intro-card:nth-child(3):hover {
    box-shadow: 0 0 50px -15px rgba(167, 139, 250, 0.15);
}

.hiw-intro-num {
    font-size: 12px;
    font-weight: 600;
    color: #a78bfa;
    letter-spacing: 1px;
}

.hiw-intro-card h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
    background: none;
    -webkit-text-fill-color: unset;
}

.hiw-intro-card .hiw-intro-desc {
    font-size: 14px;
    color: #888;
    line-height: 1.65;
}

.hiw-intro-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* ═══════════════════════════════ */
/*  CARD 1 — VOICE WAVEFORM       */
/* ═══════════════════════════════ */
.hiw-intro-wave-group {
    display: flex;
    align-items: center;
    gap: 3px;
}

.hiw-intro-bar {
    width: 3.5px;
    border-radius: 3px;
    background: #a78bfa;
    animation: hiw-intro-pulse 0.9s ease-in-out infinite alternate;
    transition: transform 0.4s, opacity 0.4s, background 0.4s;
}

@keyframes hiw-intro-pulse {
    0% {
        height: 6px;
        opacity: 0.2;
    }

    100% {
        height: var(--h);
        opacity: 0.5;
    }
}

/* Hover: bars go crazy */
.hiw-intro-card:nth-child(1):hover .hiw-intro-bar {
    animation-duration: 0.3s;
    opacity: 0.85;
    background: #c4b5fd;
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.5));
}

/* Mic appears on hover */
.hiw-intro-mic {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
    opacity: 0;
}

.hiw-intro-mic svg {
    width: 16px;
    height: 16px;
    stroke: #a78bfa;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
}

.hiw-intro-card:nth-child(1):hover .hiw-intro-mic {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    animation: hiw-intro-mic-ring 1.5s ease-in-out infinite;
}

@keyframes hiw-intro-mic-ring {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(167, 139, 250, 0.3);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(167, 139, 250, 0);
    }
}

/* ═══════════════════════════════ */
/*  CARD 2 — DOCUMENT ORBIT        */
/* ═══════════════════════════════ */
.hiw-intro-orbit-wrap {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hiw-intro-orbit-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid #1e1e2a;
    animation: hiw-intro-spin 22s linear infinite;
    transition: border-color 0.4s;
}

@keyframes hiw-intro-spin {
    to {
        transform: rotate(360deg);
    }
}

.hiw-intro-orbit-item {
    position: absolute;
    font-size: 10px;
    font-weight: 600;
    color: #a78bfa;
    background: #171722;
    padding: 5px 11px;
    border-radius: 6px;
    animation: hiw-intro-unspin 22s linear infinite;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes hiw-intro-unspin {
    to {
        transform: rotate(-360deg);
    }
}

.hiw-intro-orbit-item:nth-child(1) {
    top: -13px;
    left: 50%;
    margin-left: -18px;
}

.hiw-intro-orbit-item:nth-child(2) {
    bottom: -13px;
    left: 50%;
    margin-left: -14px;
}

.hiw-intro-orbit-item:nth-child(3) {
    left: -18px;
    top: 50%;
    margin-top: -12px;
}

.hiw-intro-orbit-item:nth-child(4) {
    right: -18px;
    top: 50%;
    margin-top: -12px;
}

/* Hover: orbit expands, spins faster, items glow */
.hiw-intro-card:nth-child(2):hover .hiw-intro-orbit-ring {
    animation-duration: 6s;
    border-color: rgba(167, 139, 250, 0.2);
}

.hiw-intro-card:nth-child(2):hover .hiw-intro-orbit-item {
    animation-duration: 6s;
    background: rgba(167, 139, 250, 0.12);
    color: #c4b5fd;
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.2);
}

.hiw-intro-card:nth-child(2):hover .hiw-intro-orbit-item:nth-child(1) {
    top: -22px;
}

.hiw-intro-card:nth-child(2):hover .hiw-intro-orbit-item:nth-child(2) {
    bottom: -22px;
}

.hiw-intro-card:nth-child(2):hover .hiw-intro-orbit-item:nth-child(3) {
    left: -28px;
}

.hiw-intro-card:nth-child(2):hover .hiw-intro-orbit-item:nth-child(4) {
    right: -28px;
}

.hiw-intro-orbit-center {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #171722;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.4s;
}

.hiw-intro-orbit-center svg {
    width: 18px;
    height: 18px;
    stroke: #a78bfa;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    transition: stroke 0.3s;
}

.hiw-intro-card:nth-child(2):hover .hiw-intro-orbit-center {
    background: rgba(167, 139, 250, 0.12);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.15);
}

.hiw-intro-card:nth-child(2):hover .hiw-intro-orbit-center svg {
    stroke: #c4b5fd;
}

/* Connection lines that appear on hover */
.hiw-intro-conn {
    position: absolute;
    background: rgba(167, 139, 250, 0.08);
    transition: opacity 0.4s, background 0.4s;
    opacity: 0;
}

.hiw-intro-conn.v {
    width: 1px;
}

.hiw-intro-conn.h {
    height: 1px;
}

.hiw-intro-conn-t {
    height: 32px;
    top: calc(50% - 32px - 19px);
    left: 50%;
}

.hiw-intro-conn-b {
    height: 32px;
    top: calc(50% + 19px);
    left: 50%;
}

.hiw-intro-conn-l {
    width: 32px;
    top: 50%;
    left: calc(50% - 32px - 19px);
}

.hiw-intro-conn-r {
    width: 32px;
    top: 50%;
    left: calc(50% + 19px);
}

.hiw-intro-card:nth-child(2):hover .hiw-intro-conn {
    opacity: 1;
    background: rgba(167, 139, 250, 0.2);
}

.hiw-intro-merge-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
}

.hiw-intro-merge-rail {
    position: relative;
    width: 72px;
    height: 1px;
    background: rgba(167, 139, 250, 0.15);
    overflow: hidden;
}

.hiw-intro-merge-signal {
    position: absolute;
    top: 50%;
    left: -18px;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(196, 181, 253, 1) 0%, rgba(167, 139, 250, 0.15) 70%, transparent 100%);
    animation: hiw-intro-merge-travel 2.8s ease-in-out infinite;
}

@keyframes hiw-intro-merge-travel {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateX(92px);
        opacity: 0;
    }
}

.hiw-intro-merge-flow {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hiw-intro-merge-node {
    min-width: 110px;
    padding: 8px 14px;
    border-radius: 12px;
    background: #171722;
    color: #999;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.35s ease;
}

.hiw-intro-merge-node--2 {
    margin-left: 18px;
}

.hiw-intro-merge-node--3 {
    margin-left: 34px;
}

.hiw-intro-card--merge:hover .hiw-intro-merge-node {
    color: #c4b5fd;
    background: rgba(167, 139, 250, 0.12);
    box-shadow: 0 0 14px rgba(167, 139, 250, 0.12);
}

.hiw-intro-card--merge:hover .hiw-intro-merge-rail {
    background: rgba(167, 139, 250, 0.3);
}

/* ═══════════════════════════════ */
/*  CARD 3 — WORKFLOW              */
/* ═══════════════════════════════ */
.hiw-intro-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hiw-intro-step {
    font-size: 11px;
    font-weight: 500;
    color: #999;
    background: #171722;
    padding: 7px 18px;
    border-radius: 8px;
    opacity: 0;
    animation: hiw-intro-fadeIn 0.4s ease forwards;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hiw-intro-step:nth-of-type(1) {
    animation-delay: 0.4s;
}

.hiw-intro-step:nth-of-type(2) {
    animation-delay: 0.55s;
}

.hiw-intro-step:nth-of-type(3) {
    animation-delay: 0.7s;
}

.hiw-intro-step:nth-of-type(4) {
    animation-delay: 0.7s;
}

.hiw-intro-step:nth-of-type(5) {
    animation-delay: 0.85s;
}

@keyframes hiw-intro-fadeIn {
    to {
        opacity: 1;
    }
}

/* Hover: nodes scale, highlight, stagger bounce */
.hiw-intro-card:nth-child(3):hover .hiw-intro-step {
    color: #c4b5fd;
    background: rgba(167, 139, 250, 0.1);
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.12);
}

.hiw-intro-card:nth-child(3):hover .hiw-intro-step:nth-of-type(1) {
    transform: scale(1.08);
    transition-delay: 0s;
}

.hiw-intro-card:nth-child(3):hover .hiw-intro-step:nth-of-type(2) {
    transform: scale(1.08);
    transition-delay: 0.05s;
}

.hiw-intro-card:nth-child(3):hover .hiw-intro-step:nth-of-type(3) {
    transform: scale(1.08);
    transition-delay: 0.1s;
}

.hiw-intro-card:nth-child(3):hover .hiw-intro-step:nth-of-type(4) {
    transform: scale(1.08);
    transition-delay: 0.1s;
}

.hiw-intro-card:nth-child(3):hover .hiw-intro-step:nth-of-type(5) {
    transform: scale(1.08);
    transition-delay: 0.15s;
}

.hiw-intro-connector {
    width: 1px;
    height: 14px;
    background: #222;
    position: relative;
    transition: background 0.3s;
}

.hiw-intro-card:nth-child(3):hover .hiw-intro-connector {
    background: rgba(167, 139, 250, 0.2);
}

.hiw-intro-connector .hiw-intro-dot {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #a78bfa;
    left: -1px;
    opacity: 0;
    animation: hiw-intro-fall 2s ease-in-out infinite;
    transition: background 0.3s;
}

.hiw-intro-card:nth-child(3):hover .hiw-intro-connector .hiw-intro-dot {
    animation-duration: 0.8s;
    background: #c4b5fd;
    filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.6));
}

@keyframes hiw-intro-fall {
    0% {
        top: 0;
        opacity: 0;
    }

    25% {
        opacity: 0.6;
    }

    75% {
        opacity: 0.6;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.hiw-intro-split {
    display: flex;
    gap: 10px;
}

.hiw-intro-split-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hiw-intro-split-col .hiw-intro-connector {
    height: 10px;
}

/* ═══════════════════════════════ */
/*  HEMEN BAŞLA — LIQUID GLASS     */
/* ═══════════════════════════════ */
.hiw-intro-cta {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    padding-bottom: 0;
}

.hiw-intro-start-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 52px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 60px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow:
        0 0 0 0 rgba(167, 139, 250, 0),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 24px rgba(0, 0, 0, 0.3);
}

.hiw-intro-start-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow:
        0 0 40px -8px rgba(167, 139, 250, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.hiw-intro-start-btn:active {
    transform: translateY(0) scale(0.98);
    transition-duration: 0.1s;
}

.hiw-btn-text {
    position: relative;
    z-index: 2;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s;
}

.hiw-intro-start-btn:hover .hiw-btn-text {
    color: #fff;
}

/* Shimmer sweep */
.hiw-btn-shimmer {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(105deg,
            transparent 30%,
            rgba(255, 255, 255, 0.08) 45%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.08) 55%,
            transparent 70%);
    transform: translateX(-100%);
    animation: hiw-btn-shimmer-sweep 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hiw-btn-shimmer-sweep {

    0%,
    100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }
}

/* Faster shimmer on hover */
.hiw-intro-start-btn:hover .hiw-btn-shimmer {
    animation-duration: 2s;
}

@media (max-width: 900px) {
    .hiw-intro-merge-visual {
        flex-direction: column;
        gap: 22px;
    }

    .hiw-intro-merge-rail {
        width: 1px;
        height: 54px;
    }

    .hiw-intro-merge-signal {
        left: 50%;
        top: -18px;
        margin-left: -9px;
        margin-top: 0;
        animation: hiw-intro-merge-travel-mobile 2.8s ease-in-out infinite;
    }

    .hiw-intro-merge-flow {
        width: 100%;
        align-items: center;
    }

    .hiw-intro-merge-node--2,
    .hiw-intro-merge-node--3 {
        margin-left: 0;
    }
}

@keyframes hiw-intro-merge-travel-mobile {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(72px);
        opacity: 0;
    }
}
