/* ── Features page ── */

.features-hero-title {
    font-size: 2.2rem;
}

.features-hero-subtitle {
    margin-top: 1rem;
    font-size: 1rem;
    max-width: 44rem;
}

@media (min-width: 768px) {
    .features-hero-title {
        font-size: 3.25rem;
    }
}

.features-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 4.5rem;
    padding-bottom: 6rem;
    max-width: 1100px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--color-surface-card);
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.feature-card.reveal {
    transform: none;
}

.feature-card.reveal.visible {
    transform: translateY(0);
}

.feature-card-text {
    flex: 1;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    row-gap: 0.35rem;
    align-items: center;
}

.feature-card-text .feature-icon-box {
    margin-bottom: 0;
    grid-column: 1;
    grid-row: 1;
}

.feature-card-title {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin: 0;
}

.feature-card-desc {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0.75rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

.feature-card-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.feature-card-placeholder {
    width: 100%;
    min-height: 340px;
    background-color: var(--color-surface-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card .feature-card-text,
.feature-card .feature-card-visual {
    opacity: 1;
    transform: none;
    transition: none;
}

.feature-card.visible .feature-card-text,
.feature-card.visible .feature-card-visual {
    opacity: 1;
    transform: none;
}

.feature-card.visible .feature-card-visual {
    transition-delay: 0ms;
}

.feature-card:not(.visible) [class^="fmock-"],
.feature-card:not(.visible) [class*=" fmock-"] {
    animation-play-state: paused !important;
}

.feature-card.visible [class^="fmock-"],
.feature-card.visible [class*=" fmock-"] {
    animation-play-state: running !important;
}

.feature-card-placeholder img:not(.fmock-avatar-img):not(.fmock-merge-logo) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Feature mock UI components ── */

.fmock-pad {
    padding: 2rem;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Skeleton bars */
/* Tweet row */
.fmock-tweet {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.fmock-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.fmock-avatar-blue {
    background-color: rgba(29, 161, 242, 0.2);
}

.fmock-tweet-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.25rem;
}

.fmock-name-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.fmock-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.06);
    margin: 1.25rem 0;
}

/* Badge */

/* ── Card 1: Real tweet content ── */

.fmock-avatar-img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.fmock-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #F9FAFB;
}

.fmock-handle {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6B7280;
}

.fmock-text {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #D1D5DB;
}

/* ── Card 1: Action area grid (generate / loading / reply overlap) ── */

.fmock-action-area {
    display: grid;
}

.fmock-action-area > * {
    grid-area: 1 / 1;
}

.fmock-action-area > .fmock-generate-row,
.fmock-action-area > .fmock-loading {
    align-self: start;
}

/* ── Card 1: Instant Reply Animation (7.6s cycle) ── */

.fmock-generate-row {
    display: flex;
    justify-content: center;
    animation: fmock-generate-show 7.6s ease infinite;
}

.fmock-generate-btn {
    padding: 0.4rem 1.2rem;
    border-radius: 9999px;
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    animation: fmock-generate-click 7.6s ease infinite;
}

@keyframes fmock-generate-show {
    0%, 4%     { opacity: 0; }
    8%, 13%    { opacity: 1; }
    17%, 100%  { opacity: 0; }
}

@keyframes fmock-generate-click {
    0%, 11%  { transform: scale(1); }
    13%      { transform: scale(0.9); }
    15%      { transform: scale(1); }
    100%     { transform: scale(1); }
}

.fmock-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1rem 0;
    animation: fmock-loading-show 7.6s ease infinite;
}

.fmock-loading-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
}

.fmock-loading-dot:nth-child(1) { animation: fmock-dot-1 7.6s ease infinite; }
.fmock-loading-dot:nth-child(2) { animation: fmock-dot-2 7.6s ease infinite; }
.fmock-loading-dot:nth-child(3) { animation: fmock-dot-3 7.6s ease infinite; }

@keyframes fmock-loading-show {
    0%, 17%  { opacity: 0; }
    21%, 39% { opacity: 1; }
    43%, 100% { opacity: 0; }
}

