/* ================================================================
   UBS Bilişim - Static Site Styles
   ================================================================ */

/* Tailwind-like Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto; /* smooth scroll conflicts with GSAP ScrollTrigger */
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  color: #374151;
  line-height: 1.6;
}

section[id] { scroll-margin-top: 80px; }

::selection {
  background-color: rgba(29, 53, 87, 0.2);
  color: #1D3557;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }

/* ================================================================
   COLORS (CSS Custom Properties)
   ================================================================ */
:root {
  --primary: #1D3557;
  --primary-dark: #152a47;
  --accent: #E76F51;
  --accent-dark: #B8512F;
  --accent-hover: #d85a3f;
  --teal: #2A9D8F;
  --blue-mid: #457B9D;
  --light-blue: #A8DADC;
  --gold: #E9C46A;
  --bg-light: #f8f9fb;
  --bg-gray: #f3f4f6;
  --text-dark: #1D3557;
  --text-gray: #6b7280;
  --text-light: #9ca3af;
  --white: #ffffff;
  --border: #e5e7eb;
}

/* ================================================================
   TYPOGRAPHY
   ================================================================ */
h1, h2, h3, h4, h5, h6 { line-height: 1.15; font-weight: 700; color: var(--primary); }

/* ================================================================
   GLASS MORPHISM
   ================================================================ */
.glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.glass-dark {
  background: rgba(29, 53, 87, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ================================================================
   GRADIENT TEXT
   ================================================================ */
.gradient-text {
  background: linear-gradient(135deg, #1D3557, #457B9D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.1em;
}
.gradient-text-accent {
  background: linear-gradient(135deg, #E76F51, #F4A261);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding-bottom: 0.1em;
}

/* ================================================================
   SECTION DIVIDER
   ================================================================ */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 53, 87, 0.15), transparent);
}

/* ================================================================
   HOVER CARD - 3D tilt effect
   ================================================================ */
.hover-card {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hover-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(29, 53, 87, 0.12), 0 8px 24px rgba(29, 53, 87, 0.08);
}

/* ================================================================
   ANIMATED UNDERLINE
   ================================================================ */
.animated-underline { position: relative; }
.animated-underline::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.animated-underline:hover::after { width: 100%; }

/* ================================================================
   MAGNETIC BUTTON
   ================================================================ */
.magnetic-btn {
  position: relative;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.magnetic-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(231,111,81,0.3), rgba(42,157,143,0.3));
  opacity: 0;
  filter: blur(16px);
  transition: opacity 0.4s ease;
  z-index: -1;
}
.magnetic-btn:hover::before { opacity: 1; }
.magnetic-btn:hover { transform: translateY(-2px) scale(1.03); }
.magnetic-btn:active { transform: translateY(0) scale(0.98); }

/* ================================================================
   SPOTLIGHT EFFECT
   ================================================================ */
.spotlight-section { position: relative; }
.spotlight-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 60%; height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(69, 123, 157, 0.4), rgba(231, 111, 81, 0.4), transparent);
}

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all 0.3s;
  padding: 0.75rem 0;
}
.navbar.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.navbar-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  transition: height 0.3s;
}
.navbar.scrolled .navbar-inner { height: 4rem; }

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.navbar-logo-bold {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--primary);
}
.navbar-logo-light {
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--primary);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  transition: opacity 0.2s;
  cursor: pointer;
}
.nav-link:hover { opacity: 0.7; }

/* Language Switcher */
.lang-switcher { position: relative; display: none; }
.lang-switcher-btn {
  display: flex; align-items: center; gap: 4px;
  background: none; border: 1px solid rgba(29,53,87,0.15); border-radius: 6px;
  padding: 5px 10px; font-size: 0.8125rem; font-weight: 600;
  color: var(--primary); cursor: pointer; transition: all 0.2s;
}
.lang-switcher-btn:hover { background: rgba(29,53,87,0.05); }
.lang-switcher-btn svg { width: 12px; height: 12px; transition: transform 0.2s; }
.lang-switcher-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: white; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 60px; overflow: hidden; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: all 0.2s;
}
.lang-switcher-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switcher-item {
  display: block; padding: 8px 14px; font-size: 0.8125rem; font-weight: 500;
  color: var(--text); text-align: center; transition: background 0.15s;
}
.lang-switcher-item:hover { background: rgba(29,53,87,0.05); }
.lang-switcher-item.active { color: var(--accent); font-weight: 700; }
.mobile-lang-row { display: flex; justify-content: center; gap: 8px; padding: 12px 0; }
.mobile-lang {
  padding: 6px 14px; border-radius: 6px; font-size: 0.8125rem; font-weight: 600;
  color: rgba(255,255,255,0.6); transition: all 0.2s;
}
.mobile-lang.active { background: var(--accent); color: white; }
.mobile-lang:hover { color: white; }
.mobile-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 0 20px 8px; }

