/*  ═══════════════════════════════════════════════════════════
    REDitors — PREMIUM CSS  v3.0  |  Ultimate Design System
    ═══════════════════════════════════════════════════════════ */

/* ── HERO ANIMATED SHIMMER TEXT ─────────────────────────── */
.hero-title-gradient {
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        #d0d0d0 20%,
        #ffffff 40%,
        #e8e8e8 60%,
        #ffffff 80%,
        #c0c0c0 100%
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleShimmer 6s linear infinite;
    display: block;
}

@keyframes titleShimmer {
    0%   { background-position: 0% center; }
    100% { background-position: 300% center; }
}

/* ── HERO AMBIENT GLOW ORBS ──────────────────────────────── */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    z-index: 0;
}

.hero-orb-1 {
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(230,57,70,0.1) 0%, transparent 70%);
    top: -8%;
    right: -4%;
    animation: orbDrift1 22s ease-in-out infinite;
}

.hero-orb-2 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255,255,255,0.045) 0%, transparent 70%);
    bottom: 5%;
    left: -3%;
    animation: orbDrift2 28s ease-in-out infinite;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
    top: 40%;
    left: 40%;
    animation: orbDrift2 18s ease-in-out 4s infinite;
}

@keyframes orbDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(-25px, 35px) scale(1.04); }
    66%       { transform: translate(18px, -18px) scale(0.97); }
}

@keyframes orbDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(32px, -28px) scale(1.03); }
    66%       { transform: translate(-16px, 24px) scale(0.98); }
}

/* ── AI SHOWCASE SECTION ────────────────────────────────── */
.ai-showcase-section {
    padding: clamp(80px, 10vw, 120px) 0;
    background: #030303;
    position: relative;
    overflow: hidden;
}

.ai-showcase-section::before {
    content: '';
    position: absolute;
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.02) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(48px, 7vw, 88px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
}

.showcase-feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 36px;
}

.showcase-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.showcase-feature:hover {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.12);
    transform: translateX(4px);
}

.showcase-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: rgba(255,255,255,0.7);
    transition: all 0.25s;
}

.showcase-feature:hover .showcase-feature-icon {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

.showcase-feature-icon i,
.showcase-feature-icon svg { width: 18px; height: 18px; }

.showcase-feature-text h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

.showcase-feature-text p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.42);
    line-height: 1.55;
}

/* Terminal Window */
.showcase-terminal {
    background: rgba(6,6,6,0.98);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0,0,0,0.85), 0 0 0 1px rgba(255,255,255,0.04);
}

.terminal-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-dots { display: flex; gap: 7px; }
.terminal-dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: block;
}

.terminal-body {
    padding: 22px 20px;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.terminal-line {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.78rem;
    line-height: 2;
    color: rgba(255,255,255,0.38);
}

.terminal-line.t-success { color: rgba(74,222,128,0.85); }
.terminal-line.t-active  { color: rgba(255,255,255,0.85); }
.terminal-line.t-dim     { color: rgba(255,255,255,0.22); }

.terminal-prompt { color: rgba(255,255,255,0.18); flex-shrink: 0; }

.terminal-cursor {
    display: inline-block;
    width: 7px;
    height: 13px;
    background: rgba(255,255,255,0.75);
    vertical-align: middle;
    margin-left: 2px;
    animation: cursorBlink 1.1s step-end infinite;
    border-radius: 1px;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.terminal-progress-bar {
    height: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    margin: 2px 0 2px 24px;
    overflow: hidden;
    width: calc(100% - 24px);
}

.terminal-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.4), rgba(255,255,255,0.9));
    border-radius: 2px;
    width: 0;
    animation: terminalProgress 2.2s ease-out 0.3s forwards;
}

@keyframes terminalProgress {
    0%   { width: 0; }
    60%  { width: 80%; }
    100% { width: 87%; }
}

/* ── IMPACT STATS SECTION ────────────────────────────────── */
.impact-section {
    padding: clamp(60px, 8vw, 100px) 0;
    background: rgba(255,255,255,0.012);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 60px);
}

.impact-item {
    text-align: center;
    padding: 44px 24px;
    position: relative;
}

.impact-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: rgba(255,255,255,0.07);
}

.impact-number {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 10px;
}

.impact-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
}

.impact-sub {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.18);
}

/* ── PRICING PREVIEW SECTION ─────────────────────────────── */
.pricing-preview-section {
    padding: clamp(80px, 10vw, 120px) 0;
    background: #050505;
}

.pricing-cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 40px;
}

/* ── TESTIMONIAL ENHANCEMENTS ────────────────────────────── */
.testimonial-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(74,222,128,0.7);
    letter-spacing: 0.03em;
    margin-top: 2px;
}

.testimonial-verified i,
.testimonial-verified svg { width: 10px; height: 10px; }

.t-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 3px 10px;
    border-radius: 99px;
}

/* ── VIDEO MODAL / LIGHTBOX ── */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(20px, 5vw, 60px);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.video-modal.active {
    display: flex;
    opacity: 1;
}
.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transform: scale(0.92);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.video-modal.active .video-modal-content {
    transform: scale(1);
}
.video-modal video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}
.video-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}
.video-modal-close:hover {
    background: #3b4fd8;
    border-color: #3b4fd8;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px rgba(59, 79, 216, 0.4);
}
.video-modal-close svg {
    width: 22px;
    height: 22px;
}
video { cursor: zoom-in; }
video.no-zoom { cursor: default; }

.testimonials-sub {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
}

/* ── ENHANCED FINAL CTA ──────────────────────────────────── */
.final-cta-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
    .impact-grid { grid-template-columns: repeat(2, 1fr); }
    .impact-item:nth-child(2)::after { display: none; }
    .impact-item:nth-child(4)::after { display: none; }
}

@media (max-width: 768px) {
    .showcase-grid { grid-template-columns: 1fr; }
    .showcase-terminal { display: none; }
    .impact-grid { grid-template-columns: repeat(2, 1fr); }
    .impact-item::after { display: none !important; }
    .pricing-cta-row { flex-direction: column; align-items: center; }
    .hero-orb-1 { width: 300px; height: 300px; }
    .hero-orb-2 { width: 220px; height: 220px; }
}
