/* ============================= */
/* Product Page — Classy Navbar   */
/* ============================= */

.product-page {
    background: var(--bg-color);
}

.classy-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.classy-header.scrolled {
    padding: 16px 0;
    background: rgba(6, 6, 6, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.classy-nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 40px;
}

.classy-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
}

.classy-logo-img {
    height: 40px;
    width: auto;
}

.classy-logo span {
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.classy-links {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 40px;
}

.classy-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.35s ease;
    white-space: nowrap;
}

.classy-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gradient);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.classy-links a:hover {
    color: #ffffff;
}

.classy-links a:hover::after {
    width: 100%;
}

.classy-cta {
    color: #ffffff;
    text-decoration: none;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 11px 26px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    transition: all 0.35s ease;
    white-space: nowrap;
}

.classy-cta:hover {
    background: #ffffff;
    color: #060606;
    border-color: #ffffff;
}

.classy-cta-mobile {
    display: none;
}

/* Mobile toggle */
.classy-toggle {
    display: none;
    width: 52px;
    height: 52px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.classy-toggle span,
.classy-toggle span::before,
.classy-toggle span::after {
    content: '';
    position: absolute;
    left: 8px;
    width: 36px;
    height: 1.5px;
    background: #ffffff;
    transition: var(--transition-smooth);
}

.classy-toggle span {
    top: 19px;
}

.classy-toggle span::before {
    top: -7px;
}

.classy-toggle span::after {
    top: 7px;
}

.classy-toggle.open span {
    background: transparent;
}

.classy-toggle.open span::before {
    transform: rotate(45deg);
    top: 0;
}

.classy-toggle.open span::after {
    transform: rotate(-45deg);
    top: 0;
}

@media (max-width: 900px) {
    .classy-nav {
        padding: 0 24px;
    }

    .classy-toggle {
        display: block;
        width: 52px;
        height: 52px;
    }

    .classy-toggle span,
    .classy-toggle span::before,
    .classy-toggle span::after {
        left: 10px;
        width: 32px;
        height: 2px;
    }

    .classy-toggle span {
        top: 25px;
    }

    .classy-toggle span::before {
        top: -9px;
    }

    .classy-toggle span::after {
        top: 9px;
    }

    .classy-cta {
        display: none;
    }

    .classy-links {
        position: fixed;
        top: 0;
        right: 0;
        left: auto;
        transform: translateX(100%);
        width: min(320px, 82vw);
        height: 100vh;
        background: rgba(6, 6, 6, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 30px;
        padding: 40px;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .classy-links.open {
        transform: translateX(0);
    }

    .classy-links a {
        font-size: 14px;
    }

    .classy-cta-mobile {
        display: inline-flex;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
        padding: 14px 26px;
        background: var(--accent-gradient);
        border-color: transparent;
        color: #ffffff;
    }
}

/* ============================= */
/* Video Banner                   */
/* ============================= */

.video-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.video-banner-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-banner-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.8) 100%);
}

.video-banner-grain {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.video-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 780px;
    padding: 0 24px;
}

.video-banner-eyebrow {
    display: inline-block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 22px;
    padding: 7px 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
}

.video-banner-title {
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.08;
    color: #ffffff;
    margin-bottom: 24px;
}

.video-banner-desc {
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 600px;
    margin: 0 auto 40px;
    font-weight: 400;
}

.video-banner-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.video-banner-stores {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.store-badge {
    display: inline-flex;
    line-height: 0;
    border-radius: 12px;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
    transition: var(--transition-smooth);
}

.store-badge img {
    height: 48px;
    width: auto;
    display: block;
}

.store-badge:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.4));
}

.video-banner-scroll-cue {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 10.5px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 2;
    animation: scroll-cue-bounce 2.2s ease-in-out infinite;
}

.video-banner-scroll-cue:hover {
    color: #ffffff;
}

@keyframes scroll-cue-bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

