/* ==========================================================================
   ICIO — Global Cyber Intelligence
   Fresh rebuild of styles.css with modern, responsive UI.
   Uses glassmorphism panels, gradient accents, and smooth micro‑interactions.
   Breakpoints: 1200 / 992 / 768 / 640 / 480.
   ========================================================================== */

:root {
  --bg: #050910;
  --bg-panel: rgba(15, 23, 42, 0.9);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --primary: #38bdf8;
  --secondary: #8b5cf6;
  --accent-red: #f43f5e;
  --accent-green: #22c55e;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: linear-gradient(180deg, #020817 0%, #0a1628 50%, #020817 100%);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

main {
  padding-top: 120px; /* header height spacing */
  position: relative;
  z-index: 1;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Header / Dock
   -------------------------------------------------------------------------- */
.cyber-dock {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  background: transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dock-container {
  width: min(1240px, 94vw);
  margin: 16px auto;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 10% 10%, rgba(56, 189, 248, 0.12), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(139, 92, 246, 0.12), transparent 40%),
    rgba(7, 11, 19, 0.92);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
}

.dock-subtitle {
  width: min(1240px, 94vw);
  margin: -4px auto 8px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  /* Яркий анимированный градиент по тексту */
  background: linear-gradient(120deg, #38bdf8, #a855f7, #f97316, #22c55e, #38bdf8);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: dockSubtitleGradient 10s ease-in-out infinite;
  /* Лёгкое свечение вокруг текста */
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.45));
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}

.dock-subtitle--hidden {
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
  /* Эффект растворения при скрытии */
  filter: blur(6px);
  pointer-events: none;
}

@keyframes dockSubtitleGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.dock-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: visible;
}

.dock-logo-text {
  font-family: "Orbitron", var(--font-sans);
  font-size: 22px;
  letter-spacing: 2px;
  color: #fff;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dock-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.dock-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.dock-link {
  position: relative;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.6px;
  padding: 12px 16px;
  color: var(--text-muted);
  border-radius: 999px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dock-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
  animation: menuBlink 1.1s infinite alternate;
}

.dock-link.active {
  color: #fff;
  background: radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.16), transparent 60%);
  animation: menuBlink 1.4s infinite alternate;
}

.dock-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: width 0.25s ease, left 0.25s ease, opacity 0.25s ease;
}

.dock-link:hover::after,
.dock-link.active::after {
  width: 100%;
  left: 0;
  opacity: 1;
}

.dock-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-pill {
  display: flex;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 4px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 12px;
  padding: 8px 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #020617;
  font-weight: 700;
}

.btn {
  border: none;
  cursor: pointer;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 13px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #020617;
  padding: 14px 18px;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(56, 189, 248, 0.45);
}

.btn-sm {
  font-size: 12px;
  padding: 10px 12px;
}

.btn-glow {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 0 0 rgba(56, 189, 248, 0);
}

.btn-glow:hover {
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.35);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.mobile-menu-btn--active span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

.mobile-menu-btn.mobile-menu-btn--active span:nth-child(2) {
  transform: translateY(-4px) rotate(-45deg);
}

@keyframes menuBlink {
  0% {
    opacity: 1;
    text-shadow: 0 0 4px rgba(148, 163, 184, 0.6);
  }
  50% {
    opacity: 0.55;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.95);
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 4px rgba(148, 163, 184, 0.6);
  }
}

/* Compact header on scroll */
.cyber-dock--compact .dock-container {
  margin: 8px auto;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(7, 11, 19, 0.9);
  border-color: rgba(56, 189, 248, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: scale(0.75);
  transform-origin: top center;
}

.cyber-dock--compact .dock-link {
  padding: 8px 12px;
  font-size: 11px;
}
.cyber-dock--compact .dock-logo-text {
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.6), 0 0 18px rgba(56, 189, 248, 0.35);
}
.cyber-dock--compact .lang-btn {
  padding: 8px 12px;
  font-size: 12px;
}
.cyber-dock--compact .btn {
  padding: 12px 16px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.home-hero {
  position: relative;
  margin-top: -170px; /* Pull background up to cover black gap under header */
  padding: 270px 0 80px; /* Compensate with extra top padding to keep content position */
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.18), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(139, 92, 246, 0.15), transparent 40%),
    linear-gradient(180deg, rgba(8, 12, 20, 0.9), rgba(8, 12, 20, 0.6));
  z-index: 0;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}

.home-hero-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-hero-right {
  position: relative;
}

.home-kicker {
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 12px;
}