.nav-cta {
  display: none;
  align-items: center;
  gap: 0.75rem;
}
.btn-outline {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 2px solid var(--primary);
  color: var(--primary);
  transition: all 0.2s;
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}
.btn-primary {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.5rem;
  background: var(--accent-dark);
  color: white;
  transition: all 0.2s;
}
.btn-primary:hover { filter: brightness(1.1); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  transition: opacity 0.2s;
}
.dropdown-toggle:hover { opacity: 0.7; }
.dropdown-toggle svg {
  width: 1rem; height: 1rem;
  transition: transform 0.2s;
}
.dropdown-menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-0.5rem);
  padding-top: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown:hover .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-inner {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem 0;
  min-width: 200px;
}
.dropdown-item {
  display: block;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  transition: background 0.15s;
  white-space: nowrap;
}
.dropdown-item:hover { background: rgba(255,255,255,0.5); }

/* Mobile hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.5rem; height: 2.5rem;
  gap: 6px;
}
.hamburger span {
  display: block;
  width: 1.5rem; height: 2px;
  border-radius: 9999px;
  background: var(--primary);
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translateY(8px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translateY(-8px); }

/* Mobile overlay & panel */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.mobile-overlay.active { opacity: 1; visibility: visible; }
.mobile-panel {
  position: fixed;
  top: 0; right: 0;
  z-index: 50;
  height: 100%;
  width: 20rem;
  max-width: 85vw;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  overflow-y: auto;
  padding: 5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.mobile-panel.active { transform: translateX(0); }
.mobile-link {
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary);
  transition: opacity 0.15s;
}
.mobile-link:hover { opacity: 0.7; }
.mobile-divider { width: 100%; height: 1px; background: var(--border); margin: 1rem 0; }
.mobile-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4a6a8b;
  margin-bottom: 0.75rem;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .lang-switcher { display: flex; }
  .nav-cta { display: flex; }
  .hamburger { display: none; }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 180vh;
  background: var(--primary);
}
.hero-pin {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-gradient-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}
.hero-gradient-circle--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(231,111,81,0.3) 0%, transparent 70%);
  top: -10%; left: -5%;
  animation: heroFloat1 12s ease-in-out infinite;
}
.hero-gradient-circle--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(42,157,143,0.25) 0%, transparent 70%);
  bottom: -15%; right: -10%;
  animation: heroFloat2 14s ease-in-out infinite;
}
.hero-gradient-circle--3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(233,196,106,0.2) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: heroFloat3 10s ease-in-out infinite;
}
.hero-gradient-circle--4 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(69,123,157,0.3) 0%, transparent 70%);
  top: 20%; right: 15%;
  animation: heroFloat4 16s ease-in-out infinite;
}

@keyframes heroFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.1); }
  66% { transform: translate(-30px, 60px) scale(0.95); }
}
@keyframes heroFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, -30px) scale(1.05); }
  66% { transform: translate(40px, -50px) scale(0.9); }
}
@keyframes heroFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-40%, -60%) scale(1.15); }
}
@keyframes heroFloat4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 30px) scale(1.1); }
}

/* Dashboard Mockup */
.hero-dashboard-wrapper {
  perspective: 1200px;
  animation: heroDashFloat 6s ease-in-out infinite;
}
.hero-dashboard {
  width: 380px;
  max-width: 90vw;
  height: 340px;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #141e2e;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45), 0 10px 20px rgba(0,0,0,0.25), 0 0 80px rgba(69,123,157,0.15);
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hero-dashboard:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg);
}
@media (min-width: 768px) {
  .hero-dashboard { width: 440px; height: 380px; }
}
@keyframes heroDashFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* Hero line chart animation */
.hero-line-chart {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: heroLineDraw 2s ease-out 1.2s forwards;
}
.hero-line-area {
  opacity: 0;
  animation: heroAreaFade 1s ease-out 2.5s forwards;
}
@keyframes heroLineDraw { to { stroke-dashoffset: 0; } }
@keyframes heroAreaFade { to { opacity: 0.25; } }

/* Hero content grid */
.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  will-change: transform;
}
@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 1.5rem;
  }
}

