/* =============================================
   FENVIC FINANCIAL — GLOBAL STYLESHEET
   Brand: Slate #0F2027 | Cyan #00D4FF | Deep Cyan #0099BB
   Fonts: Sora (headings) + DM Sans (body)
============================================= */

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

:root {
  --navy:       #0F2027;
  --navy-mid:   #162B38;
  --navy-light: #1E3A4A;
  --cyan:       #00D4FF;
  --cyan-dark:  #0099BB;
  --cyan-pale:  #E0F8FF;
  --ice:        #F0FBFF;
  --white:      #FFFFFF;
  --gray-100:   #F5F7F9;
  --gray-200:   #E8ECF0;
  --gray-400:   #9AABB8;
  --gray-600:   #5A6E7A;
  --gray-800:   #2E3E47;
  --font-head:  'Sora', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --shadow-sm:  0 2px 8px rgba(0,212,255,0.08);
  --shadow-md:  0 8px 32px rgba(15,32,39,0.12);
  --shadow-lg:  0 20px 60px rgba(15,32,39,0.18);
  --transition: all 0.28s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { margin-bottom: 1rem; }
a { color: var(--cyan-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--cyan); }
ul { list-style: none; }

/* ---- LAYOUT ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ---- NAVIGATION ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15,32,39,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,212,255,0.1);
  transition: var(--transition);
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.2); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 0 auto; padding: 0 2rem; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-icon { width: 38px; height: 38px; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-logo-name { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--white); letter-spacing: 0.02em; line-height: 1; }
.nav-logo-sub { font-size: 0.62rem; color: var(--cyan); letter-spacing: 0.22em; text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-links a { color: rgba(255,255,255,0.75); font-size: 0.88rem; font-weight: 500; padding: 0.5rem 0.85rem; border-radius: var(--radius-sm); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(0,212,255,0.1); }
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--navy-mid); border: 1px solid rgba(0,212,255,0.12);
  border-radius: var(--radius-md); padding: 0.5rem; min-width: 220px;
  box-shadow: var(--shadow-lg);
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; color: rgba(255,255,255,0.8); font-size: 0.85rem; padding: 0.55rem 0.85rem; border-radius: var(--radius-sm); white-space: nowrap; }
.nav-dropdown-menu a:hover { color: var(--cyan); background: rgba(0,212,255,0.08); }
.nav-cta { background: var(--cyan); color: var(--navy) !important; font-weight: 600 !important; padding: 0.55rem 1.2rem !important; border-radius: var(--radius-sm) !important; margin-left: 0.5rem; }
.nav-cta:hover { background: #33DDFF !important; color: var(--navy) !important; }
.nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-burger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.nav-mobile { display: none; background: var(--navy-mid); border-top: 1px solid rgba(0,212,255,0.1); padding: 1rem 2rem 1.5rem; }
.nav-mobile a { display: block; color: rgba(255,255,255,0.8); padding: 0.65rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.95rem; }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .nav-cta { background: var(--cyan); color: var(--navy) !important; text-align: center; border-radius: var(--radius-sm); margin-top: 0.75rem; padding: 0.75rem !important; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 0.9rem; font-weight: 600;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-sm);
  border: none; cursor: pointer; text-decoration: none;
  transition: var(--transition); white-space: nowrap; letter-spacing: 0.01em;
}
.btn-primary { background: var(--cyan); color: var(--navy); }
.btn-primary:hover { background: #33DDFF; color: var(--navy); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,212,255,0.3); }
.btn-secondary { background: transparent; color: var(--white); border: 1.5px solid rgba(0,212,255,0.5); }
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-mid); color: var(--cyan); }
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.82rem; }

/* ---- HERO ---- */
.hero {
  background: var(--navy);
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 72px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0,212,255,0.08) 0%, transparent 60%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0,153,187,0.06) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: linear-gradient(rgba(0,212,255,0.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,212,255,0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.2); color: var(--cyan); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.4rem 1rem; border-radius: 100px; margin-bottom: 1.5rem; }
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--cyan); border-radius: 50%; animation: pulse 2s infinite; }
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 span { color: var(--cyan); }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,0.65); max-width: 560px; margin-bottom: 2.25rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero-stat-num { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--white); line-height: 1; }
.hero-stat-num span { color: var(--cyan); }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-top: 4px; letter-spacing: 0.05em; }