.home-title {
  font-size: 44px;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}

.home-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0 0 10px;
}

.home-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stats-carousel {
  margin-top: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
}

.stats-grid {
  position: relative;
  min-height: 120px;
}

.stat-item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.stat-item.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.stat-item.is-left,
.stat-item.is-right,
.stat-item.is-far {
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
}

.stat-number {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.carousel-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}

.carousel-arrow:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
}

/* Avatar + Locks */
.hero-avatar-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-avatar {
  position: relative;
  width: 140px;
  height: 140px;
}

.hero-avatar-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(8, 12, 20, 0.95));
  padding: 6px;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.35);
}

.hero-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.hero-lock-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-lock-icon {
  position: absolute;
  color: var(--primary);
  font-size: 16px;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.5));
}

.hero-lock-icon--1 { top: -8px; left: 50%; transform: translateX(-50%); animation: lockOrbit1 9s linear infinite; }
.hero-lock-icon--2 { right: -6px; top: 50%; transform: translateY(-50%); animation: lockOrbit2 11s linear infinite; }
.hero-lock-icon--3 { bottom: -8px; left: 30%; animation: lockOrbit3 13s linear infinite; }

@keyframes lockOrbit1 {
  from { transform: translate(-50%, 0) rotate(0deg) translateX(70px); }
  to   { transform: translate(-50%, 0) rotate(360deg) translateX(70px); }
}
@keyframes lockOrbit2 {
  from { transform: translate(0, -50%) rotate(0deg) translateX(70px); }
  to   { transform: translate(0, -50%) rotate(360deg) translateX(70px); }
}
@keyframes lockOrbit3 {
  from { transform: rotate(0deg) translateX(70px); }
  to   { transform: rotate(360deg) translateX(70px); }
}

/* Code window */
.hero-code-card {
  background: rgba(10, 17, 26, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.9);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 18px;
}

.hero-code-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(15, 23, 42, 0.95));
}

.hero-code-dots {
  display: flex;
  gap: 6px;
}

.hero-code-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}
.hero-code-dot--red { background: #ef4444; }
.hero-code-dot--yellow { background: #f59e0b; }
.hero-code-dot--green { background: #22c55e; }

.hero-code-title {
  color: #cbd5e1;
  font-size: 11px;
}

.hero-code-body {
  padding: 14px;
  color: #e2e8f0;
  white-space: pre-wrap;
  min-height: 90px;
}

/* Ghost code windows (background deco) */
.hero-code-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-code-card--ghost {
  position: absolute;
  max-width: 260px;
  font-size: 10px;
  opacity: 0.25;
  filter: blur(2px);
  transform: scale(0.92);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.95);
}

.hero-code-card--ghost .hero-code-body { max-height: 110px; }
.hero-code-card--ghost1 { top: 40px; left: 4%; }
.hero-code-card--ghost2 { top: 10px; left: 40%; }
.hero-code-card--ghost3 { top: 80px; right: 6%; }

/* Feed card */
.feed-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.feed-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.feed-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feed-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
}

.feed-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.feed-tag {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary);
}

.feed-tag.warning {
  background: rgba(244, 63, 94, 0.15);
  color: #fca5a5;
}

.feed-text {
  margin: 6px 0 0;
  font-size: 13px;
  color: #e2e8f0;
}

/* Ghost glass decor */
.hero-ghost-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  filter: blur(1px);
  z-index: 0;
}
.hero-ghost-card--1 { width: 220px; height: 120px; top: -20px; right: -30px; }
.hero-ghost-card--2 { width: 160px; height: 110px; bottom: 10px; left: -20px; }

/* --------------------------------------------------------------------------
   Sections: Process, Trust, Partners
   -------------------------------------------------------------------------- */
.page-header {
  margin: 0 0 24px;
}

.page-header.page-header--glow {
  padding: 24px;
  border-radius: 16px;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.12), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1), transparent 40%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.about-header,
.services-header,
.cases-header {
  position: relative;
  overflow: hidden;
}

.about-header::before,
.about-header::after,
.services-header::before,
.services-header::after,
.cases-header::before,
.cases-header::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.9;
  pointer-events: none;
}

.about-header::before,
.services-header::before,
.cases-header::before {
  width: 220px;
  height: 220px;
  top: -40px;
  right: -60px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.65), transparent 60%);
}

.about-header::after,
.services-header::after,
.cases-header::after {
  width: 180px;
  height: 180px;
  bottom: -40px;
  left: -40px;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.6), transparent 60%);
}

