/* ============================================
   Pulse Product Page - Apple-Style Styles
   ============================================ */

/* Hero Section - Full Screen */
.pulse-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 24px;
}

.pulse-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.pulse-logo-large {
    width: 180px;
    height: 180px;
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 40px rgba(6, 182, 212, 0.6));
    }
}

.pulse-hero-title {
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.pulse-hero-tagline {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--text-secondary);
    font-weight: 300;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-arrow svg {
    width: 24px;
    height: 24px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Intro Section - Large Text */
.pulse-intro {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px;
}

.big-text {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    text-align: center;
    max-width: 1000px;
    line-height: 1.3;
    color: var(--text-primary);
}

/* Feature Showcase Section */
.feature-showcase {
    padding: 160px 24px;
}

.showcase-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.showcase-label {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gradient-glow);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--primary-cyan);
    margin-bottom: 20px;
}

.showcase-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.showcase-text p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Video Demo Window */
.video-demo {
    perspective: 1000px;
}

.demo-window {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.demo-window:hover {
    transform: rotateY(0) rotateX(0);
}

.window-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--border-color);
}

.window-dots {
    display: flex;
    gap: 8px;
}

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.window-dots span:nth-child(1) { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #febc2e; }
.window-dots span:nth-child(3) { background: #28c840; }

.window-header span:last-child {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.window-content {
    padding: 24px;
}

.video-frame {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    height: 250px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.video-overlay {
    position: absolute;
    inset: 0;
}

.roi-box {
    position: absolute;
    top: 20%;
    left: 25%;
    width: 50%;
    height: 60%;
    border: 2px solid var(--primary-cyan);
    border-radius: 4px;
    animation: roi-pulse 2s ease-in-out infinite;
}

@keyframes roi-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 20px rgba(6, 182, 212, 0.3); }
    50% { opacity: 0.7; box-shadow: 0 0 40px rgba(6, 182, 212, 0.5); }
}

.track-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-purple);
    border: 2px solid white;
    border-radius: 50%;
    animation: track-pulse 1.5s ease-in-out infinite;
}

.track-point:nth-child(2) { animation-delay: 0.2s; }
.track-point:nth-child(3) { animation-delay: 0.4s; }

@keyframes track-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.live-trace svg {
    width: 100%;
    height: 60px;
}

.trace-line {
    fill: none;
    stroke: var(--primary-cyan);
    stroke-width: 2;
    stroke-linecap: round;
}

.trace-line.animated {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: draw-trace 2s linear infinite;
}

@keyframes draw-trace {
    to { stroke-dashoffset: 0; }
}

/* Formats Section */
.formats-section {
    padding: 160px 24px;
    background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.02), transparent);
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.format-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.format-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-cyan);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15);
}

.format-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

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

.format-icon.video {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.1));
}
.format-icon.video svg { stroke: var(--primary-cyan); }

.format-icon.data {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
}
.format-icon.data svg { stroke: var(--primary-purple); }

.format-icon.microscope {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0.1));
}
.format-icon.microscope svg { stroke: var(--primary-pink); }

.format-icon.calcium {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
}
.format-icon.calcium svg { stroke: #10b981; }

.format-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.format-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Modes Section */
.modes-section {
    padding: 160px 24px;
}

.modes-header {
    text-align: center;
    margin-bottom: 80px;
}

.modes-header h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.modes-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.mode-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.mode-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px 36px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mode-card:hover {
    transform: translateY(-12px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.mode-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 28px;
}

.mode-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.mode-card > p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.mode-features {
    list-style: none;
}

.mode-features li {
    padding: 10px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mode-features li::before {
    content: '✓';
    color: var(--primary-cyan);
    font-weight: 600;
}

/* Parameters Section */
.params-showcase {
    padding: 160px 24px;
    background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.02), transparent);
}

.params-intro {
    text-align: center;
    margin-bottom: 80px;
}

.params-intro h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.params-intro p {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

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

.param-column {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
}

.param-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.param-header svg {
    width: 28px;
    height: 28px;
}

.param-header.contraction svg { stroke: var(--primary-cyan); }
.param-header.calcium svg { stroke: var(--primary-purple); }
.param-header.voltage svg { stroke: var(--primary-pink); }

.param-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.param-list {
    list-style: none;
    padding: 8px 0;
}

.param-list li {
    display: flex;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: background 0.2s ease;
}

.param-list li:hover {
    background: rgba(255, 255, 255, 0.02);
}

.param-list li:last-child {
    border-bottom: none;
}

.param-name {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.param-unit {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-family: 'JetBrains Mono', monospace;
}

/* AI Section */
.ai-section {
    padding: 160px 24px;
}

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

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-glow);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-cyan);
    margin-bottom: 24px;
}

.ai-badge svg {
    width: 18px;
    height: 18px;
}

.ai-header h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
}

.ai-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.ai-feature {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
}

.ai-feature-visual {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.ai-feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.ai-feature p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* AI Animations */
.peak-detect svg {
    width: 100%;
    max-width: 200px;
}

.detect-point {
    animation: detect-pulse 1.5s ease-in-out infinite;
}

.detect-point:nth-child(3) {
    animation-delay: 0.75s;
}

@keyframes detect-pulse {
    0%, 100% { r: 6; opacity: 1; }
    50% { r: 10; opacity: 0.7; }
}

.arrhythmia-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 500;
}

.arrhythmia-indicator.warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

.arrhythmia-indicator svg {
    width: 24px;
    height: 24px;
}

.qc-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qc-badge {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.qc-badge.pass {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.qc-badge.warn {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
}

/* Export Section */
.export-section {
    padding: 160px 24px;
    background: linear-gradient(180deg, transparent, rgba(6, 182, 212, 0.02), transparent);
}

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

.export-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.export-text > p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.export-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.export-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.export-option:hover {
    border-color: var(--primary-cyan);
    background: var(--bg-card-hover);
}

.export-option svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-cyan);
}

.export-option span {
    font-weight: 500;
}

.export-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.figure-preview {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.figure-trace {
    width: 100%;
    height: auto;
}

/* Pulse CTA */
.pulse-cta {
    padding: 160px 24px;
    text-align: center;
}

.pulse-cta h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.pulse-cta > .container > .cta-content > p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.btn-xl {
    padding: 18px 36px;
    font-size: 1.1rem;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .showcase-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

    .mode-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

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

    .ai-features {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .export-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .pulse-logo-large {
        width: 120px;
        height: 120px;
    }

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

    .export-options {
        grid-template-columns: 1fr;
    }
}
