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

:root {
  --color-bg-base: #f8fafc;
  --color-bg-surface: #f1f5f9;
  --color-bg-elevated: #ffffff;
  --color-border: rgba(15, 23, 42, 0.08);
  --color-border-hover: rgba(37, 99, 235, 0.2);
  --color-text-primary: #0f172a;
  --color-text-secondary: #334155;
  --color-text-muted: #64748b;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-accent-soft: rgba(37, 99, 235, 0.05);
  --ease-in-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--color-bg-base);
  color: var(--color-text-secondary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--color-text-primary);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-base);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

.bg-mesh-grid-premium {
  background-size: 60px 60px;
  background-image: 
    linear-gradient(to right, rgba(37, 99, 235, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.02) 1px, transparent 1px);
}

.gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}

.blob-blue {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(96, 165, 250, 0.04) 70%);
  top: -100px;
  left: -100px;
  animation: floatSlow 15s ease-in-out infinite alternate;
}

.blob-indigo {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.11) 0%, rgba(129, 140, 248, 0.03) 70%);
  bottom: 10%;
  right: -200px;
  animation: floatSlow 20s ease-in-out infinite alternate-reverse;
}

.blob-purple {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.08) 0%, rgba(192, 132, 252, 0.02) 70%);
  top: 35%;
  left: 25%;
  animation: floatSlow 18s ease-in-out infinite alternate;
}

.glass-panel-premium {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  transition: all 0.5s var(--ease-in-out-expo);
}

.glass-panel-premium-interactive {
  transition: all 0.5s var(--ease-in-out-expo);
}

.glass-panel-premium-interactive:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.08), 0 0 40px -5px rgba(37, 99, 235, 0.05);
}

.nav-underline {
  position: relative;
  transition: color 0.25s ease;
  color: var(--color-text-secondary) !important;
}
.nav-underline::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-accent);
  transform-origin: bottom right;
  transition: transform 0.3s var(--ease-in-out-expo);
}
.nav-underline:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}
.nav-underline:hover {
  color: var(--color-accent) !important;
}

.nav-active {
  color: var(--color-accent) !important;
  font-weight: 700;
}
.nav-active::after {
  transform: scaleX(1) !important;
}

.body-link {
  color: var(--color-accent);
  font-weight: 600;
  transition: color 0.25s ease;
}
.body-link:hover {
  color: var(--color-accent-hover);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-in-out-expo), opacity 0.3s ease;
  opacity: 0;
}
.faq-item.active .faq-content {
  max-height: 450px;
  opacity: 1;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
}
.faq-icon {
  transition: transform 0.3s var(--ease-in-out-expo);
}

#carousel-quote-box {
  transition: opacity 0.5s ease-in-out;
}

#main-header.scrolled {
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.02);
}

.form-input-focus:focus {
  outline: none;
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.logo-item {
  color: #475569;
  opacity: 0.65;
  transition: all 0.4s var(--ease-in-out-expo);
  font-size: 1rem;
}
.logo-item:hover {
  opacity: 1;
  color: var(--color-accent);
  transform: translateY(-2px);
}

@keyframes floatSlow {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(0.5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.pulse-dot {
  position: relative;
}
.pulse-dot::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  border-radius: inherit;
  animation: pulseDot 2s ease-out infinite;
  z-index: -1;
}

@keyframes pulseDot {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3.5); opacity: 0; }
}

.text-glow {
  text-shadow: 0 0 40px rgba(37, 99, 235, 0.12);
}

.calc-input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.calc-input-group::before {
  content: '$';
  position: absolute;
  left: 14px;
  font-weight: 600;
  color: #94a3b8;
  font-size: 0.875rem;
  pointer-events: none;
}

.calc-input {
  padding-left: 28px !important;
  display: block;
}

.search-suggestions {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.3s var(--ease-in-out-expo);
}
.search-suggestions.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.spinner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.mediator-node {
  transition: all 0.8s var(--ease-in-out-expo);
}

.mediator-node-active {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 35px rgba(59, 130, 246, 0.35), 0 0 0 4px rgba(59, 130, 246, 0.12);
  transform: scale(1.05);
}

.mediator-node-active .mediator-subtext {
  color: #94a3b8 !important;
}

.mediator-node-active i {
  color: #60a5fa !important;
}

#node-yurdu.mediator-node-active span {
  color: #ffffff !important;
}

.mediator-connection {
  transition: all 0.8s ease;
  stroke-dasharray: 6 6;
}

.mediator-connection-active {
  stroke: #2563eb !important;
  stroke-dasharray: 6;
  animation: dashShift 12s linear infinite;
  opacity: 1 !important;
}

@keyframes dashShift {
  to {
    stroke-dashoffset: -400;
  }
}

.stat-card-premium {
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #ffffff;
  transition: all 0.6s var(--ease-in-out-expo);
  position: relative;
  overflow: hidden;
}

.stat-card-premium:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.06);
}

.stat-card-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.stat-card-premium:hover::before {
  opacity: 1;
}

.ticker-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  background: #ffffff;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.ticker-track {
  display: inline-flex;
  gap: 1.5rem;
  animation: scrollTicker 45s linear infinite;
  will-change: transform;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes scrollTicker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-33.333%, 0, 0); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--color-bg-base);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s var(--ease-in-out-expo);
  flex-shrink: 0;
}

.ticker-item:hover {
  border-color: var(--color-accent);
  background: rgba(37, 99, 235, 0.02);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.05);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
}

.modal-box {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 50px 100px -20px rgba(15, 23, 42, 0.15);
  max-width: 450px;
  width: 90%;
  border-radius: 1.5rem;
  padding: 2.25rem;
  transform: scale(0.9);
  transition: transform 0.35s var(--ease-in-out-expo);
}

.modal-backdrop.active {
  opacity: 1;
}

.modal-backdrop.active .modal-box {
  transform: scale(1);
}
