/* ============================================
   REVLYX — Global Stylesheet
   ============================================ */
:root {
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --bg-card: rgba(15, 23, 42, 0.6);
    --border: rgba(51, 65, 85, 0.4);
    --border-hover: rgba(71, 85, 105, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --brand: #3b82f6;
    --brand-hover: #2563eb;
    --brand-light: #60a5fa;
    --brand-subtle: rgba(59, 130, 246, 0.1);
    --brand-border: rgba(59, 130, 246, 0.2);
    --success: #22c55e;
    --error: #ef4444;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --nav-h: 72px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg-primary); color: var(--text-primary); -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }

/* Page Transition */
.page-transition { opacity: 0; transform: translateY(8px); animation: pageIn 0.5s var(--ease) 0.05s forwards; }
@keyframes pageIn { to { opacity: 1; transform: translateY(0); } }

/* Typography */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-secondary); line-height: 1.7; }
.text-gradient { background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* Layout */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }
.section { padding: 5rem 0; position: relative; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.flex-center { display: flex; align-items: center; justify-content: center; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 42rem; }

/* Backgrounds */
.grid-bg { background-image: linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px); background-size: 60px 60px; }
.glow-orb { position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none; background: rgba(59, 130, 246, 0.05); }
.border-t { border-top: 1px solid var(--border); }

