/* ============================================================
   Step Recorder Pro — Landing Page Styles
   steprecorder.vorks.net
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-deep: #0A0A0A;
    --bg-card: #111111;
    --bg-card-hover: #1A1A1A;
    --bg-surface: #161616;
    --red: #E63434;
    --red-hover: #FF4444;
    --red-glow: rgba(230, 52, 52, 0.4);
    --red-soft: rgba(230, 52, 52, 0.08);
    --text: #F0F0F0;
    --text-secondary: #999999;
    --text-dim: #555555;
    --border: #222222;
    --border-bright: #333333;
    --cyan: #3DD9EB;
    --purple: #8B6FE8;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==================== NAV ==================== */

nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 0 40px; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

.nav-brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; color: var(--text);
}

.nav-logo {
    width: 32px; height: 32px; background: var(--red); border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 14px; color: #fff;
}

.nav-title { font-weight: 700; font-size: 15px; letter-spacing: -0.3px; }
.nav-title span { color: var(--text-dim); font-weight: 400; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none;
    font-size: 13px; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* Language Toggle */
.lang-toggle {
    display: flex; border-radius: 6px; overflow: hidden;
    border: 1px solid var(--border-bright); margin-left: 8px;
}
.lang-toggle button {
    padding: 5px 12px; font-size: 11px; font-weight: 700;
    font-family: inherit; border: none; cursor: pointer;
    transition: all 0.2s; color: var(--text-dim); background: transparent;
}
.lang-toggle button.active { background: var(--red); color: #fff; }
.lang-toggle button:hover:not(.active) { color: var(--text); }

/* ==================== HERO ==================== */

.hero {
    min-height: 100vh; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
    padding: 120px 24px 60px; position: relative; overflow: hidden;
}

.hero::before {
    content: ''; position: absolute; top: -200px; left: 50%;
    transform: translateX(-50%); width: 800px; height: 800px;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
    opacity: 0.25; pointer-events: none;
    will-change: opacity, transform;
    animation: pulse 8s ease-in-out infinite;
}

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

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; background: var(--red-soft);
    border: 1px solid rgba(230, 52, 52, 0.2); border-radius: 100px;
    font-size: 12px; font-weight: 600; color: var(--red);
    margin-bottom: 32px; position: relative; z-index: 1;
}

.hero-badge .dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--red);
    animation: blink 2s ease-in-out infinite;
}

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

.hero h1 {
    font-size: clamp(48px, 7vw, 88px); font-weight: 900;
    letter-spacing: -3px; line-height: 0.95;
    margin-bottom: 24px; position: relative; z-index: 1;
}
.hero h1 .accent { color: var(--red); }

.hero-sub {
    font-size: clamp(16px, 2vw, 20px); color: var(--text-secondary);
    max-width: 560px; line-height: 1.6; margin-bottom: 48px;
    position: relative; z-index: 1;
}

.hero-actions {
    display: flex; gap: 16px; align-items: center;
    flex-wrap: wrap; justify-content: center;
    position: relative; z-index: 1;
}

/* ==================== BUTTONS ==================== */

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 600;
    text-decoration: none; cursor: pointer; border: none;
    transition: all 0.2s; font-family: inherit;
}

.btn-primary {
    background: var(--red); color: #fff;
    box-shadow: 0 0 40px var(--red-glow), 0 4px 20px rgba(0, 0, 0, 0.4);
}
.btn-primary:hover {
    background: var(--red-hover);
    box-shadow: 0 0 60px var(--red-glow), 0 4px 24px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-card); color: var(--text);
    border: 1px solid var(--border-bright);
}
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--text-dim); }

.btn-meta {
    font-size: 12px; font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'JetBrains Mono', monospace;
}

/* ==================== SECTIONS ==================== */

section { padding: 100px 24px; }
.container { max-width: 1120px; margin: 0 auto; }

.section-label {
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--red); margin-bottom: 16px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px); font-weight: 800;
    letter-spacing: -2px; line-height: 1.1; margin-bottom: 20px;
}

.section-desc {
    font-size: 17px; color: var(--text-secondary);
    max-width: 540px; line-height: 1.65;
}

/* ==================== APP MOCKUP ==================== */

.demo-section { padding: 60px 24px 120px; }
.app-mockup-wrapper { max-width: 960px; margin: 0 auto; perspective: 1200px; }