@media (prefers-reduced-motion: reduce) {
    .video-banner-scroll-cue {
        animation: none;
    }
}

/* ============================= */
/* Trading Features (h-scroll)    */
/* ============================= */

.trading-features {
    background: #000000;
    padding: 120px 0 100px;
    overflow: hidden;
}

.tf-header {
    max-width: 1200px;
    margin: 0 auto 56px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 48px;
    flex-wrap: wrap;
}

.tf-title {
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.15;
    margin-bottom: 20px;
     font-weight: 400;
    text-align: left;
}

.tf-desc {
    color: var(--text-secondary);
    max-width: 520px;
    font-size: 15px;
}

.tf-badge {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 320px;
    padding-bottom: 4px;
}

.tf-badge-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #ffffff;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.tf-badge p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* Horizontal scroll track */
.tf-scroll {
    overflow-x: auto;
    overflow-anchor: none;
    padding: 8px 0 24px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
}

.tf-scroll::-webkit-scrollbar {
    display: none;
}

.tf-scroll.dragging {
    cursor: grabbing;
}

.tf-track {
    display: flex;
    gap: 28px;
    width: max-content;
    padding-left: max(24px, calc((100vw - 1200px) / 2 + 24px));
    padding-right: 24px;
}

.tf-card {
    flex: 0 0 580px;
    min-height: 580px;
    border-radius: 32px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tf-card-blue {
    background: radial-gradient(130% 100% at 25% 0%, #3b82f6 0%, #14245c 45%, #05070f 78%);
}

.tf-card-violet {
    background: radial-gradient(130% 100% at 75% 100%, #818cf8 0%, #2a1f5e 45%, #05070f 78%);
}

.tf-card-blue-violet {
    background: radial-gradient(130% 100% at 50% 0%, #3b82f6 0%, #4a3d9e 45%, #05070f 78%);
}

.tf-card-cyan {
    background: radial-gradient(130% 100% at 25% 100%, #22d3ee 0%, #103a52 45%, #05070f 78%);
}

.tf-card-indigo {
    background: radial-gradient(130% 100% at 75% 0%, #818cf8 0%, #1e2a6b 45%, #05070f 78%);
}

.tf-card-text {
    padding: 0 4px;
}

.tf-card-title {
    font-size: 22px;
    margin-bottom: 8px;
}

.tf-card-desc {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.75);
}

/* Floating UI mockup panel inside each card */
.tf-panel {
    background: rgba(4, 5, 10, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.tf-panel-head {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.tf-panel-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.tf-panel-btn {
    width: 100%;
    margin-top: 18px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tf-panel-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* Card 1: live gold candlestick chart */
.tf-panel-chart {
    padding-bottom: 16px;
}

.tf-chart-symbol {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.tf-live-dot {
    font-size: 8px;
    color: var(--accent-primary);
    margin-right: 8px;
    animation: tf-live-pulse 1.6s ease-in-out infinite;
}

@keyframes tf-live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.tf-chart-price {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tf-chart-price small {
    font-size: 12px;
    font-weight: 700;
}

.tf-chart-price small.up {
    color: var(--accent-primary);
}

.tf-chart-price small.down {
    color: #ef4444;
}

.tf-chart-wrap {
    position: relative;
    height: 140px;
    margin: 6px 0 16px;
}

/* Scale the shared candlestick component down for this compact card context */
.tf-chart-wrap .candlestick-chart {
    left: 6%;
    right: 6%;
    bottom: 12%;
    height: 68%;
}

.tf-chart-wrap .candle-bar {
    width: 5.5%;
}

.tf-chart-wrap .candle-wick {
    width: 1px;
}

.tf-chart-wrap .candle-body {
    border-radius: 2px;
}

/* Live motion: most recent candle gently breathes, price line drifts */
.tf-chart-wrap .candle-bar:nth-last-child(2) {
    animation: tf-candle-pulse 2.4s ease-in-out infinite;
    transform-origin: bottom center;
}

@keyframes tf-candle-pulse {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.12); }
}

.tf-chart-wrap .candle-indicator-line {
    animation: tf-line-drift 3.2s ease-in-out infinite;
}

@keyframes tf-line-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
    .tf-chart-wrap .candle-bar:nth-last-child(2),
    .tf-chart-wrap .candle-indicator-line {
        animation: none;
    }
}

.tf-chart-footer {
    display: flex;
    gap: 8px;
}

.tf-chart-footer span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    padding: 4px 12px;
    border-radius: 100px;
}

.tf-chart-footer span.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Shared compact checklist used under card descriptions */
.tf-bullets {
    list-style: none;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tf-bullets li {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.tf-bullets li i {
    color: var(--accent-primary);
    font-size: 10px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Card 2: execution order ticket */
.tf-panel-order {
    padding-bottom: 20px;
}

.tf-order-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.tf-order-symbol {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.tf-order-spread {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

.tf-order-field {
    margin-bottom: 14px;
}

.tf-order-field > span {
    display: block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 7px;
}

.tf-order-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 9px 14px;
}

.tf-order-input span {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.tf-order-input button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.tf-order-input button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.tf-order-field-row {
    display: flex;
    gap: 12px;
}

.tf-order-field-row .tf-order-field {
    flex: 1;
}

.tf-order-value {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.tf-order-buttons {
    display: flex;
    gap: 12px;
    margin-top: 6px;
}

.tf-order-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    transition: var(--transition-smooth);
}

.tf-order-btn small {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.85;
    margin-top: 2px;
}

.tf-order-btn.sell {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.tf-order-btn.buy {
    background: linear-gradient(180deg, var(--accent-primary) 0%, #2563eb 100%);
}

.tf-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Card 3: portfolio / equity overview */
.tf-panel-portfolio {
    padding-bottom: 20px;
}

.tf-panel-portfolio .mini-equity {
    margin-bottom: 18px;
}

/* Card 4: automation / connected bots */
.tf-panel-automation {
    padding-bottom: 20px;
}

.tf-bot-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.tf-bot-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.tf-bot-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.tf-bot-info strong {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tf-bot-info small {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.45);
}

.tf-bot-status {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    flex-shrink: 0;
}

.tf-bot-status.running {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
}

.tf-bot-status.paused {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.tf-guardrail {
    margin-top: 8px;
}

.tf-guardrail-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
}

.tf-guardrail-row:last-child {
    margin-bottom: 0;
    margin-top: 10px;
}

.tf-guardrail-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.tf-guardrail-fill {
    width: 62%;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
}

/* Card 5: alerts & insights */
.tf-panel-alerts {
    padding-bottom: 20px;
}

@media (max-width: 700px) {
    .tf-header {
        align-items: flex-start;
    }
    .tf-card {
        flex-basis: 375px;
        min-height: 540px;
    }
}

/* ============================= */
/* Platform Showcase              */
/* ============================= */

.platform-showcase {
    position: relative;
    background: #000000;
    padding: 100px 24px 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ps-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    z-index: 0;
}

.ps-glow-1 {
    width: 640px;
    height: 640px;
    top: -160px;
    left: 6%;
    background: rgba(59, 130, 246, 0.4);
}

.ps-glow-2 {
    width: 560px;
    height: 560px;
    top: 120px;
    right: 4%;
    background: rgba(129, 140, 248, 0.35);
}

.ps-glow-3 {
    width: 520px;
    height: 520px;
    bottom: -120px;
    left: 38%;
    background: rgba(34, 211, 238, 0.22);
}

.ps-bg-text {
    position: absolute;
    top: 300px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: clamp(9rem, 32vw, 26rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: -0.02em;
    white-space: nowrap;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

.ps-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
    margin-bottom: 56px;
}

.ps-title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin-bottom: 16px;
}

.ps-desc {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
}

.ps-frame {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1320px;
}

.ps-frame-img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: bottom;
    border-radius: 20px 20px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: none;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.7), 0 0 100px rgba(59, 130, 246, 0.18);
}

.ps-frame::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
    background: linear-gradient(to top, #000000 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
    z-index: 3;
}

/* Flying cards: small UI pills breaking past the frame's edges */
.ps-fly-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(13, 14, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 100px;
    padding: 12px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 4;
    white-space: nowrap;
}

.ps-fly-card-left {
    left: -32px;
    bottom: 16%;
    transform: rotate(-2deg);
}

.ps-fly-card-right {
    right: -24px;
    top: 14%;
    transform: rotate(2deg);
}

.ps-fly-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.ps-fly-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.ps-fly-text strong {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
}

.ps-fly-text small {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
}

.ps-fly-value {
    font-size: 14px;
    font-weight: 700;
}

.ps-fly-value.up {
    color: var(--accent-primary);
}

.ps-fly-dot {
    font-size: 8px;
    display: flex;
}

.ps-fly-symbol {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

@media (max-width: 900px) {
    .ps-fly-card {
        display: none;
    }
}

@media (max-width: 700px) {
    .platform-showcase {
        padding: 90px 20px 0;
    }
        .ps-bg-text {
        top: 365px;
        font-size: 98px;
    }
}

/* ============================= */
/* How It Works (interactive)     */
/* ============================= */

.hiw-layout {
    display: flex;
    align-items: center;
    margin-top: 56px;
}

.hiw-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    
}

.hiw-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-align: left;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    height: 150px;
    border-radius: 20px;
    padding: 24px;
    padding-bottom: 27px;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.hiw-step:hover {
    background: var(--card-bg-hover);
    border-color: var(--border-color-hover);
}

.hiw-step.active {
    background: radial-gradient(130% 100% at 25% 0%, #3b82f6 0%, #14245c 45%, #05070f 78%);
    border-color: rgba(59, 130, 246, 0.3);

}

.hiw-step-num {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.hiw-step.active .hiw-step-num {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
}

.hiw-step-text h3 {
    color: white;
    font-size: 23px;
    margin-bottom: 6px;
}

.hiw-step-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Auto-advancing loading bar along the bottom edge of each step */
.hiw-step-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hiw-step.active .hiw-step-progress {
    opacity: 1;
}

.hiw-step-progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 0 3px 3px 0;
    background: linear-gradient(90deg, var(--accent-primary), #8b5cf6);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6);
}

.hiw-step-progress-bar.running {
    animation-name: hiwStepLoad;
    animation-duration: var(--hiw-step-duration, 4500ms);
    animation-timing-function: linear;
    animation-fill-mode: forwards;
}

@keyframes hiwStepLoad {
    from { width: 0%; }
    to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .hiw-step-progress-bar.running {
        animation: none;
        width: 100%;
    }
}

.hiw-visual {
    display: flex;
    justify-content: center;
    width: 55%;
}

.hiw-phone {
    position: relative;
    width: 100%;
    max-width: 370px;
    aspect-ratio: 9 / 19.5;
    border-radius: 40px;
    overflow: hidden;
    /* box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 100px rgba(59, 130, 246, 0.1); */
}

.hiw-phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
}

.hiw-screen {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

.hiw-screen-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.hiw-screen.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Screen 1: sign in */
.hiw-signin {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    padding-top: 28px;
}

.hiw-signin-logo {
    height: 28px;
    margin-bottom: 24px;
}

.hiw-signin h4 {
    font-size: 19px;
    margin-bottom: 6px;
}

.hiw-signin p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.hiw-input {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.hiw-input i {
    font-size: 12px;
    color: var(--text-muted);
}

.hiw-signin-btn {
    width: 100%;
    margin-top: 12px;
    padding: 13px;
    border-radius: 10px;
    border: none;
    background: var(--accent-gradient);
    color: #ffffff;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}

.hiw-signin-link {
    margin-top: 20px;
    font-size: 11.5px;
    color: var(--accent-secondary);
}

/* Screen 2: analyze & trade */
.hiw-trade-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.hiw-trade-symbol {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.hiw-trade-change {
    font-size: 13px;
    font-weight: 700;
}

.hiw-trade-change.up {
    color: var(--accent-primary);
}

.hiw-chart-mini {
    position: relative;
    height: 220px;
    margin-bottom: 24px;
}

.hiw-chart-mini .candlestick-chart {
    left: 4%;
    right: 4%;
}

.hiw-chart-mini .candle-bar {
    width: 12%;
}

.hiw-trade-buttons {
    display: flex;
    gap: 10px;
}

.hiw-sell,
.hiw-buy {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 13px;
    border-radius: 12px;
    border: none;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
}

.hiw-sell small,
.hiw-buy small {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.85;
    margin-top: 2px;
}

.hiw-sell {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.hiw-buy {
    background: linear-gradient(180deg, var(--accent-primary) 0%, #2563eb 100%);
}

/* Screen 3: monitor & automate */
.hiw-screen[data-screen="3"] .mini-equity {
    margin-bottom: 22px;
}

.hiw-bot-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.hiw-bot-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.hiw-bot-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

.hiw-bot-info strong {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hiw-bot-info small {
    font-size: 10.5px;
    color: var(--text-muted);
}

.hiw-bot-status {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-primary);
    flex-shrink: 0;
}

.hiw-bot-status.paused {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

@media (max-width: 1000px) {
    .hiw-layout {
        flex-direction: column;
        align-items: stretch;
        margin-top: 40px;
        gap: 32px;
    }
    .hiw-steps {
        width: 100%;
        order: 2;
    }
    .hiw-visual {
        width: 100%;
        order: 1;
    }
    .hiw-phone {
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .hiw-step {
        height: auto;
        min-height: 130px;
        padding: 20px;
        gap: 16px;
    }
    .hiw-step-text h3 {
        font-size: 19px;
    }
    .hiw-step-text p {
        font-size: 13.5px;
    }
    .hiw-phone {
        max-width: 300px;
    }
}

/* Premium Features (pinned horizontal scroll) */
.hs-section {
    background: #000000;
    padding: 120px 0;
}

.hs-header {
    max-width: 1200px;
    margin: 0 auto 56px;
    padding: 0 24px;
}

.hs-pin {
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 480px;
}

.hs-track {
    display: flex;
    gap: 24px;
    width: max-content;
    padding: 8px max(24px, calc((100vw - 1200px) / 2 + 24px));
    will-change: transform;
}

.hs-card {
    flex: 0 0 340px;
    min-height: 400px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition-smooth);
}

.hs-card:hover {
    background: var(--card-bg-hover);
    border-color: var(--border-color-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hs-card-big {
    flex-basis: 420px;
}

.hs-card .pf-icon {
    width: 54px;
    height: 54px;
    border-radius: 13px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 20px;
    margin-bottom: 20px;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.hs-card:hover .pf-icon {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.35);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.hs-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.hs-card p {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
}

@media (max-width: 899px) {
    .hs-pin {
        min-height: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .hs-pin::-webkit-scrollbar {
        display: none;
    }
    .hs-track {
        padding: 8px 24px;
    }
    .hs-card,
    .hs-card-big {
        flex-basis: 280px;
        min-height: 320px;
    }
}

/* Start Your Journey Banner */
.start-journey-banner {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: center;
    isolation: isolate;
}

.start-journey-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.start-journey-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 6, 6, 0.85) 0%, rgba(6, 6, 6, 0.55) 45%, rgba(6, 6, 6, 0.1) 75%);
    z-index: -1;
    display: flex;
    align-items: center;
}

.start-journey-content {
    padding: 48px;
    max-width: 480px;
}

.start-journey-content h2 {

    font-size: clamp(24px, 3.5vw, 40px);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.25;
}

.start-journey-btn {
    background: #ffffff;
    color: #060606;
    border: none;
    border-radius: 8px;
}

.start-journey-btn:hover {
    background: rgba(255, 255, 255, 0.85);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 700px) {
    .start-journey-banner {
        min-height: 380px;
    }
    .start-journey-overlay {
        background: linear-gradient(0deg, rgba(6, 6, 6, 0.9) 30%, rgba(6, 6, 6, 0.3) 100%);
        align-items: flex-end;
    }
    .start-journey-content {
        padding: 32px 24px;
        max-width: 100%;
    }
}

/* FAQ */
.faq-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 80px;
}

.faq-heading {
    text-align: left;
}

.faq-heading .section-title {
    margin-bottom: 16px;
}

.faq-heading .section-desc {
    margin: 0;
}

.faq-heading .section-desc a {
    color: var(--accent-secondary);
    text-decoration: none;
}

.faq-heading .section-desc a:hover {
    text-decoration: underline;
}

.faq-toggle {
    display: inline-flex;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 4px;
    gap: 4px;
    margin-top: 24px;
}

.faq-toggle-btn {
    padding: 10px 22px;
    border-radius: 100px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.faq-toggle-btn:hover:not(.active) {
    color: var(--text-primary);
}

.faq-toggle-btn.active {
    background: var(--accent-gradient);
    color: #ffffff;
}

.faq-category {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 28px 0 4px;
}

.faq-category:first-child {
    margin-top: 0;
}

.faq-list.hidden {
    display: none;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--card-bg);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--border-color-hover);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--accent-primary);
    font-size: 14px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer {
    max-height: 3000px;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    padding: 0 26px 22px;
}

.faq-answer ul {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    padding: 0 26px 22px 46px;
    margin: -14px 0 0;
}

.faq-answer ul li {
    margin-bottom: 6px;
}

@media (max-width: 900px) {
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Cinematic video section: start at the page's container width instead of the narrower default */
.cinematic-frame {
    width: min(1200px, calc(100vw - 48px));
    height: min(720px, 72vw);
}

/* Feature highlights: pinned image, scrolling text */
.fx-layout {
    display: flex;
    flex-direction: column;
    gap: 90px;
}

.fx-item {
    display: flex;
    flex-direction: column;
    max-width: 640px;
    margin: 0 auto;
}

.fx-item-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    margin: 24px 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.fx-item .section-tag {
    display: block;
    text-align: left;
    margin-bottom: 12px;
}

.fx-item h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 16px;
}

.fx-item p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.65;
}

.fx-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fx-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 14px 18px;
    transition: var(--transition-smooth);
}

.fx-list li:hover {
    background: var(--card-bg-hover);
    border-color: var(--border-color-hover);
}

.fx-list li i {
    color: var(--accent-primary);
    font-size: 13px;
    margin-top: 5px;
    flex-shrink: 0;
}

.fx-list li strong {
    color: var(--text-primary);
    font-weight: 600;
}

.fx-list li a {
    color: var(--accent-secondary);
    text-decoration: none;
}

.fx-list li a:hover {
    text-decoration: underline;
}

.fx-list li a strong {
    color: var(--accent-secondary);
}

.fx-visual {
    display: none;
}

@media (max-width: 640px) {
    .fx-layout {
        gap: 60px;
    }
    .fx-item {
        max-width: 100%;
    }
    .fx-item .section-tag {
        text-align: center;
    }
    .fx-item h2 {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
        text-align: center;
    }
    .fx-item-img {
        margin: 16px 0;
        border-radius: 16px;
    }
}

/* Desktop & laptop only: pin the visual on the side while text scrolls, swapping the active image */
@media (min-width: 901px) {
    .fx-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: start;
    }

    .fx-text {
        display: flex;
        flex-direction: column;
    }

    .fx-item {
        min-height: 100vh;
        justify-content: center;
        max-width: 460px;
        margin: 0;
        opacity: 0.35;
        transition: opacity 0.4s ease;
    }

    .fx-item.active {
        opacity: 1;
    }

    .fx-item-img {
        display: none;
    }

    .fx-visual {
        display: flex;
        width: 100%;
        height: calc(100vh - var(--fx-header-h, 72px));
        align-items: center;
        justify-content: center;
    }

    .fx-visual-inner {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .fx-visual-inner::before {
        content: '';
        position: absolute;
        inset: -10%;
        background: radial-gradient(55% 55% at 50% 45%, rgba(59, 130, 246, 0.35), rgba(129, 140, 248, 0.18) 45%, transparent 72%);
        filter: blur(70px);
        z-index: -1;
        pointer-events: none;
    }

    .fx-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        opacity: 0;
        transition: opacity 0.6s ease;
    }

    .fx-img.active {
        opacity: 1;
    }
}

/* Feature page hero */
.fx-hero .hero-flex {
    align-items: center;
    gap: 24px;
}

.fx-hero .hero-side-left {
    flex: 1;
}

.fx-hero .hero-side-right {
    flex: 1.4;
    position: relative;
}

.fx-hero .hero-flying-mobiles {
    max-width: 720px;
}

/* Glassmorphism flying card: a mini AI-chat-modal preview over the hero mockup */
.hero-ai-card {
    position: absolute;
    top: 8%;
    right: 2%;
    width: 210px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: rgba(15, 15, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.02);
    z-index: 4;
    transform: translateY(20px);
    opacity: 0;
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.hero-flying-mobiles.in-view ~ .hero-ai-card {
    opacity: 1;
    transform: translateY(0);
    animation: heroAiFloat 4s ease-in-out 1.2s infinite;
}

@keyframes heroAiFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-flying-mobiles.in-view ~ .hero-ai-card {
        animation: none;
    }
}

.hero-ai-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-ai-card-icon {
    position: relative;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #100f1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-ai-card-icon::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from 220deg, #ec4899, #f97316 40%, #a855f7 75%, #ec4899 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.hero-ai-card-icon svg {
    width: 13px;
    height: 13px;
}

.hero-ai-card-title {
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(90deg, #f97316, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-ai-card-msg {
    padding: 12px 14px;
    border-radius: 16px 16px 16px 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-ai-card-msg p {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 1100px) {
    .hero-ai-card {
        display: none;
    }
}

.fx-hero .hero-side-left .hero-store-buttons {
    justify-content: flex-start;
    margin-top: 8px;
}

@media (max-width: 1100px) {
    .fx-hero .hero-side-left .hero-store-buttons {
        justify-content: center;
    }
}

/* Floating AI Button */
.ai-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.ai-fab.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.ai-fab-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid transparent;
    pointer-events: none;
}

.ai-fab-ring-orange {
    border-color: #f97316;
    animation: aiRingPulse 4s ease-out infinite;
    animation-delay: 0s;
}

.ai-fab-ring-purple {
    border-color: #a855f7;
    animation: aiRingPulse 4s ease-out infinite;
    animation-delay: 1.4s;
}

@keyframes aiRingPulse {
    0% { transform: scale(1); opacity: 0.9; }
    45% { opacity: 0.35; }
    50% { transform: scale(1.85); opacity: 0; }
    50.01%, 100% { transform: scale(1); opacity: 0; }
}

.ai-fab-core {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    padding: 3px;
    background: conic-gradient(from 220deg, #ec4899, #f97316 40%, #a855f7 75%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease;
}

.ai-fab:hover .ai-fab-core {
    transform: scale(1.07);
}

.ai-fab-core-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 35%, #211d3f, #08070d 78%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-fab-icon {
    width: 18px;
    height: 18px;
}

@media (prefers-reduced-motion: reduce) {
    .ai-fab-ring {
        animation: none;
        opacity: 0;
    }
}

@media (max-width: 640px) {
    .ai-fab {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
    .ai-fab-core {
        width: 38px;
        height: 38px;
    }
}

/* AI Chat Modal */
.ai-chat-backdrop {
    position: fixed;
    inset: 0;
    z-index: 997;
    background: transparent;
    opacity: 0;
    pointer-events: none;
}

.ai-chat-backdrop.open {
    pointer-events: auto;
}

.ai-chat-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    opacity: 0;
    transform: translateY(24px) scale(0.96);
    pointer-events: none;
    transform-origin: bottom right;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-chat-widget.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ai-chat-modal {
    width: 400px;
    max-width: calc(100vw - 40px);
    height: min(620px, calc(100vh - 160px));
    display: flex;
    flex-direction: column;
    background: #0a0a0f;
    border: 1px solid var(--border-color);
    border-radius: 38px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.ai-chat-disclaimer {
    max-width: 320px;
    padding: 0 8px;
    text-align: right;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--text-muted);
}

.ai-chat-handle {
    width: 40px;
    height: 4px;
    border-radius: 100px;
    background: linear-gradient(90deg, #f97316, #ec4899, #a855f7);
    margin: 14px auto 0;
    flex-shrink: 0;
    opacity: 0.8;
}

.ai-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    flex-shrink: 0;
}

.ai-chat-header-icon {
    position: relative;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #100f1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-chat-header-icon::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from 220deg, #ec4899, #f97316 40%, #a855f7 75%, #ec4899 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.ai-chat-header-icon .ai-fab-icon {
    width: 14px;
    height: 14px;
}

.ai-chat-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(90deg, #f97316, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-chat-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: var(--transition-smooth);
}

.ai-chat-close:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.ai-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 6px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ai-chat-body::-webkit-scrollbar {
    width: 5px;
}

.ai-chat-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.ai-msg {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 88%;
    animation: aiMsgIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.ai-msg-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.ai-msg-avatar {
    position: relative;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #100f1a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.ai-msg-avatar::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from 220deg, #ec4899, #f97316 40%, #a855f7 75%, #ec4899 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.ai-msg-avatar .ai-fab-icon {
    width: 11px;
    height: 11px;
}

.ai-msg-bubble {
    padding: 14px 18px;
    border-radius: 18px 18px 18px 4px;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text-primary);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.ai-msg-bubble strong,
.ai-msg-bubble b {
    color: #34d399;
    font-weight: 700;
}

.ai-msg-user .ai-msg-bubble {
    border-radius: 18px 18px 4px 18px;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    border: none;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
}

.ai-chat-suggestions {
    display: flex;
    gap: 8px;
    padding: 14px 20px 4px;
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: none;
}

.ai-chat-suggestions::-webkit-scrollbar {
    display: none;
}

.ai-chip {
    position: relative;
    flex-shrink: 0;
    padding: 10px 18px;
    border-radius: 100px;
    border: 1px solid transparent;
    background: #0d0d12;
    background-clip: padding-box;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ai-chip::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, #f97316, #ec4899, #a855f7);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.ai-chip:hover {
    background: #17171d;
}

.ai-chip:disabled {
    opacity: 0.4;
    cursor: default;
}

.ai-chat-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 20px;
    flex-shrink: 0;
}

.ai-chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 13px 20px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
}

.ai-chat-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.ai-chat-send {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    border: none;
    color: #ffffff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.ai-chat-send:hover {
    transform: scale(1.06);
}

@media (max-width: 640px) {
    .ai-chat-widget {
        right: 12px;
        bottom: 12px;
    }
    .ai-chat-modal {
        width: calc(100vw - 24px);
        height: min(560px, calc(100vh - 130px));
    }
    .ai-chat-disclaimer {
        max-width: calc(100vw - 24px);
    }
}
