/* ============================================================
   CardScope Homepage V2 — Redesigned Styles
   Loaded only on index.html alongside styles.css
   ============================================================ */

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-rotate {
    opacity: 0;
    transform: translateY(20px) rotate(-3deg);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed,
.reveal-left.revealed,
.reveal-right.revealed,
.reveal-scale.revealed,
.reveal-rotate.revealed {
    opacity: 1;
    transform: translate(0, 0) scale(1) rotate(0deg);
}

/* Stagger children */
.reveal-stagger > .reveal:nth-child(2),
.reveal-stagger > .reveal-scale:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > .reveal:nth-child(3),
.reveal-stagger > .reveal-scale:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger > .reveal:nth-child(4),
.reveal-stagger > .reveal-scale:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger > .reveal:nth-child(5),
.reveal-stagger > .reveal-scale:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger > .reveal:nth-child(6),
.reveal-stagger > .reveal-scale:nth-child(6) { transition-delay: 0.5s; }
.reveal-stagger > .reveal:nth-child(7),
.reveal-stagger > .reveal-scale:nth-child(7) { transition-delay: 0.6s; }

/* ---------- Text Shimmer Effect ---------- */
.text-shimmer {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.text-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 50%, transparent 100%);
    animation: shimmer-sweep 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer-sweep {
    0%   { left: -100%; }
    40%  { left: 120%; }
    100% { left: 120%; }
}

/* ---------- Glow Pulse (CTA buttons) ---------- */
.pulse-glow {
    animation: pulse-shadow 2.5s ease-in-out infinite;
}

@keyframes pulse-shadow {
    0%, 100% { box-shadow: 0 4px 20px rgba(61, 125, 202, 0.3); }
    50%      { box-shadow: 0 6px 36px rgba(61, 125, 202, 0.55), 0 0 0 4px rgba(61, 125, 202, 0.08); }
}

/* ---------- Counter Pop ---------- */
.stat-num.pop {
    animation: counter-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes counter-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* ---------- Showcase List Item Stagger ---------- */
.showcase-list li.li-hidden {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.showcase-list li.li-visible {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- Stats Strip Item Hover ---------- */
.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

/* ---------- Pricing Card Hover Lift ---------- */
.pricing-card {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .pricing-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

/* ---------- Compare Tag Hover ---------- */
.tag {
    transition: transform 0.2s ease, background 0.2s ease;
}

.tag:hover {
    transform: scale(1.08);
}

/* ---------- FAQ Expand/Collapse Smooth ---------- */
.faq-item {
    transition: background 0.3s ease;
}

.faq-item.open {
    background: rgba(61, 125, 202, 0.02);
    border-radius: 8px;
}

[data-theme="dark"] .faq-item.open {
    background: rgba(61, 125, 202, 0.04);
}

/* ---------- Gradient Text ---------- */
.gradient-text {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Section Subtitle (shared) ---------- */
.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: -40px auto 48px;
}

/* ============================================================
   HERO V2
   ============================================================ */
.hero-v2 {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 60%, var(--surface) 100%);
    position: relative;
    overflow: hidden;
}

.hero-v2 .container {
    display: block;
}

/* Floating decorative cards */
.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.float-card {
    position: absolute;
    width: 60px;
    height: 84px;
    border-radius: 8px;
    border: 1px solid rgba(255, 203, 5, 0.12);
    background: linear-gradient(135deg, rgba(255, 203, 5, 0.04), rgba(61, 125, 202, 0.04));
    opacity: 0.5;
}

.float-card-1 {
    top: 8%;
    left: 4%;
    animation: float-1 8s ease-in-out infinite;
}

.float-card-2 {
    top: 55%;
    right: 6%;
    animation: float-2 10s ease-in-out infinite;
}

.float-card-3 {
    bottom: 12%;
    left: 10%;
    animation: float-3 7s ease-in-out infinite;
}

.float-card-4 {
    top: 30%;
    right: 3%;
    width: 48px;
    height: 68px;
    animation: float-1 9s ease-in-out infinite reverse;
    opacity: 0.35;
}

.float-card-5 {
    bottom: 25%;
    right: 12%;
    width: 44px;
    height: 62px;
    animation: float-2 11s ease-in-out infinite reverse;
    opacity: 0.3;
}

@keyframes float-1 {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-25px) rotate(6deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translateY(0) rotate(8deg); }
    50% { transform: translateY(-20px) rotate(-4deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50% { transform: translateY(-30px) rotate(-8deg); }
}

[data-theme="dark"] .float-card {
    border-color: rgba(255, 203, 5, 0.08);
    background: linear-gradient(135deg, rgba(255, 203, 5, 0.03), rgba(61, 125, 202, 0.03));
    opacity: 0.35;
}

/* --- Video Stage --- */
.video-stage {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto 48px;
}

.video-eyebrow {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 16px;
    animation: eyebrow-fade 1.2s ease 0.3s both;
}

@keyframes eyebrow-fade {
    0% { opacity: 0; letter-spacing: 8px; }
    100% { opacity: 1; letter-spacing: 3px; }
}

.video-frame-glow {
    position: relative;
    border-radius: 14px;
    padding: 3px;
    background: linear-gradient(45deg, var(--secondary), var(--primary), var(--accent), var(--secondary));
    background-size: 300% 300%;
    animation: gradient-shift 6s ease infinite;
}

.video-frame-glow::after {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(ellipse at center, rgba(61, 125, 202, 0.12) 0%, transparent 70%);
    border-radius: 28px;
    z-index: -1;
    pointer-events: none;
}

[data-theme="dark"] .video-frame-glow::after {
    background: radial-gradient(ellipse at center, rgba(61, 125, 202, 0.2) 0%, transparent 70%);
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.video-inner {
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.video-inner video {
    width: 100%;
    height: auto;
    display: block;
}

/* --- Hero Row (text + carousel) --- */
.hero-v2 .hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.hero-v2 .hero-content h2 {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text);
}

.hero-v2 .hero-description {
    font-size: 19px;
    color: var(--text-light);
    margin-bottom: 28px;
    line-height: 1.65;
}

/* --- Pills (replacing badges) --- */
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(61, 125, 202, 0.07);
    border: 1px solid rgba(61, 125, 202, 0.15);
    color: var(--secondary);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s, border-color 0.2s, transform 0.25s ease;
}

.pill:hover {
    background: rgba(61, 125, 202, 0.12);
    border-color: rgba(61, 125, 202, 0.25);
    transform: translateY(-2px);
}

[data-theme="dark"] .pill {
    background: rgba(61, 125, 202, 0.1);
    border-color: rgba(61, 125, 202, 0.2);
}

/* Pill entrance stagger */
.hero-pills .pill {
    opacity: 0;
    transform: translateY(10px);
    animation: pill-appear 0.5s ease forwards;
}

.hero-pills .pill:nth-child(1) { animation-delay: 0.8s; }
.hero-pills .pill:nth-child(2) { animation-delay: 0.95s; }
.hero-pills .pill:nth-child(3) { animation-delay: 1.1s; }
.hero-pills .pill:nth-child(4) { animation-delay: 1.25s; }

@keyframes pill-appear {
    to { opacity: 1; transform: translateY(0); }
}

/* --- Hero Note --- */
.hero-v2 .hero-note {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 16px;
}

/* --- Glowing CTA Button --- */
.btn-glow {
    position: relative;
    box-shadow: 0 4px 20px rgba(61, 125, 202, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 6px 28px rgba(61, 125, 202, 0.45);
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
    background: var(--secondary);
    padding: 32px 0;
    position: relative;
    overflow: hidden;
}

.stats-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    pointer-events: none;
}

.stats-strip-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-num,
.stat-num-text {
    display: block;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
}

.stat-txt {
    display: block;
    font-size: 14px;
    opacity: 0.85;
    margin-top: 4px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* ============================================================
   WAVE DIVIDERS
   ============================================================ */
.wave-divider {
    width: 100%;
    line-height: 0;
    margin: -1px 0;
}

.wave-divider svg {
    width: 100%;
    height: 80px;
    display: block;
}

.wave-flip {
    transform: scaleX(-1);
}

/* ============================================================
   FEATURE SHOWCASE
   ============================================================ */
.showcase {
    padding: 80px 0;
    background: var(--surface);
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
    transition: transform 0.4s ease;
}

.showcase-item:hover {
    transform: translateY(-4px);
}

.showcase-item:last-of-type {
    margin-bottom: 0;
}

.showcase-reverse {
    direction: rtl;
}

.showcase-reverse > * {
    direction: ltr;
}

.showcase-badge {
    display: inline-block;
    background: var(--primary);
    color: #2A2A2A;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

.showcase-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    animation: badge-shimmer 3s ease-in-out infinite;
}

@keyframes badge-shimmer {
    0%   { left: -100%; }
    50%  { left: 120%; }
    100% { left: 120%; }
}

.showcase-text h3 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--text);
    line-height: 1.2;
}

.showcase-text p {
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.showcase-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.showcase-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-light);
    font-size: 15px;
}

.showcase-list li svg {
    flex-shrink: 0;
    color: #34C759;
}

.showcase-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-icon {
    width: 220px;
    height: 220px;
    filter: drop-shadow(0 8px 24px rgba(61, 125, 202, 0.12));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.showcase-item:hover .showcase-icon {
    transform: scale(1.08) rotate(2deg);
    filter: drop-shadow(0 12px 32px rgba(61, 125, 202, 0.22));
}

.showcase-cta {
    text-align: center;
    margin-top: 64px;
}

/* Showcase CTA button hover enhancement */
.showcase-cta .btn {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, background 0.3s;
}

.showcase-cta .btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(61, 125, 202, 0.2);
}

/* ============================================================
   STEPS V2 (Timeline)
   ============================================================ */
.steps-v2 {
    padding: 80px 0;
    background: var(--bg);
}

.timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-step {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.timeline-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 6px 20px rgba(61, 125, 202, 0.3);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.timeline-step:hover .timeline-icon {
    transform: scale(1.12) rotate(8deg);
    box-shadow: 0 8px 28px rgba(61, 125, 202, 0.4);
}

.timeline-connector {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    margin-top: 36px;
    flex-shrink: 0;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.timeline-connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: connector-flow 3s ease-in-out infinite;
}

@keyframes connector-flow {
    0%   { left: -50%; }
    100% { left: 150%; }
}

.timeline-step h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text);
}

.timeline-step p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================================
   COMPARE V2
   ============================================================ */
.compare-v2 {
    padding: 80px 0;
    background: var(--surface);
}

.compare-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: stretch;
    max-width: 900px;
    margin: 0 auto;
}

.compare-side {
    background: var(--bg);
    padding: 32px;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.compare-side:hover {
    transform: translateY(-6px);
}

.compare-old {
    border-top: 3px solid var(--accent);
}

.compare-new {
    border-top: 3px solid #34C759;
    box-shadow: 0 8px 32px rgba(52, 199, 89, 0.08);
}

.compare-new:hover {
    box-shadow: 0 12px 40px rgba(52, 199, 89, 0.15);
}

.compare-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.compare-header h3 {
    font-size: 22px;
    margin: 0;
    color: var(--text);
}

.compare-side ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.compare-side li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 15px;
}

.compare-side li:last-child {
    border-bottom: none;
}

.compare-verdict {
    font-weight: 700;
    color: var(--text-light);
    font-size: 15px;
    padding-top: 4px;
}

.compare-win {
    color: #34C759;
}

.compare-vs {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag {
    display: inline-block;
    background: rgba(61, 125, 202, 0.1);
    color: var(--secondary);
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tag-unique {
    background: rgba(255, 203, 5, 0.15);
    color: #9a7209;
}

[data-theme="dark"] .tag-unique {
    color: var(--primary);
}

/* ============================================================
   DOWNLOAD V2
   ============================================================ */
.download-v2 {
    padding: 80px 0;
    background: var(--bg);
    text-align: center;
}

.download-v2 h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--text);
}

/* ============================================================
   PRICING V2
   ============================================================ */
.pricing-v2 {
    padding: 80px 0;
    background: var(--surface);
}

.pricing-v2 .muted {
    opacity: 0.5;
}

/* --- FAQ Accordion --- */
.faq-section {
    max-width: 700px;
    margin: 48px auto 0;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.faq-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--text);
}

