/* ============================================================
   FINSIMUL — Shared Stylesheet
   Design language: dark navy glassmorphism, blue/indigo accents
   ============================================================ */

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

/* === DESIGN TOKENS === */
:root {
  --bg-deep:        #0f172a;
  --bg-surface:     #1e3a5f;
  --accent-blue:    #38bdf8;
  --accent-indigo:  #818cf8;
  --text-muted:     #64748b;
  --text-body:      #e2e8f0;
  --glass-bg:       rgba(255, 255, 255, 0.04);
  --glass-border:   rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.16);
  --radius-card:    1.5rem;
  --radius-btn:     0.75rem;
  --radius-pill:    999px;
  --shadow-card:    0 4px 32px rgba(0, 0, 0, 0.4);
  --shadow-btn:     0 4px 20px rgba(56, 189, 248, 0.25);
  --transition:     0.2s ease;
  --header-height:  72px;
}

/* === BODY & BACKGROUND === */
html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-surface) 50%, var(--bg-deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-body);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: -1.5px; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.5px; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }

p {
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.75;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-indigo); }

.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent-blue); }

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -2px;
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-indigo) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between{ display: flex; align-items: center; justify-content: space-between; }
.flex-col    { display: flex; flex-direction: column; }
.gap-1       { gap: 0.5rem; }
.gap-2       { gap: 1rem; }
.gap-3       { gap: 1.5rem; }
.gap-4       { gap: 2rem; }
.text-center { text-align: center; }

/* === HEADER === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: var(--header-height);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo img {
  height: 38px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-body);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-body);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1.5rem;
  z-index: 99;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav ul a {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-body);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--glass-border);
}

.mobile-nav ul a:last-child { border-bottom: none; }
.mobile-nav ul a:hover { color: var(--accent-blue); }

.mobile-nav .btn-ghost {
  margin-top: 1rem;
  width: 100%;
  text-align: center;
}

body.nav-open .mobile-nav { display: block; }

body.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === FOOTER === */
.site-footer {
  background: rgba(15, 23, 42, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* === BUTTONS === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-indigo) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn);
  color: #fff;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  background: transparent;
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-btn);
  border: 1px solid rgba(56, 189, 248, 0.35);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  letter-spacing: 0.02em;
}

.btn-ghost:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.6);
  color: var(--accent-blue);
  transform: translateY(-1px);
}

.btn-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* === CARDS === */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-card);
}

.card-feature {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(10px);
  padding: 1.75rem;
  transition: border-color var(--transition), transform var(--transition);
}

.card-feature:hover {
  border-color: rgba(56, 189, 248, 0.2);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.card-feature h3 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.card-feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* === BADGES & PILLS === */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--accent-blue);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.badge-warning {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pill {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent-blue);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* === IMAGE PLACEHOLDERS === */
.img-placeholder {
  background: rgba(255, 255, 255, 0.03);
  border: 2px dashed rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 3rem 2rem;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.img-placeholder span {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.6;
}

.img-placeholder.img-hero {
  min-height: 320px;
}

/* === SECTIONS === */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-heading {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.section-subheading {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0.75rem;
  display: block;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.divider {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: 1.5rem 0;
}

/* === HERO === */
.home-hero {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0 5rem;
}

.home-hero-content {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.home-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--text-body) 0%, rgba(226,232,240,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.home-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.8;
}

.page-hero {
  padding: 5rem 0 3.5rem;
  text-align: center;
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* === DATA SOURCES STRIP === */
.sources-strip {
  padding: 2rem 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.015);
}

.sources-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.sources-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.sources-pills {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* === FEATURE GRID === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* === HOW IT WORKS === */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 1rem;
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.step-connector {
  align-self: center;
  padding-top: 0.5rem;
  color: var(--text-muted);
  font-size: 1.5rem;
}

/* === TESTIMONIALS === */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
}

.testimonial-card .quote {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.testimonial-card .attribution {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.testimonial-card .attribution strong {
  color: var(--text-body);
  display: block;
}

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg,
    rgba(56, 189, 248, 0.08) 0%,
    rgba(129, 140, 248, 0.08) 100%);
  border-top: 1px solid rgba(56, 189, 248, 0.12);
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  padding: 4rem 0;
  text-align: center;
}

.cta-banner h2 {
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* === SERVICES GRID === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: border-color var(--transition);
}

.service-item:hover {
  border-color: rgba(56, 189, 248, 0.2);
}

.service-item .service-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.service-item h3 {
  margin-bottom: 0.75rem;
}

.service-item ul {
  list-style: none;
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-item ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.service-item ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
}

/* === PRICING GRID === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pricing-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pricing-card.featured {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.05);
}

.pricing-tier {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
}

.pricing-card h3 {
  font-size: 1.5rem;
}

.pricing-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* === ABOUT PAGE === */
.mission-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem;
}

.mission-card blockquote {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.8;
  color: var(--text-body);
  font-style: italic;
  font-weight: 300;
}

.mission-card blockquote::before {
  content: '"';
  font-size: 4rem;
  line-height: 0;
  vertical-align: -1.5rem;
  color: var(--accent-blue);
  opacity: 0.4;
  margin-right: 0.25rem;
}

.problem-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  text-align: center;
}

.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid var(--glass-border);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--text-muted);
}

.team-card .name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.team-card .role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === SPLASH / HOLDING PAGES (login, contact) === */
.splash-wrap {
  min-height: calc(100vh - var(--header-height) - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.splash-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 3rem 3.5rem;
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.splash-card img {
  height: 48px;
  width: auto;
  margin-bottom: 1.5rem;
}

.splash-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.splash-card .splash-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.splash-card .splash-message {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 1.5rem 0;
}

.splash-card .splash-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.splash-card .btn-ghost,
.splash-card .btn-primary {
  width: 100%;
  justify-content: center;
}

.splash-meta {
  margin-top: 2rem;
  font-size: 0.7rem;
  color: rgba(30, 58, 95, 0.8);
  letter-spacing: 0.06em;
}

/* === ANIMATIONS === */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* === RESPONSIVE — TABLET (768px) === */
@media (max-width: 768px) {
  .site-nav .nav-links,
  .site-nav .btn-ghost { display: none; }
  .hamburger { display: flex; }

  .feature-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .step-connector { display: none; }

  .problem-section { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }

  .btn-group { justify-content: center; }

  .splash-card { padding: 2rem 1.5rem; }
}

/* === RESPONSIVE — MOBILE (480px) === */
@media (max-width: 480px) {
  :root { --header-height: 64px; }
  .home-hero h1 { letter-spacing: -1px; }
  .team-grid { grid-template-columns: 1fr; }
  .section { padding: 3rem 0; }
  .splash-card { padding: 2rem 1.25rem; }
}
