/* ==================== RESET & BASE ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-primary: #0a1628;
    --bg-secondary: #0f1f3a;
    --bg-card: rgba(15, 31, 58, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-indigo: #6366f1;
    --gradient-main: linear-gradient(135deg, #3b82f6, #06b6d4);
    --gradient-subtle: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(6,182,212,0.15));
    --border-color: rgba(148, 163, 184, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--gradient-subtle);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.2);
    margin-bottom: 16px;
}
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    background: transparent;
    transition: var(--transition);
}
.navbar.scrolled {
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); }
.logo-icon { font-size: 1.6rem; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-text { font-size: 1.4rem; font-weight: 800; letter-spacing: 2px; }
.nav-links { display: flex; list-style: none; gap: 8px; align-items: center; }
.nav-link {
    padding: 8px 16px; border-radius: 8px; text-decoration: none;
    color: var(--text-secondary); font-size: 0.9rem; font-weight: 500;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: var(--bg-glass); }
.nav-cta {
    background: var(--gradient-main) !important;
    color: white !important;
    font-weight: 600;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); transition: var(--transition); border-radius: 2px; }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 10px; font-size: 1rem;
    font-weight: 600; text-decoration: none; border: none; cursor: pointer;
    transition: var(--transition); font-family: inherit;
}
.btn-primary {
    background: var(--gradient-main); color: white;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4); }
.btn-ghost { background: var(--bg-glass); color: var(--text-primary); border: 1px solid var(--border-color); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: var(--accent-blue); }
.btn-full { width: 100%; justify-content: center; }

/* ==================== HERO ==================== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; overflow: hidden; padding: 120px 0 80px;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-orb {
    position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.3;
    animation: float 15s ease-in-out infinite;
}
.hero-orb-1 { width: 500px; height: 500px; background: var(--accent-blue); top: -100px; right: -100px; }
.hero-orb-2 { width: 400px; height: 400px; background: var(--accent-indigo); bottom: -100px; left: -100px; animation-delay: -5s; }
.hero-orb-3 { width: 300px; height: 300px; background: var(--accent-cyan); top: 50%; left: 50%; animation-delay: -10s; }
.hero-grid {
    position: absolute; inset: 0;
    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;
}
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}
.hero-container { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px; border-radius: 100px;
    background: var(--gradient-subtle); border: 1px solid rgba(59,130,246,0.2);
    font-size: 0.85rem; font-weight: 500; color: var(--accent-cyan);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.5rem); font-weight: 900;
    line-height: 1.15; margin-bottom: 24px;
    animation: fadeInUp 0.8s ease 0.1s both;
}
.hero-subtitle {
    font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 36px;
    max-width: 520px; animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; animation: fadeInUp 0.8s ease 0.3s both; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-stats { display: flex; align-items: center; gap: 24px; animation: fadeInUp 0.8s ease 0.4s both; }
.stat { text-align: center; }
.stat-number { font-size: 1.8rem; font-weight: 800; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-suffix { font-size: 1.2rem; font-weight: 700; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border-color); }

/* Phone Mockup */
.hero-visual { position: relative; display: flex; justify-content: center; animation: fadeInUp 1s ease 0.5s both; }
.phone-mockup {
    width: 300px; background: #1a1a2e; border-radius: 36px;
    padding: 12px; box-shadow: var(--shadow-glow), 0 25px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1); position: relative;
}
.phone-notch {
    width: 120px; height: 28px; background: #0a1628;
    border-radius: 0 0 16px 16px; margin: 0 auto 8px;
}
.phone-screen { background: #111827; border-radius: 24px; overflow: hidden; min-height: 400px; }
.chat-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; background: #1e293b;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.chat-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gradient-main); display: flex;
    align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem;
}
.chat-name { font-size: 0.9rem; font-weight: 600; }
.chat-status { font-size: 0.7rem; color: #22c55e; }
.chat-messages { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg {
    max-width: 85%; padding: 10px 14px; border-radius: 16px;
    font-size: 0.8rem; line-height: 1.5; opacity: 0;
    animation: msgAppear 0.5s ease forwards;
    animation-delay: var(--delay, 0s);
}
@keyframes msgAppear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg-received { background: #1e293b; align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg-sent { background: #065f46; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg-time { display: block; font-size: 0.65rem; color: var(--text-muted); text-align: right; margin-top: 4px; }
.msg-link { color: var(--accent-cyan); text-decoration: underline; font-size: 0.8rem; display: block; margin-top: 4px; }

/* Floating Cards */
.floating-card {
    position: absolute; display: flex; align-items: center; gap: 10px;
    padding: 12px 18px; border-radius: 12px;
    background: rgba(15, 31, 58, 0.9); backdrop-filter: blur(10px);
    border: 1px solid rgba(59,130,246,0.2); font-size: 0.85rem; font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); white-space: nowrap;
}
.floating-card-1 { top: 15%; left: -40px; animation: floatCard 6s ease-in-out infinite; }
.floating-card-2 { top: 50%; right: -30px; animation: floatCard 6s ease-in-out infinite 2s; }
.floating-card-3 { bottom: 15%; left: -20px; animation: floatCard 6s ease-in-out infinite 4s; }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.fc-icon { font-size: 1.2rem; }

.hero-scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: var(--text-muted); font-size: 0.75rem; letter-spacing: 2px;
}
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--accent-blue), transparent); animation: scrollPulse 2s infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ==================== SERVICES ==================== */
.services { padding: 120px 0; position: relative; }
.services::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
}
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    padding: 36px; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border-color);
    transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-main); opacity: 0; transition: var(--transition);
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,0.3); box-shadow: var(--shadow-glow); }
.service-card:hover::before { opacity: 1; }
.service-card.featured { border-color: rgba(59,130,246,0.3); background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(6,182,212,0.05)); }
.service-card.featured::before { opacity: 1; }
.service-badge {
    position: absolute; top: 16px; right: 16px;
    padding: 4px 12px; border-radius: 100px;
    background: var(--gradient-main); font-size: 0.7rem;
    font-weight: 700; text-transform: uppercase;
}
.service-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--gradient-subtle); border: 1px solid rgba(59,130,246,0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-cyan); margin-bottom: 20px;
}
.service-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; }
.service-features { list-style: none; }
.service-features li {
    padding: 6px 0; color: var(--text-secondary); font-size: 0.9rem;
    display: flex; align-items: center; gap: 8px;
}
.service-features li::before { content: '✓'; color: var(--accent-cyan); font-weight: 700; }