/* ---- SECTION HEADERS ---- */
.section-tag { display: inline-block; background: var(--cyan-pale); color: var(--cyan-dark); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.35rem 1rem; border-radius: 100px; margin-bottom: 1rem; }
.section-header { max-width: 640px; }
.section-header.center { text-align: center; margin: 0 auto 3.5rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--gray-600); font-size: 1.05rem; }

/* ---- CARDS ---- */
.card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); padding: 2rem; transition: var(--transition); }
.card:hover { border-color: rgba(0,153,187,0.3); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card-icon { width: 52px; height: 52px; background: var(--cyan-pale); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.card-icon svg { width: 26px; height: 26px; color: var(--cyan-dark); }
.card h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.card p { color: var(--gray-600); font-size: 0.92rem; line-height: 1.65; margin: 0; }

/* ---- PRODUCT CARDS ---- */
.product-card {
  background: var(--navy); border-radius: var(--radius-lg);
  border: 1px solid rgba(0,212,255,0.12); padding: 2rem;
  transition: var(--transition); text-decoration: none; display: block;
}
.product-card:hover { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 16px 48px rgba(0,212,255,0.15); transform: translateY(-4px); }
.product-card .card-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 0.75rem; }
.product-card h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 0.75rem; }
.product-card p { color: rgba(255,255,255,0.55); font-size: 0.9rem; line-height: 1.65; margin-bottom: 1.25rem; }
.product-card .learn-more { font-size: 0.85rem; font-weight: 600; color: var(--cyan); display: flex; align-items: center; gap: 6px; transition: var(--transition); }
.product-card:hover .learn-more { gap: 10px; }

/* ---- GRID LAYOUTS ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ---- DARK SECTION ---- */
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.6); }
.section-dark .section-tag { background: rgba(0,212,255,0.1); color: var(--cyan); }

/* ---- PROCESS STEPS ---- */
.step { display: flex; gap: 1.5rem; align-items: flex-start; }
.step-num { flex-shrink: 0; width: 48px; height: 48px; background: var(--cyan); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--navy); }
.step-content h4 { margin-bottom: 0.4rem; }
.step-content p { color: var(--gray-600); font-size: 0.92rem; margin: 0; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-question { width: 100%; background: none; border: none; text-align: left; padding: 1.4rem 0; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--navy); gap: 1rem; }
.faq-question:hover { color: var(--cyan-dark); }
.faq-icon { flex-shrink: 0; width: 24px; height: 24px; background: var(--cyan-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.faq-icon svg { width: 12px; height: 12px; color: var(--cyan-dark); transition: var(--transition); }
.faq-item.open .faq-icon { background: var(--cyan); }
.faq-item.open .faq-icon svg { color: var(--navy); transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 0 1.4rem; color: var(--gray-600); font-size: 0.95rem; line-height: 1.75; }
.faq-item.open .faq-answer { display: block; }

/* ---- BLOG ---- */
.blog-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); overflow: hidden; transition: var(--transition); text-decoration: none; display: block; }
.blog-card:hover { border-color: rgba(0,153,187,0.3); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-card-img { height: 200px; background: var(--navy); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.blog-card-img::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(0,212,255,0.12), transparent 70%); }
.blog-card-cat { position: absolute; top: 1rem; left: 1rem; background: var(--cyan); color: var(--navy); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: 100px; z-index: 1; }
.blog-card-body { padding: 1.5rem; }
.blog-card-meta { font-size: 0.78rem; color: var(--gray-400); margin-bottom: 0.65rem; }
.blog-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 0.5rem; line-height: 1.35; }
.blog-card p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.6; margin: 0; }