.hero-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  color: white;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  white-space: pre-line;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  max-width: 36rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
@media (min-width: 640px) {
  .hero-buttons { flex-direction: row; }
}
.hero-btn-white {
  background: white;
  color: var(--primary);
  font-weight: 600;
  border-radius: 9999px;
  padding: 1rem 2rem;
  font-size: 1rem;
  box-shadow: 0 10px 30px rgba(255,255,255,0.1);
  transition: all 0.3s;
}
.hero-btn-white:hover {
  background: #f3f4f6;
  box-shadow: 0 20px 50px rgba(255,255,255,0.2);
  transform: scale(1.05);
}
.hero-btn-outline {
  border: 2px solid white;
  color: white;
  font-weight: 600;
  border-radius: 9999px;
  padding: 1rem 2rem;
  font-size: 1rem;
  transition: all 0.3s;
}
.hero-btn-outline:hover {
  background: rgba(255,255,255,0.1);
  transform: scale(1.05);
}

/* Scroll chevron */
.hero-chevron {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* Dot pattern */
.hero-dots {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.5) 1px, transparent 0);
  background-size: 32px 32px;
  z-index: 0;
}

/* ================================================================
   FLOATING PARTICLES (canvas)
   ================================================================ */
.particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ================================================================
   CSS 3D HERO ELEMENT (replaces Three.js)
   ================================================================ */
.hero-3d-wrapper {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
  perspective: 800px;
}
.hero-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid;
}
.hero-ring--1 {
  width: 300px; height: 300px;
  border-color: rgba(231,111,81,0.3);
  transform: translate(-50%, -50%);
  animation: heroRingSpin 20s linear infinite, heroRingFloat 8s ease-in-out infinite;
}
.hero-ring--2 {
  width: 400px; height: 400px;
  border-color: rgba(69,123,157,0.2);
  transform: translate(-50%, -50%);
  animation: heroRingSpin2 30s linear infinite reverse, heroRingFloat2 10s ease-in-out infinite;
}
.hero-ring--3 {
  width: 200px; height: 200px;
  border-color: rgba(42,157,143,0.25);
  transform: translate(-50%, -50%);
  animation: heroRingSpin 25s linear infinite reverse, heroRingFloat 6s ease-in-out infinite reverse;
}

@keyframes heroRingSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes heroRingSpin2 { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes heroRingFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotateX(0deg); }
  50% { transform: translate(-50%, -50%) scale(1.05) rotateX(8deg); }
}
@keyframes heroRingFloat2 {
  0%, 100% { transform: translate(-50%, -50%) scale(1) rotateY(0deg); }
  50% { transform: translate(-50%, -50%) scale(0.95) rotateY(-8deg); }
}

@media (max-width: 767px) {
  .hero-3d-wrapper { display: none; }
}

/* ================================================================
   TEXT REVEAL SECTION
   ================================================================ */
.text-reveal-section {
  position: relative;
  overflow: hidden;
}
.text-reveal-pin {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}
.text-reveal-content {
  max-width: 64rem;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  position: relative;
  z-index: 10;
}
.text-reveal-word {
  display: inline-block;
  margin-right: 0.3em;
  font-size: clamp(1.875rem, 4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* ================================================================
   PROBLEM SECTION
   ================================================================ */
.problem-section {
  position: relative;
  background: white;
  overflow: hidden;
  clear: both;
}
.problem-pin {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.problem-heading {
  text-align: center;
  margin-bottom: 4rem;
}
.problem-heading h2 {
  font-size: clamp(2.25rem, 4vw, 3.75rem);
}
.problem-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .problem-cards { grid-template-columns: repeat(3, 1fr); }
}
.problem-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  position: relative;
  will-change: transform;
}
.problem-card-warning {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f87171;
  font-size: 0.875rem;
  font-weight: 700;
}
.problem-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.problem-icon-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform: scale(1.35);
  animation: pulse-slow 3s ease-in-out infinite;
}
.problem-icon {
  position: relative;
  width: 5rem; height: 5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s;
}
.problem-card:hover .problem-icon { transform: scale(1.1) rotate(6deg); }
.problem-card p {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.6;
}

.problem-outro {
  text-align: center;
}
.problem-outro p {
  display: inline-block;
  position: relative;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}
.problem-underline {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 4px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #457B9D, #2A9D8F);
  transform-origin: left;
  transform: scaleX(0);
}
.problem-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 4px;
  z-index: 50;
  transform-origin: left;
  background: linear-gradient(90deg, #E76F51, #457B9D, #2A9D8F);
  transform: scaleX(0);
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.5; transform: scale(1.35); }
  50% { opacity: 0.8; transform: scale(1.5); }
}