/* ==================== HOW IT WORKS ==================== */
.how-it-works { padding: 120px 0; background: var(--bg-secondary); }
.steps-container { max-width: 700px; margin: 0 auto; }
.step {
    display: grid; grid-template-columns: auto 1fr auto; gap: 24px;
    align-items: center; padding: 32px; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border-color);
    transition: var(--transition);
}
.step:hover { border-color: rgba(59,130,246,0.3); box-shadow: var(--shadow-glow); }
.step-number {
    font-size: 2.5rem; font-weight: 900;
    background: var(--gradient-main); -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; line-height: 1;
}
.step-content h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.step-content p { color: var(--text-secondary); font-size: 0.9rem; }
.step-icon-box {
    width: 64px; height: 64px; border-radius: 16px;
    background: var(--gradient-subtle); border: 1px solid rgba(59,130,246,0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-cyan);
}
.step-connector {
    width: 2px; height: 40px; margin: 0 auto;
    background: linear-gradient(to bottom, var(--accent-blue), transparent);
}

/* ==================== ABOUT ==================== */
.about { padding: 120px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-content .section-title { text-align: left; }
.about-text { color: var(--text-secondary); font-size: 1rem; margin-bottom: 16px; line-height: 1.8; }
.about-values { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.value {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 16px; border-radius: var(--radius);
    background: var(--bg-glass); border: 1px solid var(--border-color);
    transition: var(--transition);
}
.value:hover { border-color: rgba(59,130,246,0.3); }
.value-icon { font-size: 1.5rem; flex-shrink: 0; }
.value h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.value p { font-size: 0.85rem; color: var(--text-secondary); }

.about-card {
    border-radius: var(--radius-lg); overflow: hidden;
    background: var(--bg-card); border: 1px solid var(--border-color);
    box-shadow: var(--shadow-glow);
}
.about-card-inner { padding: 40px; }
.metrics-display { text-align: center; margin-bottom: 32px; }
.metric-ring { position: relative; width: 160px; height: 160px; margin: 0 auto 16px; }
.metric-ring svg { width: 100%; height: 100%; }
.metric-value {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 2rem; font-weight: 900;
    background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.metric-label { color: var(--text-secondary); font-size: 0.9rem; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.mini-stat { padding: 16px; border-radius: var(--radius); background: var(--bg-glass); border: 1px solid var(--border-color); }
.mini-stat-value { display: block; font-size: 1.3rem; font-weight: 800; color: var(--accent-cyan); }
.mini-stat-label { font-size: 0.75rem; color: var(--text-muted); }

/* ==================== CONTACT ==================== */
.contact { padding: 120px 0; background: var(--bg-secondary); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
    display: flex; align-items: center; gap: 16px;
    padding: 20px; border-radius: var(--radius);
    background: var(--bg-card); border: 1px solid var(--border-color);
    transition: var(--transition); cursor: pointer;
}
.contact-card:hover { border-color: rgba(59,130,246,0.3); transform: translateX(4px); }
.contact-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: var(--gradient-subtle); border: 1px solid rgba(59,130,246,0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-cyan); flex-shrink: 0;
}
.contact-card h4 { font-size: 1rem; font-weight: 700; }
.contact-card p { font-size: 0.9rem; color: var(--text-secondary); }

.contact-form {
    padding: 36px; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border-color);
}
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.form-group input, .form-group textarea {
    width: 100%; padding: 14px 16px; border-radius: 10px;
    background: var(--bg-glass); border: 1px solid var(--border-color);
    color: var(--text-primary); font-family: inherit; font-size: 0.95rem;
    transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--accent-blue); box-shadow: 0 0 0 3px rgba(59,130,246,0.1); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }

/* ==================== FOOTER ==================== */
.footer { padding: 80px 0 32px; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 16px; max-width: 300px; }
.footer-links-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-links-col ul { list-style: none; }
.footer-links-col li { margin-bottom: 10px; }
.footer-links-col a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-links-col a:hover { color: var(--accent-cyan); }
.footer-bottom { padding-top: 32px; border-top: 1px solid var(--border-color); text-align: center; }
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); }

/* ==================== ANIMATIONS ==================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin: 0 auto 36px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { margin-top: 40px; }
    .floating-card { display: none; }
    .services-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .about-grid { grid-template-columns: 1fr; }
    .about-content .section-title { text-align: center; }
    .about-text { text-align: center; }
    .about-values { align-items: center; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .step { grid-template-columns: auto 1fr; }
    .step-visual { display: none; }
}

@media (max-width: 640px) {
    .nav-links {
        display: none; position: fixed; top: 0; right: 0;
        width: 280px; height: 100vh; flex-direction: column;
        background: rgba(10, 22, 40, 0.98); backdrop-filter: blur(20px);
        padding: 80px 32px 32px; gap: 8px;
        border-left: 1px solid var(--border-color);
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: flex; z-index: 1001; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .stat-divider { display: none; }
    .hero-actions { flex-direction: column; align-items: center; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .phone-mockup { width: 260px; }
    .hero-scroll-indicator { display: none; }
}