.faq-accordion {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 18px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    font-family: inherit;
    transition: color 0.2s;
}

.faq-q:hover {
    color: var(--secondary);
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-a {
    max-height: 200px;
    padding-bottom: 18px;
}

.faq-a p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* ============================================================
   CTA V2 (Animated Gradient)
   ============================================================ */
.cta-v2 {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
}

.cta-v2-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--secondary), #1a5bb5, var(--accent), var(--secondary));
    background-size: 400% 400%;
    animation: cta-gradient 8s ease infinite;
    z-index: 0;
}

@keyframes cta-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.cta-v2-content {
    position: relative;
    z-index: 1;
}

.cta-v2 h2 {
    font-size: 44px;
    color: white;
    margin-bottom: 16px;
}

.cta-v2 p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.cta-v2 .btn-large {
    display: inline-block;
    padding: 20px 48px;
    background: white;
    color: var(--secondary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 18px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    animation: cta-btn-pulse 3s ease-in-out infinite;
}

@keyframes cta-btn-pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15); }
    50%      { box-shadow: 0 8px 40px rgba(255, 255, 255, 0.25), 0 0 0 6px rgba(255, 255, 255, 0.06); }
}

.cta-v2 .btn-large:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
    animation: none;
}

.cta-v2 .cta-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 16px;
}