/* ================================================================
   SOLUTIONS SECTION
   ================================================================ */
/* ================================================================
   SOLUTIONS - FLIP CARDS
   ================================================================ */
.flip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .flip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .flip-grid { grid-template-columns: repeat(4, 1fr); }
}

.flip-card {
  perspective: 1000px;
  height: 380px;
  cursor: pointer;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-front, .flip-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* FRONT: Problem side */
.flip-front {
  background: linear-gradient(145deg, #fff5f5, #ffffff);
  border: 1px solid #fee2e2;
  box-shadow: 0 4px 24px rgba(239, 68, 68, 0.06);
}
.flip-front-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background: #fef2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.flip-front-icon i {
  font-size: 1.5rem;
  color: #ef4444;
}
.flip-front-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ef4444;
  background: #fef2f2;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  width: fit-content;
}
.flip-front h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
.flip-front p {
  font-size: 0.9375rem;
  color: var(--text-gray);
  line-height: 1.6;
  flex: 1;
}
.flip-hint {
  font-size: 0.8125rem;
  color: #d1d5db;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  transition: color 0.3s;
}
.flip-card:hover .flip-hint { color: #ef4444; }
.flip-hint i { font-size: 1rem; }

/* BACK: Solution side */
.flip-back {
  background: linear-gradient(145deg, var(--card-color), color-mix(in srgb, var(--card-color) 85%, black));
  transform: rotateY(180deg);
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.flip-back-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.flip-back-icon i {
  font-size: 1.75rem;
  color: white;
}
.flip-back h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}
.flip-back p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.flip-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  background: rgba(255,255,255,0.15);
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
}
.flip-link:hover {
  background: rgba(255,255,255,0.25);
  gap: 0.625rem;
}

/* Mobile: tap to flip */
@media (max-width: 1023px) {
  .flip-card { height: 340px; }
  .flip-card.flipped .flip-card-inner { transform: rotateY(180deg); }
}

/* color-mix fallback for older browsers */
@supports not (color: color-mix(in srgb, red, blue)) {
  .flip-back { background: var(--card-color); }
}
.solution-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(29,53,87,0.1);
}
.solution-icon {
  width: 4rem; height: 4rem;
  margin-bottom: 1.5rem;
}
.solution-illustration {
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  transition: transform 0.3s;
}
.solution-card:hover .solution-illustration {
  transform: scale(1.03);
}
.solution-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.solution-problem {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.solution-desc {
  font-size: 0.9375rem;
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}
.solution-link:hover { gap: 0.5rem; }

/* ================================================================
   INTEGRATIONS (MARQUEE)
   ================================================================ */
.integrations-section {
  padding: 5rem 0;
  background: white;
}
.integrations-header {
  text-align: center;
  margin-bottom: 3rem;
}
.integrations-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}
.integrations-header p {
  color: var(--text-gray);
}
.marquee-container {
  overflow: hidden;
  padding: 1.5rem 0;
}
.logo-marquee {
  display: flex;
  gap: 2rem;
  animation: marquee 30s linear infinite;
}
.logo-marquee:hover { animation-play-state: paused; }
.erp-logo {
  flex-shrink: 0;
  padding: 0.75rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  border: 2px solid;
  transition: transform 0.3s;
  text-align: center;
}
.erp-logo:hover { transform: scale(1.05); }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.integrations-more {
  text-align: center;
  margin-top: 2rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ================================================================
   STATS SECTION
   ================================================================ */
.stats-section {
  background: var(--primary);
  padding: 5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-item {
  text-align: center;
  color: white;
}
.stat-icon {
  width: 3rem; height: 3rem;
  margin: 0 auto 1rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
}
.stat-icon i { font-size: 1.5rem; }
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}
.stat-suffix {
  font-size: 1.5rem;
  font-weight: 400;
}

/* ================================================================
   FOUNDER SECTION
   ================================================================ */
.founder-section {
  padding: 6rem 0;
  background: white;
}
.founder-card {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .founder-card { flex-direction: row; align-items: center; gap: 2.5rem; }
}
@media (min-width: 1024px) {
  .founder-card { gap: 3rem; }
}
.founder-avatar {
  width: 12rem; height: 12rem;
  border-radius: 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 20px 40px rgba(29,53,87,0.2);
}
.founder-avatar span {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
}
.founder-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}
.founder-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.founder-story {
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.founder-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.founder-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-gray);
  transition: color 0.2s;
}
.founder-contact a:hover { color: var(--primary); }