/* --- Navigation --- */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); transition: all 0.3s var(--ease); border-bottom: 1px solid transparent; }
.navbar.scrolled { background: rgba(2, 6, 23, 0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { display: flex; align-items: center; gap: 0.625rem; z-index: 10; }
.nav-logo-mark { width: 36px; height: 36px; background: var(--brand); border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.nav-logo:hover .nav-logo-mark { background: var(--brand-light); }
.nav-logo-mark span { color: white; font-weight: 800; font-size: 0.7rem; }
.nav-logo-text { font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; }
.nav-links { display: none; align-items: center; gap: 2.5rem; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-link { font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); transition: color 0.15s; position: relative; }
.nav-link:hover, .nav-link.active { color: white; }
.nav-link.active::after { content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 2px; background: var(--brand); border-radius: 1px; }
.nav-cta { display: none; }
@media (min-width: 1024px) { .nav-cta { display: inline-flex; } }
.nav-hamburger { display: flex; align-items: center; justify-content: center; color: white; z-index: 10; }
@media (min-width: 1024px) { .nav-hamburger { display: none; } }

/* Mobile Menu */
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: rgba(2, 6, 23, 0.97); backdrop-filter: blur(24px); display: flex; flex-direction: column; padding: 5rem 1.5rem 2rem; transform: translateX(100%); transition: transform 0.35s var(--ease); }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { position: absolute; top: 1.25rem; right: 1.5rem; color: white; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 1.5rem; flex: 1; }
.mobile-menu-link { font-size: 2rem; font-weight: 600; color: white; transition: color 0.15s; }
.mobile-menu-link:hover, .mobile-menu-link.active { color: var(--brand-light); }
.mobile-menu-cta { display: block; text-align: center; font-weight: 600; padding: 1rem; background: var(--brand); border-radius: 1rem; color: white; font-size: 1.1rem; margin-top: auto; transition: background 0.15s; }
.mobile-menu-cta:hover { background: var(--brand-hover); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 600; font-size: 0.9375rem; padding: 0.875rem 2rem; border-radius: 1rem; transition: all 0.3s var(--ease); white-space: nowrap; }
.btn-primary { background: var(--brand); color: white; box-shadow: 0 4px 30px rgba(59,130,246,0.25); }
.btn-primary:hover { background: var(--brand-hover); box-shadow: 0 4px 40px rgba(59,130,246,0.4); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover { color: white; border-color: var(--border-hover); }
.btn-white { background: white; color: var(--bg-primary); box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.btn-white:hover { background: #f1f5f9; transform: translateY(-1px); }
.btn-ghost { background: none; color: var(--brand-light); padding: 0.5rem 0; font-size: 0.875rem; }
.btn-ghost:hover { gap: 0.75rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 1.5rem; padding: 2rem; transition: all 0.4s var(--ease); position: relative; overflow: hidden; }
@media (min-width: 768px) { .card { padding: 2.5rem; } }
.card:hover { border-color: var(--border-hover); box-shadow: 0 20px 60px rgba(59,130,246,0.08); }
.card-lift:hover { transform: translateY(-6px); }

/* Section Headers */
.section-label { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.section-label-line { width: 2rem; height: 1px; background: var(--brand); }
.section-label-text { font-size: 0.8125rem; font-weight: 600; color: var(--brand-light); text-transform: uppercase; letter-spacing: 0.1em; }
.section-desc { font-size: 1.125rem; margin-top: 1.5rem; }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: var(--nav-h); position: relative; overflow: hidden; }
.hero-inner { text-align: center; max-width: 50rem; margin: 0 auto; }
.hero h1 { margin-bottom: 1.5rem; }
.hero-desc { font-size: 1.25rem; margin-bottom: 2.5rem; max-width: 40rem; margin-left: auto; margin-right: auto; }
.hero-ctas { display: flex; flex-direction: column; gap: 1rem; align-items: center; margin-bottom: 4rem; }
@media (min-width: 640px) { .hero-ctas { flex-direction: row; justify-content: center; } }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 1.75rem; font-weight: 700; color: white; }
.hero-stat-label { font-size: 0.875rem; color: var(--text-tertiary); }
.divider-v { width: 1px; height: 2.5rem; background: var(--bg-tertiary); display: none; }
@media (min-width: 768px) { .divider-v { display: block; } }

/* Marquee */
.marquee-wrap { overflow: hidden; position: relative; }
.marquee-wrap::before, .marquee-wrap::after { content: ''; position: absolute; top: 0; bottom: 0; width: 6rem; z-index: 2; pointer-events: none; }
.marquee-wrap::before { left: 0; background: linear-gradient(to right, var(--bg-primary), transparent); }
.marquee-wrap::after { right: 0; background: linear-gradient(to left, var(--bg-primary), transparent); }
.marquee-track { display: flex; gap: 4rem; width: max-content; animation: marquee 30s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-item { font-size: 1.25rem; font-weight: 700; color: var(--text-tertiary); white-space: nowrap; opacity: 0.5; }

/* Icon Box */
.icon-box { width: 3.5rem; height: 3.5rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; transition: all 0.3s; }
.icon-box-blue { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); color: #60a5fa; }
.icon-box-purple { background: rgba(168,85,247,0.1); border: 1px solid rgba(168,85,247,0.2); color: #c084fc; }
.icon-box-pink { background: rgba(236,72,153,0.1); border: 1px solid rgba(236,72,153,0.2); color: #f472b6; }
.icon-box-green { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); color: #4ade80; }
.card:hover .icon-box { transform: scale(1.1); }

/* Tags */
.tag { font-size: 0.75rem; font-weight: 500; color: var(--text-tertiary); background: rgba(30,41,59,0.8); padding: 0.375rem 0.75rem; border-radius: 9999px; display: inline-block; margin: 0.25rem; }

/* Stats Section */
.stat-card { text-align: center; padding: 2rem; }
.stat-number { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; color: white; line-height: 1; margin-bottom: 0.5rem; }
.stat-label { font-size: 0.875rem; color: var(--text-tertiary); }

/* Testimonials */
.stars { display: flex; gap: 0.25rem; margin-bottom: 1.5rem; color: #eab308; }

/* Page Header (Inner Pages) */
.page-header { padding: 10rem 0 5rem; text-align: center; position: relative; overflow: hidden; }
@media (min-width: 768px) { .page-header { padding: 12rem 0 6rem; } }

/* Process Steps */
.process-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }
.step-num { width: 3rem; height: 3rem; border-radius: 50%; background: var(--brand-subtle); border: 1px solid var(--brand-border); color: var(--brand-light); font-weight: 700; font-size: 0.875rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }

/* Pricing Style Tiers */
.tier-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 9999px; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.tier-popular { background: var(--brand); color: white; }
.tier-base { background: rgba(100,116,139,0.2); color: var(--text-secondary); }

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.5rem; }
.form-input { width: 100%; background: rgba(30,41,59,0.5); border: 1px solid var(--border); border-radius: 0.75rem; padding: 0.875rem 1rem; color: white; font-size: 0.9375rem; transition: all 0.2s; }
.form-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.form-input::placeholder { color: var(--text-tertiary); }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 100px; }

/* FAQ */
.faq-item { border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; margin-bottom: 0.75rem; background: var(--bg-card); }
.faq-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; text-align: left; color: white; font-weight: 600; font-size: 0.9375rem; }
.faq-icon { transition: transform 0.3s var(--ease); color: var(--text-tertiary); flex-shrink: 0; margin-left: 1rem; }
.faq-content { max-height: 0; overflow: hidden; transition: max-height 0.3s var(--ease); }
.faq-content-inner { padding: 0 1.5rem 1.25rem; color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.7; }

/* Case Study Card */
.case-img { aspect-ratio: 16/10; background: var(--bg-tertiary); overflow: hidden; position: relative; }
.case-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: all 0.6s var(--ease); }
.card:hover .case-img img { opacity: 1; transform: scale(1.05); }
.case-badge { position: absolute; top: 1rem; left: 1rem; font-size: 0.75rem; font-weight: 600; padding: 0.375rem 0.75rem; border-radius: 9999px; color: white; }
.case-kpis { display: flex; gap: 1.5rem; margin-top: 1rem; flex-wrap: wrap; }
.case-kpi-val { font-weight: 700; color: white; font-size: 0.9375rem; }
.case-kpi-label { font-size: 0.75rem; color: var(--text-tertiary); margin-left: 0.25rem; }

/* Team */
.team-img { width: 100%; aspect-ratio: 1; border-radius: 1rem; background: var(--bg-tertiary); overflow: hidden; margin-bottom: 1rem; }
.team-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter 0.4s; }
.card:hover .team-img img { filter: grayscale(0%); }

/* Toast */
.toast { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200; background: var(--success); color: white; padding: 1rem 1.5rem; border-radius: 1rem; box-shadow: 0 10px 40px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 0.75rem; font-size: 0.9375rem; font-weight: 500; transform: translateY(100px); opacity: 0; transition: all 0.4s var(--ease); }
.toast.show { transform: translateY(0); opacity: 1; }

/* Footer */
.footer-link { display: block; font-size: 0.875rem; color: var(--text-secondary); padding: 0.25rem 0; transition: color 0.15s; }
.footer-link:hover { color: white; }
.social-icon { width: 2.25rem; height: 2.25rem; border-radius: 0.5rem; background: rgba(30,41,59,0.8); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); transition: all 0.15s; }
.social-icon:hover { background: var(--bg-tertiary); color: white; }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* Utilities */
.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; } .mt-10 { margin-top: 2.5rem; } .mt-12 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; } .mb-12 { margin-bottom: 3rem; }
.gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; }
.relative { position: relative; } .z-10 { z-index: 10; }