@keyframes fmock-dot-1 {
    0%, 22%, 43%, 100% { transform: translateY(0); }
    25% { transform: translateY(-4px); }
    27% { transform: translateY(0); }
    32% { transform: translateY(-4px); }
    34% { transform: translateY(0); }
    39% { transform: translateY(-4px); }
    41% { transform: translateY(0); }
}

@keyframes fmock-dot-2 {
    0%, 23%, 43%, 100% { transform: translateY(0); }
    26% { transform: translateY(-4px); }
    28% { transform: translateY(0); }
    33% { transform: translateY(-4px); }
    35% { transform: translateY(0); }
    40% { transform: translateY(-4px); }
    42% { transform: translateY(0); }
}

@keyframes fmock-dot-3 {
    0%, 24%, 43%, 100% { transform: translateY(0); }
    27% { transform: translateY(-4px); }
    29% { transform: translateY(0); }
    34% { transform: translateY(-4px); }
    36% { transform: translateY(0); }
    41% { transform: translateY(-4px); }
    43% { transform: translateY(0); }
}

.fmock-reply-anim {
    animation: fmock-reply-show 7.6s ease infinite;
}

@keyframes fmock-reply-show {
    0%, 43%  { opacity: 0; transform: translateY(8px); }
    47%, 83% { opacity: 1; transform: translateY(0); }
    92%, 100% { opacity: 0; transform: translateY(0); }
}

.fmock-reply-btn-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

.fmock-reply-btn {
    padding: 0.4rem 1.2rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.85);
    color: #111827;
    font-size: 0.8rem;
    font-weight: 600;
    animation: fmock-btn-click 7.6s ease infinite;
}

@keyframes fmock-btn-click {
    0%, 70%  { transform: scale(1); background-color: rgba(255, 255, 255, 0.85); }
    72%      { transform: scale(0.9); background-color: rgba(255, 255, 255, 0.5); }
    74%      { transform: scale(1); background-color: rgba(255, 255, 255, 0.85); }
    100%     { transform: scale(1); background-color: rgba(255, 255, 255, 0.85); }
}

/* ── Card 2: Style merge diagram ── */

.fmock-merge {
    align-items: center;
    justify-content: center;
    gap: 0;
}