.app-mockup {
    background: linear-gradient(135deg, #0A0E1A, #121A2E 50%, #1A1530);
    border-radius: 16px;
    border: 1px solid rgba(61, 217, 235, 0.15);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 80px rgba(61, 217, 235, 0.06);
    overflow: hidden;
    transform: rotateX(2deg);
    transition: transform 0.5s;
    will-change: transform;
}
.app-mockup:hover { transform: rotateX(0deg) scale(1.01); }

/* Title Bar */
.mock-titlebar {
    height: 40px; padding: 0 16px; background: rgba(0, 0, 0, 0.4);
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mock-titlebar-dots { display: flex; gap: 7px; }
.mock-titlebar-dots span { width: 11px; height: 11px; border-radius: 50%; }
.mock-titlebar-title { font-size: 12px; color: rgba(255, 255, 255, 0.4); font-weight: 500; }
.mock-titlebar-spacer { width: 60px; }

/* Toolbar */
.mock-toolbar {
    padding: 14px 20px; display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-btn-record {
    padding: 8px 20px; border-radius: 8px; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #E63434, #CC2020);
    color: #fff; border: none; cursor: default;
    box-shadow: 0 0 20px rgba(230, 52, 52, 0.3);
    transition: all 0.3s; will-change: box-shadow;
}
.mock-btn-record.recording { animation: rec-pulse 1.5s ease-in-out infinite; }
@keyframes rec-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(230, 52, 52, 0.3); }
    50% { box-shadow: 0 0 40px rgba(230, 52, 52, 0.6); }
}
.mock-btn-record .rec-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.mock-btn-record.recording .rec-dot { animation: blink 1s infinite; }

.mock-btn-sm {
    padding: 7px 14px; border-radius: 6px; font-size: 11px; font-weight: 500;
    background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08); cursor: default;
}

.mock-separator { width: 1px; height: 24px; background: rgba(255, 255, 255, 0.08); margin: 0 4px; }

.mock-step-counter {
    font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 700;
    color: var(--cyan); margin-left: auto; min-width: 30px; text-align: right;
    text-shadow: 0 0 20px rgba(61, 217, 235, 0.4);
}

/* Content Area */
.mock-content { display: grid; grid-template-columns: 1fr 1fr; min-height: 400px; }

/* Step List */
.mock-steps { border-right: 1px solid rgba(255, 255, 255, 0.06); overflow: hidden; }
.mock-steps-header {
    padding: 12px 20px; font-size: 11px; font-weight: 600; letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.3); text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex; justify-content: space-between;
}

.mock-step-item {
    padding: 14px 20px; display: flex; align-items: center; gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: default; transition: background 0.2s;
    opacity: 0; transform: translateX(-20px);
    will-change: opacity, transform;
}
.mock-step-item.visible { animation: stepSlideIn 0.4s ease forwards; }
.mock-step-item.active { background: rgba(61, 217, 235, 0.06); }
@keyframes stepSlideIn { to { opacity: 1; transform: translateX(0); } }

.mock-step-num {
    width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
}
.mock-step-thumb {
    width: 44px; height: 30px; border-radius: 4px; flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
}
.mock-step-info { flex: 1; min-width: 0; }
.mock-step-title {
    font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.8);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mock-step-meta {
    font-size: 10px; color: rgba(255, 255, 255, 0.3); margin-top: 2px;
    font-family: 'JetBrains Mono', monospace;
}

/* Preview Pane */
.mock-preview {
    position: relative; background: #080810;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.mock-preview-img {
    width: 90%; height: 85%; border-radius: 8px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    position: relative; overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Fake Desktop */
.fake-desktop { width: 100%; height: 100%; position: relative; padding: 20px; }
.fake-window {
    background: rgba(255, 255, 255, 0.04); border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08); position: absolute;
}
.fake-window-bar {
    height: 24px; border-radius: 8px 8px 0 0; background: rgba(255, 255, 255, 0.06);
    display: flex; align-items: center; padding: 0 10px; gap: 5px;
}
.fake-window-bar span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.fake-window-body { padding: 12px; }
.fake-line { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.06); margin-bottom: 6px; }
.fake-btn-row { display: flex; gap: 6px; margin-top: 8px; }
.fake-btn { padding: 4px 12px; border-radius: 4px; font-size: 8px; background: rgba(61, 217, 235, 0.15); color: var(--cyan); }
.fake-input { height: 18px; border-radius: 4px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 6px; }

/* Overlays */
.click-indicator {
    position: absolute; width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid var(--red); pointer-events: none; opacity: 0;
    transform: scale(0.5); will-change: opacity, transform;
}
.click-indicator.active { animation: clickRipple 0.8s ease forwards; }
@keyframes clickRipple {
    0% { opacity: 1; transform: scale(0.5); }
    40% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(2); }
}

.highlight-box {
    position: absolute; border: 2px solid var(--cyan); border-radius: 4px;
    pointer-events: none; opacity: 0;
    box-shadow: 0 0 12px rgba(61, 217, 235, 0.3);
    will-change: opacity, transform;
}
.highlight-box.active { animation: highlightPop 1.2s ease forwards; }
@keyframes highlightPop {
    0% { opacity: 0; transform: scale(0.9); }
    20% { opacity: 1; transform: scale(1.02); }
    80% { opacity: 1; }
    100% { opacity: 0.4; }
}

