/* ===========================
   REMIO FEATURES PAGE — STYLES
   =========================== */

/* ===========================
   NAV ACTIVE STATE
   =========================== */
.nav-active {
    color: var(--text-primary) !important;
    position: relative;
}

.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 1px;
}

/* ===========================
   FEATURES HERO
   =========================== */
.feat-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 80px;
    overflow: hidden;
}

.feat-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.feat-hero-chips {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.feat-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out);
}

.feat-chip:hover {
    background: rgba(108, 92, 231, 0.1);
    border-color: rgba(108, 92, 231, 0.3);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.feat-chip svg {
    opacity: 0.6;
}

.feat-chip:hover svg {
    opacity: 1;
}

/* ===========================
   FEATURE SECTIONS
   =========================== */
.feat-section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.feat-section-alt {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.feat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feat-row-reverse {
    direction: rtl;
}

.feat-row-reverse > * {
    direction: ltr;
}

.feat-text .section-badge,
.feat-text .section-title,
.feat-text .section-desc {
    text-align: left;
    margin-left: 0;
}

/* Feature detail items */
.feat-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 36px;
}

.feat-detail-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feat-detail-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--radius-sm);
    background: rgba(108, 92, 231, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    transition: all 0.3s var(--ease-out);
}

.feat-detail-icon svg {
    width: 20px;
    height: 20px;
}

.feat-detail-icon.blue {
    background: rgba(0, 180, 216, 0.1);
    color: var(--accent-blue);
}

.feat-detail-icon.green {
    background: rgba(0, 229, 153, 0.1);
    color: var(--accent-green);
}

.feat-detail-icon.pink {
    background: rgba(224, 64, 251, 0.1);
    color: var(--accent-pink);
}

.feat-detail-icon.cyan {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
}

.feat-detail-item:hover .feat-detail-icon {
    transform: scale(1.1);
}

