:root {
    --primary: #fc4420;
    --primary-hover: #d2381a;
    --secondary: #0f172a;
    --bg: #f9fafb;
    --surface: #ffffff;
    --surface-hover: #f3f4f6;
    --text: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --accent: #2ed573;
    --accent-glow: rgba(46, 213, 115, 0.2);
    --primary-glow: rgba(252, 68, 32, 0.2);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-white { color: white; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1rem; }
.justify-center { justify-content: center !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #e03211);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 68, 32, 0.4);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

.badge {
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    font-weight: 700;
    margin-left: 0.5rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 38px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    position: relative;
}

.badge.hot {
    position: absolute;
    top: -12px;
    right: -24px;
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    padding: 10rem 0 6rem;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, rgba(3,7,18,0) 70%);
    z-index: -1;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 999px;
    margin-bottom: 2rem;
    font-weight: 500;
    color: var(--text);
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #111827, #4b5563);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
    animation: fadeInUp 1s ease 0.2s pre-fill;
    animation-fill-mode: backwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.4s pre-fill;
    animation-fill-mode: backwards;
}

.browser-downloads {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s pre-fill;
    animation-fill-mode: backwards;
}

.browser-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.browser-btn:hover:not(.disabled) {
    background: var(--surface-hover);
    color: var(--text);
}

.browser-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.badge-small {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    background: var(--surface-hover);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.demo-video {
    width: 100%;
    max-width: 1000px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    background: var(--surface);
    margin: 0 auto;
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.tag {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: block;
}

/* Grids */
.problem-grid, .features-grid, .steps-grid, .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Cards */
.problem-card, .feature-card, .step-card, .testimonial {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.problem-card:hover, .feature-card:hover, .step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.problem-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    background: var(--primary-glow);
    padding: 1rem;
    border-radius: 12px;
    display: inline-flex;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
}

/* USP Section */
.usp-section {
    position: relative;
}

.usp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.usp-features {
    list-style: none;
    margin-top: 2rem;
}

.usp-features li {
    margin-bottom: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
}

/* Mock Browser Visualization for USP */
.mock-browser {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    height: 400px;
}

.mock-browser-header {
    background: #e5e7eb;
    padding: 1rem;
    display: flex;
    align-items: center;
}

.dots span {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
    background: #ef4444;
}
.dots span:nth-child(2) { background: #f59e0b; }
.dots span:nth-child(3) { background: #10b981; }

.mock-browser-body {
    padding: 2rem;
    position: relative;
    height: 100%;
}

.mock-content {
    height: 20px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 1rem;
    width: 80%;
}

.mock-content.short {
    width: 60%;
}

/* Custom Cursor Animation and Tooltips */
.mock-cursor-follower {
    position: absolute;
    z-index: 10;
    /* random slower movement */
    animation: followCursor 20s infinite ease-in-out;
    width: 40px;
    height: 40px;
}

.cursor-pointer {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 12;
}

.cursor-text-timer {
    position: absolute;
    top: 25px;
    left: 15px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 11;
    animation: textTimerToggle 10s infinite step-end;
    height: 20px;
    overflow: hidden;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.timer-digits {
    display: flex;
    flex-direction: column;
    animation: slideDigits 10s infinite step-end;
}

.timer-digits div {
    height: 20px;
    line-height: 20px;
}

.cursor-circular-progress {
    position: absolute;
    top: -10px;
    left: -10px;
    z-index: 11;
    animation: progressWrapToggle 10s infinite step-end;
}

.progress-ring-circle {
    stroke-dashoffset: 100.53;
    animation: circularProgress 10s infinite linear;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-linecap: round;
}

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

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

@keyframes circularProgress {
    0% { stroke-dashoffset: 100.53; }
    49.99% { stroke-dashoffset: 0; }
    50%, 100% { stroke-dashoffset: 100.53; }
}

@keyframes slideDigits {
    0%, 49.99% { transform: translateY(0); }
    50% { transform: translateY(0); }
    60% { transform: translateY(-20px); }
    70% { transform: translateY(-40px); }
    80% { transform: translateY(-60px); }
    90% { transform: translateY(-80px); }
    100% { transform: translateY(0); }
}

@keyframes followCursor {
    0% { top: 20%; left: 20%; }
    15% { top: 35%; left: 55%; }
    30% { top: 60%; left: 40%; }
    45% { top: 75%; left: 80%; }
    60% { top: 50%; left: 70%; }
    75% { top: 80%; left: 30%; }
    90% { top: 40%; left: 15%; }
    100% { top: 20%; left: 20%; }
}

/* Steps */
.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Leaderboard */
.leaderboard-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 80px 1fr 200px;
    padding: 1.5rem;
    background: rgba(0,0,0,0.02);
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 80px 1fr 200px;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    align-items: center;
    transition: background 0.3s;
}

.leaderboard-row:hover {
    background: rgba(0,0,0,0.02);
}

.leaderboard-row.you {
    background: var(--primary-glow);
    border-left: 4px solid var(--primary);
}

.user {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
    color: var(--text);
}

.user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.score {
    font-weight: 700;
    color: var(--primary);
}

.rank {
    font-weight: 700;
    font-size: 1.2rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    position: relative;
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.pricing-card .btn-block {
    margin-top: auto;
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.highlighted {
    background: linear-gradient(180deg, rgba(252,68,32,0.05) 0%, var(--surface) 100%);
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.pricing-card.highlighted:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
}

.pricing-badge.alt {
    background: var(--primary);
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin: 1rem 0 0.5rem;
    color: var(--text);
}

.price span {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.billing-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.pricing-features i {
    color: var(--primary);
    margin-top: 5px;
}

.pricing-guarantee {
    display: inline-block;
    background: var(--surface-hover);
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    color: var(--text);
    font-weight: 500;
    margin-top: 1.5rem;
}

/* Social Proof */
.stars {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.author {
    margin-top: 1.5rem;
    font-weight: 700;
    color: var(--text);
}

/* FAQ Grid Structure */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.faq-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(0,0,0,0.1);
}

.faq-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.faq-card p {
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Final CTA */
.final-cta {
    background: var(--surface-hover);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

/* Footer */
.footer {
    padding: 4rem 0;
    background: var(--surface-hover);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title { font-size: 3.5rem; }
    .usp-container { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .pricing-card.highlighted { transform: scale(1); }
    .pricing-card.highlighted:hover { transform: translateY(-10px); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero-title { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; }
    .browser-downloads { flex-direction: column; }
    .leaderboard-header, .leaderboard-row { grid-template-columns: 60px 1fr 100px; font-size: 0.9rem; }
}