.step-badge-overlay {
    position: absolute; width: 22px; height: 22px; border-radius: 6px;
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 800; color: #fff;
    pointer-events: none; opacity: 0;
    box-shadow: 0 2px 8px rgba(61, 217, 235, 0.4);
    will-change: opacity, transform;
}
.step-badge-overlay.active { animation: badgePop 0.4s ease forwards; }
@keyframes badgePop {
    0% { opacity: 0; transform: scale(0.3); }
    60% { transform: scale(1.15); }
    100% { opacity: 1; transform: scale(1); }
}

.mouse-trail { position: absolute; pointer-events: none; z-index: 5; }

/* Status Bar */
.mock-statusbar {
    padding: 8px 20px; display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06); background: rgba(0, 0, 0, 0.2);
}
.mock-status-left { display: flex; align-items: center; gap: 10px; }
.mock-status-dot { width: 7px; height: 7px; border-radius: 50%; }
.mock-status-text { font-size: 10px; color: rgba(255, 255, 255, 0.35); font-family: 'JetBrains Mono', monospace; }
.mock-status-right { font-size: 10px; color: rgba(255, 255, 255, 0.25); font-family: 'JetBrains Mono', monospace; }

/* Demo Controls */
.demo-controls { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }
.demo-controls button {
    padding: 8px 20px; border-radius: 8px; font-size: 12px; font-weight: 600;
    font-family: inherit; cursor: pointer; border: 1px solid var(--border-bright);
    background: var(--bg-card); color: var(--text-secondary); transition: all 0.2s;
}
.demo-controls button:hover { background: var(--bg-card-hover); color: var(--text); }
.demo-controls button.active { border-color: var(--red); color: var(--red); }

/* ==================== FEATURES ==================== */

.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px;
    margin-top: 64px; border-radius: 16px; overflow: hidden; background: var(--border);
}
.feature-card {
    background: var(--bg-card); padding: 40px 32px;
    transition: background 0.3s; position: relative;
}
.feature-card:hover { background: var(--bg-card-hover); }
.feature-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--red); transform: scaleX(0); transition: transform 0.3s;
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
    width: 44px; height: 44px; border-radius: 10px; background: var(--red-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 20px;
}
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ==================== EXPORT ==================== */

.export-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.export-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-top: 64px; }
.export-formats { display: flex; flex-wrap: wrap; gap: 12px; }
.format-badge {
    padding: 10px 20px; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; font-size: 14px; font-weight: 600;
    font-family: 'JetBrains Mono', monospace; color: var(--text-secondary);
    transition: all 0.2s;
}
.format-badge:hover { border-color: var(--red); color: var(--red); }

.export-features-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.export-features-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text-secondary); }
.export-features-list .check { color: var(--red); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* ==================== PRICING ==================== */

.cta-section { text-align: center; position: relative; }
.cta-section::before {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
    opacity: 0.15; pointer-events: none;
}

.pricing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 740px; margin: 48px auto 0; }
.pricing-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
    padding: 40px 32px; text-align: left; position: relative; transition: border-color 0.3s;
}
.pricing-card:hover { border-color: var(--border-bright); }
.pricing-card.featured { border-color: var(--red); box-shadow: 0 0 60px rgba(230, 52, 52, 0.1); }
.pricing-card.featured::before {
    content: attr(data-badge); position: absolute; top: -1px; left: 50%;
    transform: translateX(-50%); padding: 4px 14px; background: var(--red); color: #fff;
    font-size: 10px; font-weight: 700; letter-spacing: 1px; border-radius: 0 0 8px 8px;
}

.pricing-tier { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.pricing-price { font-size: 40px; font-weight: 900; letter-spacing: -2px; margin-bottom: 4px; }
.pricing-price .currency { font-size: 20px; color: var(--text-dim); }
.pricing-card.featured .pricing-price { color: var(--red); }
.pricing-note { font-size: 13px; color: var(--text-dim); margin-bottom: 24px; }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pricing-features li { font-size: 14px; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; }
.pricing-features .icon { color: var(--red); flex-shrink: 0; }
.pricing-features .dim { color: var(--text-dim); }

/* ==================== FOOTER ==================== */

footer { padding: 48px 24px; border-top: 1px solid var(--border); text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 32px; margin-bottom: 20px; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 12px; color: var(--text-dim); }

/* ==================== UTILITIES ==================== */

.fade-in {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.shimmer {
    background: linear-gradient(90deg, var(--text-dim) 25%, var(--text-secondary) 50%, var(--text-dim) 75%);
    background-size: 200% 100%;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: shimmer 1.5s infinite;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ==================== RESPONSIVE ==================== */

@media (max-width: 900px) {
    nav { padding: 0 20px; }
    .nav-links { gap: 16px; }
    .nav-links a.hide-mobile { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .export-grid { grid-template-columns: 1fr; gap: 40px; }
    .pricing-cards { grid-template-columns: 1fr; }
    .mock-content { grid-template-columns: 1fr; }
    .mock-preview { min-height: 260px; }
}