/* ---- TESTIMONIALS ---- */
.testimonial { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--gray-200); }
.testimonial-quote { font-size: 1rem; color: var(--gray-600); line-height: 1.7; font-style: italic; margin-bottom: 1.25rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; background: var(--cyan-pale); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--cyan-dark); }
.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--navy); }
.testimonial-title { font-size: 0.78rem; color: var(--gray-400); }
.stars { color: #F0A500; font-size: 0.85rem; margin-bottom: 1rem; }

/* ---- CTA BAND ---- */
.cta-band { background: var(--navy); padding: 5rem 0; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,212,255,0.07), transparent 70%); }
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.55); margin-bottom: 2rem; font-size: 1.05rem; }
.cta-band .btn-group { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ---- BADGE / TAG ---- */
.badge { display: inline-flex; align-items: center; padding: 0.3rem 0.8rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.badge-cyan { background: var(--cyan-pale); color: var(--cyan-dark); }
.badge-navy { background: var(--navy); color: var(--cyan); }

/* ---- BREADCRUMB ---- */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--gray-400); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--gray-400); }
.breadcrumb a:hover { color: var(--cyan-dark); }
.breadcrumb-sep { opacity: 0.4; }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero { background: var(--navy); padding: 9rem 0 5rem; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 60% at 80% 50%, rgba(0,212,255,0.07), transparent 60%); }
.page-hero-grid { position: absolute; inset: 0; opacity: 0.03; background-image: linear-gradient(rgba(0,212,255,0.5) 1px, transparent 1px), linear-gradient(90deg, rgba(0,212,255,0.5) 1px, transparent 1px); background-size: 60px 60px; }
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p { color: rgba(255,255,255,0.6); font-size: 1.1rem; max-width: 580px; }

/* ---- FOOTER ---- */
.footer { background: var(--navy); border-top: 1px solid rgba(0,212,255,0.1); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.88rem; line-height: 1.7; margin: 1rem 0 1.5rem; max-width: 280px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-social a:hover { background: rgba(0,212,255,0.1); border-color: var(--cyan); color: var(--cyan); }
.footer-col h5 { font-family: var(--font-head); font-size: 0.85rem; font-weight: 700; color: var(--white); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.45); font-size: 0.88rem; padding: 0.3rem 0; transition: var(--transition); }
.footer-col a:hover { color: var(--cyan); padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 1.75rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-copy { font-size: 0.82rem; color: rgba(255,255,255,0.3); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.82rem; color: rgba(255,255,255,0.3); }
.footer-legal a:hover { color: var(--cyan); }

/* ---- UTILITY ---- */
.text-cyan { color: var(--cyan); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.text-muted { color: var(--gray-400); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 2rem 0; }

/* ---- HIGHLIGHT BOX ---- */
.highlight-box { background: var(--cyan-pale); border-left: 4px solid var(--cyan); border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.highlight-box p { margin: 0; color: var(--navy); font-weight: 500; }

/* ---- TABLE ---- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: var(--navy); color: var(--white); font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; padding: 1rem 1.25rem; text-align: left; }
.data-table td { padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-200); font-size: 0.92rem; color: var(--gray-600); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-100); }

/* ---- ANIMATIONS ---- */
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(0.85)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.animate-fadeup { animation: fadeUp 0.6s ease both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ---- BLOG POST ---- */
.blog-post-content { max-width: 760px; margin: 0 auto; }
.blog-post-content h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; color: var(--navy); }
.blog-post-content h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; color: var(--navy); }
.blog-post-content p { color: var(--gray-600); margin-bottom: 1.25rem; line-height: 1.8; }
.blog-post-content ul, .blog-post-content ol { margin: 0 0 1.25rem 1.5rem; list-style: disc; color: var(--gray-600); line-height: 1.8; }
.blog-post-content li { margin-bottom: 0.4rem; }
.blog-post-content strong { color: var(--navy); font-weight: 600; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile.open { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 3.5rem 0; }
  .page-hero { padding: 8rem 0 3.5rem; }
}
@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero-actions { flex-direction: column; }
  .cta-band .btn-group { flex-direction: column; align-items: center; }
}