.feat-detail-item h4 {
    font-size: 15px;
    font-weight: 650;
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.feat-detail-item p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===========================
   LATENCY COMPARISON CHART
   =========================== */
.latency-comparison {
    padding: 32px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.latency-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.latency-chart-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.latency-chart-unit {
    font-size: 12px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.latency-chart-rows {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.latency-chart-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.latency-chart-label {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100px;
    min-width: 100px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.latency-logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.latency-logo-dot.remio {
    background: var(--gradient-main);
    box-shadow: 0 0 8px rgba(108, 92, 231, 0.5);
}

.latency-logo-dot.other {
    background: rgba(255, 255, 255, 0.15);
}

.latency-chart-bar-wrap {
    flex: 1;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.latency-chart-bar {
    height: 100%;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    padding-left: 12px;
    min-width: fit-content;
    width: 0;
    transition: width 1.2s var(--ease-out);
}

.remio-bar {
    background: var(--gradient-main);
    box-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
}

.other-bar {
    background: rgba(255, 255, 255, 0.06);
}

.latency-chart-value {
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    white-space: nowrap;
}

.remio-row .latency-chart-label {
    color: var(--text-primary);
    font-weight: 600;
}

.other-bar .latency-chart-value {
    color: var(--text-tertiary);
}

/* Animate bars on reveal */
[data-reveal].revealed .latency-chart-bar {
    width: var(--target-width);
}

/* Latency Breakdown */
.latency-breakdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    flex-wrap: wrap;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0 12px;
}

.breakdown-label {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.breakdown-value {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.breakdown-item.highlight .breakdown-value {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 20px;
}

.breakdown-divider {
    display: flex;
    align-items: center;
}

/* ===========================
   CODEC SHOWCASE (4K Section)
   =========================== */
.codec-showcase {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.codec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.codec-showcase-card {
    position: relative;
    padding: 24px 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s var(--ease-out);
}

.codec-showcase-card:hover,
.codec-showcase-card.active {
    border-color: rgba(108, 92, 231, 0.3);
    background: rgba(108, 92, 231, 0.05);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.codec-badge {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.codec-badge.preferred {
    background: var(--gradient-main);
    color: white;
}

.codec-name {
    font-size: 28px;
    font-weight: 800;
    font-family: var(--font-mono);
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2px;
}

.codec-sub {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    font-weight: 500;
}

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

.codec-stats {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.codec-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.codec-stat-val {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.codec-stat-label {
    font-size: 10px;
    color: var(--text-tertiary);
}

/* Resolution Display */
.resolution-display {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.res-ring {
    position: relative;
    width: 120px;
    height: 120px;
    min-width: 120px;
}

.res-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.res-circle {
    animation: rotate-slow 4s linear infinite;
    transform-origin: center;
}

.res-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.res-number {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.res-label {
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.res-presets {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.res-preset {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.3s;
}

.res-preset.active {
    border-color: rgba(108, 92, 231, 0.3);
    background: rgba(108, 92, 231, 0.06);
}

.res-preset-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.res-preset-spec {
    font-size: 12px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

/* ===========================
   PLATFORM SHOWCASE (Native Section)
   =========================== */
.platform-showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.platform-showcase-card {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.4s var(--ease-out);
}

.platform-showcase-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.platform-showcase-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(108, 92, 231, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--accent-purple);
}

.platform-showcase-icon.android {
    background: rgba(0, 229, 153, 0.1);
    color: var(--accent-green);
}

.platform-showcase-icon.server {
    background: rgba(0, 180, 216, 0.1);
    color: var(--accent-blue);
}

.platform-showcase-icon svg {
    width: 24px;
    height: 24px;
}

.platform-showcase-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.platform-showcase-card > p {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.platform-tech-badges {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.platform-tech-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    background: rgba(0, 229, 153, 0.08);
    border: 1px solid rgba(0, 229, 153, 0.15);
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-green);
    font-family: var(--font-mono);
}

/* Native vs wrapper comparison */
.native-vs-wrapper {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.native-vs-badge {
    margin-bottom: 16px;
}

.native-vs-badge span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.native-vs-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.native-vs-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.native-vs-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

.native-vs-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.native-vs-bar {
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding-left: 10px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--font-mono);
    min-width: fit-content;
    width: var(--bar-w);
    transition: width 1s var(--ease-out);
}

.native-vs-bar.native {
    background: var(--gradient-main);
    color: white;
}

.native-vs-bar.electron {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-tertiary);
}

.native-vs-bar span {
    white-space: nowrap;
}

/* ===========================
   SECURITY DIAGRAM
   =========================== */
.security-diagram {
    padding: 32px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.sec-diagram-header {
    text-align: center;
    margin-bottom: 32px;
}

.sec-diagram-header span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.sec-diagram-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 28px;
}

.sec-device {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sec-device-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: rgba(108, 92, 231, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
}

.sec-device-icon svg {
    width: 28px;
    height: 28px;
}

.sec-device span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.sec-device-badge {
    padding: 2px 10px;
    border-radius: 100px;
    background: rgba(108, 92, 231, 0.1);
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Encryption tunnel */
.sec-tunnel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 200px;
}

.sec-tunnel-line {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.sec-tunnel-packet {
    position: absolute;
    top: 0;
    left: -20px;
    width: 20px;
    height: 4px;
    border-radius: 2px;
    background: var(--gradient-main);
    animation: tunnel-packet 2s linear infinite;
}

.sec-tunnel-packet.delay-1 {
    animation-delay: 0.7s;
}

.sec-tunnel-packet.delay-2 {
    animation-delay: 1.4s;
}

@keyframes tunnel-packet {
    0% { left: -20px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: calc(100% + 20px); opacity: 0; }
}

.sec-tunnel-labels {
    display: flex;
    gap: 6px;
}

.sec-label {
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(108, 92, 231, 0.1);
    font-size: 9px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--accent-purple);
}

.sec-tunnel-subtext {
    font-size: 10px;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* Security footer badges */
.sec-diagram-footer {
    margin-bottom: 20px;
}

.sec-diagram-footer .sec-tech-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Server note */
.sec-server-note {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 95, 87, 0.03);
    border: 1px solid rgba(255, 95, 87, 0.1);
}

.sec-server-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
}

.sec-server-icon svg {
    width: 20px;
    height: 20px;
}

.sec-server-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sec-server-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.sec-server-desc {
    font-size: 11px;
    color: var(--text-tertiary);
}

.sec-no-data {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #FF5F57;
    white-space: nowrap;
}

.sec-no-data svg {
    width: 18px;
    height: 18px;
}

/* ===========================
   PAIRING FLOW
   =========================== */
.pairing-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.pairing-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 140px;
    max-width: 200px;
}

.pairing-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

.pairing-step-visual {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pairing-step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.pairing-arrow {
    width: 40px;
    display: flex;
    align-items: center;
    margin-top: -30px;
}

.pairing-arrow svg {
    width: 100%;
}

/* Desktop mockup for pairing */
.pairing-mockup-desktop {
    width: 100%;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
}

.pairing-mock-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
    font-size: 10px;
    color: var(--text-tertiary);
}

.pairing-mock-topbar .mockup-dots span {
    width: 6px;
    height: 6px;
}

.pairing-mock-screen {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.pairing-qr {
    width: 80px;
    height: 80px;
}

.pairing-qr svg {
    width: 100%;
    height: 100%;
}

.pairing-pin {
    font-size: 11px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.pairing-pin span {
    color: var(--accent-purple);
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* Phone mockup for pairing */
.pairing-mockup-phone {
    width: 80px;
    background: var(--bg-card);
    border-radius: 14px;
    border: 1px solid var(--border);
    padding: 6px;
}

.pairing-phone-notch {
    width: 40%;
    height: 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 3px auto 6px;
}

.pairing-phone-screen {
    aspect-ratio: 9 / 14;
    border-radius: 8px;
    background: linear-gradient(180deg, #1a1a2e, #0f0f1a);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pairing-scan-animation {
    position: relative;
    width: 60px;
    height: 60px;
}

.pairing-scan-animation svg {
    width: 100%;
    height: 100%;
}

.scan-line {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 1px;
    animation: scan-sweep 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

@keyframes scan-sweep {
    0%, 100% { top: 10px; }
    50% { top: calc(100% - 12px); }
}

/* Connected state */
.pairing-connected {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
}

.connected-icon {
    width: 48px;
    height: 48px;
    animation: pulse-glow 2s ease-in-out infinite;
}

.connected-icon svg {
    width: 100%;
    height: 100%;
}

.connected-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-green);
}

.connected-sub {
    font-size: 11px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

/* ===========================
   GESTURE SHOWCASE (Input Section)
   =========================== */
.gesture-showcase {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gesture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gesture-card {
    padding: 20px 12px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s var(--ease-out);
}

.gesture-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gesture-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 10px;
}

.gesture-icon svg {
    width: 100%;
    height: 100%;
}

.gesture-name {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.gesture-action {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
}

/* Input modes strip */
.input-modes-strip {
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.input-mode {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    transition: all 0.3s;
    cursor: default;
}

.input-mode.active {
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.input-mode svg {
    width: 16px;
    height: 16px;
}

/* ===========================
   PRO TOOLBAR MOCKUP
   =========================== */
.pro-toolbar-mockup {
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.pro-toolbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.pro-toolbar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.pro-toolbar-title .status-dot {
    width: 6px;
    height: 6px;
}

.pro-toolbar-actions {
    display: flex;
    gap: 6px;
}

.pro-action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all 0.3s;
}

.pro-action-btn:hover,
.pro-action-btn.active {
    background: rgba(108, 92, 231, 0.1);
    border-color: rgba(108, 92, 231, 0.2);
    color: var(--accent-purple);
}

.pro-action-btn svg {
    width: 16px;
    height: 16px;
}

/* Stats panel */
.pro-stats-panel {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.pro-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.pro-stat-row:last-child {
    border-bottom: none;
}

.pro-stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
}

.pro-stat-value {
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.pro-stat-value.accent-green {
    color: var(--accent-green);
}

/* Quality presets */
.pro-quality-presets {
    padding: 16px 20px;
}

.pro-presets-label {
    display: block;
    font-size: 11px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.pro-presets-row {
    display: flex;
    gap: 6px;
}

.pro-preset-btn {
    flex: 1;
    padding: 8px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    transition: all 0.3s;
}

.pro-preset-btn.active {
    background: rgba(108, 92, 231, 0.1);
    border-color: rgba(108, 92, 231, 0.3);
    color: var(--accent-purple);
}

/* ===========================
   AI SECTION
   =========================== */
.feat-section-ai {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg) 0%, rgba(108, 92, 231, 0.03) 50%, var(--bg) 100%);
}

.ai-section-header {
    text-align: center;
    margin-bottom: 64px;
}

.ai-badge {
    background: rgba(224, 64, 251, 0.1) !important;
    border-color: rgba(224, 64, 251, 0.2) !important;
    color: var(--accent-pink) !important;
}

.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 64px;
}

.ai-card {
    position: relative;
    padding: 32px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease-out);
    overflow: hidden;
}

.ai-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(108, 92, 231, 0.03), transparent 50%);
    pointer-events: none;
    transition: opacity 0.5s;
    opacity: 0;
}

.ai-card:hover {
    border-color: rgba(108, 92, 231, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.ai-card:hover .ai-card-glow {
    opacity: 1;
}

.ai-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(224, 64, 251, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-pink);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

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

.ai-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.ai-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.ai-card-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(224, 64, 251, 0.08);
    border: 1px solid rgba(224, 64, 251, 0.15);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-pink);
    font-family: var(--font-mono);
    position: relative;
    z-index: 1;
}

/* AI Brain Visual */
.ai-visual {
    display: flex;
    justify-content: center;
}

.ai-brain {
    position: relative;
    width: 240px;
    height: 240px;
}

.ai-brain-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ai-pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(108, 92, 231, 0.2);
    animation: ai-pulse 3s ease-in-out infinite;
}

.ring-1 {
    width: 60px;
    height: 60px;
    top: -30px;
    left: -30px;
    animation-delay: 0s;
}

.ring-2 {
    width: 100px;
    height: 100px;
    top: -50px;
    left: -50px;
    border-color: rgba(0, 180, 216, 0.15);
    animation-delay: 1s;
}

.ring-3 {
    width: 140px;
    height: 140px;
    top: -70px;
    left: -70px;
    border-color: rgba(0, 229, 153, 0.1);
    animation-delay: 2s;
}

@keyframes ai-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.ai-core-icon {
    position: relative;
    z-index: 2;
}

.ai-core-icon svg {
    width: 32px;
    height: 32px;
}

.ai-connections {
    position: absolute;
    inset: 0;
}

.ai-node {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(-1 * var(--dist))) rotate(calc(-1 * var(--angle)));
    animation: ai-float 4s ease-in-out infinite;
    animation-delay: calc(var(--angle) / 360deg * 2s);
}

@keyframes ai-float {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.ai-node span {
    font-size: 24px;
}

.ai-node small {
    font-size: 9px;
    color: var(--text-tertiary);
    font-weight: 500;
    white-space: nowrap;
}

/* ===========================
   CTA BACK LINK
   =========================== */
.cta-back-link {
    margin-top: 24px;
}

.cta-back-link a {
    font-size: 14px;
    color: var(--text-tertiary);
    transition: color 0.3s;
}

.cta-back-link a:hover {
    color: var(--text-primary);
}

/* ===========================
   RESPONSIVE — FEATURES PAGE
   =========================== */
@media (max-width: 1024px) {
    .feat-row {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .feat-row-reverse {
        direction: ltr;
    }

    .feat-text .section-badge,
    .feat-text .section-title,
    .feat-text .section-desc {
        text-align: center;
        margin: 0 auto;
        margin-bottom: 20px;
    }

    .feat-details {
        max-width: 560px;
        margin: 36px auto 0;
    }

    .ai-features-grid {
        grid-template-columns: 1fr;
    }

    .codec-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .platform-showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .feat-hero {
        min-height: 60vh;
        padding: 120px 24px 60px;
    }

    .feat-hero-chips {
        gap: 8px;
    }

    .feat-chip {
        padding: 6px 12px;
        font-size: 12px;
    }

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

    .resolution-display {
        flex-direction: column;
    }

    .gesture-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .input-modes-strip {
        flex-wrap: wrap;
    }

    .pairing-flow {
        flex-direction: column;
        gap: 12px;
    }

    .pairing-arrow {
        transform: rotate(90deg);
        margin: 0;
    }

    .pairing-step {
        max-width: none;
    }

    .sec-diagram-body {
        flex-direction: column;
        gap: 16px;
    }

    .sec-tunnel {
        max-width: none;
    }

    .sec-tunnel-line {
        width: 4px;
        height: 40px;
    }

    .sec-tunnel-packet {
        width: 4px;
        height: 12px;
        left: 0;
        animation: tunnel-packet-vertical 2s linear infinite;
    }

    @keyframes tunnel-packet-vertical {
        0% { top: -12px; opacity: 0; }
        10% { opacity: 1; }
        90% { opacity: 1; }
        100% { top: calc(100% + 12px); opacity: 0; }
    }

    .sec-server-note {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .sec-no-data {
        margin-top: 4px;
    }

    .latency-chart-label {
        width: 70px;
        min-width: 70px;
        font-size: 11px;
    }

    .latency-breakdown {
        gap: 4px;
    }

    .breakdown-item {
        padding: 0 6px;
    }

    .breakdown-value {
        font-size: 13px;
    }

    .breakdown-item.highlight .breakdown-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .gesture-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .platform-showcase-grid {
        grid-template-columns: 1fr;
    }

    .latency-chart-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .latency-chart-label {
        width: auto;
        min-width: auto;
    }
}
