@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Sora:wght@600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
section[id] { scroll-margin-top: 88px; }

:root {
    --bs-blue-dark: #00245c;
    --bs-blue-medium: #0b5ac8;
    --bs-yellow: #fdbe51;
    --bs-gray-light: #eef4ff;
    --bs-font-heading: 'Sora', sans-serif;
    --bs-font-body: 'Roboto', sans-serif;
    --lead-navy-dark: #07162c;
    --lead-navy: #002b49;
    --lead-blue-primary: #003366;
    --lead-blue-mid: #0f4c81;
    --lead-blue-light: #e8f1f8;
    --lead-blue-border: #bfdbfe;
    --lead-orange: #fdbe51;
    --lead-orange-hover: #e5ab43;
    --lead-orange-light: #fff3eb;
    --lead-orange-border: #ffd1b3;
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-500: #64748b;
    --color-slate-400: #94a3b8;
    --color-slate-300: #cbd5e1;
    --color-slate-100: #f1f5f9;
    --color-slate-50: #f8fafc;
    --color-emerald: #10b981;
    --color-cyan: #38bdf8;
}

body {
    margin: 0;
    font-family: var(--bs-font-body);
    color: #0e326f;
    background-color: var(--bs-gray-light);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection { background-color: var(--lead-orange); color: #ffffff; }

/* Navbar */
.navbar { background-color: #ffffff; }
.navbar-light .navbar-nav .nav-link { color: #373737; }
.navbar-light .navbar-nav .nav-link:hover, .navbar-light .navbar-nav .nav-link.active { color: var(--bs-yellow); }
.navbar-brand { color: #0b356f; border-radius: 12px; padding: 8px 10px; }
h1, h2, h3, h4, h5, h6, .navbar-brand { font-family: var(--bs-font-heading); font-weight: 700; }
.navbar-brand .brand-logo { height: 40px; width: auto; display: inline-block; }

@media (max-width: 991.98px) {
    .navbar-collapse { padding-top: 1rem; }
    .navbar-nav { gap: 0.25rem !important; margin-bottom: 1rem; }
    .navbar-nav .nav-link { padding: 0.65rem 0.75rem; }
    .navbar-collapse > .btn-blue-gradient { display: block; width: 100%; }
}

.btn-blue-gradient {
    background: linear-gradient(180deg, #0b5ac8 0%, #00245c 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 26px;
    font-weight: 700;
    font-family: var(--bs-font-heading);
    transition: all 0.25s ease;
}
.btn-blue-gradient:hover {
    opacity: 0.96;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11, 90, 200, 0.28);
    color: #fdbe51;
}

/* Layout Utilities */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 1024px; margin: 0 auto; padding: 0 1.5rem; }
.container-form { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.font-bold { font-weight: 700; }
.italic-text { font-style: italic; }
.text-white { color: #ffffff; }
.text-orange { color: var(--lead-orange); }
.text-cyan { color: var(--color-cyan); }
.text-green { color: var(--color-emerald); }
.section { padding: 5rem 0; }
.bg-white { background-color: #ffffff; }
.bg-light { background-color: rgba(241, 245, 249, 0.7); }
.border-top { border-top: 1px solid #e2e8f0; }

.heading-lg {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--lead-blue-primary);
    margin-bottom: 1rem;
    line-height: 1.25;
}
.desc-muted {
    font-size: 1.125rem;
    color: var(--color-slate-600);
    max-width: 768px;
    margin: 0 auto;
}
.sub-badge {
    color: var(--lead-orange);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 0.75rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease-in-out;
}
.btn-primary { background-color: #012845; color: #ffffff; }
.btn-primary:hover { background-color: var(--lead-orange-hover); transform: translateY(-1px); }
.btn-secondary { background-color: #fdbe51; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.25); }
.btn-secondary:hover { background-color: rgba(255, 255, 255, 0.15); }
.btn-navy { background-color: var(--lead-blue-primary); color: #ffffff; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-navy:hover { background-color: #fdbe51; }
.flex-btn { flex: 1; width: 100%; }

/* Hero */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--lead-navy-dark) 0%, var(--lead-navy) 60%, var(--lead-blue-primary) 100%);
    color: #ffffff;
    padding: 5.5rem 0 7rem;
}
.hero-grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image: radial-gradient(var(--lead-orange) 1.5px, transparent 1.5px);
    background-size: 26px 26px;
    animation: gridMovement 25s linear infinite;
    pointer-events: none;
}
.hero-container { position: relative; z-index: 10; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }

@media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; } }

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 102, 0, 0.12);
    border: 1px solid rgba(255, 102, 0, 0.35);
    color: #ff944d;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}
.pulse-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--lead-orange);
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.hero-title { font-size: 2.25rem; font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .hero-title { font-size: 2.75rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 3.25rem; } }
.accent-orange { color: var(--lead-orange); }
.hero-desc-primary { font-size: 1.125rem; color: #e2e8f0; margin-bottom: 1rem; }
.hero-desc-secondary { font-size: 1rem; color: #94a3b8; font-weight: 300; margin-bottom: 2rem; }
.hero-cta-group { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 0.75rem; }
@media (min-width: 640px) { .hero-cta-group { flex-direction: row; } }
.hero-microcopy { font-size: 0.75rem; color: #94a3b8; font-style: italic; }

/* Simulation App Window */
.hero-software-preview { position: relative; max-width: 480px; margin: 0 auto; width: 100%; }
.app-glow {
    position: absolute;
    inset: -5px;
    background: linear-gradient(135deg, var(--lead-orange), var(--lead-blue-mid));
    border-radius: 1rem;
    filter: blur(14px);
    opacity: 0.3;
}
.app-window {
    position: relative;
    background-color: #051329;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
.app-header {
    background-color: rgba(2, 12, 28, 0.95);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.window-controls { display: flex; align-items: center; gap: 0.35rem; }
.dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; }
.dot-red { background-color: #f43f5e; }
.dot-yellow { background-color: #f59e0b; }
.dot-green { background-color: #10b981; }
.window-title { margin-left: 0.5rem; font-size: 0.7rem; color: #94a3b8; font-family: monospace; }
.live-status { display: flex; align-items: center; gap: 0.4rem; }
.radar-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background-color: var(--color-emerald); animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite; }
.live-label { font-size: 0.625rem; color: var(--color-emerald); font-family: monospace; font-weight: 700; }
.app-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }

/* Next.js Lighthouse & SSR Cockpit Simulation Specifics */
.next-lighthouse-cockpit {
    background: #030f21;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
}
.cockpit-title { font-size: 9px; font-weight: 800; color: #94a3b8; letter-spacing: 0.05em; }
.badge-perf {
    font-size: 9px;
    background: rgba(16, 185, 129, 0.18);
    color: var(--color-emerald);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
}
.lighthouse-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.lh-metric {
    background: #0b1f3d;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 6px;
    border-radius: 6px;
    text-align: center;
}
.lh-val { font-size: 13px; font-weight: 800; display: block; font-family: monospace; }
.lh-lbl { font-size: 8.5px; color: #94a3b8; text-transform: uppercase; font-weight: 700; }

.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.metric-card { background-color: #0b1f3d; border: 1px solid rgba(255, 255, 255, 0.08); padding: 0.75rem; border-radius: 0.75rem; }
.metric-label { font-size: 0.625rem; text-transform: uppercase; font-weight: 700; color: #94a3b8; display: block; margin-bottom: 0.25rem; }
.metric-val-row { display: flex; justify-content: space-between; align-items: center; }
.metric-val { font-size: 1rem; font-weight: 800; color: #ffffff; }
.status-tag { font-size: 0.625rem; padding: 0.15rem 0.4rem; border-radius: 0.35rem; }
.status-green { color: var(--color-emerald); }
.status-sub { font-size: 0.625rem; color: #ffb380; }

.event-stream { display: flex; flex-direction: column; gap: 0.5rem; }
.stream-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(11, 31, 61, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-family: monospace;
    font-size: 0.75rem;
    color: #cbd5e1;
}
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.time-label { font-size: 0.625rem; color: #64748b; flex-shrink: 0; }

@keyframes streamPing {
    0%, 100% { border-color: rgba(255, 255, 255, 0.06); }
    50% { border-color: var(--color-cyan); }
}
.animate-stream-ping { animation: streamPing 2.5s infinite; }

.app-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 0.5rem; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.7rem; color: #94a3b8; }
.gps-status { display: flex; align-items: center; gap: 0.4rem; }
.tiny-dot { width: 0.375rem; height: 0.375rem; border-radius: 50%; background-color: var(--color-cyan); }
.sync-text { color: #64748b; }

/* Next.js Body Unique Component Styles */
.challenges-box {
    background-color: var(--lead-orange-light);
    border: 1px solid var(--lead-orange-border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    margin: 2.5rem 0;
}
.challenges-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) {
    .challenges-grid { grid-template-columns: 1fr 1fr; }
}
.challenge-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background-color: #ffffff;
    border: 1px solid #fed7aa;
    padding: 1.25rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-slate-700);
}
.bullet { color: var(--lead-orange); font-size: 1.25rem; line-height: 1; font-weight: 900; }

.next-service-box {
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(11, 90, 200, 0.04);
}
.next-service-box:hover {
    border-color: var(--lead-orange);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(11, 90, 200, 0.08);
}
.next-svc-ico {
    font-size: 1.8rem;
    color: var(--lead-blue-primary);
    background: var(--lead-blue-light);
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.badge-tag {
    display: inline-block;
    background: var(--lead-orange-light);
    color: #b45309;
    border: 1px solid var(--lead-orange-border);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
}

/* Reasons */
.reasons-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px) { .reasons-grid { grid-template-columns: 1fr 1fr; } }
.reason-card { display: flex; gap: 1rem; }
.check-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--lead-orange-light);
    color: var(--lead-orange);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.reason-title { font-size: 1rem; font-weight: 700; color: var(--lead-blue-primary); margin-bottom: 0.25rem; }
.reason-desc { font-size: 0.875rem; color: var(--color-slate-600); }

/* Form Section */
.action-section { background: #ffffff; padding: 5.5rem 0 6.5rem; position: relative; }
.contact-layout { max-width: 1180px; }
.contact-copy { align-self: center; }
.contact-copy .heading-lg { color: var(--lead-blue-primary) !important; }
.action-intro-text { color: var(--color-slate-600); font-size: 1.125rem; font-weight: 300; margin: 1.5rem 0 2.5rem; max-width: 640px; }
.form-container {
    background-color: var(--lead-blue-primary);
    border: 1px solid var(--lead-blue-primary);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 18px 40px rgba(0, 51, 102, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}
@media (min-width: 640px) { .form-container { padding: 2.5rem; } }
.form-container h4 { color: #ffffff !important; }
.form-group { margin-bottom: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-label { display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #ffffff; margin-bottom: 0.4rem; }
.form-control {
    width: 100%;
    background-color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus { outline: none; border-color: var(--lead-orange); box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2); }
.form-actions { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
@media (min-width: 640px) { .form-actions { flex-direction: row; } }
.form-note { font-size: 0.75rem; color: var(--color-slate-600); margin-bottom: 0.5rem; }
.privacy-note { font-size: 0.7rem; color: var(--color-slate-500); }

@media (min-width: 900px) {
    .contact-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 4rem; align-items: center; }
    .form-container { margin-bottom: 0; }
}

/* Keyframes */
@keyframes floatAnimation { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes gridMovement { 0% { background-position: 0 0; } 100% { background-position: 30px 30px; } }
@keyframes glowEffect { 0%, 100% { box-shadow: 0 0 15px rgba(253, 190, 81, 0.35); } 50% { box-shadow: 0 0 25px rgba(253, 190, 81, 0.65); } }
@keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }

.float-animation { animation: floatAnimation 5s ease-in-out infinite; }
.cta-glow { animation: glowEffect 3s ease-in-out infinite; }

/* =========================================================
   FOOTER & UPDATED SOCIAL ICONS (WHITE BG -> BRAND COLOR HOVER)
   ========================================================= */

.footer-main { background-color: #042e61; color: #e8eefc; padding: 50px 0 30px; }
.footer-main h6 { font-size: 1rem; margin-bottom: 4px; }
.footer-main p { font-size: 0.85rem; margin-bottom: 2px; color: #d0d7de; }
.footer-icon, .footer-icon img { width: 50px; height: 50px; }
.footer-icon { display: inline-flex; align-items: center; justify-content: center; margin-right: 15px; }

.social-box {
    width: 40px;
    height: 40px;
    background-color: #ffffff !important;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-box.facebook i   { color: #1877F2; transition: color 0.3s ease; }
.social-box.instagram i  { color: #E4405F; transition: color 0.3s ease; }
.social-box.twitter i    { color: #000000; transition: color 0.3s ease; }
.social-box.linkedin i   { color: #0A66C2; transition: color 0.3s ease; }
.social-box.pinterest i  { color: #E60023; transition: color 0.3s ease; }
.social-box.youtube i    { color: #FF0000; transition: color 0.3s ease; }

.social-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

.social-box.facebook:hover { background-color: #1877F2 !important; }
.social-box.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important; }
.social-box.twitter:hover { background-color: #000000 !important; }
.social-box.linkedin:hover { background-color: #0A66C2 !important; }
.social-box.pinterest:hover { background-color: #E60023 !important; }
.social-box.youtube:hover { background-color: #FF0000 !important; }

.social-box:hover i { color: #ffffff !important; }

.footer-main .social-row { padding-top: 30px; }
.cta-banner { background: rgb(253, 190, 81); padding: 20px 0; }
.footer-bottom { background-color: #021f42; padding: 15px 0; font-size: 0.85rem; color: #a0b2c6; }