.fmock-merge-top {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.fmock-merge-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.fmock-merge-logo,
.fmock-merge-icon {
    width: 2rem;
    height: 2rem;
}

.fmock-merge-logo {
    object-fit: contain;
}

.fmock-merge-icon {
    font-size: 2rem;
    color: var(--color-primary);
}

.fmock-merge-lines {
    width: 60%;
    height: auto;
    flex-shrink: 0;
}

.fmock-merge-result {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    line-height: 1.55;
    color: #D1D5DB;
    max-width: 85%;
    text-align: center;
    animation: fmock-merge-glow 4s ease-in-out infinite;
}

/* Animated blue pulses on merge lines */
.fmock-merge-pulse {
    stroke: var(--color-primary);
    stroke-dasharray: 0.25 100;
    animation: fmock-pulse-flow 4s linear infinite;
}

.fmock-merge-pulse-r {
    animation-delay: 0.1s;
}

@keyframes fmock-pulse-flow {
    0%      { stroke-dashoffset: 1.25; }
    50%     { stroke-dashoffset: -1.25; }
    100%    { stroke-dashoffset: -1.25; }
}

@keyframes fmock-merge-glow {
    0%, 36%    { border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
    44%, 54%   { border-color: rgba(29, 161, 242, 0.5); box-shadow: 0 0 12px rgba(29, 161, 242, 0.15), 0 0 32px rgba(29, 161, 242, 0.08); }
    70%, 100%  { border-color: rgba(255, 255, 255, 0.1); box-shadow: none; }
}

/* ── Card 3: Scrolling style pills ── */

.fmock-scroll-rows {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    height: 100%;
    min-height: 340px;
    overflow: hidden;
}

.fmock-scroll-row {
    overflow: hidden;
    padding-block: 2px;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.fmock-scroll-track {
    display: flex;
    width: max-content;
}

.fmock-scroll-left {
    transform: translateX(0);
    animation: fmock-scroll-l 24s linear infinite;
}

.fmock-scroll-right {
    transform: translateX(-50%);
    animation: fmock-scroll-r 22s linear infinite;
}

.fmock-scroll-row:nth-child(1) .fmock-scroll-track { animation-duration: 30s; }
.fmock-scroll-row:nth-child(2) .fmock-scroll-track { animation-duration: 18s; }
.fmock-scroll-row:nth-child(3) .fmock-scroll-track { animation-duration: 34s; }
.fmock-scroll-row:nth-child(4) .fmock-scroll-track { animation-duration: 14s; }
.fmock-scroll-row:nth-child(5) .fmock-scroll-track { animation-duration: 26s; }

@keyframes fmock-scroll-l {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes fmock-scroll-r {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.fmock-pill {
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 0.5rem;
    cursor: default;
}

.fmock-pill-active {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background-color: rgba(29, 161, 242, 0.08);
}

/* ── Card 4: Privacy ── */

.fmock-privacy {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.fmock-priv-left,
.fmock-priv-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.fmock-priv-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 5.5rem;
    padding: 1rem 0;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.fmock-priv-icon {
    font-size: 2rem;
    color: var(--color-primary);
}

.fmock-priv-box-dim {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.08);
    opacity: 0.4;
}

.fmock-priv-box-dim .fmock-priv-icon {
    color: var(--color-text-secondary);
}

.fmock-priv-center {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 10rem;
    max-width: 12rem;
    position: relative;
}

.fmock-priv-lines {
    width: 100%;
    height: 100%;
    flex-shrink: 1;
}

.fmock-priv-lines path {
    vector-effect: non-scaling-stroke;
    stroke-width: 2.5;
}

.fmock-priv-lines-right {
    max-width: 40%;
}

/* X-mark icon with circle background */
.fmock-priv-xmark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid transparent;
    color: #ef4444;
    flex-shrink: 0;
    box-shadow: none;
    animation: fmock-priv-xpulse 4s ease-in-out infinite;
}

.fmock-priv-xmark .material-symbols-outlined {
    font-size: 1.25rem;
}

/* Animated blue pulses on privacy lines */
.fmock-priv-pulse {
    stroke: var(--color-primary);
    stroke-dasharray: 0.2 100;
    animation: fmock-priv-pulse-flow 4s linear infinite;
}

.fmock-priv-pulse-bot {
    animation-delay: 0.12s;
}

@keyframes fmock-priv-pulse-flow {
    0%      { stroke-dashoffset: 1.25; }
    100%    { stroke-dashoffset: -2.75; }
}

@keyframes fmock-priv-xpulse {
    0%, 42% {
        background: rgba(239, 68, 68, 0.12);
        border-color: transparent;
        box-shadow: none;
    }
    47%, 54% {
        background: rgba(239, 68, 68, 0.2);
        border-color: rgba(239, 68, 68, 0.5);
        box-shadow: 0 0 10px rgba(239, 68, 68, 0.32), 0 0 20px rgba(239, 68, 68, 0.16);
    }
    62%, 100% {
        background: rgba(239, 68, 68, 0.12);
        border-color: transparent;
        box-shadow: none;
    }
}

/* ── Card 5: Quality ── */

.fmock-quality {
    align-items: center;
    gap: 1rem;
}

.fmock-quality-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.fmock-quality-input-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.fmock-quality-icon {
    font-size: 1.25rem;
    color: var(--color-primary);
}

.fmock-quality-arrow {
    color: var(--color-text-tertiary);
    display: flex;
    justify-content: center;
}

.fmock-quality-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(29, 161, 242, 0.15);
    background: rgba(29, 161, 242, 0.03);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    width: 100%;
}

.fmock-quality-result-icon {
    font-size: 1.25rem;
    color: var(--color-primary);
}

/* ── Responsive ── */

@media (min-width: 768px) {
    .feature-card {
        flex-direction: row;
        align-items: center;
        padding: 2.5rem 2rem;
    }

    .feature-card-title {
        font-size: 1.75rem;
    }

    .feature-card-placeholder {
        min-height: 380px;
    }
}

@media (max-width: 639px) {
    .feature-card-title {
        font-size: 1.35rem;
    }

    .feature-card-desc {
        font-size: 0.95rem;
    }
}

@media (max-width: 767px) {
    .feature-card-placeholder {
        min-height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-card .feature-card-text,
    .feature-card .feature-card-visual {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
