/* --- GLOBAL STYLES & VARIABLES --- */
:root {
    --teal: #00f2ea;
    --violet: #8A2BE2;
    --background: #f8f9fc;
    --surface: rgba(255, 255, 255, 0.6);
    --text-heading: #1a202c;
    --text-body: #4a5568;
    --border: rgba(0, 0, 0, 0.08);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* --- BASE & ANIMATED BACKGROUND --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background-color: var(--background);
    color: var(--text-body);
    overflow-x: hidden;
    position: relative;
}
.background-effects { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: hidden; }
.aurora-blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.15; }
.blob1 { width: 500px; height: 500px; background: var(--violet); animation: move1 25s infinite alternate; }
.blob2 { width: 600px; height: 600px; background: var(--teal); animation: move2 30s infinite alternate; }
.blob3 { width: 450px; height: 450px; background: #ff7f50; animation: move3 20s infinite alternate; }
@keyframes move1 { from { transform: translate(10vw, -10vh); } to { transform: translate(70vw, 80vh); } }
@keyframes move2 { from { transform: translate(20vw, 70vh); } to { transform: translate(90vw, -10vh); } }
@keyframes move3 { from { transform: translate(80vw, 40vh); } to { transform: translate(-10vw, 40vh); } }

/* --- REUSABLE COMPONENTS & BUTTONS --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.btn {
    padding: 12px 28px; border-radius: 8px; font-weight: 500;
    font-family: var(--font-heading); text-decoration: none; display: inline-block; 
    transition: all 0.3s ease; border: none; cursor: pointer; position: relative;
}
.btn-primary {
    background: var(--text-heading); color: white;
    overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 250%; height: 250%; z-index: -1;
    background: conic-gradient(from 180deg, var(--teal), var(--violet), var(--teal));
    transform: translate(-50%, -50%);
    animation: rotate-glow 4s linear infinite;
    opacity: 0; transition: opacity 0.3s ease;
}
.btn-primary:hover::before { opacity: 1; }
.btn-login { color: var(--text-body); font-weight: 500; transition: color 0.3s; }
.btn-login:hover { color: var(--text-heading); }
.btn-large { padding: 16px 40px; font-size: 1.1rem; }
.section-header { text-align: center; margin-bottom: 60px; max-width: 800px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.2; color: var(--text-heading); }

/* --- HEADER & LOGO --- */
.header {
    background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(16px);
    position: sticky; top: 0; z-index: 100; padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}
.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-r {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: var(--text-heading); color: white; border-radius: 8px;
    font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; position: relative;
}
.logo-r::after { content: '▲'; position: absolute; font-size: 10px; bottom: 5px; right: 5px; transform: rotate(45deg); transition: transform 0.3s; }
.logo:hover .logo-r::after { transform: rotate(45deg) translate(2px, -2px); }
.logo-text { font-family: var(--font-heading); font-size: 1.5rem; color: var(--text-heading); }
.nav-links { list-style: none; display: flex; gap: 3rem; }
.nav-links a { text-decoration: none; color: var(--text-body); font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--text-heading); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }

