/* ==========================================================================
   Feature Page - Shared Styles
   ========================================================================== */

.feature-hero {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 80px;
    position: relative;
    overflow: hidden;
}

.feature-hero__eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 16px;
    opacity: 0;
    animation: fade-up 0.6s var(--ease-out-expo) 0.1s forwards;
}

.feature-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    max-width: 800px;
    margin: 0 auto 24px;
    opacity: 0;
    animation: fade-up 0.6s var(--ease-out-expo) 0.2s forwards;
}

.feature-hero__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.7;
    opacity: 0;
    animation: fade-up 0.6s var(--ease-out-expo) 0.3s forwards;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero__orb--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation: orb-float 20s ease-in-out infinite;
}

.hero__orb--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    top: 100px;
    right: -150px;
    animation: orb-float 25s ease-in-out infinite reverse;
}

/* Scroll-triggered animation base */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-in--delay-1 { transition-delay: 0.1s; }
.animate-in--delay-2 { transition-delay: 0.2s; }
.animate-in--delay-3 { transition-delay: 0.3s; }

/* Demo section */
.feature-demo {
    padding: 80px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.feature-demo__device {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 24px;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Benefits section */
.feature-benefits {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-benefits__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    transition: border-color 0.3s ease, transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-benefit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-benefit-card:hover {
    border-color: var(--border-color-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-benefit-card:hover::before {
    opacity: 1;
}

.feature-benefit-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.feature-benefit-card__title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.feature-benefit-card__desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Stats section */
.feature-stats {
    padding: 60px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.feature-stats__inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    text-align: center;
}

.feature-stat__value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: var(--gradient-text);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
}

.feature-stat__label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* How it works */
.feature-how {
    padding: 80px 24px;
    max-width: 720px;
    margin: 0 auto;
}

.feature-how__step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 48px;
}

.feature-how__step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.feature-how__step-title {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.feature-how__step-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* CTA section */
.feature-cta {
    padding: 120px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.feature-cta__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.feature-cta__desc {
    color: var(--text-secondary);
    font-size: 1.0625rem;
    max-width: 480px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Store badges */
.store-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--text-primary);
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s var(--ease-out-expo);
    font-weight: 600;
}

.store-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.store-badge:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

.store-badge__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.store-badge__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-badge__small {
    font-size: 0.625rem;
    font-weight: 400;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.store-badge__name {
    font-size: 1rem;
    font-weight: 700;
}

/* Feature nav links */
.feature-nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 24px 60px;
}

.feature-nav-link {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.feature-nav-link:hover,
.feature-nav-link.active {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.08);
}

/* Section header */
.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 12px;
}

.section-header__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

/* Feature footer */
.feature-footer {
    padding: 40px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.feature-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.feature-footer a:hover {
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .feature-stats__inner {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .feature-stat__value {
        font-size: 1.75rem;
    }

    .feature-how__step {
        grid-template-columns: 40px 1fr;
        gap: 16px;
    }

    .feature-footer {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .feature-stats__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .store-badges {
        flex-direction: column;
        align-items: center;
    }
}

/* ==========================================================================
   Feature Tab Bar - Sticky navigation below main nav
   ========================================================================== */

.feature-tab-bar {
    background: rgba(10, 10, 10, 0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 84px;
    z-index: 100;
}

.feature-tab-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.feature-tab-bar__inner::-webkit-scrollbar { display: none; }

.feature-tab {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.feature-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.feature-tab.active {
    background: rgba(59, 130, 246, 0.12);
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.25);
}

/* ==========================================================================
   Feature Hero - Mesh gradient background animation
   ========================================================================== */

.feature-hero__mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 65% 45% at 15% 40%, rgba(59, 130, 246, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 55% 40% at 85% 55%, rgba(139, 92, 246, 0.09) 0%, transparent 70%),
        radial-gradient(ellipse 45% 35% at 50% 5%, rgba(59, 130, 246, 0.07) 0%, transparent 70%);
    animation: mesh-shift 18s ease-in-out infinite alternate;
}

@keyframes mesh-shift {
    0% {
        background:
            radial-gradient(ellipse 65% 45% at 15% 40%, rgba(59, 130, 246, 0.12) 0%, transparent 70%),
            radial-gradient(ellipse 55% 40% at 85% 55%, rgba(139, 92, 246, 0.09) 0%, transparent 70%),
            radial-gradient(ellipse 45% 35% at 50% 5%, rgba(59, 130, 246, 0.07) 0%, transparent 70%);
    }
    50% {
        background:
            radial-gradient(ellipse 50% 55% at 70% 25%, rgba(59, 130, 246, 0.14) 0%, transparent 70%),
            radial-gradient(ellipse 65% 35% at 15% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 70%),
            radial-gradient(ellipse 40% 45% at 60% 60%, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    }
    100% {
        background:
            radial-gradient(ellipse 55% 40% at 25% 65%, rgba(59, 130, 246, 0.11) 0%, transparent 70%),
            radial-gradient(ellipse 45% 55% at 75% 30%, rgba(139, 92, 246, 0.12) 0%, transparent 70%),
            radial-gradient(ellipse 60% 30% at 45% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    }
}

/* Hero dot grid pattern overlay */
.feature-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 0%, transparent 100%);
}

/* ==========================================================================
   Feature FIGs – Linear-style three-column illustration section
   ========================================================================== */

.feature-figs {
    padding: 96px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-figs .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

.feature-figs__header {
    margin-bottom: 72px;
    max-width: 560px;
}

.feature-figs__title {
    font-family: var(--font-display);
    font-size: clamp(1.625rem, 2.5vw, 2.125rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-figs__lede {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.65;
}

/* Three-column grid — separated by 1px lines, no CSS gap */
.fig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.fig {
    padding: 0 40px 0;
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.fig:first-child {
    border-left: none;
    padding-left: 0;
}

.fig:last-child {
    padding-right: 0;
}

/* FIG label — monospace, very subtle */
.fig__label {
    font-family: 'Courier New', 'DM Mono', monospace;
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.28);
    margin-bottom: 40px;
    font-weight: 400;
    text-transform: uppercase;
}

/* Visual area — tall, centered SVG */
.fig__visual {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
}

.fig__visual svg {
    width: 100%;
    height: 100%;
    max-width: 320px;
    overflow: visible;
}

/* Text below visual */
.fig__title {
    font-family: var(--font-display);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.fig__desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
}

/* Responsive */
@media (max-width: 960px) {
    .feature-figs .container {
        padding: 0 24px;
    }

    .fig-grid {
        grid-template-columns: 1fr;
    }

    .fig {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.07);
        padding: 48px 0;
    }

    .fig:first-child {
        border-top: none;
        padding-top: 0;
    }

    .fig__visual {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .feature-figs {
        padding: 64px 0;
    }

    .feature-figs__header {
        margin-bottom: 48px;
    }
}

/* ==========================================================================
   Friendship Compatibility Section (personality page only)
   ========================================================================== */

.feature-compat {
    padding: 0 24px 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-compat__inner {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 56px 48px;
    position: relative;
    overflow: hidden;
}

.feature-compat__inner::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.feature-compat__profiles {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.compat-profile {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    width: 176px;
    text-align: center;
}

.compat-profile__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.375rem;
}

.compat-profile__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.compat-profile__type {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.compat-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.compat-score {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    background: var(--gradient-text);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 8s ease infinite;
}

.compat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
}

/* ==========================================================================
   Responsive updates for new components
   ========================================================================== */

@media (max-width: 900px) {
    .feature-value-prop__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .feature-tab-bar {
        top: 84px;
    }

    .feature-compat__inner {
        padding: 32px 20px;
    }

    .feature-compat__profiles {
        gap: 20px;
    }

    .compat-profile {
        width: 144px;
        padding: 16px;
    }

    .compat-score {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .feature-compat__profiles {
        flex-direction: column;
    }

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