.page-title {
  font-size: 36px;
  color: #fff;
  margin: 0 0 8px;
}

.page-subtitle {
  color: var(--text-muted);
  margin: 0;
  max-width: 780px;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.stat-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.15), transparent 55%),
    rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.stat-pill .stat-number {
  font-weight: 700;
  color: #e2e8f0;
}

.stat-pill .stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.card-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.tagline {
  color: var(--primary);
  font-size: 12px;
  margin-bottom: 10px;
}

.about-logo-orbit {
  position: relative;
  height: 160px;
  margin: 0 0 40px;
}

.about-logo-orbit__img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.55));
  animation: aboutLogoDrift 10s ease-in-out infinite alternate;
}

.about-logo-caption {
  position: absolute;
  left: 50%;
  top: calc(50% + 90px);
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.9;
}

.about-meta {
  margin-top: -10px;
}

.about-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

@keyframes aboutLogoDrift {
  0% {
    transform: translate(-80%, -52%) scale(0.94) rotate(-6deg);
    opacity: 0.65;
  }
  50% {
    transform: translate(-20%, -55%) scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(40%, -52%) scale(0.96) rotate(6deg);
    opacity: 0.75;
  }
}

@media (max-width: 768px) {
  .about-logo-orbit {
    height: 120px;
    margin-bottom: 24px;
  }
  .about-logo-orbit__img {
    width: 90px;
    height: 90px;
    opacity: 0.6;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.trust-card {
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 10px;
}

.trust-card-title {
  color: #fff;
  margin: 0 0 6px;
  font-size: 16px;
}

.trust-card-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.partners-main-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.partner-main-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: 0.2s ease;
}

.partner-main-logo img {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(15, 23, 42, 0.9));
}

.partner-main-logo:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.45);
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.24), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.3), transparent 60%);
}

.partners-text-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.partners-text-list .partner-main {
  color: #fff;
  font-weight: 700;
  padding: 4px 8px;
  background: rgba(56, 189, 248, 0.14);
  border-radius: 8px;
}

/* Process timeline */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  position: relative;
}

.step-card {
  position: relative;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.step-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 18px;
}

.step-number-bg {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 32px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------------------
   Services page cards (glass style)
   -------------------------------------------------------------------------- */
.service-glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.service-glass-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.service-glass-card:hover::before {
  opacity: 1;
}

.service-glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(56, 189, 248, 0.02));
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.service-glass-card:hover .service-icon-wrapper {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #000;
  border-color: transparent;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.service-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.4;
}

.service-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-price {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--secondary);
  padding: 8px 12px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 6px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  margin-bottom: 20px;
  display: inline-block;
}

.service-btn {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #000;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* --------------------------------------------------------------------------
   Cases / Reviews / Blog / Contacts
   -------------------------------------------------------------------------- */
.cases-grid,
.reviews-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.case-card,
.review-card,
.blog-post,
.contact-card,
.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.blog-page {
  margin-top: 8px;
}

.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, 0.9fr);
  gap: 28px;
  align-items: flex-start;
}

.blog-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.case-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.case-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.35), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(139, 92, 246, 0.3), transparent 60%);
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.95);
}

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