/* --- HERO & GEO SCANNER --- */
.hero-section { padding: 120px 0; text-align: center; }
.hero-content h1 { font-family: var(--font-heading); font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 700; line-height: 1.1; margin: 0 auto 1.5rem; max-width: 900px; color: var(--text-heading); }
.animated-headline span { display: inline-block; opacity: 0; transform: translateY(30px); animation: reveal 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
.hero-content .subtitle { font-size: 1.25rem; max-width: 600px; margin: 0 auto 2.5rem; }
.geo-scanner-module { max-width: 700px; margin: 0 auto; }
.scanner-input-wrapper { display: flex; background: var(--surface); border-radius: 10px; padding: 8px; border: 1px solid var(--border); gap: 8px; box-shadow: var(--shadow-lg); }
.scanner-input-wrapper i { color: #9ca3af; align-self: center; margin-left: 1rem; }
.scanner-input-wrapper input { flex-grow: 1; border: none; outline: none; background: none; font-size: 1rem; color: var(--text-heading); }
.free-scans-text { margin-top: 1rem; font-size: 0.9rem; opacity: 0.7; }
.scanner-output { margin-top: 2rem; background: var(--surface); border-radius: 12px; padding: 2rem; border: 1px solid var(--border); display: none; }
.scanner-output.visible { display: block; animation: fadeInScale 0.5s ease; }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.scanner-status { color: var(--text-body); margin-bottom: 1.5rem; }
.status-text { display: none; animation: status-in 0.5s ease; } .status-text.active { display: block; }
@keyframes status-in { from { opacity: 0; } to { opacity: 1; } }
.score-container { display: flex; align-items: center; justify-content: center; gap: 2rem; }
.score-visual { position: relative; width: 120px; height: 120px; }
.score-visual svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-visual .circle-bg { stroke: var(--border); fill: none; stroke-width: 8; }
.score-visual .circle-progress { stroke: url(#score-gradient); fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s ease-out; }
.score-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--font-heading); font-size: 2.5rem; color: var(--text-heading); }
.score-details h3 { font-family: var(--font-heading); color: var(--text-heading); }

/* --- DASHBOARD (Glassmorphism) --- */
.dashboard-section { padding: 120px 0; }
.dashboard-container { display: flex; background: var(--surface); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.2); min-height: 500px; overflow: hidden; box-shadow: var(--shadow-lg); }
.dashboard-sidebar { width: 250px; padding: 24px; border-right: 1px solid var(--border); }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 8px; text-decoration: none; color: var(--text-body); font-weight: 500; margin-bottom: 8px; transition: all 0.2s; }
.sidebar-link:hover { background: rgba(0,0,0,0.05); color: var(--text-heading); }
.sidebar-link.active { background: var(--text-heading); color: white; }
.dashboard-main-content { flex-grow: 1; padding: 32px; }
.dashboard-pane { animation: fadeIn 0.5s ease; }
.positive { color: #10b981; } .negative { color: #ef4444; } .warning { color: #f59e0b; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.metric-card { background: rgba(248, 249, 252, 0.8); padding: 24px; border-radius: 12px; }
.metric-value { font-family: var(--font-heading); font-size: 2.5rem; }
.editor-view { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.editor-text, .editor-sidebar { background: rgba(248, 249, 252, 0.8); padding: 24px; border-radius: 12px; }
.audit-summary { display: flex; gap: 2rem; background: rgba(248, 249, 252, 0.8); padding: 1.5rem; border-radius: 12px; margin-bottom: 1.5rem; }
.audit-list .audit-item { display: flex; justify-content: space-between; padding: 1rem; border-bottom: 1px solid var(--border); }
.audit-list .audit-item:last-child { border-bottom: none; }

/* --- OTHER SECTIONS --- */
.how-it-works-section { padding: 120px 0; }
.features-section { padding: 120px 0; background: #fdfdff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps-grid, .features-comparison { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.step-card { background: var(--surface); padding: 30px; border-radius: 12px; border: 1px solid var(--border); text-align: center; }
.step-icon { font-size: 2rem; color: var(--violet); margin-bottom: 1rem; }
.step-card h3 { font-family: var(--font-heading); color: var(--text-heading); }
.comparison-card { background: var(--surface); padding: 2rem; border-radius: 12px; border: 1px solid var(--border); }
.comparison-card h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 1.5rem; text-align: center; color: var(--text-heading); }
.comparison-card ul { list-style: none; }
.comparison-card li { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.old-seo .fa-times-circle { color: #ccc; }
.rankyrush-way .fa-check-circle { color: var(--teal); }
.pricing-section { padding: 120px 0; }
.pricing-toggle-wrapper { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-bottom: 50px; font-weight: 500; }
.switch { position: relative; display: inline-block; width: 50px; height: 28px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; border-radius: 28px; transition: .4s; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px; background-color: white; border-radius: 50%; transition: .4s; }
input:checked + .slider { background-color: var(--violet); }
input:checked + .slider:before { transform: translateX(22px); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.pricing-card { background: var(--surface); padding: 40px; border-radius: 12px; border: 1px solid var(--border); display: flex; flex-direction: column; text-align: center; transition: all 0.3s ease; }
.pricing-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.pricing-card.popular { border-color: var(--violet); transform: scale(1.05); }
.price-amount { font-family: var(--font-heading); font-size: 3rem; color: var(--text-heading); }
.faq-section { padding: 120px 0; background: #fdfdff; border-top: 1px solid var(--border); }
.faq-accordion { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; background: none; border: none; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; text-align: left; font-family: var(--font-heading); font-size: 1.25rem; color: var(--text-heading); cursor: pointer; }
.footer { padding: 80px 0; text-align: center; }
.footer h3 { font-family: var(--font-heading); font-size: 2.5rem; color: var(--text-heading); margin-bottom: 2rem; }
.footer .rush-text { background: linear-gradient(45deg, var(--violet), var(--teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.footer-bottom { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 1rem; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .pricing-grid, .steps-grid, .features-comparison { grid-template-columns: 1fr; }
    .pricing-card, .step-card, .comparison-card { margin-bottom: 30px; }
    .pricing-card.popular { transform: scale(1); }
}
@media (max-width: 768px) {
    .nav-links, .nav-actions .btn-login { display: none; }
    .scanner-input-wrapper { flex-direction: column; gap: 1rem; }
    .dashboard-container { flex-direction: column; }
    .dashboard-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); display: flex; justify-content: space-around; }
    .sidebar-link span { display: none; }
    .metrics-grid { grid-template-columns: 1fr; }
    .score-container { flex-direction: column; text-align: center; }
}