/* ============================================================
   SolveFins Workflow — styles.css
   Design system: dark fintech, blue/teal accent, glassmorphism
   ============================================================ */

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

:root {
  --bg-base: #050d1e;
  --bg-surface: #071428;
  --bg-card: #0a1c38;
  --bg-glass: rgba(10, 28, 60, 0.55);

  --blue-900: #0D1F4E;
  --blue-700: #0A3AA0;
  --blue-500: #0A4FDB;
  --blue-400: #2D6FFF;
  --blue-300: #5A90FF;
  --blue-100: #B8CFFE;

  --green-500: #00F5C4;
  --green-400: #00D9AD;
  --green-300: #40E0B0;
  --green-200: #A0FDE8;

  --white: #f8fafc;
  --gray-100: #e8edf8;
  --gray-300: #8fa3c8;
  --gray-500: #4a5f82;
  --gray-700: #222e45;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --section-gap: 120px;
  --container: 1200px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--blue-500); border-radius: 3px; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: var(--section-gap) 0;
  position: relative;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p {
  color: var(--gray-300);
  line-height: 1.7;
}

.gradient-text {
  background: linear-gradient(135deg, var(--blue-400) 0%, var(--green-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-blue-green {
  background: linear-gradient(135deg, var(--blue-400), var(--green-500));
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-500);
  border: 1px solid rgba(0, 245, 196, 0.3);
  background: rgba(0, 245, 196, 0.08);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 72px;
}

.section-header h2 {
  margin-bottom: 16px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease-out);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-500));
  color: #fff;
  box-shadow: 0 4px 20px rgba(45, 111, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(45, 111, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
  border-color: var(--blue-400);
  color: var(--blue-400);
  background: rgba(45, 111, 255, 0.08);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 12px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s var(--ease-out);
}

.navbar.scrolled {
  background: rgba(5, 13, 30, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
}

.nav-logo-img {
  height: 44px;
  width: auto;
  margin-top: -12px;
  background: #FFFFFF;
  padding: 4px;
  border-radius: 5px;
}

.logo-text {
  font-weight: 800;
}

.logo-accent {
  color: var(--green-500);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-300);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--green-500);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: rgba(5, 13, 30, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: 100px 32px 32px;
  transition: right 0.4s var(--ease-out);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--green-500);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(10, 79, 219, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(0, 245, 196, 0.08) 0%, transparent 50%),
    var(--bg-base);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 111, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 111, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-headline {
  margin-bottom: 24px;
  max-width: 900px;
}

.hero-subheadline {
  margin-bottom: 40px;
  max-width: 650px;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-metrics {
  display: flex;
  gap: 32px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.metric-value {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue-400), var(--green-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-unit {
  font-size: 1.2rem;
  color: var(--gray-500);
  -webkit-text-fill-color: var(--gray-500);
}

.metric-label {
  display: block;
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.metric-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* ===== CARDS & GRIDS ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 36px 28px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-400), var(--green-500));
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  border-color: rgba(45, 111, 255, 0.25);
  transform: translateY(-6px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(45, 111, 255, 0.08);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.92rem;
}

/* ===== MODULES GRID ===== */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 32px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-400), var(--green-500));
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.module-card.large {
  grid-column: 1 / -1;
}

.module-card:hover::before {
  opacity: 1;
}

.module-card:hover {
  border-color: rgba(45, 111, 255, 0.25);
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.3),
    0 4px 16px rgba(45, 111, 255, 0.06);
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.module-card h3 {
  margin-bottom: 8px;
}

.module-card p {
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.module-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gray-300);
}

.module-features li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== BENEFITS / WHY SECTION ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.benefit-card {
  background: rgba(10, 28, 56, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-400), var(--green-500));
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-card:hover {
  border-color: rgba(0, 245, 196, 0.2);
  transform: translateY(-4px);
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.25),
    0 2px 10px rgba(0, 245, 196, 0.06);
}

.benefit-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--blue-400), var(--green-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.benefit-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.benefit-card p {
  font-size: 0.85rem;
}

/* ===== PIPELINE / HOW IT WORKS ===== */
.pipeline-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pipeline-step {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: rgba(10, 28, 60, 0.3);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.pipeline-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-400), var(--green-500));
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.pipeline-step:hover::before {
  opacity: 1;
}

.pipeline-step:hover {
  border-color: rgba(45, 111, 255, 0.2);
  background: rgba(10, 28, 60, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.step-num {
  font-family: var(--font-mono);
  color: var(--green-500);
  font-weight: 700;
  font-size: 1.2rem;
  min-width: 40px;
}

.step-content h4 {
  margin-bottom: 6px;
}

.step-content p {
  font-size: 0.9rem;
}

.step-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.step-tech span {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(45, 111, 255, 0.1);
  border: 1px solid rgba(45, 111, 255, 0.15);
  color: var(--blue-300);
  font-family: var(--font-mono);
}

/* ===== CAPABILITIES SUB-HEADING ===== */
.capabilities-subhead {
  text-align: center;
  margin: 60px 0 32px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gray-300);
}

/* ===== CTA ===== */
.cta-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card {
  background: var(--bg-card);
  border: 1px solid rgba(45, 111, 255, 0.2);
  border-radius: 32px;
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(45, 111, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
}

.cta-card p {
  font-size: 1.1rem;
  color: var(--gray-300);
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ===== ARCHITECTURE ===== */
.arch-diagram {
  background: rgba(7, 20, 40, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 40px;
}

.arch-layer {
  margin-bottom: 32px;
}

.arch-layer:last-child {
  margin-bottom: 0;
}

.layer-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gray-500);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.layer-nodes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.arch-node {
  background: var(--bg-card);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.85rem;
  transition: all 0.3s;
}

.arch-node:hover {
  background: var(--blue-500);
  color: #fff;
  transform: scale(1.05);
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #000;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 30px;
}

.footer-brand p {
  font-size: 0.85rem;
  margin-top: 12px;
  max-width: 320px;
}

.footer-logo {
  font-size: 1rem;
}

.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--green-500);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: all 0.25s;
}

.footer-social a:hover {
  background: rgba(45, 111, 255, 0.15);
  color: var(--blue-400);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* ===== TOAST ===== */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid rgba(45, 111, 255, 0.4);
  border-radius: 14px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s var(--ease-out);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(45, 111, 255, 0.15);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast svg {
  color: var(--green-500);
  flex-shrink: 0;
}

/* ===== ANIMATIONS ===== */
[data-animate="fadeUp"] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out);
}

[data-animate="fadeUp"].visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.float-anim {
  animation: float 6s var(--ease-out) infinite;
}

/* ===== SCROLLBAR ===== */
/* Same as base */

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .modules-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { --section-gap: 80px; }
  .container { padding: 0 20px; }

  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  .hero-metrics { flex-direction: column; gap: 16px; }
  .metric-divider { display: none; }

  .cta-card { padding: 48px 24px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { justify-content: center; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .pipeline-step { flex-direction: column; gap: 12px; }
  .modules-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(2rem, 8vw, 2.6rem); }
  h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .nav-container { padding: 16px 20px; }
}