/* ================================================================
   REFERENCES SECTION
   ================================================================ */
.references-section {
  padding: 5rem 0;
  background: var(--bg-light);
}
.references-header {
  text-align: center;
  margin-bottom: 3rem;
}
.references-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 0.75rem;
}
.references-header p { color: var(--text-gray); }
.references-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  max-width: 60rem;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}
.reference-badge {
  padding: 0.75rem 1.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  transition: all 0.3s;
}
.reference-badge:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(231,111,81,0.1);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}
.testimonial-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
}
.testimonial-quote {
  font-size: 2rem;
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 1rem;
  line-height: 1;
}
.testimonial-text {
  font-size: 0.9375rem;
  color: var(--text-gray);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-stars {
  color: #fbbf24;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.testimonial-author {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary);
}

/* ================================================================
   FAQ SECTION
   ================================================================ */
.faq-section {
  padding: 5rem 0;
  background: white;
}
.faq-header {
  text-align: center;
  margin-bottom: 3rem;
}
.faq-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  text-align: left;
  cursor: pointer;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--accent); }
.faq-question i {
  font-size: 1.25rem;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.active .faq-question i { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.25rem;
}
.faq-answer p {
  font-size: 0.9375rem;
  color: var(--text-gray);
  line-height: 1.7;
}

/* ================================================================
   CONTACT SECTION
   ================================================================ */
.contact-section {
  background: var(--primary);
  padding: 5rem 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-info h2 {
  font-size: 2rem;
  color: white;
  margin-bottom: 0.75rem;
}
.contact-info .subtitle {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
}
.contact-detail i {
  font-size: 1.25rem;
  color: var(--accent);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  margin-bottom: 0.375rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}
.form-input::placeholder { color: rgba(255,255,255,0.4); }
.form-input:focus {
  outline: none;
  border-color: var(--accent);
}
textarea.form-input { resize: vertical; min-height: 120px; }
.form-submit {
  background: var(--accent);
  color: white;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
  width: 100%;
}
.form-submit:hover { background: var(--accent-hover); }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: #0d1b2a;
  color: white;
}
.footer-main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .footer-main { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand p {
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
  line-height: 1.6;
}
.footer-brand .tagline {
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.footer h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}
.footer-links a, .footer-links span {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-links a:hover { color: white; }
.footer-links .contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 80rem;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; }
}
.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.footer-bottom-links a {
  color: rgba(255,255,255,0.4);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: white; }

/* ================================================================
   GRADIENT BLOB (decorative)
   ================================================================ */
.gradient-blob {
  position: relative;
  height: 0;
  overflow: visible;
  pointer-events: none;
}
.gradient-blob-inner {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

/* ================================================================
   WHATSAPP BUTTON
   ================================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
  transition: transform 0.3s;
}
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn i { font-size: 1.75rem; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 2.75rem; height: 2.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(29,53,87,0.2);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: scale(1.1); }

/* ================================================================
   KEYFRAME ANIMATIONS
   ================================================================ */
@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(231, 111, 81, 0.3); }
  50% { box-shadow: 0 0 40px rgba(231, 111, 81, 0.6); }
}
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes revealOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(-30px, 20px) scale(1.15); opacity: 1; }
}
@keyframes revealOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  50% { transform: translate(20px, -25px) scale(1.1); opacity: 1; }
}
@keyframes slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-dark); }

/* Tabular nums */
.tabular-nums { font-variant-numeric: tabular-nums; }

/* Pin spacer helper */
.pin-spacer { overflow: visible !important; }

/* ================================================================
   UTILITY CLASSES
   ================================================================ */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ================================================================
   COOKIE CONSENT BANNER
   ================================================================ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: #0d1b2a; color: #fff; padding: 16px 24px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  font-size: 0.875rem; line-height: 1.5;
  transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { margin: 0; flex: 1; max-width: 600px; }
.cookie-banner a { color: var(--accent); text-decoration: underline; }
.cookie-banner .cookie-buttons { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-banner .cookie-btn {
  padding: 8px 20px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 0.8125rem; font-weight: 600; transition: opacity 0.2s;
}
.cookie-banner .cookie-btn:hover { opacity: 0.85; }
.cookie-banner .cookie-accept { background: var(--accent); color: #fff; }
.cookie-banner .cookie-reject { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.3); }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; text-align: center; padding: 20px 16px; }
}