.case-status {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.case-status.success {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.case-status.pending {
  background: rgba(234, 179, 8, 0.2);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.case-icon {
  font-size: 32px;
  color: var(--primary);
  margin-bottom: 16px;
}

.case-card h3,
.review-card h3,
.post-title {
  color: #fff;
  margin: 0 0 10px;
}

.blog-post--featured {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-post--featured .post-content {
  padding: 22px 24px 24px;
}

.blog-post--featured .post-excerpt {
  font-size: 15px;
}

.case-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.case-desc,
.review-text,
.post-excerpt {
  font-size: 14px;
  color: #cbd5e1;
  margin: 0 0 14px;
}

.case-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.case-tags span {
  font-size: 11px;
  color: var(--secondary);
  background: rgba(139, 92, 246, 0.1);
  padding: 4px 8px;
  border-radius: 99px;
}

.review-quote {
  font-family: "Georgia", serif;
  font-size: 60px;
  color: rgba(56, 189, 248, 0.2);
  position: absolute;
  top: 12px;
  left: 14px;
  line-height: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
}

.author-info h4 {
  color: #fff;
  margin: 0 0 2px;
}

.author-info span {
  color: var(--text-muted);
  font-size: 12px;
}

.blog-post {
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.blog-post:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.post-image {
  height: 200px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-image i {
  font-size: 54px;
  color: var(--primary);
}

.post-image--featured {
  position: relative;
  height: 220px;
  background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(148, 163, 184, 0.3), transparent 60%),
    linear-gradient(135deg, #020617, #020c1b);
}

.post-image--featured i {
  font-size: 72px;
  color: var(--accent-red);
  filter: drop-shadow(0 0 26px rgba(248, 113, 113, 0.9));
}

.post-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
  margin-bottom: 8px;
  display: block;
}

.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.post-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.post-meta-separator {
  opacity: 0.7;
}

.post-meta-text {
  font-size: 11px;
}

.post-link {
  color: var(--secondary);
  font-weight: 600;
  font-size: 13px;
}

.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-sidebar-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 18px 18px 16px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.9);
}

.blog-sidebar-title {
  margin: 0 0 8px;
  color: #e5e7eb;
  font-size: 15px;
}

.blog-sidebar-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.blog-sidebar-footnote {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--primary);
}

.tag-cloud {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: 11px;
  color: #e2e8f0;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
}

.contact-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  margin: 0 0 10px;
  font-size: 16px;
}

.contact-card p {
  margin: 6px 0;
  color: #cbd5e1;
  font-size: 14px;
}

.contact-form-wrapper {
  border: 1px solid rgba(56, 189, 248, 0.1);
}

.official-form .form-group {
  margin-bottom: 14px;
}

.official-form label {
  display: block;
  color: #cbd5e1;
  font-size: 12px;
  margin-bottom: 6px;
}

.official-form input,
.official-form select,
.official-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
}

.official-form textarea {
  resize: vertical;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
}

.modal-overlay.hidden {
  display: none;
}

.modal-dossier {
  width: min(720px, 92vw);
  background: rgba(10, 14, 22, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.dossier-header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(10, 14, 22, 0.95));
}

.dossier-body {
  padding: 18px;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Back to top
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5f2ff;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(15, 23, 42, 0.8);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  z-index: 900;
}

.back-to-top--visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  color: #020617;
  box-shadow: 0 0 24px var(--primary);
}

/* --------------------------------------------------------------------------
   Animations & scroll
   -------------------------------------------------------------------------- */
.scroll-animate {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .home-title { font-size: 40px; }
}

@media (max-width: 992px) {
  .home-hero-inner {
    grid-template-columns: 1fr;
  }
  .home-hero-right { margin-top: 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .dock-nav {
    display: block;
    position: fixed;
    top: 78px;
    left: 10px;
    right: 10px;
    background: rgba(5, 9, 16, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transform: translateY(-22px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
  }
  .dock-nav.dock-nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .dock-list {
    flex-direction: column;
    gap: 8px;
  }
  .dock-link {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid transparent;
  }
  .dock-link:hover,
  .dock-link:active {
    background: rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateX(4px);
  }
  .mobile-menu-btn { display: flex; }
  .home-title { font-size: 34px; }
  .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  main { padding-top: 160px; }
  .container { width: 94vw; }
  .home-hero { padding: 90px 0 60px; }
  .home-title { font-size: 30px; line-height: 1.2; }
  .home-subtitle { font-size: 15px; }
  .home-actions { flex-direction: column; gap: 10px; }
  .hero-avatar { transform: scale(0.9); }
  .hero-avatar-img { width: 120px; height: 120px; }
  .hero-code-bg,
  .hero-ghost-card { display: none; }
  .hero-code-card { width: 100%; position: relative; transform: none; }
  .feed-card { margin-top: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .trust-grid,
  .cases-grid,
  .reviews-grid,
  .blog-grid { grid-template-columns: 1fr; }
  .case-card,
  .review-card,
  .blog-post,
  .contact-form-wrapper,
  .contact-card { padding: 20px; }
  .partners-main-logos { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .partners-text-list { gap: 6px; }
  .dock-container { padding: 12px; }
  .lang-btn { padding: 6px 8px; }
  .btn-sm { padding: 10px 12px; }
}

@media (max-width: 480px) {
  main { padding-top: 150px; }
  .home-title { font-size: 26px; }
  .home-subtitle { font-size: 14px; }
  .btn { width: 100%; text-align: center; }
  .page-title { font-size: 26px; }
  .page-subtitle { font-size: 15px; }
  .case-card h3,
  .post-title,
  .review-author h4 { font-size: 17px; }
  .case-desc,
  .post-excerpt,
  .contact-card p { font-size: 13px; }
  .hero-avatar-img { width: 108px; height: 108px; }
}