/* ============================================================
   SCROLL PROGRESS BAR
   ============================================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--secondary), var(--primary), var(--accent));
    z-index: 10000;
    transition: width 0.05s linear;
    box-shadow: 0 0 8px rgba(61, 125, 202, 0.4);
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: opacity 0.3s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(61, 125, 202, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 24px rgba(61, 125, 202, 0.45);
}

/* ============================================================
   HERO CURSOR GLOW
   ============================================================ */
.hero-cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 125, 202, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s;
}

.hero-cursor-glow.active {
    opacity: 1;
}

[data-theme="dark"] .hero-cursor-glow {
    background: radial-gradient(circle, rgba(61, 125, 202, 0.1) 0%, transparent 70%);
}

/* ============================================================
   CTA PARTICLES
   ============================================================ */
.cta-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.cta-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    animation: particle-float linear infinite;
}

@keyframes particle-float {
    0% {
        transform: translateY(100%) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* ============================================================
   FEATURED PRICING CARD GLOW BORDER
   ============================================================ */
.pricing-card.featured {
    position: relative;
    border: none;
    background: var(--surface);
    overflow: visible;
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(45deg, var(--secondary), var(--primary), var(--accent), var(--secondary));
    background-size: 300% 300%;
    animation: gradient-shift 6s ease infinite;
    z-index: -1;
}

.pricing-card.featured::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: var(--surface);
    z-index: -1;
}

/* ============================================================
   SVG CHECKMARK DRAW ANIMATION
   ============================================================ */
.showcase-list li svg polyline {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    transition: stroke-dashoffset 0.5s ease;
}

.showcase-list li.li-visible svg polyline {
    stroke-dashoffset: 0;
}

/* ============================================================
   BUTTON RIPPLE EFFECT
   ============================================================ */
.btn {
    position: relative;
    overflow: hidden;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-expand 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes ripple-expand {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================================
   ACTIVE NAV LINK HIGHLIGHT
   ============================================================ */
.nav-links a {
    position: relative;
}

.nav-links a.nav-active {
    color: var(--secondary);
}

.nav-links a.nav-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--secondary);
    border-radius: 1px;
    animation: nav-underline 0.3s ease forwards;
}

@keyframes nav-underline {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Stat number glow on finish */
.stat-num.pop,
.stat-num-text {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* Smooth scroll for the whole page */
html {
    scroll-behavior: smooth;
}

/* ============================================================
   3D TILT ON PHONE FRAME
   ============================================================ */
.hero-image .phone-frame {
    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
    perspective: 800px;
}

/* ============================================================
   RESPONSIVE — Homepage V2
   ============================================================ */
@media (max-width: 1024px) {
    .hero-v2 .hero-content h2 {
        font-size: 40px;
    }

    .showcase-item {
        gap: 40px;
    }

    .showcase-text h3 {
        font-size: 28px;
    }
}

@media (max-width: 900px) {
    .showcase-item {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .showcase-reverse {
        direction: ltr;
    }

    .showcase-list li {
        justify-content: center;
    }

    .showcase-icon {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .hero-v2 {
        padding: 40px 0 60px;
    }

    .hero-v2 .hero-row {
        flex-direction: column;
        text-align: center;
    }

    .hero-v2 .hero-content h2 {
        font-size: 32px;
    }

    .hero-pills {
        justify-content: center;
    }

    .cta-buttons {
        justify-content: center;
    }

    .float-card {
        display: none;
    }

    .hero-cursor-glow {
        display: none;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    .video-eyebrow {
        font-size: 11px;
        letter-spacing: 2px;
    }

    /* Stats Strip */
    .stats-strip-inner {
        flex-wrap: wrap;
        gap: 20px;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        min-width: 120px;
    }

    .stat-num,
    .stat-num-text {
        font-size: 28px;
    }

    /* Timeline */
    .timeline {
        flex-direction: column;
        gap: 0;
        align-items: center;
    }

    .timeline-connector {
        width: 3px;
        height: 40px;
        margin: 0 auto;
        background: linear-gradient(to bottom, var(--secondary), var(--primary));
    }

    .timeline-step {
        padding: 16px 0;
    }

    /* Compare */
    .compare-grid {
        grid-template-columns: 1fr;
    }

    .compare-vs {
        display: flex;
        justify-content: center;
    }

    .compare-vs svg {
        transform: rotate(90deg);
    }

    /* Download */
    .download-v2 .download-options {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .download-v2 .download-divider {
        display: none;
    }

    .download-v2 .download-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Pricing */
    .pricing-v2 .pricing-cards {
        grid-template-columns: 1fr;
    }

    /* CTA */
    .cta-v2 {
        padding: 64px 0;
    }

    .cta-v2 h2 {
        font-size: 32px;
    }

    .cta-v2 p {
        font-size: 16px;
    }

    .cta-v2 .btn-large {
        padding: 16px 36px;
        font-size: 16px;
    }

    /* Wave dividers */
    .wave-divider svg {
        height: 48px;
    }
}

@media (max-width: 480px) {
    .hero-v2 .hero-content h2 {
        font-size: 28px;
    }

    .pill {
        font-size: 13px;
        padding: 6px 12px;
    }

    .showcase-text h3 {
        font-size: 24px;
    }

    .stats-strip {
        padding: 24px 0;
    }

    .stat-num,
    .stat-num-text {
        font-size: 24px;
    }

    .stat-txt {
        font-size: 12px;
    }
}
